agentleFS
rpraharajrpraharaj/ai-sdlc/skills/write-api-examples/SKILL.md

write-api-examples

Skill0 starsChanged 15 days agoMITView on GitHub

Write request and response examples from an existing integration contract. Use when the user asks for API examples, sample payloads, or /write-api-examples. Do not create a second contract. Do not implement.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 2 are distinctive, and 2 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.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do not add fields the contract does not have.

    line 19
  2. Very specific:

    If missing, stop and name write-integration-contract.

    line 33
  3. Distinctive:

    Read AGENTS.md if present.

    line 41
  4. Very specific:

    Use obviously fake values (user@example.com only if the contract has email.

    line 45

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

Illustrate the contract that already exists. This is not write-integration-contract and not write-tests.

Do not add fields the contract does not have. Do not use real secrets or personal data.

Is this the right skill?

SignalDo this instead
No contract yetwrite-integration-contract
Stored schema migrationplan-data-migration / data-change
Automated tests of the contractwrite-tests

Required inputs

  • Path to the integration contract (or an existing OpenAPI/schema in the repo that is already the contract)

If missing, stop and name write-integration-contract.

Human decisions (do not invent)

  • Whether an example is normative (default: illustrative only)

Procedure

  1. Read AGENTS.md if present. Read the contract. List fields.
  2. Find the home: sibling docs/contracts/<slug>-examples.md.
  3. Open references/examples-template.md. Copy every heading. Write n/a when unused.
  4. One happy example and one error example per operation the contract names. Types must match the contract.
  5. Use obviously fake values (user@example.com only if the contract has email; prefer user@example.invalid).

Output

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

Quality bar

  • Contract path is named
  • No field that is not on the contract
  • Happy + error for each listed operation
  • No secrets or live PII
  • Unused headings are n/a

Done

  1. Path
  2. Operation count
  3. Next skill: write-tests or implement-change

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.