backend-contract-exit-gate
Skill0 starsChanged 8 months agoMITView on GitHub
Use when backend API work appears complete and the agent must verify the published contract before claiming success
In this repository19 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- brainstormingSkill
- compound-knowledge-summarySkill
- dispatching-parallel-agentsSkill
- executing-plansSkill
- finishing-a-development-branchSkill
- frontend-contract-entry-gateSkill
- recall-contract-contextSkill
- receiving-code-reviewSkill
- requesting-code-reviewSkill
- subagent-driven-developmentSkill
- systematic-debuggingSkill
- test-driven-developmentSkill
- using-git-worktreesSkill
- using-superpowersSkill
- verification-before-completionSkill
- writing-plansSkill
- writing-skillsSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 2 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Use this skill when:
- Very specific: line 23
every public endpoint has an operationId
- Very specific: line 24
every 2xx response resolves to a concrete business DTO
- Very specific: line 25
every response follows the standard envelope
- Very specific: line 30
Read gates/backend-exit-gate.md and gates/contract-invariants.md.
- Very specific: line 32
Write a gate report with pass or fail per invariant using templates/gate-report.md.
- Distinctive: line 33
Stop the task if any blocker fails.
≈ “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
Backend Contract Exit Gate
Overview
Code is not complete until the contract is publishable. This gate blocks completion unless the backend output is recognizable, typed, and aligned with OpenAPI.
Trigger
Use this skill when:
- an endpoint was added or changed
- DTOs changed
- OpenAPI output changed
- the agent is about to claim backend API work is complete
Blocking Checks
- every public endpoint has an
operationId - every
2xxresponse resolves to a concrete business DTO - every response follows the standard
envelope - generated or exported
OpenAPImatches the implementation
Process
- Read
gates/backend-exit-gate.mdandgates/contract-invariants.md. - Compare the implementation against the authoritative OpenAPI contract.
- Write a gate report with pass or fail per invariant using
templates/gate-report.md. - Stop the task if any blocker fails.
Output
Produce one explicit outcome:
PASS: backend contract is publishableFAIL: do not claim completion; list the blocking invariant failures
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.

