error-handler-gen
✓Verified·Scanned 2/18/2026
This skill is a CLI that generates error-handling middleware for various frameworks. It uses the openai SDK, requires the OPENAI_API_KEY environment variable, and makes network calls to the OpenAI API.
from clawhub.ai·v62e60f6·40.1 KB·0 installs
Scanned from 1.0.1 at 62e60f6 · Transparency log ↗
$ vett add clawhub.ai/lxgicstudios/error-handler-gen
ai-error-handler
Generate complete error handling middleware for any framework. Custom error classes, async wrappers, proper status codes, the works.
Install
npm install -g ai-error-handler
Usage
npx ai-error-handler express
# Generates Express error handling middleware
npx ai-error-handler fastify -l javascript
# JavaScript version for Fastify
npx ai-error-handler nextjs -o lib/errors.ts
# Save to file
Setup
export OPENAI_API_KEY=sk-...
Options
-l, --lang <language>- typescript or javascript (default: typescript)-o, --output <path>- Save to file
License
MIT