refactor(workflow): remove redundant sections, focus on core responsibilities

Streamline workflow command documentation by removing sections that don't belong to core command responsibilities.

## Changes

### init.md (-46 lines)
- Remove Integration with Existing Commands section
- Remove Performance Considerations section
- Remove Related Commands section
- Focus: Project initialization and analysis only

### session/complete.md (-30 lines)
- Remove Quick Commands reference section
- Remove Archive Query Commands section
- Focus: Session archival and feature registry updates only

### session/start.md (-34 lines)
- Remove Simple Bash Commands reference section
- Keep: Session ID Format (specification/standard)
- Focus: Session creation and discovery only

### status.md (-165 lines)
- Remove Simple Bash Commands section
- Remove Simple Output Format examples
- Remove Project Mode Quick Commands section
- Focus: Status display logic only

### context-gather.md (-29 lines)
- Remove Usage Examples section
- Remove Success Criteria section
- Remove Error Handling table
- Keep: Notes (core design principles)
- Focus: Context gathering orchestration only

## Benefits
- Reduced documentation redundancy (~304 lines removed)
- Clearer command responsibilities and boundaries
- Easier maintenance and updates
- Commands focus on their specific roles in workflow

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
catlog22
2025-11-18 11:21:35 +08:00
parent 4dafec7054
commit 2aacc34c24
5 changed files with 0 additions and 304 deletions

View File

@@ -397,50 +397,3 @@ If not in git repo and empty directory:
2. Create minimal project.json
3. Suggest: "Add code files and run /workflow:init --regenerate"
```
## Integration with Existing Commands
### /workflow:session:start
Modified to check and call init:
```javascript
// In start.md Step 0
if (!FileExists('.workflow/project.json')) {
console.log("Project not initialized. Running /workflow:init...");
SlashCommand({command: "/workflow:init"});
// Wait for completion, then continue with session creation
}
```
### /workflow:status --project
Uses extended overview fields:
```javascript
console.log(`## Technology Stack`);
console.log(`Languages: ${overview.technology_stack.languages.map(l => l.name).join(', ')}`);
console.log(`Frameworks: ${overview.technology_stack.frameworks.join(', ')}`);
console.log(`\n## Architecture`);
console.log(`Style: ${overview.architecture.style}`);
console.log(`Patterns: ${overview.architecture.patterns.join(', ')}`);
console.log(`\n## Key Components (${overview.key_components.length})`);
overview.key_components.forEach(c => {
console.log(`- ${c.name} (${c.path})`);
console.log(` ${c.description}`);
});
```
## Performance Considerations
**Execution Time**:
- cli-explore-agent Deep Scan: 2-5 minutes
- Total initialization: 2-6 minutes (one-time cost)
**Optimization**:
- Skip regeneration if project.json exists
- Cache analysis results in _metadata
- Parallel execution: project discovery + agent analysis
## Related Commands
- `/workflow:session:start` - Calls init if needed
- `/workflow:status --project` - Views project overview
- `/workflow:init --regenerate` - Updates project analysis