api-contract-first-development

api-contract-first-development is a skill for Claude Code from vaquarkhan/Fullstack-development-agent-skills. It costs 39 tokens per session (436 once invoked), scanned A, original, MIT.

A method for defining an API's expected requests, responses, errors, and compatibility rules before writing the implementation. An API is a way for software systems to exchange data; the contract is the agreed format they use.

In plain words
What is it for?
Use it to design REST, GraphQL, or event interfaces, document examples and versioning, and run checks that providers and consumers still agree.
Why use it?
It reduces integration failures and makes it harder to break existing web, mobile, or service clients when an API changes.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Part of the fullstack-development-agent-skills plugin — 129 skills, 10 commands shipped together

Good fit Use it to design REST, GraphQL, or event interfaces, document examples and versioning, and run checks that providers and consumers still agree.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/vaquarkhan/fullstack-development-agent-skills/api-contract-first-development
Install

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.

Any agent
npx skills add vaquarkhan/Fullstack-development-agent-skills --skill api-contract-first-development
Clone the repo
git clone --depth 1 https://github.com/vaquarkhan/Fullstack-development-agent-skills

Made for: Claude Code.

Or install fullstack-development-agent-skills, the plugin that ships this one along with the rest of its 129 skills, 10 commands.

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-first-development

README.md
[![agentmods](https://agentmods.dev/badge/skills/vaquarkhan/fullstack-development-agent-skills/api-contract-first-development/github.svg)](https://agentmods.dev/skills/vaquarkhan/fullstack-development-agent-skills/api-contract-first-development)
Your own site
<a href="https://agentmods.dev/skills/vaquarkhan/fullstack-development-agent-skills/api-contract-first-development"><img src="https://agentmods.dev/badge/skills/vaquarkhan/fullstack-development-agent-skills/api-contract-first-development/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-first-development

Your own site · 80×15
<a href="https://agentmods.dev/skills/vaquarkhan/fullstack-development-agent-skills/api-contract-first-development"><img src="https://agentmods.dev/badge/skills/vaquarkhan/fullstack-development-agent-skills/api-contract-first-development.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 436 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.00039 $0.00436
Opus 5.5 $0.00016 $0.00174
Sonnet 5.5 $0.00008 $0.00087
Haiku 4.5 $0.00004 $0.00044

Measured 1mo ago against content hash 27d51768c5af, 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-first-development 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.

skills/api-contract-first-development/SKILL.md · 58 lines

How it starts

The opening of the file, as written. The whole thing — 58 lines — stays where its author put it; the contents beside it link to each section on GitHub.

API Contract-First Development

Use When

  • Designing or changing REST, GraphQL, or event contracts between UI and services
  • Backward compatibility or versioning decisions are required

Workflow

  1. Capture consumer needs and edge cases.
  2. Draft contract schema and examples.
  3. Define versioning and compatibility guarantees.
  4. Implement provider and consumer validation.
  5. Release with deprecation timeline when needed.

Required Checks

  • Include required and optional fields explicitly
  • Define error envelope and status mapping
  • Publish examples for happy and failure paths
  • Avoid breaking changes without a migration path
  • Contract tests run in CI
  • Existing consumers remain compatible
  • Deprecations are documented and announced

Decision Framework

  • Draft OpenAPI, GraphQL, or event schema before provider or consumer code merges.
  • Classify every field change as safe additive, breaking, or deprecated-with-timeline.
  • Consumer-driven contract tests must run in CI for every published schema revision.
  • Version endpoints or use compatibility headers when multiple consumer generations coexist.

Common Rationalizations And Rebuttals

  • "We can document the API after shipping." -> Undocumented contracts drift; consumers embed assumptions that break silently.
  • "Breaking changes are fine if we own all clients." -> Mobile, partner, and async consumers lag deploys; assume external consumers exist.
  • "Examples in code comments are enough." -> CI cannot validate comments; publish machine-readable schemas and examples.

Evidence Pack

  • Published schema artifact with diff against previous version
  • Consumer contract test results (provider and consumer suites)
  • Deprecation timeline and migration guide for breaking changes
  • Error envelope examples for validation, auth, and not-found paths

Exit Criteria

  • Workflow decisions are documented and implementation-ready
  • Validation evidence exists for quality, reliability, and compatibility
  • Operational readiness and rollback expectations are explicit

Read the full file on GitHub · 58 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 · 58 lines · 39 tokens per session scan A 27d51768c5af

Subscribe to this mod's changes

api-contract-first-development is a skill published in the GitHub repository vaquarkhan/Fullstack-development-agent-skills (3 stars, last pushed 1mo ago), licensed MIT. It adds 39 tokens to every session and 436 once invoked, about $0.0002 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-09-07.

Related

Other skills, from other repositories

api-testing-patterns

Comprehensive API testing patterns including contract testing, REST/GraphQL testing, and integration testing. Use when testing APIs or designing API test strategies.

proffesor-for-testing/agentic-qe · 34 tokens

contract-testing

Consumer-driven contract testing for microservices using Pact, schema validation, API versioning, and backward compatibility testing. Use when testing API contracts or coordinating distributed teams.

proffesor-for-testing/agentic-qe · 35 tokens

Contract Testing with Pact

Consumer-driven contract testing skill using Pact, covering consumer tests, provider verification, Pact Broker integration, and CI/CD workflows.

PramodDutta/qaskills · 29 tokens

django-docs

Use this skill whenever the user asks about Django, Python web development, ORM models, migrations, views, templates, forms, admin, authentication, middleware, testing, caching, security, REST APIs, or deployment. Covers Django 6.0 including the model layer (fields, QuerySets, relationships, migrations, managers…

pledgeandgrow/pledge-skills · 225 tokens

openapi-workflow

Proactive OpenAPI workflow. Triggers when OpenAPI spec files are modified to validate, regenerate code, and verify builds.

muyen/vibe-to-prod · 30 tokens

contract-testing

Consumer-driven contract testing for microservices using Pact, schema validation, API versioning, and backward compatibility testing. Use when testing API contracts or coordinating distributed teams.

summarybotng/summarybot-ng · 35 tokens