agentleFS
bt2gobt2go/claude-skills/skills/api-docs/SKILL.md

api-docs

Skill0 starsChanged 3 months agoMITView on GitHub

Use when the user wants endpoint documentation, an API reference, or docs for a public module.

16 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use changelog and frontend-design.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • HashiCorpSkill

    changelog

    Add a `.changelog/<PR_NUMBER>.txt` entry for a GitHub Pull Request, commit, and push.

    Also in 4 projects that use this

  • BlockSkill

    frontend-design

    Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 15 edited versions we read keep these.

  • 8

    Distinctive

    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:

    Document the contract a caller has to satisfy, and what they get back.

    line 8
  2. Distinctive:

    Document each parameter: name, type, required or optional, default, and constraints.

    line 14
  3. Distinctive:

    Document the success response with a real example body, not a type name.

    line 15
  4. Distinctive:

    Document every error the caller can actually receive, with the status code and when it happens.

    line 16
  5. Distinctive:

    Verify every example against the code.

    line 18
  6. Distinctive:

    No prose that repeats the field name back to the reader.

    line 23
  7. Distinctive:

    No invented fields. If you cannot confirm it, leave it out and flag it.

    line 24
  8. Distinctive:

    Keep examples copy pasteable.

    line 25

“Common” is measured: kept by at least 6 in 10 of the 15 edited versions of this file we could read. “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 docs

Document the contract a caller has to satisfy, and what they get back.

Procedure

  1. Find the real surface in code: route definitions, exported functions, or the schema files.
  2. For every endpoint or function, record method, path or signature, and one line of purpose.
  3. Document each parameter: name, type, required or optional, default, and constraints.
  4. Document the success response with a real example body, not a type name.
  5. Document every error the caller can actually receive, with the status code and when it happens.
  6. Note auth requirements, rate limits and pagination once at the top, not repeated per route.
  7. Verify every example against the code. An example that does not match is worse than no example.
  8. Mark anything deprecated and say what replaces it.

Rules

  • No prose that repeats the field name back to the reader.
  • No invented fields. If you cannot confirm it, leave it out and flag it.
  • Keep examples copy pasteable.

Output format

Per endpoint:

### POST /v1/things
Creates a thing.

Auth: bearer token
Body:
  name    string  required, 1 to 64 chars
  tags    array   optional, defaults to []

200 -> { "id": "thg_01", "name": "example", "tags": [] }
400 -> name missing or too long
409 -> a thing with that name exists

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.