Skip to content
Back to skills

Api Generator

ASecurity

Scaffold a new REST route with validation, handler, query and tests.

  • 24 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 5, 2026
ai-agentssqlapi

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 5, 2026

npx -y skills add sampleXbro/agentsmesh --skill api-generator --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Api Generator?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Api Generator
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/samplexbro-api-generator-e8b8b5b4/badge)](https://www.skillsdirectory.com/skills/samplexbro-api-generator-e8b8b5b4)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: api-generator
description: Scaffold a new REST route with validation, handler, query and tests.
---

# 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.

Files in this skill

  • SKILL.md553 B
  • references/route-checklist.md296 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…