Generate REST API endpoints with validation and error handling
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-e883dee1)More formats (shields.io, HTML) on the badges page.
---
name: api-generator
description: Generate REST API endpoints with validation and error handling
---
## Purpose
Generate well-structured REST API endpoints following the project's conventions.
Includes request validation, typed response shapes, and consistent error handling.
## Workflow
1. Analyze the endpoint requirements from the user's description
2. Review `references/checklist.md` for quality gates
3. Generate the route handler with input validation
4. Add typed request/response interfaces
5. Include error handling middleware integration
6. Write unit tests alongside the implementation
## Best Practices
- Always validate request bodies against a schema (e.g., zod)
- Return consistent error response shapes: `{ error: string; code: string }`
- Use HTTP status codes correctly (400 for validation, 404 for not found, 500 for unexpected)
- Log errors at the appropriate level (warn for expected, error for unexpected)
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', ...