api-endpoint

api-endpoint is a skill for Claude Code, Codex from event4u-app/agent-config. It costs 43 tokens per session (1,307 once invoked), scanned A, original, MIT.

A routing guide for creating API endpoints, the application handlers that receive HTTP requests and send responses. It detects the project’s programming framework and passes the work to the matching framework-specific guidance.

In plain words
What is it for?
Use it when creating a new REST route or HTTP handler in Laravel, Symfony, Next.js, Express, Fastify, NestJS, or plain Node.js.
Why use it?
Different frameworks use different file layouts, validation methods, and response conventions. Routing the task by detected stack helps apply the project’s appropriate patterns.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions AGENTS.md.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is [`api-design`](../api-design/SKILL.md) corpus — `node.

Good fit Use it when creating a new REST route or HTTP handler in Laravel, Symfony, Next.js, Express, Fastify, NestJS, or plain Node.js.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/event4u-app/agent-config
agentmods
npx agentmods add skills/event4u-app/agent-config/api-endpoint

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-endpoint

README.md
[![agentmods](https://agentmods.dev/badge/skills/event4u-app/agent-config/api-endpoint/github.svg)](https://agentmods.dev/skills/event4u-app/agent-config/api-endpoint)
Your own site
<a href="https://agentmods.dev/skills/event4u-app/agent-config/api-endpoint"><img src="https://agentmods.dev/badge/skills/event4u-app/agent-config/api-endpoint/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for api-endpoint

Your own site · 80×15
<a href="https://agentmods.dev/skills/event4u-app/agent-config/api-endpoint"><img src="https://agentmods.dev/badge/skills/event4u-app/agent-config/api-endpoint.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,307 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.00043 $0.01307
Opus 5.5 $0.00017 $0.00523
Sonnet 5.5 $0.00009 $0.00261
Haiku 4.5 $0.00004 $0.00131

Measured 5d ago against content hash 28b6d6cc3231, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

api-endpoint scanned grade A with 1 finding 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 5d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

10. **Verify** — run the project type-checker + targeted tests + smoke probe (`curl` / Bruno / Postman / integration test).
src/skills/api-endpoint/SKILL.md · 102 lines

How it starts

The opening of the file, as written. The whole thing — 102 lines — stays where its author put it; the contents beside it link to each section on GitHub.

api-endpoint

Grounded corpus: endpoint-shape decisions (pagination, error shape, idempotency, rate limits) are grounded via the api-design corpus — node <skills-root>/corpus-grounding/scripts/ground.mjs search --manifest <skills-root>/api-design/data/manifest.json "<concern>".

When to use

Use this skill when the user asks to create a new API endpoint, REST route, or HTTP handler.

Do NOT use when:

  • Modifying existing endpoints — use the code-refactoring skill.
  • API design decisions (versioning, deprecation, contract shape) — use api-design.

Stack routing

Detect the stack, then hand off to the matching carve-out skill for the framework-specific procedure (file layout, validation primitive, response-shaping convention).

Detected stack Carve-out skill
Laravel (artisan + composer.json with laravel/framework) laravel-api-endpoint
Symfony (bin/console + composer.json with symfony/framework-bundle) symfony-workflow
Next.js (next in package.json) nextjs-patterns
Express / Fastify / NestJS / plain Node follow project conventions in agents/ + package.json scripts
FastAPI / Django / Flask follow project conventions in agents/ + pyproject.toml
Go (net/http, gin, echo, fiber) follow project conventions in agents/ + go.mod
Rust (axum, actix-web, rocket) follow project conventions in agents/ + Cargo.toml

If the project doc folder (agents/) has an endpoint-creation guide, that is the source of truth — read it before generating code.

Procedure: Create an API endpoint (stack-neutral)

  1. Read project docs — Check ./agents/ and AGENTS.md for endpoint conventions, routing layout, response shape.
  2. Detect stack and route to the carve-out per the table above.
  3. Plan the endpoint — method, path, request shape, response shape, auth requirement, idempotency.
  4. Create the route registration in the project's routing surface (route file, decorator-annotated handler, file-based router).
  5. Create the request handler / controller — thin; delegate business logic to a service / use-case.
  6. Validate input at the boundary via the framework's validation primitive (FormRequest, Zod, class-validator, Pydantic, struct-tag validators, etc.) — never inline ad-hoc if checks.
  7. Authorize the action via the framework's authz primitive (Policy, voter, guard, middleware, route dependency).
  8. Shape the response through a transformer / serializer / DTO — never return raw ORM entities.
  9. Document the endpoint (OpenAPI annotations / generated spec / project doc).
  10. Verify — run the project type-checker + targeted tests + smoke probe (curl / Bruno / Postman / integration test).

Read the full file on GitHub · 102 lines

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. 5d ago Changed 28b6d6cc3231
  2. 1mo ago First seen · 102 lines · 43 tokens per session scan A d9b26054feda

Subscribe to this mod's changes

api-endpoint is a skill published in the GitHub repository event4u-app/agent-config (12 stars, last pushed yesterday), licensed MIT. It adds 43 tokens to every session and 1,307 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.