This skill should be used when the user asks to "generate API docs", "create API documentation", "generate curl examples", "create developer docs", or mentions generating documentation, curl examples, or developer guides from OpenAPI/OAS specifications.
47
49%
Does it follow best practices?
Impact
—
No eval scenarios have been run
Passed
No known issues
Optimize this skill with Tessl
npx tessl skill review --optimize ./.claude/skills/api-doc-generator/SKILL.mdGenerates markdown documentation from your OpenAPI Specification, creating multiple pages with curl command examples for each endpoint.
Use this skill when:
pip install pyyamlpython3 skills/api-doc-generator/scripts/generate_docs.py path/to/spec.yaml [output-dir]Default output directory is ./docs if not specified.
The tool creates:
README.md (Overview page):
Individual endpoint pages (one per operation):
# Generate docs to default ./docs directory
python3 skills/api-doc-generator/scripts/generate_docs.py api-spec.yaml
# Generate docs to custom directory
python3 skills/api-doc-generator/scripts/generate_docs.py api-spec.yaml ./documentationOutput:
Generating API documentation from api-spec.yaml...
Generating overview page: README.md
Generating endpoint page: createUser.md
Generating endpoint page: getUserById.md
Generating endpoint page: listOrders.md
✓ Generated documentation for 3 endpoints
✓ Output directory: ./docs
View the documentation:
- Overview: ./docs/README.mdThe tool automatically generates curl commands with:
Example generated curl command:
curl -X POST "https://api.example.com/users" \
-H "Content-Type: application/json" \
-d '{
"name": "Jane Smith",
"email": "jane@example.com",
"age": 28,
"role": "developer"
}'The generated documentation can be:
docs/ folderEach endpoint gets its own file, making it easy to:
Ask Claude to generate documentation:
"Generate markdown documentation from my API spec at path/to/spec.yaml"
"Create API docs with curl examples from specs/my-api.yaml"
"Generate developer documentation for my OpenAPI spec"32e2b58
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.