api-generator

api-generator is a skill for Claude Code, Codex from sampleXbro/agentsmesh. It costs 18 tokens per session (182 once invoked), scanned A, original, MIT.

A generator for REST API endpoints, which are web entry points that let software read and change data. It adds validation, error handling, tests, and OpenAPI documentation, a standard description of an API.

In plain words
What is it for?
Use it to add CRUD endpoints for data models, create signed webhooks, validate input and output, and update the OpenAPI specification.
Why use it?
It avoids repeatedly writing the same endpoint structure and helps keep requests, responses, tests, and API documentation aligned.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/samplexbro/agentsmesh/api-generator
Any agent
npx skills add sampleXbro/agentsmesh --skill api-generator
Clone the repo
git clone --depth 1 https://github.com/sampleXbro/agentsmesh

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for api-generator

README.md
[![agentmods](https://agentmods.dev/badge/skills/samplexbro/agentsmesh/api-generator.svg)](https://agentmods.dev/skills/samplexbro/agentsmesh/api-generator)
Your own site
<a href="https://agentmods.dev/skills/samplexbro/agentsmesh/api-generator"><img src="https://agentmods.dev/badge/skills/samplexbro/agentsmesh/api-generator.svg" alt="Measured on agentmods" height="20"></a>
Per session 18 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 182 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00018 $0.00182
Opus 5 $0.00009 $0.00091
Sonnet 5 $0.00004 $0.00036
Haiku 4.5 $0.00002 $0.00018

Measured 2d ago against content hash 87cab9e903ea, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

api-generator scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

tests/e2e/fixtures/augment-code-project/.augment/skills/api-generator/SKILL.md · 29 lines

What it actually says

API Generator Skill

Use this skill to scaffold complete REST API endpoints following the project's established patterns.

When to Use

Apply this skill when:

  • Adding new resource endpoints (GET, POST, PUT, DELETE)
  • Generating CRUD operations for a new data model
  • Creating webhook handlers with signature validation

Process

  1. Review the data model or schema in src/models/
  2. Check existing endpoint patterns in src/api/
  3. Generate the route handler using the template
  4. Add Zod validation schemas for request/response
  5. Write unit and integration tests
  6. Update OpenAPI spec in docs/api/

References

See route checklist for required fields on each endpoint type.

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 29 lines · 18 tokens per session scan A 87cab9e903ea

Subscribe to this mod's changes

api-generator is a skill published in the GitHub repository sampleXbro/agentsmesh (24 stars, last pushed yesterday), licensed MIT. It adds 18 tokens to every session and 182 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

data-charts-tako

Search and visualize the world's data - get charts, insights, and embeddable knowledge cards for finance, economics, demographics, sports, and more.

gooseworks-ai/goose-skills · 35 tokens

monorepo-management

Master monorepo management with Turborepo, Nx, and pnpm workspaces to build efficient, scalable multi-package repositories with optimized builds and dependency management. Use when setting up monorepos, optimizing builds, or managing shared dependencies.

wshobson/agents · 54 tokens

browse-and-evaluate

Use when exploring the ai-agent-skills catalog to find, compare, and evaluate skills before installing. Always use --fields to limit output size and --dry-run before committing to an install.

MoizIbnYousaf/Ai-Agent-Skills · 43 tokens

render-airdrop-carousel

Assemble a viral iOS "AirDrop" notification-carousel video ad (≈6–8s, 9:16) from a brand line plus 6–16 real product photos — a native AirDrop share-sheet card ("Brand would like to share a · Decline / Accept") springs up and its preview window CYCLES through the products, landing on a range/lineup payoff with an…

gooseworks-ai/goose-skills · 207 tokens

render-3d-product-showcase

Assemble a premium 3D product-showcase ad from a config — four beat clips (an orbiting hero rotation, a macro push-in, a physics reveal, a typographic close) normalized to the brand-color canvas, hard-concatenated in order, closed on a deterministic Playwright brand end card, and mixed under one instrumental bed at…

gooseworks-ai/goose-skills · 159 tokens

telnyx-voice-advanced-curl

Advanced call control features including DTMF sending, SIPREC recording, noise suppression, client state, and supervisor controls. This skill provides REST API (curl) examples.

team-telnyx/ai · 44 tokens