Generate Api Docs
Helps with code generation, API as part of writing, documentation, and content creation workflows.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add generate-api-docs npx -- -y @trustedskills/generate-api-docs
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"generate-api-docs": {
"command": "npx",
"args": [
"-y",
"@trustedskills/generate-api-docs"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill automatically generates API documentation from code. It parses code files, extracts function and method signatures, and creates formatted documentation including descriptions, parameters, and return types. The generated documentation can be output in various formats suitable for publishing or integration into developer portals.
When to use it
- Onboarding new developers: Quickly provide clear API reference materials for a team joining a project.
- Automating documentation updates: Keep API docs synchronized with code changes, reducing manual effort and errors.
- Generating internal API references: Create easily accessible documentation for internal APIs used across an organization.
- Creating public developer portals: Produce professional-looking API documentation to share with external developers.
Key capabilities
- Code parsing
- Function/method signature extraction
- Formatted output generation
- Multiple output formats (unspecified)
Example prompts
- "Generate API docs for the
my_librarydirectory." - "Create documentation in Markdown format from the
api.pyfile." - “Output API documentation for all Python files in this repository.”
Tips & gotchas
The skill's effectiveness depends on well-structured and documented code; poorly formatted code may result in inaccurate or incomplete documentation. Ensure your codebase follows consistent coding conventions for optimal results.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.