AGENT SKILL

api-generator

Scaffold new REST endpoints or controllers for existing resources

适用职业开发工程师
使用场景后端与接口
License 许可
MIT
最近更新
2026-11-06
Stars
★ 28
Forks
7

01 前言 Front Matter

name
api-generator
description
Scaffold new REST endpoints or controllers for existing resources

02 资源文件 2

03 SKILL.md 正文

When to use

  • New CRUD endpoints for a resource
  • Greenfield resource scaffolding
  • Adding query parameters or pagination to existing routes

Steps

  1. Read the route checklist for requirements.
  2. Generate a controller from template.ts for the resource name.
  3. Wire the route into the router and update the OpenAPI document.

Outputs

  • Controller file under src/controllers/
  • Test stub under tests/controllers/
  • Updated OpenAPI document

04 同仓库更多 Skills