Skip to content
Back to skills

Api Generator

ASecurity

Generate REST API endpoints following project conventions

  • 24 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 5, 2026
ai-agentsapi

Works with

  • api

Security analysis

A100/100

Pro scans all 3 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-abe57191/badge)](https://www.skillsdirectory.com/skills/samplexbro-api-generator-abe57191)

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: Generate REST API endpoints following project conventions
---

# API Generator

Use this skill when the user asks for a new REST endpoint or to scaffold a
controller for an existing resource.

## When to use

- New CRUD endpoint on an existing collection.
- Greenfield resource that needs full controller + route wiring.
- Adding a query parameter or pagination wrapper to an existing endpoint.

## Steps

1. Read `references/route-checklist.md` for the per-endpoint contract.
2. Generate the controller stub from `template.ts`.
3. Wire the new route into the router and update the OpenAPI spec.

## Outputs

- Controller file under `src/api/<resource>/`.
- Test stub under `tests/api/<resource>.test.ts`.
- Updated OpenAPI document with the new endpoint.

Files in this skill

  • SKILL.md793 B
  • references/route-checklist.md522 B
  • template.ts426 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…