AGENT SKILL
api-generator
Generate REST API endpoints following project conventions
- License 许可
- MIT
- 最近更新
- 2026-11-06
- Stars
- ★ 29
- Forks
- 7
01 前言 Front Matter
- name
- api-generator
- description
- Generate REST API endpoints following project conventions
02 资源文件 2
- 参考文档references/route-checklist.md522 B
- 脚本template.ts426 B
03 SKILL.md 正文
API Generator
Use this skill when the user asks for a new REST endpoint or to scaffold a controller for an existing resource.
When to use
- New CRUD endpoint on an existing collection.
- Greenfield resource that needs full controller + route wiring.
- Adding a query parameter or pagination wrapper to an existing endpoint.
Steps
- Read
references/route-checklist.mdfor the per-endpoint contract. - Generate the controller stub from
template.ts. - Wire the new route into the router and update the OpenAPI spec.
Outputs
- Controller file under
src/api/<resource>/. - Test stub under
tests/api/<resource>.test.ts. - Updated OpenAPI document with the new endpoint.
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