Document Skill
Overview
Type: Workflow
Name: document
Purpose: Documentation generation workflow with templates and quality checks
Description
The document skill automates documentation creation and maintenance. It generates API docs, user guides, and technical documentation from code and specifications with consistent formatting.
Usage
bash
# Qwen Code slash command /skill:document "task" # Terminal command document "task"
Parameters
- •
type: Documentation type (api, user, technical) - •
source: Source files or code to document - •
template: Documentation template to use - •
output: Output format and location
Process
- •Source Analysis: Analyze code and extract documentation
- •Structure Planning: Plan documentation structure
- •Content Generation: Generate documentation content
- •Template Application: Apply formatting templates
- •Quality Check: Verify documentation quality
- •Publish: Output final documentation
Output Structure
code
document-output/ ├── api-reference/ # API documentation ├── guides/ # User guides ├── technical/ # Technical documentation ├── index.md # Documentation index └── quality-report.json # Quality metrics
Integration
- •review: Review documentation quality
- •research: Research documentation topics
- •ci: Auto-generate docs in CI
- •release: Include docs in releases
Best Practices
- •Keep docs close to code
- •Use consistent templates
- •Include examples
- •Update with code changes
- •Validate links and references
Related Skills
/skill:review, /skill:research, /skill:ci, /skill:release, /skill:verify, /skill:audit