add-endpoint

add-endpoint is a command for Claude Code from vstorm-co/full-stack-ai-agent-template. It costs 9 tokens per session (459 once invoked), scanned A, original, MIT.

A command that scaffolds a new API endpoint, which is a URL that a program can call to access or change data. It creates the related validation, database, data-access, business-logic, dependency-injection, and routing files for the project's layered architecture.

In plain words
What is it for?
Use it to create CRUD endpoints—operations to create, read, update, and delete records—with schemas, database models, repositories, services, dependencies, and routes.
Why use it?
It removes repetitive setup when adding a new data-backed API feature and keeps the files organized by responsibility.

Command for Claude Code

About the project

Full-Stack AI Agent Template generates full-stack AI applications with a FastAPI backend and Next.js frontend, including agents, retrieval-augmented generation, streaming, authentication, and integrations. It is for building AI products with features such as chat, conversation sharing, administration, and multiple agent or vector-database choices. Catalogue add-ons support the generated applications and their agent workflows.

vstorm-co/full-stack-ai-agent-template · 1,878 stars · on GitHub

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 commands/vstorm-co/full-stack-ai-agent-template/add-endpoint
Clone the repo
git clone --depth 1 https://github.com/vstorm-co/full-stack-ai-agent-template

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/vstorm-co/full-stack-ai-agent-template/add-endpoint.svg)](https://agentmods.dev/commands/vstorm-co/full-stack-ai-agent-template/add-endpoint)
Your own site
<a href="https://agentmods.dev/commands/vstorm-co/full-stack-ai-agent-template/add-endpoint"><img src="https://agentmods.dev/badge/commands/vstorm-co/full-stack-ai-agent-template/add-endpoint.svg" alt="Measured on agentmods" height="20"></a>
Per session 9 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 459 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 $0.00009 $0.00459
Opus 5 $0.00005 $0.00230
Sonnet 5 $0.00002 $0.00092
Haiku 4.5 $0.00001 $0.00046

Measured 5d ago against content hash a7412c5c3bd6, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

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

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.

template/{{cookiecutter.project_slug}}/.claude/commands/add-endpoint.md · 41 lines

What it actually says

Create a new API endpoint: $ARGUMENTS

Follow the project's layered architecture. Create files in this order:

  1. Schema (backend/app/schemas/<entity>.py):

    • Inherit BaseSchema (and TimestampSchema for Read)
    • Create *Create, *Update, *Read, *List models
    • Use Field() with constraints, EmailStr where applicable
  2. DB Model (backend/app/db/models/<entity>.py):

    • Inherit Base, TimestampMixin
    • Use Mapped[type] + mapped_column()
    • Add __repr__, relationships with cascade="all, delete-orphan"
  3. Repository (backend/app/repositories/<entity>_repo.py):

    • Stateless async functions: get_by_id, get_multi, create, update, delete
    • Use db.flush() + db.refresh(), keyword-only args after db
  4. Service (backend/app/services/<entity>.py):

    • Class with __init__(self, db: AsyncSession)
    • Raise NotFoundError, AlreadyExistsError as appropriate
  5. DI (backend/app/api/deps.py):

    • Add factory function and Annotated alias: EntitySvc = Annotated[EntityService, Depends(get_entity_service)]
  6. Route (backend/app/api/routes/v1/<entity>.py):

    • CRUD: GET list, GET by id, POST (201), PATCH, DELETE (204)
    • Use DI aliases, response_model, -> Any return type
  7. Register router in backend/app/api/routes/v1/__init__.py

  8. Migration: cd backend && uv run alembic revision --autogenerate -m "Add <entity> table"

  9. Test (backend/tests/): mirror source structure

  10. Lint: cd backend && uv run ruff check . --fix && uv run ruff format .

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 First seen · 41 lines · 9 tokens per session scan A a7412c5c3bd6

Subscribe to this mod's changes

add-endpoint is a command published in the GitHub repository vstorm-co/full-stack-ai-agent-template (1,878 stars, last pushed yesterday), licensed MIT. It adds 9 tokens to every session and 459 once invoked, about $0.0000 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-08-30.