Api generator

From sampleXbro/agentsmesh · View interactive version

Api generator is an AI agent skill from the GitHub repository sampleXbro/agentsmesh. Scaffolds a versioned REST route, its zod schema, and the matching test file.

How to use this skill

Skill file

API generator

Use this when a task asks for a new endpoint under /v1.

Steps

  1. Read references/route-checklist.md and confirm every box applies.
  2. Run scripts/scaffold.ts with the resource name in kebab-case.
  3. Register the router in src/server/routes.ts.
  4. Write the failing test first, then implement the handler.

Conventions

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.