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

03 SKILL.md 正文

API Generator

When asked to create an API endpoint:

  1. Inspect the closest route, schema, and service modules before creating new files.
  2. Use Express router and keep validation at the request boundary.
  3. Include Zod validation and typed response payloads.
  4. Add structured error handling and one realistic test fixture.
  5. Generate the route, test, and any small helper files together.

04 同仓库更多 Skills