middleware-gen
✓Verified·Scanned 2/18/2026
This skill generates Express middleware from plain-English descriptions and writes the result to stdout or a file. It reads the OPENAI_API_KEY environment variable and invokes openai.chat.completions.create (model gpt-4o-mini).
from clawhub.ai·vaf26d70·39.3 KB·0 installs
Scanned from 1.0.0 at af26d70 · Transparency log ↗
$ vett add clawhub.ai/lxgicstudios/middleware-gen
ai-middleware
Generate Express middleware from plain English descriptions. Rate limiting, auth, logging, whatever you need.
Install
npm install -g ai-middleware
Usage
npx ai-middleware "rate limit 100 req/min per IP"
npx ai-middleware "JWT auth with role-based access" -t
npx ai-middleware "request logging with response time" -o logger.ts -t
Options
-t, --typescript- Generate TypeScript-o, --output <file>- Write to file
Setup
export OPENAI_API_KEY=sk-...
License
MIT