agentleFS
gologo13gologo13/agent-skills/skills/generate-api-docs/SKILL.md

generate-api-docs

Skill0 starsChanged 9 months agoMITView on GitHub

Create comprehensive API documentation for the current endpoints formatted as OpenAPI/Swagge...; keywords: api, openapi, swagger, error. Use only on explicit request; skip in routine implementation discussions.

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    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:

    Create comprehensive API documentation for the current endpoints formatted as OpenAPI/Swagger specification or following the project's …

    line 10

≈ “Common” is an estimate: at least 1 in 5 of the 308,232 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

Generate API Documentation

Overview

Create comprehensive API documentation for the current endpoints formatted as OpenAPI/Swagger specification or following the project's documentation standards.

Steps

  1. API Overview
    • Service description and purpose
    • Base URL and versioning information
    • Authentication and authorization requirements
    • Rate limiting and usage policies
  2. Endpoint Documentation
    • HTTP method and URL path
    • Request parameters (path, query, body)
    • Request/response schemas with data types
    • Example requests and responses
    • Possible error codes and messages
  3. Data Models
    • Define all data models and schemas
    • Include field descriptions and constraints
    • Show relationships between models
    • Provide example payloads
  4. Usage Examples
    • Common use case scenarios
    • SDK and client library examples
    • CURL command examples
    • Error handling examples

API Documentation Checklist

  • API overview complete
  • Endpoints documented
  • Data models defined
  • Usage examples provided
  • Documentation formatted per project standards

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.

Reviews can't be read right now.

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.