claude-code-workflow 6.3.4 → 6.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/agents/issue-plan-agent.md +859 -0
- package/.claude/agents/issue-queue-agent.md +702 -0
- package/.claude/commands/issue/execute.md +453 -0
- package/.claude/commands/issue/manage.md +865 -0
- package/.claude/commands/issue/new.md +484 -0
- package/.claude/commands/issue/plan.md +421 -0
- package/.claude/commands/issue/queue.md +354 -0
- package/.claude/commands/{clean.md → workflow/clean.md} +5 -5
- package/.claude/commands/workflow/docs/analyze.md +1467 -0
- package/.claude/commands/workflow/docs/copyright.md +1265 -0
- package/.claude/commands/workflow/execute.md +0 -1
- package/.claude/commands/workflow/tools/conflict-resolution.md +76 -240
- package/.claude/commands/workflow/tools/context-gather.md +0 -2
- package/.claude/commands/workflow/tools/task-generate-agent.md +81 -8
- package/.claude/commands/workflow/tools/task-generate-tdd.md +0 -9
- package/.claude/commands/workflow/tools/test-context-gather.md +2 -3
- package/.claude/commands/workflow/tools/test-task-generate.md +0 -2
- package/.claude/skills/_shared/mermaid-utils.md +584 -0
- package/.claude/skills/command-guide/reference/agents/action-planning-agent.md +0 -2
- package/.claude/skills/command-guide/reference/commands/workflow/execute.md +1 -1
- package/.claude/skills/command-guide/reference/commands/workflow/tools/context-gather.md +1 -2
- package/.claude/skills/command-guide/reference/commands/workflow/tools/task-generate-tdd.md +1 -8
- package/.claude/skills/command-guide/reference/commands/workflow/tools/test-context-gather.md +1 -4
- package/.claude/skills/command-guide/reference/commands/workflow/tools/test-task-generate.md +0 -2
- package/.claude/skills/copyright-docs/SKILL.md +132 -0
- package/.claude/skills/copyright-docs/phases/01-metadata-collection.md +78 -0
- package/.claude/skills/copyright-docs/phases/01.5-project-exploration.md +150 -0
- package/.claude/skills/copyright-docs/phases/02-deep-analysis.md +664 -0
- package/.claude/skills/copyright-docs/phases/02.5-consolidation.md +192 -0
- package/.claude/skills/copyright-docs/phases/04-document-assembly.md +261 -0
- package/.claude/skills/copyright-docs/phases/05-compliance-refinement.md +192 -0
- package/.claude/skills/copyright-docs/specs/cpcc-requirements.md +121 -0
- package/.claude/skills/copyright-docs/templates/agent-base.md +200 -0
- package/.claude/skills/project-analyze/SKILL.md +162 -0
- package/.claude/skills/project-analyze/phases/01-requirements-discovery.md +79 -0
- package/.claude/skills/project-analyze/phases/02-project-exploration.md +176 -0
- package/.claude/skills/project-analyze/phases/03-deep-analysis.md +854 -0
- package/.claude/skills/project-analyze/phases/03.5-consolidation.md +233 -0
- package/.claude/skills/project-analyze/phases/04-report-generation.md +217 -0
- package/.claude/skills/project-analyze/phases/05-iterative-refinement.md +124 -0
- package/.claude/skills/project-analyze/specs/quality-standards.md +115 -0
- package/.claude/skills/project-analyze/specs/writing-style.md +152 -0
- package/.claude/workflows/cli-templates/schemas/conflict-resolution-schema.json +79 -65
- package/.claude/workflows/cli-templates/schemas/issue-task-jsonl-schema.json +136 -0
- package/.claude/workflows/cli-templates/schemas/issues-jsonl-schema.json +74 -0
- package/.claude/workflows/cli-templates/schemas/queue-schema.json +136 -0
- package/.claude/workflows/cli-templates/schemas/registry-schema.json +94 -0
- package/.claude/workflows/cli-templates/schemas/solution-schema.json +120 -0
- package/.claude/workflows/cli-templates/schemas/solutions-jsonl-schema.json +125 -0
- package/.codex/prompts/issue-execute.md +266 -0
- package/README.md +11 -1
- package/ccw/dist/cli.d.ts.map +1 -1
- package/ccw/dist/cli.js +25 -0
- package/ccw/dist/cli.js.map +1 -1
- package/ccw/dist/commands/cli.d.ts.map +1 -1
- package/ccw/dist/commands/cli.js +46 -8
- package/ccw/dist/commands/cli.js.map +1 -1
- package/ccw/dist/commands/issue.d.ts +21 -0
- package/ccw/dist/commands/issue.d.ts.map +1 -0
- package/ccw/dist/commands/issue.js +895 -0
- package/ccw/dist/commands/issue.js.map +1 -0
- package/ccw/dist/core/dashboard-generator-patch.js +1 -0
- package/ccw/dist/core/dashboard-generator-patch.js.map +1 -1
- package/ccw/dist/core/routes/cli-routes.js +2 -2
- package/ccw/dist/core/routes/cli-routes.js.map +1 -1
- package/ccw/dist/core/routes/issue-routes.d.ts +34 -0
- package/ccw/dist/core/routes/issue-routes.d.ts.map +1 -0
- package/ccw/dist/core/routes/issue-routes.js +487 -0
- package/ccw/dist/core/routes/issue-routes.js.map +1 -0
- package/ccw/dist/core/server.d.ts.map +1 -1
- package/ccw/dist/core/server.js +17 -2
- package/ccw/dist/core/server.js.map +1 -1
- package/ccw/dist/tools/claude-cli-tools.d.ts +7 -3
- package/ccw/dist/tools/claude-cli-tools.d.ts.map +1 -1
- package/ccw/dist/tools/claude-cli-tools.js +31 -17
- package/ccw/dist/tools/claude-cli-tools.js.map +1 -1
- package/ccw/dist/tools/smart-search.d.ts +25 -0
- package/ccw/dist/tools/smart-search.d.ts.map +1 -1
- package/ccw/dist/tools/smart-search.js +121 -17
- package/ccw/dist/tools/smart-search.js.map +1 -1
- package/ccw/src/cli.ts +26 -0
- package/ccw/src/commands/cli.ts +49 -7
- package/ccw/src/commands/issue.ts +1184 -0
- package/ccw/src/core/dashboard-generator-patch.ts +1 -0
- package/ccw/src/core/routes/cli-routes.ts +3 -3
- package/ccw/src/core/routes/issue-routes.ts +559 -0
- package/ccw/src/core/server.ts +17 -2
- package/ccw/src/templates/dashboard-css/32-issue-manager.css +2544 -0
- package/ccw/src/templates/dashboard-css/33-cli-stream-viewer.css +467 -0
- package/ccw/src/templates/dashboard-js/components/cli-history.js +40 -13
- package/ccw/src/templates/dashboard-js/components/cli-status.js +26 -2
- package/ccw/src/templates/dashboard-js/components/cli-stream-viewer.js +461 -0
- package/ccw/src/templates/dashboard-js/components/navigation.js +8 -0
- package/ccw/src/templates/dashboard-js/components/notifications.js +16 -0
- package/ccw/src/templates/dashboard-js/i18n.js +290 -2
- package/ccw/src/templates/dashboard-js/views/cli-manager.js +5 -0
- package/ccw/src/templates/dashboard-js/views/history.js +19 -4
- package/ccw/src/templates/dashboard-js/views/hook-manager.js +11 -5
- package/ccw/src/templates/dashboard-js/views/issue-manager.js +1546 -0
- package/ccw/src/templates/dashboard.html +55 -0
- package/ccw/src/tools/claude-cli-tools.ts +37 -20
- package/ccw/src/tools/smart-search.ts +157 -16
- package/codex-lens/src/codexlens/__pycache__/config.cpython-313.pyc +0 -0
- package/codex-lens/src/codexlens/config.py +5 -0
- package/codex-lens/src/codexlens/search/__pycache__/hybrid_search.cpython-313.pyc +0 -0
- package/codex-lens/src/codexlens/search/__pycache__/ranking.cpython-313.pyc +0 -0
- package/codex-lens/src/codexlens/search/hybrid_search.py +144 -11
- package/codex-lens/src/codexlens/search/ranking.py +267 -1
- package/codex-lens/src/codexlens/semantic/__pycache__/chunker.cpython-313.pyc +0 -0
- package/codex-lens/src/codexlens/semantic/chunker.py +55 -10
- package/package.json +2 -2
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
# Phase 2: Project Exploration
|
|
2
|
+
|
|
3
|
+
Launch parallel exploration agents based on report type and task context.
|
|
4
|
+
|
|
5
|
+
## Execution
|
|
6
|
+
|
|
7
|
+
### Step 1: Intelligent Angle Selection
|
|
8
|
+
|
|
9
|
+
```javascript
|
|
10
|
+
// Angle presets based on report type (adapted from lite-plan.md)
|
|
11
|
+
const ANGLE_PRESETS = {
|
|
12
|
+
architecture: ['layer-structure', 'module-dependencies', 'entry-points', 'data-flow'],
|
|
13
|
+
design: ['design-patterns', 'class-relationships', 'interface-contracts', 'state-management'],
|
|
14
|
+
methods: ['core-algorithms', 'critical-paths', 'public-apis', 'complex-logic'],
|
|
15
|
+
comprehensive: ['architecture', 'patterns', 'dependencies', 'integration-points']
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
// Depth-based angle count
|
|
19
|
+
const angleCount = {
|
|
20
|
+
shallow: 2,
|
|
21
|
+
standard: 3,
|
|
22
|
+
deep: 4
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
function selectAngles(reportType, depth) {
|
|
26
|
+
const preset = ANGLE_PRESETS[reportType] || ANGLE_PRESETS.comprehensive;
|
|
27
|
+
const count = angleCount[depth] || 3;
|
|
28
|
+
return preset.slice(0, count);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
const selectedAngles = selectAngles(config.type, config.depth);
|
|
32
|
+
|
|
33
|
+
console.log(`
|
|
34
|
+
## Exploration Plan
|
|
35
|
+
|
|
36
|
+
Report Type: ${config.type}
|
|
37
|
+
Depth: ${config.depth}
|
|
38
|
+
Selected Angles: ${selectedAngles.join(', ')}
|
|
39
|
+
|
|
40
|
+
Launching ${selectedAngles.length} parallel explorations...
|
|
41
|
+
`);
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
### Step 2: Launch Parallel Agents (Direct Output)
|
|
45
|
+
|
|
46
|
+
**⚠️ CRITICAL**: Agents write output files directly. No aggregation needed.
|
|
47
|
+
|
|
48
|
+
```javascript
|
|
49
|
+
// Launch agents with pre-assigned angles
|
|
50
|
+
const explorationTasks = selectedAngles.map((angle, index) =>
|
|
51
|
+
Task({
|
|
52
|
+
subagent_type: "cli-explore-agent",
|
|
53
|
+
run_in_background: false, // ⚠️ MANDATORY: Must wait for results
|
|
54
|
+
description: `Explore: ${angle}`,
|
|
55
|
+
prompt: `
|
|
56
|
+
## Exploration Objective
|
|
57
|
+
Execute **${angle}** exploration for ${config.type} project analysis report.
|
|
58
|
+
|
|
59
|
+
## Assigned Context
|
|
60
|
+
- **Exploration Angle**: ${angle}
|
|
61
|
+
- **Report Type**: ${config.type}
|
|
62
|
+
- **Depth**: ${config.depth}
|
|
63
|
+
- **Scope**: ${config.scope}
|
|
64
|
+
- **Exploration Index**: ${index + 1} of ${selectedAngles.length}
|
|
65
|
+
- **Output File**: ${sessionFolder}/exploration-${angle}.json
|
|
66
|
+
|
|
67
|
+
## MANDATORY FIRST STEPS (Execute by Agent)
|
|
68
|
+
**You (cli-explore-agent) MUST execute these steps in order:**
|
|
69
|
+
1. Run: ccw tool exec get_modules_by_depth '{}' (project structure)
|
|
70
|
+
2. Run: rg -l "{relevant_keyword}" --type ts (locate relevant files)
|
|
71
|
+
3. Analyze project from ${angle} perspective
|
|
72
|
+
|
|
73
|
+
## Exploration Strategy (${angle} focus)
|
|
74
|
+
|
|
75
|
+
**Step 1: Structural Scan** (Bash)
|
|
76
|
+
- get_modules_by_depth.sh → identify modules related to ${angle}
|
|
77
|
+
- find/rg → locate files relevant to ${angle} aspect
|
|
78
|
+
- Analyze imports/dependencies from ${angle} perspective
|
|
79
|
+
|
|
80
|
+
**Step 2: Semantic Analysis** (Gemini/Qwen CLI)
|
|
81
|
+
- How does existing code handle ${angle} concerns?
|
|
82
|
+
- What patterns are used for ${angle}?
|
|
83
|
+
- Identify key architectural decisions related to ${angle}
|
|
84
|
+
|
|
85
|
+
**Step 3: Write Output Directly**
|
|
86
|
+
- Consolidate ${angle} findings into JSON
|
|
87
|
+
- Write to output file path specified above
|
|
88
|
+
|
|
89
|
+
## Expected Output Schema
|
|
90
|
+
|
|
91
|
+
**File**: ${sessionFolder}/exploration-${angle}.json
|
|
92
|
+
|
|
93
|
+
\`\`\`json
|
|
94
|
+
{
|
|
95
|
+
"angle": "${angle}",
|
|
96
|
+
"findings": {
|
|
97
|
+
"structure": [
|
|
98
|
+
{ "component": "...", "type": "module|layer|service", "description": "..." }
|
|
99
|
+
],
|
|
100
|
+
"patterns": [
|
|
101
|
+
{ "name": "...", "usage": "...", "files": ["path1", "path2"] }
|
|
102
|
+
],
|
|
103
|
+
"relationships": [
|
|
104
|
+
{ "from": "...", "to": "...", "type": "depends|imports|calls", "strength": "high|medium|low" }
|
|
105
|
+
],
|
|
106
|
+
"key_files": [
|
|
107
|
+
{ "path": "src/file.ts", "relevance": 0.85, "rationale": "Core ${angle} logic" }
|
|
108
|
+
]
|
|
109
|
+
},
|
|
110
|
+
"insights": [
|
|
111
|
+
{ "observation": "...", "impact": "high|medium|low", "recommendation": "..." }
|
|
112
|
+
],
|
|
113
|
+
"_metadata": {
|
|
114
|
+
"exploration_angle": "${angle}",
|
|
115
|
+
"exploration_index": ${index + 1},
|
|
116
|
+
"report_type": "${config.type}",
|
|
117
|
+
"timestamp": "ISO8601"
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
\`\`\`
|
|
121
|
+
|
|
122
|
+
## Success Criteria
|
|
123
|
+
- [ ] get_modules_by_depth.sh executed
|
|
124
|
+
- [ ] At least 3 relevant files identified with ${angle} rationale
|
|
125
|
+
- [ ] Patterns are actionable (code examples, not generic advice)
|
|
126
|
+
- [ ] Relationships include concrete file references
|
|
127
|
+
- [ ] JSON output written to ${sessionFolder}/exploration-${angle}.json
|
|
128
|
+
- [ ] Return: 2-3 sentence summary of ${angle} findings
|
|
129
|
+
`
|
|
130
|
+
})
|
|
131
|
+
);
|
|
132
|
+
|
|
133
|
+
// Execute all exploration tasks in parallel
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
## Output
|
|
137
|
+
|
|
138
|
+
Session folder structure after exploration:
|
|
139
|
+
|
|
140
|
+
```
|
|
141
|
+
${sessionFolder}/
|
|
142
|
+
├── exploration-{angle1}.json # Agent 1 direct output
|
|
143
|
+
├── exploration-{angle2}.json # Agent 2 direct output
|
|
144
|
+
├── exploration-{angle3}.json # Agent 3 direct output (if applicable)
|
|
145
|
+
└── exploration-{angle4}.json # Agent 4 direct output (if applicable)
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
## Downstream Usage (Phase 3 Analysis Input)
|
|
149
|
+
|
|
150
|
+
Subsequent analysis phases MUST read exploration outputs as input:
|
|
151
|
+
|
|
152
|
+
```javascript
|
|
153
|
+
// Discover exploration files by known angle pattern
|
|
154
|
+
const explorationData = {};
|
|
155
|
+
selectedAngles.forEach(angle => {
|
|
156
|
+
const filePath = `${sessionFolder}/exploration-${angle}.json`;
|
|
157
|
+
explorationData[angle] = JSON.parse(Read(filePath));
|
|
158
|
+
});
|
|
159
|
+
|
|
160
|
+
// Pass to analysis agent
|
|
161
|
+
Task({
|
|
162
|
+
subagent_type: "analysis-agent",
|
|
163
|
+
prompt: `
|
|
164
|
+
## Analysis Input
|
|
165
|
+
|
|
166
|
+
### Exploration Data by Angle
|
|
167
|
+
${Object.entries(explorationData).map(([angle, data]) => `
|
|
168
|
+
#### ${angle}
|
|
169
|
+
${JSON.stringify(data, null, 2)}
|
|
170
|
+
`).join('\n')}
|
|
171
|
+
|
|
172
|
+
## Analysis Task
|
|
173
|
+
Synthesize findings from all exploration angles...
|
|
174
|
+
`
|
|
175
|
+
});
|
|
176
|
+
```
|