feat(auto): wire --auto from new-project into phase chain
- Auto mode now chains: new-project → discuss-phase 1 → plan → execute → transition - Accept pasted text OR file reference (not just @ references) - YOLO mode implicit in --auto (skip that question) - Config questions (depth, git, agents) asked FIRST in new Step 2a - Step 5 skipped in auto mode (config already collected) - Auto-advance banner shown before invoking discuss-phase Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -14,7 +14,7 @@ Check if `--auto` flag is present in $ARGUMENTS.
|
|||||||
**If auto mode:**
|
**If auto mode:**
|
||||||
- Skip brownfield mapping offer (assume greenfield)
|
- Skip brownfield mapping offer (assume greenfield)
|
||||||
- Skip deep questioning (extract context from provided document)
|
- Skip deep questioning (extract context from provided document)
|
||||||
- Config questions still required (Step 5)
|
- Config: YOLO mode is implicit (skip that question), but ask depth/git/agents FIRST (Step 2a)
|
||||||
- After config: run Steps 6-9 automatically with smart defaults:
|
- After config: run Steps 6-9 automatically with smart defaults:
|
||||||
- Research: Always yes
|
- Research: Always yes
|
||||||
- Requirements: Include all table stakes + features from provided document
|
- Requirements: Include all table stakes + features from provided document
|
||||||
@@ -22,12 +22,18 @@ Check if `--auto` flag is present in $ARGUMENTS.
|
|||||||
- Roadmap approval: Auto-approve
|
- Roadmap approval: Auto-approve
|
||||||
|
|
||||||
**Document requirement:**
|
**Document requirement:**
|
||||||
Auto mode requires an idea document via @ reference (e.g., `/gsd:new-project --auto @prd.md`). If no document provided, error:
|
Auto mode requires an idea document — either:
|
||||||
|
- File reference: `/gsd:new-project --auto @prd.md`
|
||||||
|
- Pasted/written text in the prompt
|
||||||
|
|
||||||
|
If no document content provided, error:
|
||||||
|
|
||||||
```
|
```
|
||||||
Error: --auto requires an idea document via @ reference.
|
Error: --auto requires an idea document.
|
||||||
|
|
||||||
Usage: /gsd:new-project --auto @your-idea.md
|
Usage:
|
||||||
|
/gsd:new-project --auto @your-idea.md
|
||||||
|
/gsd:new-project --auto [paste or write your idea here]
|
||||||
|
|
||||||
The document should describe what you want to build.
|
The document should describe what you want to build.
|
||||||
```
|
```
|
||||||
@@ -73,9 +79,122 @@ Exit command.
|
|||||||
|
|
||||||
**If "Skip mapping" OR `needs_codebase_map` is false:** Continue to Step 3.
|
**If "Skip mapping" OR `needs_codebase_map` is false:** Continue to Step 3.
|
||||||
|
|
||||||
|
## 2a. Auto Mode Config (auto mode only)
|
||||||
|
|
||||||
|
**If auto mode:** Collect config settings upfront before processing the idea document.
|
||||||
|
|
||||||
|
YOLO mode is implicit (auto = YOLO). Ask remaining config questions:
|
||||||
|
|
||||||
|
**Round 1 — Core settings (3 questions, no Mode question):**
|
||||||
|
|
||||||
|
```
|
||||||
|
AskUserQuestion([
|
||||||
|
{
|
||||||
|
header: "Depth",
|
||||||
|
question: "How thorough should planning be?",
|
||||||
|
multiSelect: false,
|
||||||
|
options: [
|
||||||
|
{ label: "Quick (Recommended)", description: "Ship fast (3-5 phases, 1-3 plans each)" },
|
||||||
|
{ label: "Standard", description: "Balanced scope and speed (5-8 phases, 3-5 plans each)" },
|
||||||
|
{ label: "Comprehensive", description: "Thorough coverage (8-12 phases, 5-10 plans each)" }
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
header: "Execution",
|
||||||
|
question: "Run plans in parallel?",
|
||||||
|
multiSelect: false,
|
||||||
|
options: [
|
||||||
|
{ label: "Parallel (Recommended)", description: "Independent plans run simultaneously" },
|
||||||
|
{ label: "Sequential", description: "One plan at a time" }
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
header: "Git Tracking",
|
||||||
|
question: "Commit planning docs to git?",
|
||||||
|
multiSelect: false,
|
||||||
|
options: [
|
||||||
|
{ label: "Yes (Recommended)", description: "Planning docs tracked in version control" },
|
||||||
|
{ label: "No", description: "Keep .planning/ local-only (add to .gitignore)" }
|
||||||
|
]
|
||||||
|
}
|
||||||
|
])
|
||||||
|
```
|
||||||
|
|
||||||
|
**Round 2 — Workflow agents (same as Step 5):**
|
||||||
|
|
||||||
|
```
|
||||||
|
AskUserQuestion([
|
||||||
|
{
|
||||||
|
header: "Research",
|
||||||
|
question: "Research before planning each phase? (adds tokens/time)",
|
||||||
|
multiSelect: false,
|
||||||
|
options: [
|
||||||
|
{ label: "Yes (Recommended)", description: "Investigate domain, find patterns, surface gotchas" },
|
||||||
|
{ label: "No", description: "Plan directly from requirements" }
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
header: "Plan Check",
|
||||||
|
question: "Verify plans will achieve their goals? (adds tokens/time)",
|
||||||
|
multiSelect: false,
|
||||||
|
options: [
|
||||||
|
{ label: "Yes (Recommended)", description: "Catch gaps before execution starts" },
|
||||||
|
{ label: "No", description: "Execute plans without verification" }
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
header: "Verifier",
|
||||||
|
question: "Verify work satisfies requirements after each phase? (adds tokens/time)",
|
||||||
|
multiSelect: false,
|
||||||
|
options: [
|
||||||
|
{ label: "Yes (Recommended)", description: "Confirm deliverables match phase goals" },
|
||||||
|
{ label: "No", description: "Trust execution, skip verification" }
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
header: "AI Models",
|
||||||
|
question: "Which AI models for planning agents?",
|
||||||
|
multiSelect: false,
|
||||||
|
options: [
|
||||||
|
{ label: "Balanced (Recommended)", description: "Sonnet for most agents — good quality/cost ratio" },
|
||||||
|
{ label: "Quality", description: "Opus for research/roadmap — higher cost, deeper analysis" },
|
||||||
|
{ label: "Budget", description: "Haiku where possible — fastest, lowest cost" }
|
||||||
|
]
|
||||||
|
}
|
||||||
|
])
|
||||||
|
```
|
||||||
|
|
||||||
|
Create `.planning/config.json` with mode set to "yolo":
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"mode": "yolo",
|
||||||
|
"depth": "[selected]",
|
||||||
|
"parallelization": true|false,
|
||||||
|
"commit_docs": true|false,
|
||||||
|
"model_profile": "quality|balanced|budget",
|
||||||
|
"workflow": {
|
||||||
|
"research": true|false,
|
||||||
|
"plan_check": true|false,
|
||||||
|
"verifier": true|false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
**If commit_docs = No:** Add `.planning/` to `.gitignore`.
|
||||||
|
|
||||||
|
**Commit config.json:**
|
||||||
|
|
||||||
|
```bash
|
||||||
|
mkdir -p .planning
|
||||||
|
node ~/.claude/get-shit-done/bin/gsd-tools.cjs commit "chore: add project config" --files .planning/config.json
|
||||||
|
```
|
||||||
|
|
||||||
|
Proceed to Step 4 (skip Steps 3 and 5).
|
||||||
|
|
||||||
## 3. Deep Questioning
|
## 3. Deep Questioning
|
||||||
|
|
||||||
**If auto mode:** Skip. Extract project context from provided document instead and proceed to Step 4.
|
**If auto mode:** Skip (already handled in Step 2a). Extract project context from provided document instead and proceed to Step 4.
|
||||||
|
|
||||||
**Display stage banner:**
|
**Display stage banner:**
|
||||||
|
|
||||||
@@ -217,6 +336,8 @@ node ~/.claude/get-shit-done/bin/gsd-tools.cjs commit "docs: initialize project"
|
|||||||
|
|
||||||
## 5. Workflow Preferences
|
## 5. Workflow Preferences
|
||||||
|
|
||||||
|
**If auto mode:** Skip — config was collected in Step 2a. Proceed to Step 5.5.
|
||||||
|
|
||||||
**Check for global defaults** at `~/.gsd/defaults.json`. If the file exists, offer to use saved defaults:
|
**Check for global defaults** at `~/.gsd/defaults.json`. If the file exists, offer to use saved defaults:
|
||||||
|
|
||||||
```
|
```
|
||||||
@@ -898,7 +1019,7 @@ node ~/.claude/get-shit-done/bin/gsd-tools.cjs commit "docs: create roadmap ([N]
|
|||||||
|
|
||||||
## 9. Done
|
## 9. Done
|
||||||
|
|
||||||
Present completion with next steps:
|
Present completion summary:
|
||||||
|
|
||||||
```
|
```
|
||||||
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||||
@@ -916,7 +1037,21 @@ Present completion with next steps:
|
|||||||
| Roadmap | `.planning/ROADMAP.md` |
|
| Roadmap | `.planning/ROADMAP.md` |
|
||||||
|
|
||||||
**[N] phases** | **[X] requirements** | Ready to build ✓
|
**[N] phases** | **[X] requirements** | Ready to build ✓
|
||||||
|
```
|
||||||
|
|
||||||
|
**If auto mode:**
|
||||||
|
|
||||||
|
```
|
||||||
|
╔══════════════════════════════════════════╗
|
||||||
|
║ AUTO-ADVANCING → DISCUSS PHASE 1 ║
|
||||||
|
╚══════════════════════════════════════════╝
|
||||||
|
```
|
||||||
|
|
||||||
|
Exit skill and invoke SlashCommand("/gsd:discuss-phase 1 --auto")
|
||||||
|
|
||||||
|
**If interactive mode:**
|
||||||
|
|
||||||
|
```
|
||||||
───────────────────────────────────────────────────────────────
|
───────────────────────────────────────────────────────────────
|
||||||
|
|
||||||
## ▶ Next Up
|
## ▶ Next Up
|
||||||
|
|||||||
Reference in New Issue
Block a user