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 skills add Bidiche49/claude-conf --skill api-contract-initgit clone --depth 1 https://github.com/Bidiche49/claude-confWrote 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.
[](https://agentmods.dev/skills/bidiche49/claude-conf/api-contract-init)<a href="https://agentmods.dev/skills/bidiche49/claude-conf/api-contract-init"><img src="https://agentmods.dev/badge/skills/bidiche49/claude-conf/api-contract-init/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.
<a href="https://agentmods.dev/skills/bidiche49/claude-conf/api-contract-init"><img src="https://agentmods.dev/badge/skills/bidiche49/claude-conf/api-contract-init.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00015 | $0.00705 |
| Opus 5.5 | $0.00006 | $0.00282 |
| Sonnet 5.5 | $0.00003 | $0.00141 |
| Haiku 4.5 | $0.00002 | $0.00071 |
Grade A, and why
api-contract-init 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 1mo 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.
How it starts
The opening of the file, as written. The whole thing — 89 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Generate an API_CONTRACT.md by scanning the real codebase. Never fabricate endpoints or types.
1. Detect the backend stack
| File | Stack |
|---|---|
package.json with @nestjs/core |
NestJS |
package.json with express/fastify |
Express/Fastify |
composer.json |
CakePHP / Laravel |
pyproject.toml or requirements.txt with django/fastapi/flask |
Python |
go.mod |
Go |
Cargo.toml with actix/axum/rocket |
Rust |
Gemfile with rails |
Rails |
2. Scan routes and controllers
| Stack | Where to look |
|---|---|
| NestJS | *.controller.ts — decorators @Get, @Post, @Put, @Delete, @Patch |
| Express/Fastify | routes/**, router/** — router.get(), app.post(), etc. |
| CakePHP/Laravel | *Controller.php — public methods, routes/*.php |
| Django | urls.py — urlpatterns, ViewSet classes |
| FastAPI | *.py — @app.get, @router.post, etc. |
| Go | *_handler.go, *_router.go — HandleFunc, mux.Handle |
| Rails | config/routes.rb — resources, get/post/put/delete |
| Rust | routes/*.rs — handler functions, route macros |
3. For each endpoint, extract
- HTTP method and path
- Request body / query params (from DTOs, structs, dataclasses, type annotations)
- Response type (if detectable)
- Auth requirement (if detectable)
- If a type cannot be determined, write
// TODO: define type— NEVER fabricate
4. Generate the contract
Use this format:
# API Contract — [Project Name]
Source of truth for backend/frontend communication.
## Global Conventions
- Base URL: [detected or TODO]
- Auth: [detected or TODO]
- Response format: [detected or standard JSON]
- Error format: [detected or TODO]
## [Domain — grouped by controller/router]
### [METHOD] [path]
**Request:**
\`\`\`[lang]
[body type / query params]
\`\`\`
**Response:**
\`\`\`[lang]
[response type]
\`\`\`
**Auth:** [required/optional/none]
**Notes:** [if applicable]
---
## Changelog
| Date | Change | Side |
|------|--------|------|
| [today] | Initial generation from code | backend |
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.
- 1mo ago First seen · 89 lines · 15 tokens per session scan A 2a32c6c064b7
api-contract-init is a skill published in the GitHub repository Bidiche49/claude-conf (2 stars, last pushed 5mo ago), licensed MIT. It adds 15 tokens to every session and 705 once invoked, about $0.0001 per session on Opus 5.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-31.
Other skills, from other repositories
llm-provider
Adds a new LLM provider implementing LLMProvider interface with call() and stream() methods. Integrates with provider factory in src/llm/index.ts, config detection in src/llm/config.ts, and error handling via tracking and recovery. Use when adding a new model backend, integrating a third-party LLM API, or extending…
tech-design
A guided process for writing a backend technical design from a product requirements document or feature description. A technical design explains how a feature should work in code and services.
config-manager
Skill that manages configuration.
code-review-helper
A safe skill that helps with code review tasks.
system-admin-helper
Skill with dangerous system commands.
api-interface-design
Use when designing public APIs, module boundaries, provider adapters, tool schemas, or data contracts.