chaorenex1/coding-workflow/api-document-generator
Claude Code and agent skill by chaorenex1/coding-workflow
- community
Checking that the SKILL.md file is still in the repository.
Parses interface/API information from files or directories and generates OpenAPI-compliant documentation with timestamps
Install
npx vskill@latest install chaorenex1/coding-workflow/api-document-generatorSKILL.md
API Documentation Generator
This skill automatically generates OpenAPI-compliant documentation from code files. It parses interface definitions, API endpoints, and related information to create comprehensive, readable API documentation that follows OpenAPI specification standards.
Capabilities
- File Parsing: Parse interface/API information from files or directories
- OpenAPI Compliance: Generate documentation that complies with OpenAPI specification (https://swagger.io/specification/)
- Timestamp Management: Automatically include timestamps in documentation files
- Directory Scanning: Process multiple files in a directory structure
- Validation: Validate generated documentation against OpenAPI standards
- Multiple Formats: Support for various code file types (Python, JavaScript, TypeScript, etc.)
Input Requirements
- File or directory path: Path to the file or directory containing API/interface definitions
- Supported file types: Python (.py), JavaScript (.js), TypeScript (.ts), JSON (.json), YAML (.yaml, .yml)
- Optional parameters:
output_format: Format for documentation (default: markdown)include_examples: Whether to include example requests/responses (default: true)validate_openapi: Validate against OpenAPI specification (default: true)
Output Formats
- Primary output: Markdown file with timestamp format:
YYYY-MM-DD_HH-MM-SS.md - Location: Saved to
current_repository/.claude/api_doc/directory - Content: OpenAPI-compliant documentation with:
- API title and description
- Endpoint definitions
- Request/response schemas
- Authentication information
- Example usage
- Error codes and responses
- Timestamp and generation metadata
How to Use
"Generate API documentation from the src/api/ directory" "Parse this Python file and create OpenAPI documentation" "Create API documentation for the endpoints in this TypeScript file"
Scripts
api_parser.py: Main module for parsing API information from filesopenapi_generator.py: Generates OpenAPI-compliant documentationfile_handler.py: Handles file operations and directory scanning
Best Practices
- File Organization: Keep API-related files in structured directories
- Clear Naming: Use descriptive names for endpoints and parameters
- Consistent Formatting: Follow consistent code formatting for better parsing
- Comments: Include clear comments in code for better documentation generation
- Validation: Always validate generated documentation against OpenAPI standards
Limitations
- Requires properly formatted code with clear interface definitions
- Complex nested structures may require manual review
- Some framework-specific annotations may not be fully parsed
- Generated documentation quality depends on source code clarity
- Large directories may take longer to process
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationWarning, 63 of 100Marginal. 1 run. Evaluated 8 months ago.
Source
- SKILL.md in the repositoryCheckingskills/api-document-generator/SKILL.md
Popularity
- Repository stars
- 2
- 7-day trend score
- 5
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 7 May 2026, 6 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/chaorenex1/coding-workflow/api-document-generator)