joabgonzalez/ai-agents-skills/express
Claude Code and agent skill by joabgonzalez/ai-agents-skills
- community
Checking that the SKILL.md file is still in the repository.
Express.js routing, middleware, and error handling. Trigger: When building REST APIs or server logic with Express.
Install
npx vskill@latest install joabgonzalez/ai-agents-skills/expressSKILL.md
The same SKILL.md was published earlier as joabgonzalez/ai-agents-skills/express.
Express.js
REST APIs and server logic with Express v4.x middleware and routing.
When to Use
- REST APIs
- Middleware stacks
- HTTP request/response handling
Don't use for:
- Static site generation (use Next.js/Astro)
- GraphQL-first APIs (use Apollo Server)
- Edge/serverless zero cold-start (use Hono)
Critical Patterns
✅ REQUIRED: Router Modularization
Group routes into Router instances for clean app.ts.
✅ REQUIRED: Async Error Wrapper
Express 4 doesn't catch rejected promises. Wrap async handlers.
✅ REQUIRED: Centralized Error Middleware
Single error handler as last middleware in stack.
✅ REQUIRED: Input Validation Middleware
Validate bodies before route logic.
✅ REQUIRED: Proper Status Codes
Return correct HTTP codes per operation.
Decision Tree
Example
Edge Cases
- Async errors: Express 4 swallows rejected promises; use async wrapper.
- Middleware order: Error middleware after routes; auth before protected routes.
- Large payloads: Set
express.json({ limit: "1mb" })to prevent 413/memory issues. - Double response:
res.json()twice throws; guard withif (res.headersSent). - Missing Content-Type: No
Content-Type: application/json→ emptyreq.body.
Checklist
- [ ] Every async route handler is wrapped or uses express-async-errors
- [ ] A centralized error middleware is the last
app.usecall - [ ] Routes are grouped into Router modules by resource
- [ ] Request bodies are validated before business logic runs
- [ ] Correct HTTP status codes are used (201, 204, 400, 404, 500)
- [ ]
express.json()has an explicit size limit - [ ] Sensitive headers (CORS, Helmet) are configured
Resources
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/express/SKILL.md
Popularity
- Repository stars
- 9
- 7-day trend score
- 12
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/joabgonzalez/ai-agents-skills/express)