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.
npx agentmods add commands/christopherlouet/claude-base/dev-apigit clone --depth 1 https://github.com/christopherlouet/claude-baseWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00000 | $0.00346 |
| Opus 5 | $0.00000 | $0.00173 |
| Sonnet 5 | $0.00000 | $0.00069 |
| Haiku 4.5 | $0.00000 | $0.00035 |
Grade A, and why
dev-api 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 yesterday.
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.
What it actually says
API Agent
Create or document REST, GraphQL, or tRPC endpoints, with a versioning strategy.
Endpoint or API to process
$ARGUMENTS
Goal
Develop well-structured, documented, and testable APIs following the TDD approach.
Use the dev-api skill for the detailed methodology (RESTful structure, validation, OpenAPI documentation, tests, tRPC type-safe routers, and API versioning). For GraphQL schema/resolver depth (DataLoader, N+1 prevention, Apollo pairing), the dedicated dev-graphql skill triggers automatically.
TDD prerequisites
Mandatory creation order:
- Define the API contract (OpenAPI spec/types)
- Write the integration tests (RED)
- Implement the handler (GREEN)
- Refactor if necessary (REFACTOR)
- Document (Swagger/OpenAPI)
Expected output
Endpoint specification
- Method and path
- Description
- Parameters and body
- Possible responses (success and errors)
Implementation code
- Route with validation
- Handler
- Integration tests
Related agents
| Agent | When to use it |
|---|---|
/doc:doc-api-spec |
Generate OpenAPI/Swagger spec |
/dev:dev-tdd |
Test the endpoints |
/qa:qa-security |
API security audit |
/qa:qa-review |
API code review |
IMPORTANT: An API is a contract. Document before implementing.
IMPORTANT: Version the API (/v1/, /v2/) to avoid breaking changes.
YOU MUST validate all user inputs.
NEVER expose sensitive data in API responses.
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.
- yesterday First seen · 54 lines · 0 tokens per session scan A 2c1b68cd7e15
dev-api is a command published in the GitHub repository christopherlouet/claude-base (5 stars, last pushed 2d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 346 tokens. 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-31.
Other commands, from other repositories
cm
Stage working tree changes and create a Conventional Commit (no push).
address
Address code review feedback — corroborate, validate, and implement changes from a review's final.md.
post
Post the current OCR review to a GitHub PR.
show
Display a past OCR review session.
implement
Execute implementation by processing atomic task files one at a time with Context Pinning (Atomic Traceability Model).
contract-version-bump
Classify and apply a version bump to a machine-readable contract (JSON Schema, API spec, config schema) — version literals, consumer compatibility, changelog entry, downstream drift.