Scaffolds a versioned REST route, its zod schema, and the matching test file.
Scanned 9/5/2026
Install to Claude Code
npx -y skills add sampleXbro/agentsmesh --skill api-generator --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Api Generator?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/samplexbro-api-generator-30c52e0a)More formats (shields.io, HTML) on the badges page.
---
name: api-generator
description: Scaffolds a versioned REST route, its zod schema, and the matching test file.
---
# API generator
Use this when a task asks for a new endpoint under `/v1`.
## Steps
1. Read [references/route-checklist.md](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](src/server/routes.ts).
4. Write the failing test first, then implement the handler.
## Conventions
- Request and response bodies are validated by zod on both ends.
- Errors return `{ error: { code, message } }`; never leak a stack trace.
- Pagination is cursor based (`?cursor=`, `?limit=`), never offset based.
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!
Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...