Api Doc Generator
Provides API guidance and assistance for writing, documentation, and content creation.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add api-doc-generator npx -- -y @trustedskills/api-doc-generator
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"api-doc-generator": {
"command": "npx",
"args": [
"-y",
"@trustedskills/api-doc-generator"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
The Api Doc Generator skill helps AI agents automatically scan codebases for API endpoints, extract relevant details like request URLs, methods, parameters, and response information from interfaces, and generate standardized API documentation. It focuses specifically on identifying and documenting APIs defined through Controller classes and associated annotations. This skill is designed to streamline the process of creating API documentation, saving developers time and ensuring consistency.
When to use it
- When you need to quickly generate API documentation for a project with Java or Spring Boot controllers.
- To automate the creation of standardized API documentation from existing code.
- When documenting newly developed APIs or updating existing API documentation.
- For projects using
@RestController,@Controllerwith@RequestMapping, or files ending inController.javaorController.kt.
Key capabilities
- Scans project code for Controller classes and associated API interfaces.
- Identifies methods annotated with
@GetMapping,@PostMapping,@PutMapping,@DeleteMapping, or@RequestMapping. - Extracts request URL, method, parameters, and response information from identified interfaces.
- Generates standardized API documentation based on a predefined template.
- Saves generated documentation to the
./docsdirectory within the project.
Example prompts
- "Generate API documentation for my current project."
- "Scan this project for Controller classes and list the number of API interfaces found."
- "Create API documentation focusing on the
UserControllerclass."
Tips & gotchas
- Crucially, you must first scan the code to find API interfaces before generating documentation. The skill will not function correctly without an initial code scan.
- The skill specifically targets Java and Spring Boot projects using common Controller patterns. It may not work with other frameworks or languages.
- If no API interfaces are found during the scanning process, the skill will stop and provide a message indicating potential issues with the project structure or annotations.
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.