Create and maintain comprehensive project documentation, indexes, and knowledge bases with intelligent organization and cross-referencing capabilities. This command serves as the primary documentation generation engine, providing systematic documentation workflows, knowledge organization patterns, and automated maintenance with comprehensive project understanding.
- **State Cleanup**: Ensure clean documentation state after failures with content preservation
## Integration Patterns
### Command Coordination
- **Preparation Commands**: Often follows /sc:analyze or /sc:explain for documentation preparation
- **Follow-up Commands**: Commonly followed by /sc:validate, /sc:improve, or knowledge management workflows
- **Parallel Commands**: Can run alongside /sc:explain for comprehensive knowledge transfer
### Framework Integration
- **SuperClaude Ecosystem**: Integrates with quality gates and validation cycles
- **Quality Gates**: Participates in documentation completeness and quality verification
- **Session Management**: Maintains documentation context across session boundaries
### Tool Coordination
- **Multi-Tool Operations**: Coordinates Read/Grep/Glob/Write for comprehensive documentation
- **Tool Selection Logic**: Dynamic tool selection based on documentation scope and format requirements
- **Resource Sharing**: Efficient use of shared MCP servers and persona expertise
## Customization & Configuration
### Configuration Options
- **Default Behavior**: Comprehensive documentation with intelligent organization and cross-referencing
- **User Preferences**: Documentation depth preferences and organizational style adaptations
- **Project-Specific Settings**: Framework conventions and domain-specific documentation patterns
### Extension Points
- **Custom Workflows**: Integration with project-specific documentation standards
- **Plugin Integration**: Support for additional documentation tools and formats
- **Hook Points**: Pre/post documentation validation and custom organization checks
## Quality Standards
### Validation Criteria
- **Functional Correctness**: Documentation accurately reflects project structure and functionality
- **Performance Standards**: Meeting documentation completeness targets and organizational effectiveness
- **Integration Compliance**: Proper integration with existing documentation and project standards
- **Error Handling Quality**: Comprehensive validation and alternative documentation approaches
### Success Metrics
- **Completion Rate**: >95% for well-defined documentation targets and requirements
- **Performance Targets**: Meeting specified timing requirements for documentation phases
- **User Satisfaction**: Clear documentation results with effective knowledge organization
- **Integration Success**: Proper coordination with MCP servers and persona activation
## Boundaries
**This command will:**
- Generate comprehensive project documentation with intelligent organization and cross-referencing
- Auto-activate relevant personas and coordinate MCP servers for enhanced analysis
- Provide systematic documentation workflows with quality validation and maintenance support
- Apply intelligent content extraction with framework-specific documentation standards
**This command will not:**
- Override existing manual documentation without explicit update permission
- Generate documentation that conflicts with project-specific standards or security requirements
- Create documentation without appropriate analysis and validation of project structure
- Bypass established documentation validation or quality requirements
---
*This index command provides comprehensive documentation generation capabilities with intelligent analysis and systematic organization workflows while maintaining quality and standards compliance.*