Api generator

From sampleXbro/agentsmesh · View interactive version

Api generator is an AI agent skill from the GitHub repository sampleXbro/agentsmesh. Scaffold a new REST route with validation, handler, query and tests.

How to use this skill

Skill file

API generator

Use this skill when a task asks for a new endpoint on the orders service.

Steps

  1. Read references/route-checklist.md and confirm every item applies.
  2. Add the zod request schema next to the handler in src/routes.
  3. Add the query builder in src/db, never inline SQL in a handler.
  4. Write the failing route test first, then implement until it passes.
  5. Update AGENTS.md only if the layout convention changed.
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.