shep: Agent for Claude Code

.claude/agents/shep-web-route-creator.md

shep-web-route-creator is an agent for Claude Code from shep-ai/shep. It costs 85 tokens per session (1,806 once invoked), scanned A, original, MIT.

A narrowly scoped coding agent that creates one Next.js API route for an existing use case. An API route is a web endpoint that receives a request and returns a response; a use case is application code that performs one business operation.

In plain words
What is it for?
Use it to add a GET, POST, PUT, DELETE, or PATCH endpoint, map request data to one existing use case, resolve that use case through dependency injection, and return the required HTTP response and errors.
Why use it?
It keeps the web layer thin and consistent by connecting an existing operation to HTTP without creating new business logic or changing client code.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

This is shep-ai/shep's own configuration. It tells Claude Code how to work on shep itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything shep configures →

Reuse

Borrowing it

Nothing to install: this file belongs to shep-ai/shep. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/shep-ai/shep/main/.claude/agents/shep-web-route-creator.md
Clone the repo
git clone --depth 1 https://github.com/shep-ai/shep

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 shep-web-route-creator

README.md
[![agentmods](https://agentmods.dev/badge/agents/shep-ai/shep/shep-web-route-creator.svg)](https://agentmods.dev/agents/shep-ai/shep/shep-web-route-creator)
Your own site
<a href="https://agentmods.dev/agents/shep-ai/shep/shep-web-route-creator"><img src="https://agentmods.dev/badge/agents/shep-ai/shep/shep-web-route-creator.svg" alt="Measured on agentmods" height="20"></a>
Per session 85 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,806 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00085 $0.01806
Opus 5 $0.00043 $0.00903
Sonnet 5 $0.00017 $0.00361
Haiku 4.5 $0.00009 $0.00181

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

Security

Grade A, and why

shep-web-route-creator 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 8d 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.

.claude/agents/shep-web-route-creator.md · 128 lines

How it starts

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

You create ONE new API route file that calls exactly ONE existing use case. You do NOT create use cases, you do NOT modify the DI container, you do NOT touch any client-side code. Strictly additive and strictly thin.

Inputs (the caller MUST provide all of these)

  1. route_path — filesystem path under src/presentation/web/app/api/ where the route.ts goes (e.g., applications/[id]/cloud-deploy/initiate/route.ts).
  2. http_method — one of GET, POST, PUT, DELETE, PATCH.
  3. use_case_class — the class name of the use case the route invokes (e.g., InitiateCloudDeploymentUseCase).
  4. use_case_import_path — path to import the type from (e.g., @shepai/core/application/use-cases/cloud-deploy/initiate-cloud-deployment.use-case). Use the @shepai/core/* alias form, NOT relative paths.
  5. di_token — the string token used to resolve the use case (e.g., 'InitiateCloudDeploymentUseCase').
  6. input_mapping — plain-English description of how to build the execute() input from the NextRequest (e.g., "take id from the dynamic route segment, take provider from the JSON body, omit everything else").
  7. output_shape — description of what the route returns to the client (e.g., "202 with { ok: true, accepted: true }", "200 with the DTO from useCase.execute()").
  8. error_mapping — list of { error_class, import_path, status, extra?: string } objects describing each domain error class the use case throws and the HTTP status it should map to. Every import_path MUST be @shepai/core/domain/errors/* (zero-dep targets). NEVER import values from use-case files or port-interface files — that triggers turbopack's .js resolution bug on packages/core.

If any input is missing, return an error. Do not guess.

Process

Step 1 — Mirror an existing route

Read one existing route that calls a use case via resolve<T>() to mirror the style. Canonical example: src/presentation/web/app/api/applications/[id]/cloud-deploy/initiate/route.ts (after task t-59). Pay attention to:

Read the full file on GitHub · 128 lines

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. 8d ago First seen · 128 lines · 85 tokens per session scan A bccecdc72d99

Subscribe to this mod's changes

shep-web-route-creator is an agent published in the GitHub repository shep-ai/shep (248 stars, last pushed today), licensed MIT. It adds 85 tokens to every session and 1,806 once invoked, about $0.0004 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.

Related

Other agents, from other repositories

c4-container

Expert C4 Container-level documentation specialist. Synthesizes Component-level documentation into Container-level architecture, mapping components to deployment units, documenting container interfaces as APIs, and creating container diagrams. Use when synthesizing components into deployment containers and documenting…

wshobson/agents · 54 tokens

api-scaffolding-backend-architect

Expert backend architect specializing in scalable API design, microservices architecture, and distributed systems. Masters REST/GraphQL/gRPC APIs, event-driven architectures, service mesh patterns, and modern backend frameworks. Handles service boundary definition, inter-service communication, resilience patterns, and…

wshobson/agents · 77 tokens

temporal-python-pro

Master Temporal workflow orchestration with Python SDK. Implements durable workflows, saga patterns, and distributed transactions. Covers async/await, testing strategies, and production deployment. Use PROACTIVELY for workflow design, microservice orchestration, or long-running processes.

wshobson/agents · 56 tokens

backend-api-security-backend-security-coder

Expert in secure backend coding practices specializing in input validation, authentication, and API security. Use PROACTIVELY for backend security implementations or security code reviews.

wshobson/agents · 40 tokens

api-scaffolding-django-pro

Master Django 5.x with async views, DRF, Celery, and Django Channels. Build scalable web applications with proper architecture, testing, and deployment. Use PROACTIVELY for Django development, ORM optimization, or complex Django patterns.

wshobson/agents · 57 tokens

api-scaffolding-fastapi-pro

Build high-performance async APIs with FastAPI, SQLAlchemy 2.0, and Pydantic V2. Master microservices, WebSockets, and modern Python async patterns. Use PROACTIVELY for FastAPI development, async optimization, or API architecture.

wshobson/agents · 61 tokens