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**:

View File

@@ -26,15 +26,15 @@ type: search-guideline
## 🔧 Quick Command Reference
```bash
# Semantic File Discovery (codebase-retrieval)
cd [directory] && gemini -p "
# Semantic File Discovery (codebase-retrieval via CCW)
ccw cli exec "
PURPOSE: Discover files relevant to task/feature
TASK: List all files related to [task/feature description]
TASK: List all files related to [task/feature description]
MODE: analysis
CONTEXT: @**/*
EXPECTED: Relevant file paths with relevance explanation
RULES: Focus on direct relevance to task requirements
"
RULES: Focus on direct relevance to task requirements | analysis=READ-ONLY
" --tool gemini --cd [directory]
# Program Architecture (MANDATORY before planning)
ccw tool exec get_modules_by_depth '{}'