ai/middlewares directory. The @ooneex/ai dependency is installed if it is not already present.
Usage
Examples
Options
| Option | Description | Default |
|---|---|---|
--name | Middleware name. Normalized to PascalCase with a Middleware suffix. | Prompted if omitted |
--module | Target module the middleware is created in. | shared |
--override | Overwrite the files if they already exist. | false |
AI Skill
This command ships a matchingai:middleware:create skill. It generates the middleware class and test file, then guides your AI agent through implementing a chat middleware that implements IMiddleware from @ooneex/ai to observe or transform the chat lifecycle. This is chat middleware, not HTTP or socket middleware.
- Claude
- Codex