AGENT SKILL
route-handlers
暂无简介
- License 许可
- MIT
- 最近更新
- 2026-05-26
- Stars
- ★ 0
- Forks
- 0
02 资源文件 1
- 参考文档README.md86 B
03 SKILL.md 正文
Route Handlers
Follow ../_shared/skill-contract.md.
Purpose
Create thin HTTP route handlers for Next.js route endpoints.
Use when
- you need an HTTP endpoint in the frontend app
Do not use when
- the task is page composition
- the task is backend API architecture
Inputs required
- request shape
- response shape
- validation rules
Outputs expected
- handler file
- mapping notes
- error response behavior
Workflow
- Define request and response shapes.
- Keep handler logic thin.
- Move reusable work to services or helpers.
- Add validation and error handling.
- Verify the route contract.
Validation checklist
- [ ] Handler is thin
- [ ] Validation is explicit
- [ ] Error responses are consistent
References
../../prompts/generate_nextjs_feature.md
04 同仓库更多 Skills
toolkit-i18n-operator
Use the toolkit-i18n CLI for repeated Flutter localization workflows with compact outputs, CSV validation, key coverage reporting, generated JSON exports, and safe non-mutating behavior.
★ 0
toolkit-design-operator
Use the toolkit-design CLI for repeated repository workflows.
★ 0
toolkit-ci-operator
Use the toolkit-ci CLI for repeated repository workflows.
★ 0
toolkit-arch-operator
Use the toolkit-arch CLI for repeated repository workflows, including Flutter i18n usage scans, layer checks, and localization coverage.
★ 0
web-testing
暂无简介
★ 0
web-state
暂无简介
★ 0