agentleFS
SrejonKhanSrejonKhan/agent-skills/skills/document_api/SKILL.md

document_api

Skill3 starsChanged 2 months agoMITView on GitHub

Generates standardized API documentation (OpenAPI/Markdown) for backend endpoints.

1 other project uses a version of this, 1 of them edited.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill to automatically map out and document your server's API surface area.

    line 8
  2. Very specific:

    Use grep_search to find route definitions (e.g., .get(, @app.route).

    line 17
  3. Very specific:

    Use view_file to understand request/response schemas.

    line 18
  4. Very specific:

    Format: Create/Update API_DOCUMENTATION.md (or generate an OpenAPI/Swagger spec).

    line 30
  5. Distinctive:

    Ensure every identified route is listed.

    line 43

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

Document API

Use this skill to automatically map out and document your server's API surface area.

Inputs

  • Source Code: The directory or entry point (e.g., server.js).
  • Format: Preferred output (Markdown vs Swagger/OpenAPI).

Tooling Strategy

  • Use grep_search to find route definitions (e.g., .get(, @app.route).
  • Use view_file to understand request/response schemas.

Workflow

1. Analysis

  • Scan: Identify the server entry point (e.g., server.js, app.py).
  • Route Discovery: Trace route definitions (Express .get(), Flask @app.route, FastAPI decorators).
  • Parameters: specific inputs (Body, Query Params, Path Variables).

2. Documentation Generation

  • Format: Create/Update API_DOCUMENTATION.md (or generate an OpenAPI/Swagger spec).
  • Structure:
    • Endpoint Details: METHOD /path, description, rate limiting limits, and Auth requirements.
    • Request Specification: Path/Query params, headers, and precise body schemas (with types & validation rules).
    • Response Specification:
      • 200 Success: Include a full JSON example.
      • Error Responses: Document ALL possible error codes (e.g., 400 Bad Request, 401 Unauthorized, 409 Conflict), their message formats, and troubleshooting tips.
    • Code Examples: Include a cURL command example and a JavaScript/Python snippet if applicable.
    • Usage Guidelines: Provide a getting started guide, pagination patterns, and filtering/sorting options.

3. Output

  • Make the documentation clear and consistent.
  • Ensure every identified route is listed.

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.