claude-code-workflow 7.2.30 → 7.3.0

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.
Files changed (183) hide show
  1. package/.claude/commands/workflow-skill.md +130 -0
  2. package/.claude/skills/ccw-chain/SKILL.md +44 -71
  3. package/.claude/skills/ccw-chain/chains/ccw-cycle.json +13 -3
  4. package/.claude/skills/ccw-chain/chains/ccw-exploration.json +33 -22
  5. package/.claude/skills/ccw-chain/chains/ccw-issue.json +23 -12
  6. package/.claude/skills/ccw-chain/chains/ccw-lightweight.json +23 -9
  7. package/.claude/skills/ccw-chain/chains/ccw-main.json +15 -2
  8. package/.claude/skills/ccw-chain/chains/ccw-standard.json +28 -16
  9. package/.claude/skills/ccw-chain/chains/ccw-team.json +7 -2
  10. package/.claude/skills/ccw-chain/chains/ccw-with-file.json +25 -9
  11. package/.claude/skills/chain-loader/phases/01-analyze-skill.md +53 -53
  12. package/.claude/skills/chain-loader/specs/chain-schema.md +30 -3
  13. package/.claude/skills/chain-loader/templates/chain-json.md +63 -63
  14. package/.claude/skills/workflow-plan/SKILL.md +1 -0
  15. package/.claude/skills/workflow-plan/phases/01-session-discovery.md +19 -2
  16. package/.claude/skills/workflow-plan/phases/02-context-gathering.md +2 -2
  17. package/.claude/skills/workflow-plan/phases/04-task-generation.md +9 -1
  18. package/.codex/skills/analyze-with-file/SKILL.md +383 -134
  19. package/.codex/skills/brainstorm/SKILL.md +3 -3
  20. package/.codex/skills/brainstorm-with-file/SKILL.md +208 -88
  21. package/.codex/skills/clean/SKILL.md +1 -1
  22. package/.codex/skills/csv-wave-pipeline/SKILL.md +2 -2
  23. package/.codex/skills/investigate/orchestrator.md +24 -0
  24. package/.codex/skills/issue-discover/SKILL.md +374 -361
  25. package/.codex/skills/issue-discover/phases/01-issue-new.md +1 -1
  26. package/.codex/skills/issue-discover/phases/02-discover.md +2 -2
  27. package/.codex/skills/issue-discover/phases/03-discover-by-prompt.md +1 -1
  28. package/.codex/skills/issue-discover/phases/04-quick-execute.md +2 -2
  29. package/.codex/skills/parallel-dev-cycle/SKILL.md +44 -37
  30. package/.codex/skills/project-documentation-workflow/SKILL.md +1 -1
  31. package/.codex/skills/review-cycle/SKILL.md +31 -12
  32. package/.codex/skills/roadmap-with-file/SKILL.md +141 -133
  33. package/.codex/skills/security-audit/orchestrator.md +29 -0
  34. package/.codex/skills/session-sync/SKILL.md +1 -1
  35. package/.codex/skills/ship/orchestrator.md +24 -0
  36. package/.codex/skills/spec-add/SKILL.md +5 -5
  37. package/.codex/skills/spec-generator/SKILL.md +33 -2
  38. package/.codex/skills/spec-generator/phases/01-5-requirement-clarification.md +3 -3
  39. package/.codex/skills/spec-generator/phases/01-discovery.md +1 -1
  40. package/.codex/skills/spec-generator/phases/02-product-brief.md +1 -1
  41. package/.codex/skills/spec-generator/phases/03-requirements.md +1 -1
  42. package/.codex/skills/spec-generator/phases/04-architecture.md +1 -1
  43. package/.codex/skills/spec-generator/phases/05-epics-stories.md +1 -1
  44. package/.codex/skills/spec-generator/phases/06-readiness-check.md +1 -1
  45. package/.codex/skills/spec-generator/phases/07-issue-export.md +1 -1
  46. package/.codex/skills/spec-setup/SKILL.md +669 -669
  47. package/.codex/skills/team-arch-opt/specs/team-config.json +1 -1
  48. package/.codex/skills/team-brainstorm/SKILL.md +259 -259
  49. package/.codex/skills/team-coordinate/SKILL.md +359 -359
  50. package/.codex/skills/team-coordinate/roles/coordinator/commands/monitor.md +1 -1
  51. package/.codex/skills/team-designer/SKILL.md +27 -1
  52. package/.codex/skills/team-designer/phases/01-requirements-analysis.md +2 -2
  53. package/.codex/skills/team-designer/phases/02-scaffold-generation.md +1 -1
  54. package/.codex/skills/team-designer/phases/04-validation.md +1 -1
  55. package/.codex/skills/team-executor/SKILL.md +218 -218
  56. package/.codex/skills/team-frontend/SKILL.md +227 -227
  57. package/.codex/skills/team-frontend-debug/SKILL.md +278 -278
  58. package/.codex/skills/team-frontend-debug/roles/coordinator/commands/analyze.md +2 -2
  59. package/.codex/skills/team-interactive-craft/SKILL.md +220 -220
  60. package/.codex/skills/team-interactive-craft/roles/coordinator/role.md +209 -209
  61. package/.codex/skills/team-issue/SKILL.md +269 -269
  62. package/.codex/skills/team-issue/roles/coordinator/role.md +1 -1
  63. package/.codex/skills/team-lifecycle-v4/SKILL.md +305 -305
  64. package/.codex/skills/team-motion-design/SKILL.md +222 -222
  65. package/.codex/skills/team-motion-design/roles/coordinator/role.md +210 -210
  66. package/.codex/skills/team-perf-opt/SKILL.md +258 -258
  67. package/.codex/skills/team-perf-opt/specs/team-config.json +1 -1
  68. package/.codex/skills/team-planex/SKILL.md +216 -216
  69. package/.codex/skills/team-quality-assurance/SKILL.md +229 -229
  70. package/.codex/skills/team-review/SKILL.md +227 -227
  71. package/.codex/skills/team-roadmap-dev/SKILL.md +238 -238
  72. package/.codex/skills/team-roadmap-dev/roles/coordinator/commands/roadmap-discuss.md +5 -5
  73. package/.codex/skills/team-tech-debt/SKILL.md +206 -206
  74. package/.codex/skills/team-tech-debt/roles/coordinator/commands/monitor.md +1 -1
  75. package/.codex/skills/team-testing/SKILL.md +237 -237
  76. package/.codex/skills/team-ui-polish/SKILL.md +218 -218
  77. package/.codex/skills/team-ui-polish/roles/coordinator/role.md +213 -213
  78. package/.codex/skills/team-uidesign/SKILL.md +219 -219
  79. package/.codex/skills/team-uidesign/roles/coordinator/role.md +2 -2
  80. package/.codex/skills/team-ultra-analyze/SKILL.md +260 -260
  81. package/.codex/skills/team-ultra-analyze/roles/coordinator/commands/monitor.md +1 -1
  82. package/.codex/skills/team-ultra-analyze/roles/coordinator/role.md +1 -1
  83. package/.codex/skills/team-ux-improve/SKILL.md +227 -227
  84. package/.codex/skills/team-ux-improve/roles/coordinator/role.md +1 -1
  85. package/.codex/skills/team-ux-improve/specs/team-config.json +1 -1
  86. package/.codex/skills/team-visual-a11y/SKILL.md +319 -319
  87. package/.codex/skills/team-visual-a11y/roles/coordinator/role.md +213 -213
  88. package/.codex/skills/workflow-execute/SKILL.md +5 -5
  89. package/.codex/skills/workflow-lite-planex/SKILL.md +3 -3
  90. package/.codex/skills/workflow-plan/SKILL.md +3 -3
  91. package/.codex/skills/workflow-tdd-plan/SKILL.md +4 -4
  92. package/.codex/skills/workflow-test-fix-cycle/SKILL.md +403 -402
  93. package/ccw/dist/cli.d.ts.map +1 -1
  94. package/ccw/dist/cli.js +16 -0
  95. package/ccw/dist/cli.js.map +1 -1
  96. package/ccw/dist/commands/chain-loader.d.ts +2 -0
  97. package/ccw/dist/commands/chain-loader.d.ts.map +1 -0
  98. package/ccw/dist/commands/chain-loader.js +11 -0
  99. package/ccw/dist/commands/chain-loader.js.map +1 -0
  100. package/ccw/dist/commands/install.d.ts.map +1 -1
  101. package/ccw/dist/commands/install.js +52 -1
  102. package/ccw/dist/commands/install.js.map +1 -1
  103. package/ccw/dist/commands/launcher.d.ts +2 -0
  104. package/ccw/dist/commands/launcher.d.ts.map +1 -0
  105. package/ccw/dist/commands/launcher.js +434 -0
  106. package/ccw/dist/commands/launcher.js.map +1 -0
  107. package/ccw/dist/tools/chain-loader.d.ts.map +1 -1
  108. package/ccw/dist/tools/chain-loader.js +457 -45
  109. package/ccw/dist/tools/chain-loader.js.map +1 -1
  110. package/ccw/dist/tools/skill-context-loader.d.ts.map +1 -1
  111. package/ccw/dist/tools/skill-context-loader.js +12 -26
  112. package/ccw/dist/tools/skill-context-loader.js.map +1 -1
  113. package/ccw/dist/types/chain-types.d.ts +41 -1
  114. package/ccw/dist/types/chain-types.d.ts.map +1 -1
  115. package/ccw/dist/utils/chain-visualizer.d.ts +13 -0
  116. package/ccw/dist/utils/chain-visualizer.d.ts.map +1 -0
  117. package/ccw/dist/utils/chain-visualizer.js +164 -0
  118. package/ccw/dist/utils/chain-visualizer.js.map +1 -0
  119. package/package.json +1 -1
  120. package/.claude/commands/cli/cli-init.md +0 -441
  121. package/.claude/commands/cli/codex-review.md +0 -361
  122. package/.claude/commands/flow-create.md +0 -663
  123. package/.claude/skills/ccw-chain/phases/analyze-with-file.md +0 -788
  124. package/.claude/skills/ccw-chain/phases/brainstorm/SKILL.md +0 -408
  125. package/.claude/skills/ccw-chain/phases/brainstorm/phases/01-mode-routing.md +0 -207
  126. package/.claude/skills/ccw-chain/phases/brainstorm/phases/02-artifacts.md +0 -567
  127. package/.claude/skills/ccw-chain/phases/brainstorm/phases/03-role-analysis.md +0 -748
  128. package/.claude/skills/ccw-chain/phases/brainstorm/phases/04-synthesis.md +0 -827
  129. package/.claude/skills/ccw-chain/phases/brainstorm-with-file.md +0 -482
  130. package/.claude/skills/ccw-chain/phases/collaborative-plan-with-file.md +0 -639
  131. package/.claude/skills/ccw-chain/phases/debug-with-file.md +0 -656
  132. package/.claude/skills/ccw-chain/phases/integration-test-cycle.md +0 -936
  133. package/.claude/skills/ccw-chain/phases/issue-convert-to-plan.md +0 -720
  134. package/.claude/skills/ccw-chain/phases/issue-discover.md +0 -483
  135. package/.claude/skills/ccw-chain/phases/issue-execute.md +0 -629
  136. package/.claude/skills/ccw-chain/phases/issue-from-brainstorm.md +0 -382
  137. package/.claude/skills/ccw-chain/phases/issue-plan.md +0 -343
  138. package/.claude/skills/ccw-chain/phases/issue-queue.md +0 -464
  139. package/.claude/skills/ccw-chain/phases/refactor-cycle.md +0 -852
  140. package/.claude/skills/ccw-chain/phases/review-cycle/SKILL.md +0 -132
  141. package/.claude/skills/ccw-chain/phases/review-cycle/phases/review-fix.md +0 -760
  142. package/.claude/skills/ccw-chain/phases/review-cycle/phases/review-module.md +0 -764
  143. package/.claude/skills/ccw-chain/phases/review-cycle/phases/review-session.md +0 -775
  144. package/.claude/skills/ccw-chain/phases/roadmap-with-file.md +0 -544
  145. package/.claude/skills/ccw-chain/phases/spec-generator/SKILL.md +0 -338
  146. package/.claude/skills/ccw-chain/phases/spec-generator/phases/01-5-requirement-clarification.md +0 -404
  147. package/.claude/skills/ccw-chain/phases/spec-generator/phases/01-discovery.md +0 -257
  148. package/.claude/skills/ccw-chain/phases/spec-generator/phases/02-product-brief.md +0 -274
  149. package/.claude/skills/ccw-chain/phases/spec-generator/phases/03-requirements.md +0 -184
  150. package/.claude/skills/ccw-chain/phases/spec-generator/phases/04-architecture.md +0 -248
  151. package/.claude/skills/ccw-chain/phases/spec-generator/phases/05-epics-stories.md +0 -178
  152. package/.claude/skills/ccw-chain/phases/spec-generator/phases/06-5-auto-fix.md +0 -144
  153. package/.claude/skills/ccw-chain/phases/spec-generator/phases/06-readiness-check.md +0 -480
  154. package/.claude/skills/ccw-chain/phases/team-planex.md +0 -123
  155. package/.claude/skills/ccw-chain/phases/ui-design-explore-auto.md +0 -678
  156. package/.claude/skills/ccw-chain/phases/unified-execute-with-file.md +0 -870
  157. package/.claude/skills/ccw-chain/phases/workflow-execute/SKILL.md +0 -625
  158. package/.claude/skills/ccw-chain/phases/workflow-execute/phases/06-review.md +0 -215
  159. package/.claude/skills/ccw-chain/phases/workflow-lite-plan.md +0 -616
  160. package/.claude/skills/ccw-chain/phases/workflow-multi-cli-plan.md +0 -424
  161. package/.claude/skills/ccw-chain/phases/workflow-plan/SKILL.md +0 -466
  162. package/.claude/skills/ccw-chain/phases/workflow-plan/phases/01-session-discovery.md +0 -99
  163. package/.claude/skills/ccw-chain/phases/workflow-plan/phases/02-context-gathering.md +0 -338
  164. package/.claude/skills/ccw-chain/phases/workflow-plan/phases/03-conflict-resolution.md +0 -422
  165. package/.claude/skills/ccw-chain/phases/workflow-plan/phases/04-task-generation.md +0 -440
  166. package/.claude/skills/ccw-chain/phases/workflow-plan/phases/05-plan-verify.md +0 -395
  167. package/.claude/skills/ccw-chain/phases/workflow-plan/phases/06-replan.md +0 -594
  168. package/.claude/skills/ccw-chain/phases/workflow-tdd-plan/SKILL.md +0 -527
  169. package/.claude/skills/ccw-chain/phases/workflow-tdd-plan/phases/01-session-discovery.md +0 -57
  170. package/.claude/skills/ccw-chain/phases/workflow-tdd-plan/phases/02-context-gathering.md +0 -407
  171. package/.claude/skills/ccw-chain/phases/workflow-tdd-plan/phases/03-test-coverage-analysis.md +0 -172
  172. package/.claude/skills/ccw-chain/phases/workflow-tdd-plan/phases/04-conflict-resolution.md +0 -426
  173. package/.claude/skills/ccw-chain/phases/workflow-tdd-plan/phases/05-tdd-task-generation.md +0 -473
  174. package/.claude/skills/ccw-chain/phases/workflow-tdd-plan/phases/06-tdd-structure-validation.md +0 -189
  175. package/.claude/skills/ccw-chain/phases/workflow-tdd-plan/phases/07-tdd-verify.md +0 -635
  176. package/.claude/skills/ccw-chain/phases/workflow-test-fix/SKILL.md +0 -482
  177. package/.claude/skills/ccw-chain/phases/workflow-test-fix/phases/01-session-start.md +0 -60
  178. package/.claude/skills/ccw-chain/phases/workflow-test-fix/phases/02-test-context-gather.md +0 -493
  179. package/.claude/skills/ccw-chain/phases/workflow-test-fix/phases/03-test-concept-enhanced.md +0 -150
  180. package/.claude/skills/ccw-chain/phases/workflow-test-fix/phases/04-test-task-generate.md +0 -346
  181. package/.claude/skills/ccw-chain/phases/workflow-test-fix/phases/05-test-cycle-execute.md +0 -538
  182. package/.claude/skills/ccw-chain/specs/intent-patterns.md +0 -60
  183. package/.claude/skills/team-edict.zip +0 -0
@@ -1,361 +1,374 @@
1
- ---
2
- name: issue-discover
3
- description: "Unified issue discovery and creation. Create issues from GitHub/text, discover issues via multi-perspective analysis, or prompt-driven iterative exploration. Triggers on \"issue:new\", \"issue:discover\", \"issue:discover-by-prompt\", \"create issue\", \"discover issues\", \"find issues\"."
4
- allowed-tools: spawn_agent, wait_agent, send_message, assign_task, close_agent, request_user_input, Read, Write, Edit, Bash, Glob, Grep, mcp__ace-tool__search_context, mcp__exa__search
5
- ---
6
-
7
- # Issue Discover
8
-
9
- Unified issue discovery and creation skill covering three entry points: manual issue creation, perspective-based discovery, and prompt-driven exploration.
10
-
11
- ## Architecture Overview
12
-
13
- ```
14
- ┌─────────────────────────────────────────────────────────────────┐
15
- │ Issue Discover Orchestrator (SKILL.md) │
16
- │ → Action selection → Route to phase → Execute → Summary │
17
- └───────────────┬─────────────────────────────────────────────────┘
18
-
19
- ├─ request_user_input: Select action
20
-
21
- ┌───────────┼───────────┬───────────┐
22
- ↓ ↓ ↓ │
23
- ┌─────────┐ ┌─────────┐ ┌─────────┐ │
24
- │ Phase 1 │ │ Phase 2 │ │ Phase 3 │ │
25
- │ Create │ │Discover │ │Discover │ │
26
- │ New │ │ Multi │ │by Prompt│ │
27
- └─────────┘ └─────────┘ └─────────┘ │
28
- ↓ ↓ ↓ │
29
- Issue Discoveries Discoveries │
30
- (registered) (export) (export) │
31
- │ │ │ │
32
- │ ├───────────┤ │
33
- │ ↓ │
34
- │ ┌───────────┐ │
35
- │ │ Phase 4 │ │
36
- │ │Quick Plan │ │
37
- │ │& Execute │ │
38
- │ └─────┬─────┘ │
39
- │ ↓ │
40
- │ .task/*.json │
41
- │ ↓ │
42
- │ Direct Execution │
43
- │ │ │
44
- └───────────┴──────────────────────┘
45
- ↓ (fallback/remaining)
46
- issue-resolve (plan/queue)
47
-
48
- /issue:execute
49
- ```
50
-
51
- ## Key Design Principles
52
-
53
- 1. **Action-Driven Routing**: request_user_input selects action, then load single phase
54
- 2. **Progressive Phase Loading**: Only read the selected phase document
55
- 3. **CLI-First Data Access**: All issue CRUD via `ccw issue` CLI commands
56
- 4. **Auto Mode Support**: `-y` flag skips action selection with auto-detection
57
- 5. **Subagent Lifecycle**: Explicit lifecycle management with spawn_agent → wait_agent → close_agent
58
- 6. **Role Path Loading**: Subagent roles loaded via path reference in MANDATORY FIRST STEPS
59
-
60
- ## Auto Mode
61
-
62
- When `--yes` or `-y`: Skip action selection, auto-detect action from input type.
63
-
64
- ## Usage
65
-
66
- ```
67
- issue-discover <input>
68
- issue-discover [FLAGS] "<input>"
69
-
70
- # Flags
71
- -y, --yes Skip all confirmations (auto mode)
72
- --action <type> Pre-select action: new|discover|discover-by-prompt
73
-
74
- # Phase-specific flags
75
- --priority <1-5> Issue priority (new mode)
76
- --perspectives <list> Comma-separated perspectives (discover mode)
77
- --external Enable Exa research (discover mode)
78
- --scope <pattern> File scope (discover/discover-by-prompt mode)
79
- --depth <level> standard|deep (discover-by-prompt mode)
80
- --max-iterations <n> Max exploration iterations (discover-by-prompt mode)
81
-
82
- # Examples
83
- issue-discover https://github.com/org/repo/issues/42 # Create from GitHub
84
- issue-discover "Login fails with special chars" # Create from text
85
- issue-discover --action discover src/auth/** # Multi-perspective discovery
86
- issue-discover --action discover src/api/** --perspectives=security,bug # Focused discovery
87
- issue-discover --action discover-by-prompt "Check API contracts" # Prompt-driven discovery
88
- issue-discover -y "auth broken" # Auto mode create
89
- ```
90
-
91
- ## Execution Flow
92
-
93
- ```
94
- Input Parsing:
95
- └─ Parse flags (--action, -y, --perspectives, etc.) and positional args
96
-
97
- Action Selection:
98
- ├─ --action flag provided → Route directly
99
- ├─ Auto-detect from input:
100
- │ ├─ GitHub URL or #number → Create New (Phase 1)
101
- │ ├─ Path pattern (src/**, *.ts) → Discover (Phase 2)
102
- │ ├─ Short text (< 80 chars) → Create New (Phase 1)
103
- │ └─ Long descriptive text (≥ 80 chars) → Discover by Prompt (Phase 3)
104
- └─ Otherwise → request_user_input to select action
105
-
106
- Phase Execution (load one phase):
107
- ├─ Phase 1: Create New → phases/01-issue-new.md
108
- ├─ Phase 2: Discover → phases/02-discover.md
109
- └─ Phase 3: Discover by Prompt → phases/03-discover-by-prompt.md
110
-
111
- Post-Phase:
112
- └─ Summary + Next steps recommendation
113
- ```
114
-
115
- ### Phase Reference Documents
116
-
117
- | Phase | Document | Load When | Purpose |
118
- |-------|----------|-----------|---------|
119
- | Phase 1 | [phases/01-issue-new.md](phases/01-issue-new.md) | Action = Create New | Create issue from GitHub URL or text description |
120
- | Phase 2 | [phases/02-discover.md](phases/02-discover.md) | Action = Discover | Multi-perspective issue discovery (bug, security, test, etc.) |
121
- | Phase 3 | [phases/03-discover-by-prompt.md](phases/03-discover-by-prompt.md) | Action = Discover by Prompt | Prompt-driven iterative exploration with Gemini planning |
122
- | Phase 4 | [phases/04-quick-execute.md](phases/04-quick-execute.md) | Post-Phase = Quick Plan & Execute | Convert high-confidence findings to tasks and execute directly |
123
-
124
- ## Core Rules
125
-
126
- 1. **Action Selection First**: Always determine action before loading any phase
127
- 2. **Single Phase Load**: Only read the selected phase document, never load all phases
128
- 3. **CLI Data Access**: Use `ccw issue` CLI for all issue operations, NEVER read files directly
129
- 4. **Content Preservation**: Each phase contains complete execution logic from original commands
130
- 5. **Auto-Detect Input**: Smart input parsing reduces need for explicit --action flag
131
- 6. **⚠️ CRITICAL: DO NOT STOP**: Continuous multi-phase workflow. After completing each phase, immediately proceed to next
132
- 7. **Progressive Phase Loading**: Read phase docs ONLY when that phase is about to execute
133
- 8. **Explicit Lifecycle**: Always close_agent after wait_agent completes to free resources
134
-
135
- ## Input Processing
136
-
137
- ### Auto-Detection Logic
138
-
139
- ```javascript
140
- function detectAction(input, flags) {
141
- // 1. Explicit --action flag
142
- if (flags.action) return flags.action;
143
-
144
- const trimmed = input.trim();
145
-
146
- // 2. GitHub URL → new
147
- if (trimmed.match(/github\.com\/[\w-]+\/[\w-]+\/issues\/\d+/) || trimmed.match(/^#\d+$/)) {
148
- return 'new';
149
- }
150
-
151
- // 3. Path pattern (contains **, /, or --perspectives) → discover
152
- if (trimmed.match(/\*\*/) || trimmed.match(/^src\//) || flags.perspectives) {
153
- return 'discover';
154
- }
155
-
156
- // 4. Short text (< 80 chars, no special patterns) → new
157
- if (trimmed.length > 0 && trimmed.length < 80 && !trimmed.includes('--')) {
158
- return 'new';
159
- }
160
-
161
- // 5. Long descriptive text → discover-by-prompt
162
- if (trimmed.length >= 80) {
163
- return 'discover-by-prompt';
164
- }
165
-
166
- // Cannot auto-detect → ask user
167
- return null;
168
- }
169
- ```
170
-
171
- ### Action Selection (request_user_input)
172
-
173
- ```javascript
174
- // When action cannot be auto-detected
175
- const answer = request_user_input({
176
- questions: [{
177
- header: "Action",
178
- id: "action",
179
- question: "What would you like to do?",
180
- options: [
181
- {
182
- label: "Create New Issue (Recommended)",
183
- description: "Create issue from GitHub URL, text description, or structured input"
184
- },
185
- {
186
- label: "Discover Issues",
187
- description: "Multi-perspective discovery: bug, security, test, quality, performance, etc."
188
- },
189
- {
190
- label: "Discover by Prompt",
191
- description: "Describe what to find — Gemini plans the exploration strategy iteratively"
192
- }
193
- ]
194
- }]
195
- }); // BLOCKS (wait for user response)
196
-
197
- // Route based on selection
198
- // answer.answers.action.answers[0] selected label
199
- const actionMap = {
200
- "Create New Issue (Recommended)": "new",
201
- "Discover Issues": "discover",
202
- "Discover by Prompt": "discover-by-prompt"
203
- };
204
- ```
205
-
206
- ## Data Flow
207
-
208
- ```
209
- User Input (URL / text / path pattern / descriptive prompt)
210
-
211
- [Parse Flags + Auto-Detect Action]
212
-
213
- [Action Selection] ← request_user_input (if needed)
214
-
215
- [Read Selected Phase Document]
216
-
217
- [Execute Phase Logic]
218
-
219
- [Summary + Next Steps]
220
- ├─ After Create → Suggest issue-resolve (plan solution)
221
- └─ After Discover Suggest export to issues, then issue-resolve
222
- ```
223
-
224
- ## Subagent API Reference
225
-
226
- ### spawn_agent
227
-
228
- Create a new subagent with task assignment.
229
-
230
- ```javascript
231
- const agentId = spawn_agent({
232
- agent_type: "{agent_type}",
233
- message: `
234
- ## TASK ASSIGNMENT
235
-
236
- ### MANDATORY FIRST STEPS (Agent Execute)
237
- 1. Execute: ccw spec load --category exploration
238
- 2. Execute: ccw spec load --category debug (known issues cross-reference)
239
-
240
- ## TASK CONTEXT
241
- ${taskContext}
242
-
243
- ## DELIVERABLES
244
- ${deliverables}
245
- `
246
- })
247
- ```
248
-
249
- ### wait_agent
250
-
251
- Get results from subagent (only way to retrieve results).
252
-
253
- ```javascript
254
- const result = wait_agent({
255
- targets: [agentId],
256
- timeout_ms: 600000 // 10 minutes
257
- })
258
-
259
- if (result.timed_out) {
260
- // Handle timeout - can use assign_task to prompt completion
261
- }
262
-
263
- // Check completion status
264
- if (result.status[agentId].completed) {
265
- const output = result.status[agentId].completed;
266
- }
267
- ```
268
-
269
- ### assign_task
270
-
271
- Assign new work to active subagent (for clarification or follow-up).
272
-
273
- ```javascript
274
- assign_task({
275
- target: agentId,
276
- items: [{ type: "text", text: `
277
- ## CLARIFICATION ANSWERS
278
- ${answers}
279
-
280
- ## NEXT STEP
281
- Continue with plan generation.
282
- ` }]
283
- })
284
- ```
285
-
286
- ### close_agent
287
-
288
- Clean up subagent resources (irreversible).
289
-
290
- ```javascript
291
- close_agent({ id: agentId })
292
- ```
293
-
294
- ## Core Guidelines
295
-
296
- **Data Access Principle**: Issues files can grow very large. To avoid context overflow:
297
-
298
- | Operation | Correct | Incorrect |
299
- |-----------|---------|-----------|
300
- | List issues (brief) | `ccw issue list --status pending --brief` | `Read('issues.jsonl')` |
301
- | Read issue details | `ccw issue status <id> --json` | `Read('issues.jsonl')` |
302
- | Create issue | `echo '...' \| ccw issue create` | Direct file write |
303
- | Update status | `ccw issue update <id> --status ...` | Direct file edit |
304
-
305
- **ALWAYS** use CLI commands for CRUD operations. **NEVER** read entire `issues.jsonl` directly.
306
-
307
- ## Error Handling
308
-
309
- | Error | Resolution |
310
- |-------|------------|
311
- | No action detected | Show request_user_input with all 3 options |
312
- | Invalid action type | Show available actions, re-prompt |
313
- | Phase execution fails | Report error, suggest manual intervention |
314
- | No files matched (discover) | Check target pattern, verify path exists |
315
- | Gemini planning failed (discover-by-prompt) | Retry with qwen fallback |
316
- | Agent lifecycle errors | Ensure close_agent in error paths to prevent resource leaks |
317
-
318
- ## Post-Phase Next Steps
319
-
320
- After successful phase execution, recommend next action:
321
-
322
- ```javascript
323
- // After Create New (issue created)
324
- request_user_input({
325
- questions: [{
326
- header: "Next Step",
327
- id: "next_after_create",
328
- question: "Issue created. What next?",
329
- options: [
330
- { label: "Plan Solution (Recommended)", description: "Generate solution via issue-resolve" },
331
- { label: "Create Another", description: "Create more issues" },
332
- { label: "Done", description: "Exit workflow" }
333
- ]
334
- }]
335
- }); // BLOCKS (wait for user response)
336
- // answer.answers.next_after_create.answers[0] → selected label
337
-
338
- // After Discover / Discover by Prompt (discoveries generated)
339
- request_user_input({
340
- questions: [{
341
- header: "Next Step",
342
- id: "next_after_discover",
343
- question: `Discovery complete: ${findings.length} findings, ${executableFindings.length} executable. What next?`,
344
- options: [
345
- { label: "Quick Plan & Execute (Recommended)", description: `Fix ${executableFindings.length} high-confidence findings directly` },
346
- { label: "Export to Issues", description: "Convert discoveries to issues" },
347
- { label: "Done", description: "Exit workflow" }
348
- ]
349
- }]
350
- }); // BLOCKS (wait for user response)
351
- // answer.answers.next_after_discover.answers[0] → selected label
352
- // If "Quick Plan & Execute (Recommended)" → Read phases/04-quick-execute.md, execute
353
- ```
354
-
355
- ## Related Skills & Commands
356
-
357
- - `issue-resolve` - Plan solutions, convert artifacts, form queues, from brainstorm
358
- - `issue-manage` - Interactive issue CRUD operations
359
- - `/issue:execute` - Execute queue with DAG-based parallel orchestration
360
- - `ccw issue list` - List all issues
361
- - `ccw issue status <id>` - View issue details
1
+ ---
2
+ name: issue-discover
3
+ description: "Unified issue discovery and creation. Create issues from GitHub/text, discover issues via multi-perspective analysis, or prompt-driven iterative exploration. Triggers on \"issue:new\", \"issue:discover\", \"issue:discover-by-prompt\", \"create issue\", \"discover issues\", \"find issues\"."
4
+ allowed-tools: spawn_agent, wait_agent, send_message, assign_task, close_agent, request_user_input, Read, Write, Edit, Bash, Glob, Grep, mcp__ace-tool__search_context, mcp__exa__search
5
+ ---
6
+
7
+ # Issue Discover
8
+
9
+ Unified issue discovery and creation skill covering three entry points: manual issue creation, perspective-based discovery, and prompt-driven exploration.
10
+
11
+ ## Architecture Overview
12
+
13
+ ```
14
+ ┌─────────────────────────────────────────────────────────────────┐
15
+ │ Issue Discover Orchestrator (SKILL.md) │
16
+ │ → Action selection → Route to phase → Execute → Summary │
17
+ └───────────────┬─────────────────────────────────────────────────┘
18
+
19
+ ├─ request_user_input: Select action
20
+
21
+ ┌───────────┼───────────┬───────────┐
22
+ ↓ ↓ ↓ │
23
+ ┌─────────┐ ┌─────────┐ ┌─────────┐ │
24
+ │ Phase 1 │ │ Phase 2 │ │ Phase 3 │ │
25
+ │ Create │ │Discover │ │Discover │ │
26
+ │ New │ │ Multi │ │by Prompt│ │
27
+ └─────────┘ └─────────┘ └─────────┘ │
28
+ ↓ ↓ ↓ │
29
+ Issue Discoveries Discoveries │
30
+ (registered) (export) (export) │
31
+ │ │ │ │
32
+ │ ├───────────┤ │
33
+ │ ↓ │
34
+ │ ┌───────────┐ │
35
+ │ │ Phase 4 │ │
36
+ │ │Quick Plan │ │
37
+ │ │& Execute │ │
38
+ │ └─────┬─────┘ │
39
+ │ ↓ │
40
+ │ .task/*.json │
41
+ │ ↓ │
42
+ │ Direct Execution │
43
+ │ │ │
44
+ └───────────┴──────────────────────┘
45
+ ↓ (fallback/remaining)
46
+ issue-resolve (plan/queue)
47
+
48
+ /issue:execute
49
+ ```
50
+
51
+ ## Key Design Principles
52
+
53
+ 1. **Action-Driven Routing**: request_user_input selects action, then load single phase
54
+ 2. **Progressive Phase Loading**: Only read the selected phase document
55
+ 3. **CLI-First Data Access**: All issue CRUD via `ccw issue` CLI commands
56
+ 4. **Auto Mode Support**: `-y` flag skips action selection with auto-detection
57
+ 5. **Subagent Lifecycle**: Explicit lifecycle management with spawn_agent → wait_agent → close_agent
58
+ 6. **Role Path Loading**: Subagent roles loaded via path reference in MANDATORY FIRST STEPS
59
+
60
+ ## Auto Mode
61
+
62
+ When `--yes` or `-y`: Skip action selection, auto-detect action from input type.
63
+
64
+ ## Usage
65
+
66
+ ```
67
+ issue-discover <input>
68
+ issue-discover [FLAGS] "<input>"
69
+
70
+ # Flags
71
+ -y, --yes Skip all confirmations (auto mode)
72
+ --action <type> Pre-select action: new|discover|discover-by-prompt
73
+
74
+ # Phase-specific flags
75
+ --priority <1-5> Issue priority (new mode)
76
+ --perspectives <list> Comma-separated perspectives (discover mode)
77
+ --external Enable Exa research (discover mode)
78
+ --scope <pattern> File scope (discover/discover-by-prompt mode)
79
+ --depth <level> standard|deep (discover-by-prompt mode)
80
+ --max-iterations <n> Max exploration iterations (discover-by-prompt mode)
81
+
82
+ # Examples
83
+ issue-discover https://github.com/org/repo/issues/42 # Create from GitHub
84
+ issue-discover "Login fails with special chars" # Create from text
85
+ issue-discover --action discover src/auth/** # Multi-perspective discovery
86
+ issue-discover --action discover src/api/** --perspectives=security,bug # Focused discovery
87
+ issue-discover --action discover-by-prompt "Check API contracts" # Prompt-driven discovery
88
+ issue-discover -y "auth broken" # Auto mode create
89
+ ```
90
+
91
+ ## Execution Flow
92
+
93
+ ```
94
+ Input Parsing:
95
+ └─ Parse flags (--action, -y, --perspectives, etc.) and positional args
96
+
97
+ Action Selection:
98
+ ├─ --action flag provided → Route directly
99
+ ├─ Auto-detect from input:
100
+ │ ├─ GitHub URL or #number → Create New (Phase 1)
101
+ │ ├─ Path pattern (src/**, *.ts) → Discover (Phase 2)
102
+ │ ├─ Short text (< 80 chars) → Create New (Phase 1)
103
+ │ └─ Long descriptive text (≥ 80 chars) → Discover by Prompt (Phase 3)
104
+ └─ Otherwise → request_user_input to select action
105
+ └─ Initialize progress tracking: functions.update_plan([...phases])
106
+
107
+ Phase Execution (load one phase):
108
+ ├─ Phase 1: Create New → phases/01-issue-new.md
109
+ ├─ Phase 2: Discover → phases/02-discover.md
110
+ └─ Phase 3: Discover by Prompt → phases/03-discover-by-prompt.md
111
+
112
+ Post-Phase:
113
+ └─ Summary + Next steps recommendation
114
+ ```
115
+
116
+ ### Phase Reference Documents
117
+
118
+ | Phase | Document | Load When | Purpose |
119
+ |-------|----------|-----------|---------|
120
+ | Phase 1 | [phases/01-issue-new.md](phases/01-issue-new.md) | Action = Create New | Create issue from GitHub URL or text description |
121
+ | Phase 2 | [phases/02-discover.md](phases/02-discover.md) | Action = Discover | Multi-perspective issue discovery (bug, security, test, etc.) |
122
+ | Phase 3 | [phases/03-discover-by-prompt.md](phases/03-discover-by-prompt.md) | Action = Discover by Prompt | Prompt-driven iterative exploration with Gemini planning |
123
+ | Phase 4 | [phases/04-quick-execute.md](phases/04-quick-execute.md) | Post-Phase = Quick Plan & Execute | Convert high-confidence findings to tasks and execute directly |
124
+
125
+ ## Core Rules
126
+
127
+ 1. **Action Selection First**: Always determine action before loading any phase
128
+ 2. **Single Phase Load**: Only read the selected phase document, never load all phases
129
+ 3. **CLI Data Access**: Use `ccw issue` CLI for all issue operations, NEVER read files directly
130
+ 4. **Content Preservation**: Each phase contains complete execution logic from original commands
131
+ 5. **Auto-Detect Input**: Smart input parsing reduces need for explicit --action flag
132
+ 6. **⚠️ CRITICAL: DO NOT STOP**: Continuous multi-phase workflow. After completing each phase, immediately proceed to next
133
+ 7. **Progressive Phase Loading**: Read phase docs ONLY when that phase is about to execute
134
+ 8. **Explicit Lifecycle**: Always close_agent after wait_agent completes to free resources
135
+
136
+ ## Input Processing
137
+
138
+ ### Auto-Detection Logic
139
+
140
+ ```javascript
141
+ function detectAction(input, flags) {
142
+ // 1. Explicit --action flag
143
+ if (flags.action) return flags.action;
144
+
145
+ const trimmed = input.trim();
146
+
147
+ // 2. GitHub URL → new
148
+ if (trimmed.match(/github\.com\/[\w-]+\/[\w-]+\/issues\/\d+/) || trimmed.match(/^#\d+$/)) {
149
+ return 'new';
150
+ }
151
+
152
+ // 3. Path pattern (contains **, /, or --perspectives) → discover
153
+ if (trimmed.match(/\*\*/) || trimmed.match(/^src\//) || flags.perspectives) {
154
+ return 'discover';
155
+ }
156
+
157
+ // 4. Short text (< 80 chars, no special patterns) → new
158
+ if (trimmed.length > 0 && trimmed.length < 80 && !trimmed.includes('--')) {
159
+ return 'new';
160
+ }
161
+
162
+ // 5. Long descriptive text → discover-by-prompt
163
+ if (trimmed.length >= 80) {
164
+ return 'discover-by-prompt';
165
+ }
166
+
167
+ // Cannot auto-detect → ask user
168
+ return null;
169
+ }
170
+ ```
171
+
172
+ ### Action Selection (request_user_input)
173
+
174
+ ```javascript
175
+ // When action cannot be auto-detected
176
+ const answer = functions.request_user_input({
177
+ questions: [{
178
+ header: "Action",
179
+ id: "action",
180
+ question: "What would you like to do?",
181
+ options: [
182
+ {
183
+ label: "Create New Issue (Recommended)",
184
+ description: "Create issue from GitHub URL, text description, or structured input"
185
+ },
186
+ {
187
+ label: "Discover Issues",
188
+ description: "Multi-perspective discovery: bug, security, test, quality, performance, etc."
189
+ },
190
+ {
191
+ label: "Discover by Prompt",
192
+ description: "Describe what to find — Gemini plans the exploration strategy iteratively"
193
+ }
194
+ ]
195
+ }]
196
+ }); // BLOCKS (wait for user response)
197
+
198
+ // Route based on selection
199
+ // answer.answers.action.answers[0] selected label
200
+ const actionMap = {
201
+ "Create New Issue (Recommended)": "new",
202
+ "Discover Issues": "discover",
203
+ "Discover by Prompt": "discover-by-prompt"
204
+ };
205
+
206
+ // Initialize progress tracking (MANDATORY)
207
+ functions.update_plan([
208
+ { id: "action-select", title: "Action Selection", status: "completed" },
209
+ { id: "phase-exec", title: `Phase: ${selectedAction}`, status: "in_progress" },
210
+ { id: "post-phase", title: "Post-Phase: Next Steps", status: "pending" }
211
+ ])
212
+ ```
213
+
214
+ ## Data Flow
215
+
216
+ ```
217
+ User Input (URL / text / path pattern / descriptive prompt)
218
+
219
+ [Parse Flags + Auto-Detect Action]
220
+
221
+ [Action Selection] request_user_input (if needed)
222
+
223
+ [Read Selected Phase Document]
224
+
225
+ [Execute Phase Logic]
226
+
227
+ [Summary + Next Steps]
228
+ ├─ After Create Suggest issue-resolve (plan solution)
229
+ └─ After Discover → Suggest export to issues, then issue-resolve
230
+ ```
231
+
232
+ ## Subagent API Reference
233
+
234
+ ### spawn_agent
235
+
236
+ Create a new subagent with task assignment.
237
+
238
+ ```javascript
239
+ const agentId = spawn_agent({
240
+ agent_type: "{agent_type}",
241
+ message: `
242
+ ## TASK ASSIGNMENT
243
+
244
+ ### MANDATORY FIRST STEPS (Agent Execute)
245
+ 1. Execute: ccw spec load --category exploration
246
+ 2. Execute: ccw spec load --category debug (known issues cross-reference)
247
+
248
+ ## TASK CONTEXT
249
+ ${taskContext}
250
+
251
+ ## DELIVERABLES
252
+ ${deliverables}
253
+ `
254
+ })
255
+ ```
256
+
257
+ ### wait_agent
258
+
259
+ Get results from subagent (only way to retrieve results).
260
+
261
+ ```javascript
262
+ const result = wait_agent({
263
+ targets: [agentId],
264
+ timeout_ms: 600000 // 10 minutes
265
+ })
266
+
267
+ if (result.timed_out) {
268
+ // Handle timeout - can use assign_task to prompt completion
269
+ }
270
+
271
+ // Check completion status
272
+ if (result.status[agentId].completed) {
273
+ const output = result.status[agentId].completed;
274
+ }
275
+ ```
276
+
277
+ ### assign_task
278
+
279
+ Assign new work to active subagent (for clarification or follow-up).
280
+
281
+ ```javascript
282
+ assign_task({
283
+ target: agentId,
284
+ items: [{ type: "text", text: `
285
+ ## CLARIFICATION ANSWERS
286
+ ${answers}
287
+
288
+ ## NEXT STEP
289
+ Continue with plan generation.
290
+ ` }]
291
+ })
292
+ ```
293
+
294
+ ### close_agent
295
+
296
+ Clean up subagent resources (irreversible).
297
+
298
+ ```javascript
299
+ close_agent({ id: agentId })
300
+ ```
301
+
302
+ ## Core Guidelines
303
+
304
+ **Data Access Principle**: Issues files can grow very large. To avoid context overflow:
305
+
306
+ | Operation | Correct | Incorrect |
307
+ |-----------|---------|-----------|
308
+ | List issues (brief) | `ccw issue list --status pending --brief` | `Read('issues.jsonl')` |
309
+ | Read issue details | `ccw issue status <id> --json` | `Read('issues.jsonl')` |
310
+ | Create issue | `echo '...' \| ccw issue create` | Direct file write |
311
+ | Update status | `ccw issue update <id> --status ...` | Direct file edit |
312
+
313
+ **ALWAYS** use CLI commands for CRUD operations. **NEVER** read entire `issues.jsonl` directly.
314
+
315
+ ## Error Handling
316
+
317
+ | Error | Resolution |
318
+ |-------|------------|
319
+ | No action detected | Show request_user_input with all 3 options |
320
+ | Invalid action type | Show available actions, re-prompt |
321
+ | Phase execution fails | Report error, suggest manual intervention |
322
+ | No files matched (discover) | Check target pattern, verify path exists |
323
+ | Gemini planning failed (discover-by-prompt) | Retry with qwen fallback |
324
+ | Agent lifecycle errors | Ensure close_agent in error paths to prevent resource leaks |
325
+
326
+ ## Post-Phase Next Steps
327
+
328
+ **Progress**: `functions.update_plan([{id: "phase-exec", status: "completed"}, {id: "post-phase", status: "in_progress"}])`
329
+
330
+ After successful phase execution, recommend next action:
331
+
332
+ ```javascript
333
+ // After Create New (issue created)
334
+ functions.request_user_input({
335
+ questions: [{
336
+ header: "Next Step",
337
+ id: "next_after_create",
338
+ question: "Issue created. What next?",
339
+ options: [
340
+ { label: "Plan Solution (Recommended)", description: "Generate solution via issue-resolve" },
341
+ { label: "Create Another", description: "Create more issues" },
342
+ { label: "Done", description: "Exit workflow" }
343
+ ]
344
+ }]
345
+ }); // BLOCKS (wait for user response)
346
+ // answer.answers.next_after_create.answers[0] selected label
347
+
348
+ // After Discover / Discover by Prompt (discoveries generated)
349
+ functions.request_user_input({
350
+ questions: [{
351
+ header: "Next Step",
352
+ id: "next_after_discover",
353
+ question: `Discovery complete: ${findings.length} findings, ${executableFindings.length} executable. What next?`,
354
+ options: [
355
+ { label: "Quick Plan & Execute (Recommended)", description: `Fix ${executableFindings.length} high-confidence findings directly` },
356
+ { label: "Export to Issues", description: "Convert discoveries to issues" },
357
+ { label: "Done", description: "Exit workflow" }
358
+ ]
359
+ }]
360
+ }); // BLOCKS (wait for user response)
361
+ // answer.answers.next_after_discover.answers[0] selected label
362
+ // If "Quick Plan & Execute (Recommended)" → Read phases/04-quick-execute.md, execute
363
+
364
+ // Mark workflow complete
365
+ functions.update_plan([{ id: "post-phase", status: "completed" }])
366
+ ```
367
+
368
+ ## Related Skills & Commands
369
+
370
+ - `issue-resolve` - Plan solutions, convert artifacts, form queues, from brainstorm
371
+ - `issue-manage` - Interactive issue CRUD operations
372
+ - `/issue:execute` - Execute queue with DAG-based parallel orchestration
373
+ - `ccw issue list` - List all issues
374
+ - `ccw issue status <id>` - View issue details