api-contract-define
Skill6 starsChanged 3 months agoMITView on GitHub
Implement, repair or independently review API operations and cross-layer contracts, tracing producer to consumer wire behavior end to end. Use for a new or repaired API operation, a consumer validator, or a feature spanning several layers. RU: контракт API, сквозная проверка.
In this repository65 other files it gives its agents.
- AGENTS.mdAGENTS.md
- skills/agent-hook-verify/references/claude.mdCLAUDE.md
- agent-command-runSkill
- agent-context-auditSkill
- agent-hook-verifySkill
- agent-integration-auditSkill
- agent-model-findSkill
- agent-project-syncSkill
- agent-skill-findSkill
- agent-skill-syncSkill
- agent-terms-defineSkill
- agent-workspace-migrateSkill
- api-docs-syncSkill
- api-stream-diagnoseSkill
- api-yandex-oauth-runSkill
- code-async-reviewSkill
- code-cli-buildSkill
- code-config-auditSkill
- code-durable-reviewSkill
- code-performance-fixSkill
- code-state-verifySkill
- deploy-artifact-publishSkill
- deploy-rollout-runSkill
- design-brand-buildSkill
- docs-claims-verifySkill
- docs-diagram-buildSkill
- docs-prose-fixSkill
- git-branch-cleanSkill
- git-merge-syncSkill
- git-path-runSkill
- git-repo-runSkill
- git-worktree-guardSkill
- infra-container-setupSkill
- infra-network-diagnoseSkill
- infra-project-migrateSkill
- infra-runbook-buildSkill
- kanban-board-auditSkill
- kanban-card-buildSkill
- kanban-card-planSkill
- kanban-card-reviewSkill
- kanban-card-runSkill
- kanban-card-verifySkill
- kanban-epic-coordinateSkill
- kanban-queue-coordinateSkill
- kanban-roadmap-planSkill
- kanban-schedule-runSkill
- monitor-telemetry-setupSkill
- personal-action-planSkill
- quality-artifact-verifySkill
- quality-change-reviewSkill
- quality-change-verifySkill
- research-prior-art-findSkill
- research-source-auditSkill
- research-source-findSkill
- research-spike-runSkill
- security-access-diagnoseSkill
- security-api-hardenSkill
- security-boundary-hardenSkill
- security-boundary-reviewSkill
- security-filesystem-hardenSkill
- The first 60 shown.
The file
Files
API and cross-layer contracts
Use for a new or repaired API operation, a consumer validator, a feature or repair that spans several production layers, or an independent review of producer-to-consumer wire behavior. Establish which of implementation and read-only review the request authorizes (review does not authorize edits, deployment or live probes), the requested scope and each acceptance criterion before choosing tests.
Trace the actual route, composition, request schema, validation, authorization/entitlement, client, serializer and response consumer. For cross-layer work map the real input → authority → implementation → serialization → persistence → output path, plus production composition, configuration, asynchronous effects and any other surface the task requires. Resolve the documented contract from the authoritative source and the implemented producer; do not infer it from an example, a generic standard name, a stale review or a convenient fake. A passing helper, mocked producer or static declaration proves only that seam. Build a positive/negative evidence matrix, define behavior for each outcome, identify preserved behavior and explicitly excluded fallbacks, and preserve existing security and compatibility rules. Keep project-specific route names, framework and toolchain choices in the project's own instructions.
Test through supported project interfaces with deterministic inputs and the minimum external dependencies. Distinguish a candidate, a delivered local change, activation and live acceptance; report verified, blocked and untested surfaces separately. Use the project's sanctioned schema generation only when the affected source requires it; a generated artifact is not the canonical source by default. Run proportionate focused gates and report actual results and limits. Never infer publication, deployment or remote authority from a local check.
References: integration and offline verification, producer and consumer validation for structured responses and pagination, health evidence for health-backed APIs, boundary verification, and lifecycle and failure contracts for deactivation or fail-closed changes.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

