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/commands/validate-contracts.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/commands/carlosdanieldev/maestro/validate-contracts)<a href="https://agentmods.dev/commands/carlosdanieldev/maestro/validate-contracts"><img src="https://agentmods.dev/badge/commands/carlosdanieldev/maestro/validate-contracts/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/commands/carlosdanieldev/maestro/validate-contracts"><img src="https://agentmods.dev/badge/commands/carlosdanieldev/maestro/validate-contracts.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.00000 | $0.00590 |
| Opus 5.5 | $0.00000 | $0.00236 |
| Sonnet 5.5 | $0.00000 | $0.00118 |
| Haiku 4.5 | $0.00000 | $0.00059 |
Grade A, and why
validate-contracts 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 — 85 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Validate API Contracts
Validate client-side models against API contract schemas to catch mismatches before runtime.
Usage: /validate-contracts or /validate-contracts items-list
Arguments
$ARGUMENTS contains an optional contract name filter.
- No arguments: validate ALL contracts in
docs/api-contracts/ - With argument: validate only matching contracts
Instructions
Step 1: Find Contract Schemas
ls docs/api-contracts/*.json
If $ARGUMENTS is provided, filter to matching files.
If no contract files found:
"No API contract schemas found in
docs/api-contracts/. Create schemas first using the format defined in.claude/skills/api-contract-validation/SKILL.md."
Step 2: For Each Contract Schema
Read the contract JSON file and extract:
- Endpoint — The API endpoint path
- Response fields — Each field with its type and required/optional status
- Issue reference — The linked issue number
Step 3: Find Corresponding Client Models
For each contract, find the client model that decodes its response:
- Search for struct/class/type names that match the response shape
- Use
Grepto find model definitions in the project - Match by field names
Step 4: Validate Field-by-Field
For each field in the contract schema:
| Check | Pass | Fail |
|---|---|---|
| Field exists in model | Found | MISSING: field 'x' in contract but not in model |
| Type matches | Types align | TYPE MISMATCH: 'x' is integer in contract but float in model |
| Optionality matches | required: false → nullable |
OPTIONALITY MISMATCH: 'x' is optional in contract but required in model |
For each field in the model NOT in the contract:
GHOST FIELD: 'x' exists in model but not in contract schema
Step 5: Generate Report
API Contract Validation Report
==================================
docs/api-contracts/items-list.json → ItemListResponse
All 6 fields match. No issues found.
docs/api-contracts/items-detail.json → ItemDetailResponse
ISSUES:
- OPTIONALITY MISMATCH: 'total' is optional in contract but required in model
- GHOST FIELD: 'success' exists in model but not in contract
Summary: 1 passed, 1 failed
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 · 85 lines · 0 tokens per session scan A b23b759bb76f
validate-contracts is a command published in the GitHub repository CarlosDanielDev/maestro (31 stars, last pushed 20d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 590 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-10-02.
validate-contracts compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| validate-contractsCarlosDanielDev/maestro | Command | 31 | 20d ago | MIT | A | 0 | Claude Code |
| initfcakyon/claude-codex-settings | Command | 1.2k | yesterday | Apache-2.0 | A | 0 | Claude Code |
| http-serviceMadAppGang/magus | Command | 14 | yesterday | MIT | A | 27 | Claude Code |
| api-contract-reviewMozurok/fhorja.dev | Command | 10 | 28d ago | MIT | A | 64 | Claude Code |
| buildAzure/ai-gateway | Command | 5 | 9d ago | MIT | A | 0 | Claude Code |
| start-10-1minicoohei/ai-agent-camp | Command | 347 | 1mo ago | none | A | 2 | Claude Code |
| fastapimfmezger/ai_agent_dotfiles | Command | 7 | 3mo ago | MIT | A | 84 | Claude Code, Gemini CLI |