AGENT SKILL
api-generator
Scaffold a new REST route with validation, handler, query and tests.
- License 许可
- MIT
- 最近更新
- 2026-11-06
- Stars
- ★ 29
- Forks
- 7
01 前言 Front Matter
- name
- api-generator
- description
- Scaffold a new REST route with validation, handler, query and tests.
02 资源文件 1
- 参考文档references/route-checklist.md296 B
03 SKILL.md 正文
API generator
Use this skill when a task asks for a new endpoint on the orders service.
Steps
- Read
references/route-checklist.mdand confirm every item applies. - Add the zod request schema next to the handler in
src/routes. - Add the query builder in
src/db, never inline SQL in a handler. - Write the failing route test first, then implement until it passes.
- Update
AGENTS.mdonly if the layout convention changed.
04 同仓库更多 Skills
research
Research docs and summarize decisions
★ 29
debugging
Systematic debugging workflow for production failures and test regressions.
★ 29
api-generator
Generate REST API endpoints with validation and tests
★ 29
debugging
Systematic debugging workflow for production failures and test regressions.
★ 29
typescript-pro
Apply advanced TypeScript patterns including conditional types, template literal types, and mapped types
★ 29
debugging
Systematic debugging workflow for Replit projects
★ 29