koa
Installation
SKILL.md
When to use this skill
Use this skill whenever the user wants to:
- Build Node.js HTTP services with Koa and its onion-model middleware
- Configure routing (koa-router), body parsing, error handling, and static files
- Compose async middleware with
ctxandnextpatterns - Create lightweight REST APIs or web applications
How to use this skill
Workflow
- Create app — instantiate Koa and add middleware in order
- Add routing — use
@koa/routerfor route definitions - Handle errors — add error middleware at the top of the stack
- Deploy — run behind reverse proxy with HTTPS