From a1935c2d6b38aed0eada244f830b3f949febcdcb Mon Sep 17 00:00:00 2001 From: Lex Christopherson Date: Mon, 19 Jan 2026 16:49:44 -0600 Subject: [PATCH] feat(new-project): add commit_docs option to workflow preferences Adds 4th question to initial config asking whether to commit planning docs to git. When user selects "No", sets planning.commit_docs: false and adds .planning/ to .gitignore. Builds on #107 (uncommitted planning mode) by surfacing the option during project initialization. Co-Authored-By: Claude Opus 4.5 --- commands/gsd/new-project.md | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/commands/gsd/new-project.md b/commands/gsd/new-project.md index f71bf6be7..8e9c03b02 100644 --- a/commands/gsd/new-project.md +++ b/commands/gsd/new-project.md @@ -237,7 +237,7 @@ EOF ## Phase 5: Workflow Preferences -Ask all workflow preferences in a single AskUserQuestion call (3 questions): +Ask all workflow preferences in a single AskUserQuestion call (4 questions): ``` questions: [ @@ -268,11 +268,24 @@ questions: [ { 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)" } + ] } ] ``` -Create `.planning/config.json` with chosen mode, depth, and parallelization. +Create `.planning/config.json` with chosen mode, depth, parallelization, and commit_docs setting. + +**If commit_docs = No:** +- Set `planning.commit_docs: false` in config.json +- Add `.planning/` to `.gitignore` (create if needed) **Commit config.json:**