feat(cli): update command patterns to use CCW CLI for analysis tasks

This commit is contained in:
catlog22
2025-12-13 14:24:37 +08:00
parent 68c872ad36
commit 8f58e4e48a
4 changed files with 20 additions and 28 deletions

View File

@@ -66,22 +66,18 @@ Document recurring conflict patterns across workflow sessions with resolutions.
- Context packages: `.workflow/.archives/{session_id}/.process/context-package.json` (reference only)
- Session lessons: `manifest.json` -> `archives[].lessons.challenges`
## Conflict Identification (Use Gemini CLI)
## Conflict Identification (Use CCW CLI)
**Command Pattern**:
```bash
gemini -p "
ccw cli exec "
PURPOSE: Identify conflict patterns from workflow sessions
TASK:
• Extract conflicts from IMPL_PLAN and lessons
• Group by type (architecture/dependencies/testing/performance)
• Identify recurring patterns (same conflict in different sessions)
• Link resolutions to specific sessions
TASK: • Extract conflicts from IMPL_PLAN and lessons • Group by type (architecture/dependencies/testing/performance) • Identify recurring patterns (same conflict in different sessions) • Link resolutions to specific sessions
MODE: analysis
CONTEXT: @.workflow/.archives/*/IMPL_PLAN.md @.workflow/.archives/manifest.json
EXPECTED: Conflict patterns with frequency and resolution
RULES: $(cat ~/.claude/workflows/cli-templates/prompts/workflow/skill-aggregation.txt)
"
RULES: $(cat ~/.claude/workflows/cli-templates/prompts/workflow/skill-aggregation.txt) | analysis=READ-ONLY
" --tool gemini --cd .workflow/.archives
```
**Pattern Grouping**:

View File

@@ -62,22 +62,18 @@ Aggregate lessons learned from workflow sessions, categorized by functional doma
- Lessons: `manifest.json` -> `archives[].lessons.{successes|challenges|watch_patterns}`
- Session metadata: `.workflow/.archives/{session_id}/workflow-session.json`
## Aggregation Rules (Use Gemini CLI)
## Aggregation Rules (Use CCW CLI)
**Command Pattern**:
```bash
gemini -p "
ccw cli exec "
PURPOSE: Aggregate workflow lessons from session data
TASK:
• Group successes by functional domain
• Categorize challenges by severity (HIGH/MEDIUM/LOW)
• Identify watch patterns with frequency >= 2
• Mark CRITICAL patterns (3+ sessions)
TASK: • Group successes by functional domain • Categorize challenges by severity (HIGH/MEDIUM/LOW) • Identify watch patterns with frequency >= 2 • Mark CRITICAL patterns (3+ sessions)
MODE: analysis
CONTEXT: @.workflow/.archives/manifest.json
EXPECTED: Aggregated lessons with frequency counts
RULES: $(cat ~/.claude/workflows/cli-templates/prompts/workflow/skill-aggregation.txt)
"
RULES: $(cat ~/.claude/workflows/cli-templates/prompts/workflow/skill-aggregation.txt) | analysis=READ-ONLY
" --tool gemini --cd .workflow/.archives
```
**Severity Classification**: