Borrowing it
Nothing to install: this file belongs to CarlosDanielDev/maestro. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/CarlosDanielDev/maestro/main/.claude/skills/api-contract-validation/SKILL.mdgit clone --depth 1 https://github.com/CarlosDanielDev/maestroWrote 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/carlosdanieldev/maestro/api-contract-validation)<a href="https://agentmods.dev/skills/carlosdanieldev/maestro/api-contract-validation"><img src="https://agentmods.dev/badge/skills/carlosdanieldev/maestro/api-contract-validation/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/carlosdanieldev/maestro/api-contract-validation"><img src="https://agentmods.dev/badge/skills/carlosdanieldev/maestro/api-contract-validation.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.00032 | $0.00659 |
| Opus 5.5 | $0.00013 | $0.00264 |
| Sonnet 5.5 | $0.00006 | $0.00132 |
| Haiku 4.5 | $0.00003 | $0.00066 |
Grade A, and why
api-contract-validation 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 — 94 lines — stays where its author put it; the contents beside it link to each section on GitHub.
API Contract Validation Skill
Purpose
Prevent bugs where client-side models don't match backend API responses — causing silent decoding failures at runtime.
Contract Schema Location
All API contracts live in docs/api-contracts/ as JSON files.
Naming Convention
docs/api-contracts/{feature-area}-{endpoint-name}.json
Contract Schema Format
{
"$schema": "api-contract-v1",
"endpoint": "GET /api/items/list",
"description": "Fetch items for display",
"issue": "#38",
"lastVerified": "2026-03-10",
"request": {
"query": {
"count": { "type": "integer", "required": false, "default": 10 }
}
},
"response": {
"items": {
"type": "array",
"items": {
"id": { "type": "string", "required": true },
"name": { "type": "string", "required": true },
"score": { "type": "integer", "required": false }
}
},
"total": { "type": "integer", "required": true }
}
}
DOR (Definition of Ready)
An issue is NOT ready for implementation unless:
- API contract schema exists in
docs/api-contracts/ - All response fields documented with types and required/optional
- Schema verified against actual backend response
DOD (Definition of Done)
Implementation is NOT done unless:
- Client models match contract schema field-by-field
- Required fields are non-optional in client code
- Optional fields are properly nullable
- A decode test exists using example JSON from the contract
- No extra fields in client model that don't exist in contract
Common Mismatch Patterns
- Ghost fields: Client model has a field that doesn't exist in backend response
- Required mismatch: Backend returns field optionally, client declares it as required
- Type mismatch: Backend returns
number(float) but client declares integer - Naming mismatch: Backend uses
snake_case, client usescamelCasewithout mapping - Nested structure mismatch: Backend nests data differently than client expects
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 · 94 lines · 32 tokens per session scan A 0f5a528a43b6
api-contract-validation is a skill published in the GitHub repository CarlosDanielDev/maestro (31 stars, last pushed 20d ago), licensed MIT. It adds 32 tokens to every session and 659 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-10-02.
api-contract-validation compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| api-contract-validationCarlosDanielDev/maestro | Skill | 31 | 20d ago | MIT | A | 32 | Claude Code |
| mem0-test-integrationmem0ai/mem0 | Skill | 68k | 2d ago | Apache-2.0 | A | 207 | Claude Code, Codex |
| prowler-test-apiprowler-cloud/prowler | Skill | 15k | yesterday | Apache-2.0 | A | 62 | Claude Code |
| python-sdkComposioHQ/composio | Skill | 31k | yesterday | MIT | A | 60 | Claude Code, Codex |
| convex-testopenclaw/clawhub | Skill | 9.5k | today | MIT | A | 16 | Claude Code, Codex |
| voidenVoidenHQ/voiden | Skill | 1.8k | 2d ago | Apache-2.0 | A | 28 | Claude Code, Codex |
| dmrwemake-services/django-modern-rest | Skill | 1.5k | today | MIT | A | 80 | Claude Code, Codex |