AGENT SKILL

api-generator

Generate REST API endpoints with validation and tests

License 许可
MIT
最近更新
2026-11-06
Stars
★ 28
Forks
7

01 前言 Front Matter

name
api-generator
description
Generate REST API endpoints with validation and tests

02 资源文件 1

03 SKILL.md 正文

API Generator Skill

Generate a complete REST API endpoint following the project conventions.

Steps

  1. Define the route handler with proper TypeScript types
  2. Add input validation using the project's validation library
  3. Write integration tests covering happy path and error cases
  4. Update the API documentation

Guidelines

  • Use async/await consistently
  • Return proper HTTP status codes
  • Include error handling for all failure modes

04 同仓库更多 Skills