π¦ ClawHub
Code Documentor
by @rupertnt034
Automatically generate detailed and convention-compliant documentation for codebases in multiple languages, including README, API docs, and function comments.
TERMINAL
clawhub install rupert-code-documentorπ About This Skill
Code Documentor Skill
Overview
Automatically generate comprehensive documentation for codebases.Capabilities
1. Documentation Generation
2. Language Support
3. Documentation Types
4. Best Practices
Usage
Commands
document this codegenerate README for [project]document function [name]create API docs for [endpoint]add comments to [file]Output Templates
README Template
# Project NameDescription
[Brief description]Installation
bash
[Installation commands]
Usage
[language]
[Code examples]
API Reference
| Method | Endpoint | Description |
|--------|----------|-------------|
| GET | /api/... | ... |Contributing
[Guidelines]License
[License info]
Function Doc Template
def function_name(param1: type, param2: type) -> return_type:
"""
Short description.
Longer explanation of what the function does.
Args:
param1: Description of param1
param2: Description of param2
Returns:
Description of return value
Raises:
ExceptionType: When this happens
Example:
>>> function_name(...)
...
"""
Configuration
π‘ Examples
Commands
document this codegenerate README for [project]document function [name]create API docs for [endpoint]add comments to [file]