agentleFS
voyager67voyager67/AgentFieldkit/skills/api-contract-check/SKILL.md

api-contract-check

Skill0 starsChanged 13 days agoMITView on GitHub

Check API and schema changes for compatibility with existing clients and stored data. Use when editing public endpoints, CLI flags, event payloads, database schemas, or serialized formats.

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 6 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Search for callers and consumers.

    line 11
  2. Distinctive:

    Prefer additive transitions: introduce a new field or endpoint, migrate consumers, observe adoption, then remove the old path only through …

    line 14
  3. Distinctive:

    Add contract tests or fixtures representing real documented behavior.

    line 15
  4. Distinctive:

    Update versioning, changelog, examples, and migration notes when the public contract changes.

    line 16
  5. Distinctive:

    Do not run schema migrations against production or delete legacy data without explicit authorization.

    line 22
  6. Distinctive:

    Treat undocumented behavior as uncertain.

    line 23

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

API Contract Check

Procedure

  1. Identify the contract: routes, method, status codes, auth, request/response schemas, CLI behavior, event topics, database fields, or file formats.
  2. Search for callers and consumers. Include generated clients, tests, docs, examples, scripts, downstream jobs, and stored historical data.
  3. Classify each change as additive, behavior-changing, or breaking. Check nullability, defaults, enum expansion, ordering, error semantics, pagination, and numeric/string representation.
  4. For database migrations, consider both old-code/new-schema and new-code/old-schema compatibility during rolling deployment.
  5. Prefer additive transitions: introduce a new field or endpoint, migrate consumers, observe adoption, then remove the old path only through an approved deprecation plan.
  6. Add contract tests or fixtures representing real documented behavior. Avoid relying only on implementation-specific unit tests.
  7. Update versioning, changelog, examples, and migration notes when the public contract changes.

Deliverable

Provide a compatibility matrix: old client/new server, new client/old server, existing data/new code, and rollback path.

Boundaries

  • Do not run schema migrations against production or delete legacy data without explicit authorization.
  • Treat undocumented behavior as uncertain; search usage before declaring it safe to break.

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.