agentleFS
rpraharajrpraharaj/ai-sdlc/skills/write-integration-contract/SKILL.md

write-integration-contract

Skill0 starsChanged 16 days agoMITView on GitHub

Write an API, event, or file contract with compatibility rules. Use when the user asks for an integration contract, API contract, event schema, interface agreement, or /write-integration-contract. Do not implement. Do not break compatibility in the same change that adds a field.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do not implement. Do not drop or rename a field in the same document that adds one unless the human explicitly accepts a breaking change.

    line 19
  2. Very specific:

    If there is no design or architecture and the shape is not already in the repo, stop and offer write-design first — unless the user is …

    line 31
  3. Very specific:

    Read AGENTS.md if present.

    line 47
  4. Distinctive:

    Read the design/architecture or the existing interface.

    line 48
  5. Distinctive:

    No secrets. No production URLs with credentials.

    line 54

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Write integration contract

Lock the shape two sides share. This is not a design of internals (write-design), not examples-only (write-api-examples), and not a migration plan (data-change).

Do not implement. Do not drop or rename a field in the same document that adds one unless the human explicitly accepts a breaking change.

Is this the right skill?

SignalDo this instead
How the initiative is builtwrite-design (then this, if a public shape exists)
Stored schema / expand-then-contract stepsdata-change
Request/response examples onlywrite-api-examples
Process handoffs, not payloadsmap-process
Why we picked this protocolrecord-decision

If there is no design or architecture and the shape is not already in the repo, stop and offer write-design first — unless the user is documenting an existing interface. Then read the code or spec that exists.

Required inputs

  • A design, architecture, or existing interface (path or code)
  • Producer and consumer named from context/systems-of-record.md or the design
  • AGENTS.md

Human decisions (do not invent)

  • Breaking vs expandable change
  • Authz model if the repo has no existing pattern
  • Error catalog that is not already in the repo

Procedure

  1. Read AGENTS.md if present. Read context/systems-of-record.md if present.
  2. Read the design/architecture or the existing interface. Prefer types and routes that already exist.
  3. Find the home: first existing docs/contracts/, or offer to create it. Name: docs/contracts/<slug>.md.
  4. Open references/contract-template.md. Copy every heading. Write n/a when unused.
  5. State producer, consumer, transport, and identity as this program already uses them.
  6. Fields: name, type, required, meaning. Mark new vs existing. Add is allowed. Remove/rename requires a human breaking-change yes and a compatibility section.
  7. Errors, idempotency, and versioning: copy the repo’s existing pattern or write unknown — need human.
  8. No secrets. No production URLs with credentials.

Output

  • Path: docs/contracts/<slug>.md
  • Template: references/contract-template.md

Quality bar

  • Producer and consumer are named
  • Every field has type and required/optional
  • Compatibility section is not empty (expand / break+waiver / existing unchanged)
  • Remove/rename is absent unless a human accepted a break
  • Unused headings are n/a

Done

  1. Path
  2. Transport + field count
  3. Next skill: write-dev-tasks, write-test-strategy, or write-api-examples

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.