maestro: Skill for Claude Code

.claude/skills/api-contract-validation/SKILL.md

api-contract-validation is a skill for Claude Code from CarlosDanielDev/maestro. It costs 32 tokens per session (659 once invoked), scanned A, original, MIT.

A technology-independent method for checking that client data models match the JSON responses returned by a backend API. It stores documented request and response schemas in JSON files under a project directory.

In plain words
What is it for?
Use it to document API requests and responses, record required and optional fields, link contracts to issues, and verify schemas against actual backend responses.
Why use it?
A mismatch between the documented response and the client's model can cause decoding failures when the application runs. Requiring a checked contract before implementation makes missing or incorrectly typed fields visible earlier.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions subagents.

This is CarlosDanielDev/maestro's own configuration. It tells Claude Code how to work on maestro 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 maestro configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/CarlosDanielDev/maestro/main/.claude/skills/api-contract-validation/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/CarlosDanielDev/maestro

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 api-contract-validation

README.md
[![agentmods](https://agentmods.dev/badge/skills/carlosdanieldev/maestro/api-contract-validation/github.svg)](https://agentmods.dev/skills/carlosdanieldev/maestro/api-contract-validation)
Your own site
<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.

agentmods 80×15 button for api-contract-validation

Your own site · 80×15
<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>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 659 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.00032 $0.00659
Opus 5.5 $0.00013 $0.00264
Sonnet 5.5 $0.00006 $0.00132
Haiku 4.5 $0.00003 $0.00066

Measured 1mo ago against content hash 0f5a528a43b6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

.claude/skills/api-contract-validation/SKILL.md · 94 lines

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

  1. Ghost fields: Client model has a field that doesn't exist in backend response
  2. Required mismatch: Backend returns field optionally, client declares it as required
  3. Type mismatch: Backend returns number (float) but client declares integer
  4. Naming mismatch: Backend uses snake_case, client uses camelCase without mapping
  5. Nested structure mismatch: Backend nests data differently than client expects

Read the full file on GitHub · 94 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. 1mo ago First seen · 94 lines · 32 tokens per session scan A 0f5a528a43b6

Subscribe to this mod's changes

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.

Related

api-contract-validation compared with skills from other repositories

api-contract-validation next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
api-contract-validationCarlosDanielDev/maestroSkill3120d agoMITA32Claude Code
mem0-test-integrationmem0ai/mem0Skill68k2d agoApache-2.0A207Claude Code, Codex
prowler-test-apiprowler-cloud/prowlerSkill15kyesterdayApache-2.0A62Claude Code
python-sdkComposioHQ/composioSkill31kyesterdayMITA60Claude Code, Codex
convex-testopenclaw/clawhubSkill9.5ktodayMITA16Claude Code, Codex
voidenVoidenHQ/voidenSkill1.8k2d agoApache-2.0A28Claude Code, Codex
dmrwemake-services/django-modern-restSkill1.5ktodayMITA80Claude Code, Codex