api-contract-sync
Skill3 starsChanged 27 days agoMITView on GitHub
Keep API code, OpenAPI, Bruno, Gherkin, mocks and client types in step. Use when an endpoint, DTO, payload, status code, query parameter or auth rule changes.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- AlpayC/claude-skill-settheir own version, first seen Sep 14, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- AlpayC/claude-skill-set★ 0same name
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 repository25 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- adrSkill
- architecture-advisorSkill
- ci-triageSkill
- compassSkill
- debugSkill
- delivery-digestSkill
- design-taste-skillsSkill
- grillSkill
- harness-improveSkill
- harness-loopSkill
- impact-analysisSkill
- native-mobile-skillsSkill
- plugin-authorSkill
- pr-flowSkill
- project-memorySkill
- remaining-workSkill
- reviewSkill
- slide-deckSkill
- spec-flowSkill
- task-flowSkill
- ui-conformanceSkill
- working-style-skillsSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 7 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Update all layers in the same task.
- Distinctive: line 18
Run this skill when you change any of these:
- Very specific: line 27
Check only the layers that exist in the repository.
- Distinctive: line 44
Read the repository AGENTS.md, the module README and the nearby specs and features.
- Very specific: line 47
Write not present for a layer that does not exist.
- Distinctive: line 48
Run the smallest declared checks: lint, typecheck, the API tests, the contract tests.
- Very specific: line 49
Run the Bruno collection against the running API: bru run <collection-dir> --env <env>.
- Distinctive: line 50
After a decorator change, check that the app still starts and the OpenAPI document builds.
- Distinctive: line 54
Before the handoff, answer four questions:
- Distinctive: line 61
If code changed and an existing layer did not, report the task as partial.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
api-contract-sync
An endpoint is not done until the code, the docs, the client examples and the behavior specs agree. Update all layers in the same task. Never defer a layer to a follow-up PR.
Trigger
Run this skill when you change any of these:
- A route path, method, auth rule, ownership rule, status code, header or query parameter.
- A payload, DTO, schema, error shape, pagination, sorting or filtering.
- Controller or service behavior that an API shows.
- Generated shared types or API client contracts.
Layers
Check only the layers that exist in the repository. The OpenAPI file is in {{OPENAPI_DIR}} when the project keeps one there.
- Controller docs and DTO metadata (OpenAPI, Swagger or Scalar decorators):
- Each endpoint documents its purpose, all response codes, its query and path parameters and its auth scheme.
- Each DTO field has a description and an example, and says if it is required.
- A new module is registered in the OpenAPI bootstrap, with its tags.
- Bruno requests (
*.bru):- The URL, method, query parameters, body and headers match the controller and the DTO.
- The
docsblock and the pre-request and post-response scripts are current. - A new endpoint gets a new request file. A deleted endpoint loses its file. Keep the
seqorder infolder.bru.
- Gherkin (
*.feature): add or change aScenariofor each new or changed behavior. UpdateExamplestables. - Mocks and client types:
- Mockoon: start a mock from the OpenAPI file with
npx @mockoon/cli start --data <openapi-file>. Check that the mock answers the new shape. - Shared client types: update each consumer that imports the changed symbol.
- Mockoon: start a mock from the OpenAPI file with
Steps
- Read the repository
AGENTS.md, the module README and the nearby specs and features. - Find every layer for the changed route or DTO.
- Change the code and the layers together.
- Write
not presentfor a layer that does not exist. Never writeskipped. - Run the smallest declared checks: lint, typecheck, the API tests, the contract tests.
- Run the Bruno collection against the running API:
bru run <collection-dir> --env <env>. Report each failing request. - After a decorator change, check that the app still starts and the OpenAPI document builds.
Review gate
Before the handoff, answer four questions:
- Which endpoints and DTOs changed?
- Which layers did you update?
- Which layers are not present?
- Which commands ran, and did they pass?
If code changed and an existing layer did not, report the task as partial.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
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.

