api-contract
Skill1 starsChanged 23 days agoMITView on GitHub
Designs or updates the API contract between frontend and backend: OpenAPI 3.1 for REST, or typed RPC / server-action signatures for tRPC, GraphQL or framework-native stacks; covers errors, pagination, auth and versioning. Use before building endpoints, or when frontend and backend disagree about data shapes.
20 other projects use a version of this.
Adopted by
Most recently taken up by
- zdanovichnick/dotnet-pilottheir own version, first seen Nov 29, 2026
- Vacayy/explorertheir own version, first seen Nov 29, 2026
- Reactive-Skills/skillstheir own version, first seen Nov 29, 2026
- AmirAzy/HoNspottheir own version, first seen Nov 29, 2026
- TomorrowLM/lm-skilltheir own version, first seen Nov 22, 2026
- jDxve/avengers-kittheir own version, first seen Nov 8, 2026
Used with
Projects with it also use systematic-debugging, code-review and 1 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
OpenAISkillsystematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes
Also in 3 projects that use this
GoogleSkillcode-review
Adversarial systems, concurrency, memory-model, and architecture code review protocol. Use this skill whenever asked to review code, PRs, diffs, or branches in Filament.
Also in 5 projects that use this
MicrosoftSkillrelease
Use ONLY when the user explicitly asks to cut/publish a Huabu desktop release or tag a version. Performs an outward action — bumps the version in apps/desktop/package.json, commits + annotated-tags vX.Y.Z, and pushes the branch + tag. That tag push auto-builds the macOS/Windows installers and publishes a GitHub Release. Provides `status`, `bump`, `tag-push`, and a one-command `run` (bump → tag-push).
Also in 3 projects that use this
Other versions20 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 20
- ChenyCHENYU/Robot_Admin★ 1ksame name
- zdanovichnick/dotnet-pilot★ 5same name
- Eliahhango/nullbyte-security★ 4same name
- gonimar/claude-web-studio★ 4same name
- digitaldreams/tuhin★ 3same name
- PatriotAgenticLLC/better_claude_skillz★ 3same name
- vndee/engineering-skills★ 3same name
- 1398281322-a11y/java-backend-guardrails★ 2same name
- AmirAzy/HoNspot★ 2same name
- Echo-Scion/orioncortex★ 2same name
10 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository100 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- a11y-auditSkill
- add-ai-featureSkill
- add-authSkill
- add-cmsSkill
- add-i18nSkill
- add-paymentsSkill
- add-realtimeSkill
- adoptSkill
- analytics-planSkill
- architecture-decisionSkill
- architecture-reviewSkill
- brainstormSkill
- brand-identitySkill
- bug-reportSkill
- bug-triageSkill
- changelogSkill
- ci-setupSkill
- client-demoSkill
- competitor-auditSkill
- consistency-checkSkill
- content-calendarSkill
- content-strategySkill
- create-architectureSkill
- create-epicsSkill
- create-storiesSkill
- cro-reviewSkill
- data-modelSkill
- db-migrationSkill
- dependency-auditSkill
- deploy-setupSkill
- design-reviewSkill
- design-systemSkill
- design-tokensSkill
- dev-storySkill
- e2eSkill
- email-flowsSkill
- estimateSkill
- experimentSkill
- feature-specSkill
- funnel-reviewSkill
- gate-checkSkill
- helpSkill
- hotfixSkill
- incidentSkill
- install-depsSkill
- launch-checklistSkill
- load-testSkill
- market-researchSkill
- milestone-reviewSkill
- observability-setupSkill
- onboardSkill
- perf-auditSkill
- personasSkill
- postmortemSkill
- privacy-auditSkill
- project-stage-detectSkill
- propagate-design-changeSkill
- prototypeSkill
- refactorSkill
- The first 60 shown.
The file
Files
API Contract
The contract is where frontend and backend meet; neither side changes it alone
(coordination rule 5). lead-backend owns it, lead-frontend must agree. The
skill writes docs/architecture/api/openapi.yaml for REST APIs, or the
## API Contract section of the feature spec for RPC, GraphQL or server-action
stacks. It does not implement handlers.
Inputs
- Argument: a feature slug (
docs/specs/features/<slug>.md) orall - Existing
docs/architecture/api/openapi.yamland other specs' contract sections docs/architecture/data-model.md,docs/architecture/architecture.md, ADRsproject.yaml:stack.frontend,stack.backend,stack.auth.claude/docs/templates/api-contract.yaml
Phases
Phase 1: Choose the contract form
Decide from the stack and architecture (ask if unclear):
- REST/OpenAPI: separate backend, public API, mobile clients, or any
non-TypeScript backend →
openapi.yaml. - Typed RPC (tRPC, server actions, SvelteKit actions, Remix actions): signatures with input/output schemas in the spec section.
- GraphQL: schema SDL in
docs/architecture/api/schema.graphql.
Phase 2: Draft (backend)
Spawn lead-backend with the spec and data model. For each operation:
- Method + path (plural nouns, nested at most one level) or procedure name
- Auth requirement and the permission it checks (role/ownership/tenant)
- Request: params, query, body, each with type, constraints and examples
- Responses: success shape; errors with a consistent body
(
{ "error": { "code": "VALIDATION_FAILED", "message": "...", "fields": {...} } }) and status codes (400 validation, 401, 403, 404, 409 conflict, 422, 429) - Pagination (cursor-based:
?cursor=&limit=→{ data, nextCursor }), filtering, sorting; maxlimit - Idempotency (
Idempotency-Keyheader) for creates and payments - Rate limit class; caching headers for public GETs
- Webhooks the system emits or receives, with signature scheme
Phase 3: Agree (frontend)
Spawn lead-frontend with the draft and the spec's UX section. It checks every
screen's data needs are met with no over-fetching, waterfalls or missing
fields, and returns a list of requested changes. Resolve each with the user if
the leads disagree.
Phase 4: Validate
- OpenAPI: valid 3.1 structure,
operationIdon every operation, shared schemas incomponents, examples for each schema. Ifnpx @redocly/cliis available, offer to runnpx @redocly/cli lint docs/architecture/api/openapi.yaml(ask first; it downloads a package). - Breaking-change check against the previous version: removed fields, narrowed types, new required inputs. Breaking changes need versioning or an expand-and-contract plan.
Phase 5: Approve and write
Show the operations table and the diff. Ask "May I write this to <path>?"
Then note in the feature spec that its contract is current.
Output
docs/architecture/api/openapi.yaml (from .claude/docs/templates/api-contract.yaml),
schema.graphql, or the spec's ## API Contract section.
Next step
/data-model if storage changes, then /create-stories.
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.

