You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add spec-setup command for project initialization and interactive configuration
- Introduced a new command `spec-setup` to initialize project-level state.
- Generates `.workflow/project-tech.json` and `.ccw/specs/*.md` files.
- Implements a multi-round interactive questionnaire for configuring project guidelines.
- Supports flags for regeneration, skipping specs, and resetting existing content.
- Integrates analysis via `cli-explore-agent` for comprehensive project understanding.
- Provides detailed execution process and error handling for various scenarios.
-**Dynamic TOC** (top of file, updated after each round/phase): `## Table of Contents` with links to major sections
88
96
-**Current Understanding** (replaceable block, overwritten each round — NOT appended): `## Current Understanding` initialized as "To be populated after exploration"
@@ -223,31 +231,26 @@ CONSTRAINTS: Focus on ${dimensions.join(', ')}
-**继续深入**: Direction correct — deepen automatically or user specifies direction (combines agree+deepen and agree+suggest)
236
+
-**调整方向**: Different focus or specific questions to address
237
+
-**补充信息**: User has additional context, constraints, or corrections to provide
230
238
-**分析完成**: Sufficient → exit to Phase 4
231
-
-**有具体问题**: Specific questions
232
239
233
240
4.**Process Response** (always record user choice + impact to discussion.md):
234
241
235
-
**Agree, Deepen** → Dynamically generate deepen directions from current analysis context:
236
-
- Extract 2-3 context-driven options from: unresolved questions in explorations.json, low-confidence findings, unexplored dimensions, user-highlighted areas
237
-
- Generate 1-2 heuristic options that break current frame: e.g., "compare with best practices in [related domain]", "analyze under extreme load scenarios", "review from security audit perspective", "explore simpler architectural alternatives"
238
-
- Each option specifies: label, description, tool (cli-explore-agent for code-level / Gemini CLI for pattern-level), scope
239
-
- AskUserQuestion with generated options (single-select)
240
-
- Execute selected direction via corresponding tool
241
-
- Merge new code_anchors/call_chains into existing results
242
-
- Record confirmed assumptions + deepen angle
243
-
244
-
**Agree, Suggest Next Step** → AskUserQuestion (free text: "请描述您希望下一步深入的方向") → Execute user's specific direction via cli-explore-agent or CLI → Record user-driven exploration rationale
242
+
**继续深入** → Sub-question to choose direction (AskUserQuestion, single-select, header: "深入方向"):
- Add **1** heuristic option that breaks current frame (e.g., "compare with best practices", "review from security perspective", "explore simpler alternatives")
245
+
- Total: **max 4 options**. Each specifies: label, description, tool (cli-explore-agent for code-level / Gemini CLI for pattern-level), scope
246
+
-**"Other" is auto-provided** by AskUserQuestion — covers user-specified custom direction (no need for separate "suggest next step" option)
247
+
- Execute selected direction → merge new code_anchors/call_chains → record confirmed assumptions + deepen angle
245
248
246
-
**Adjust Direction** → AskUserQuestion for new focus → new CLI exploration → Record Decision (old vs new direction, reason, impact)
249
+
**调整方向** → AskUserQuestion (header: "新方向", user selects or provides custom via "Other") → new CLI exploration → Record Decision (old vs new direction, reason, impact)
247
250
248
-
**Specific Questions** → Capture, answer via CLI/analysis, document Q&A → Record gaps revealed + new understanding
251
+
**补充信息** → Capture user input, integrate into context, answer questions via CLI/analysis if needed → Record corrections/additions + updated understanding
249
252
250
-
**Complete** → Exit loop → Record why concluding
253
+
**分析完成** → Exit loop → Record why concluding
251
254
252
255
5.**Update discussion.md**:
253
256
-**Append** Round N: user input, direction adjustment, Q&A, corrections, new insights
@@ -319,11 +322,11 @@ CONSTRAINTS: Focus on ${dimensions.join(', ')}
319
322
```
320
323
For each recommendation (ordered by priority high→medium→low):
0 commit comments