mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-11 02:33:51 +08:00
feat(cli): update command patterns to use CCW CLI for analysis tasks
This commit is contained in:
@@ -200,21 +200,21 @@ Comprehensive command guide for Claude Code Workflow (CCW) system covering 78 co
|
|||||||
|
|
||||||
**Complex Query** (CLI-assisted analysis):
|
**Complex Query** (CLI-assisted analysis):
|
||||||
1. **Detect complexity indicators** (多个命令对比、工作流程分析、最佳实践)
|
1. **Detect complexity indicators** (多个命令对比、工作流程分析、最佳实践)
|
||||||
2. **Design targeted analysis prompt** for gemini/qwen:
|
2. **Design targeted analysis prompt** for gemini/qwen via CCW:
|
||||||
- Frame user's question precisely
|
- Frame user's question precisely
|
||||||
- Specify required analysis depth
|
- Specify required analysis depth
|
||||||
- Request structured comparison/synthesis
|
- Request structured comparison/synthesis
|
||||||
```bash
|
```bash
|
||||||
gemini -p "
|
ccw cli exec "
|
||||||
PURPOSE: Analyze command documentation to answer user query
|
PURPOSE: Analyze command documentation to answer user query
|
||||||
TASK: [extracted user question with context]
|
TASK: • [extracted user question with context]
|
||||||
MODE: analysis
|
MODE: analysis
|
||||||
CONTEXT: @**/*
|
CONTEXT: @**/*
|
||||||
EXPECTED: Comprehensive answer with examples and recommendations
|
EXPECTED: Comprehensive answer with examples and recommendations
|
||||||
RULES: $(cat ~/.claude/workflows/cli-templates/prompts/analysis/02-analyze-code-patterns.txt) | Focus on practical usage | analysis=READ-ONLY
|
RULES: $(cat ~/.claude/workflows/cli-templates/prompts/analysis/02-analyze-code-patterns.txt) | Focus on practical usage | analysis=READ-ONLY
|
||||||
" -m gemini-3-pro-preview-11-2025 --include-directories ~/.claude/skills/command-guide/reference
|
" --tool gemini --cd ~/.claude/skills/command-guide/reference
|
||||||
```
|
```
|
||||||
Note: Use absolute path `~/.claude/skills/command-guide/reference` for reference documentation access
|
Note: Use `--cd` with absolute path `~/.claude/skills/command-guide/reference` for reference documentation access
|
||||||
3. **Process and integrate CLI analysis**:
|
3. **Process and integrate CLI analysis**:
|
||||||
- Extract key insights from CLI output
|
- Extract key insights from CLI output
|
||||||
- Add context-specific examples
|
- Add context-specific examples
|
||||||
|
|||||||
@@ -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)
|
- Context packages: `.workflow/.archives/{session_id}/.process/context-package.json` (reference only)
|
||||||
- Session lessons: `manifest.json` -> `archives[].lessons.challenges`
|
- Session lessons: `manifest.json` -> `archives[].lessons.challenges`
|
||||||
|
|
||||||
## Conflict Identification (Use Gemini CLI)
|
## Conflict Identification (Use CCW CLI)
|
||||||
|
|
||||||
**Command Pattern**:
|
**Command Pattern**:
|
||||||
```bash
|
```bash
|
||||||
gemini -p "
|
ccw cli exec "
|
||||||
PURPOSE: Identify conflict patterns from workflow sessions
|
PURPOSE: Identify conflict patterns from workflow sessions
|
||||||
TASK:
|
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
|
||||||
• 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
|
MODE: analysis
|
||||||
CONTEXT: @.workflow/.archives/*/IMPL_PLAN.md @.workflow/.archives/manifest.json
|
CONTEXT: @.workflow/.archives/*/IMPL_PLAN.md @.workflow/.archives/manifest.json
|
||||||
EXPECTED: Conflict patterns with frequency and resolution
|
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**:
|
**Pattern Grouping**:
|
||||||
|
|||||||
@@ -62,22 +62,18 @@ Aggregate lessons learned from workflow sessions, categorized by functional doma
|
|||||||
- Lessons: `manifest.json` -> `archives[].lessons.{successes|challenges|watch_patterns}`
|
- Lessons: `manifest.json` -> `archives[].lessons.{successes|challenges|watch_patterns}`
|
||||||
- Session metadata: `.workflow/.archives/{session_id}/workflow-session.json`
|
- Session metadata: `.workflow/.archives/{session_id}/workflow-session.json`
|
||||||
|
|
||||||
## Aggregation Rules (Use Gemini CLI)
|
## Aggregation Rules (Use CCW CLI)
|
||||||
|
|
||||||
**Command Pattern**:
|
**Command Pattern**:
|
||||||
```bash
|
```bash
|
||||||
gemini -p "
|
ccw cli exec "
|
||||||
PURPOSE: Aggregate workflow lessons from session data
|
PURPOSE: Aggregate workflow lessons from session data
|
||||||
TASK:
|
TASK: • Group successes by functional domain • Categorize challenges by severity (HIGH/MEDIUM/LOW) • Identify watch patterns with frequency >= 2 • Mark CRITICAL patterns (3+ sessions)
|
||||||
• 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
|
MODE: analysis
|
||||||
CONTEXT: @.workflow/.archives/manifest.json
|
CONTEXT: @.workflow/.archives/manifest.json
|
||||||
EXPECTED: Aggregated lessons with frequency counts
|
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**:
|
**Severity Classification**:
|
||||||
|
|||||||
@@ -26,15 +26,15 @@ type: search-guideline
|
|||||||
## 🔧 Quick Command Reference
|
## 🔧 Quick Command Reference
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Semantic File Discovery (codebase-retrieval)
|
# Semantic File Discovery (codebase-retrieval via CCW)
|
||||||
cd [directory] && gemini -p "
|
ccw cli exec "
|
||||||
PURPOSE: Discover files relevant to task/feature
|
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
|
MODE: analysis
|
||||||
CONTEXT: @**/*
|
CONTEXT: @**/*
|
||||||
EXPECTED: Relevant file paths with relevance explanation
|
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)
|
# Program Architecture (MANDATORY before planning)
|
||||||
ccw tool exec get_modules_by_depth '{}'
|
ccw tool exec get_modules_by_depth '{}'
|
||||||
|
|||||||
Reference in New Issue
Block a user