npx skills add https://www.modelscope.cn/skills/@chaorenex1/api-document-generator
smithery/chaorenex1
api-document-generator
Parses interface/API information from files or directories and generates OpenAPI-compliant documentation with timestamps
Installation
npx skills add smithery/chaorenex1 --skill api-document-generator
Similar popular skills
Related neighbors and high-traction skills in the same topics — useful to compare before installing.
Use for Azure AI: Search, Speech, OpenAI, Document Intelligence. Helps with search, vector/hybr…
568.2K installsUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or bot…
216.8K installsUse this skill whenever the user wants to do anything with PDF files. This includes reading or …
192.4K installsUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.do…
184.5K installsUse this skill any time a spreadsheet file is the primary input or output. This means any task …
165K installsAlso in this package
Other skills from smithery/chaorenex1.
npx skills add smithery/chaorenex1
More details
Agent compatibility
Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.
Also listed on
Alternate registries and mirrors of this skill.
Skill metadata
Parsed from SKILL.md frontmatter.
Package contents
Files included with this skill beyond the listing page.
-
skill md
SKILL.md3,086 B -
docs
SUMMARY.md150 B
History
- First recorded snapshot · 0 installs
SKILL.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:
- outputformat: Format for documentation (default: markdown) - includeexamples: 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
currentrepository/.claude/apidoc/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