gsd-antigravity-kit 1.32.0 → 2.0.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.
- package/.agent/skills/gsd/SKILL.md +152 -123
- package/.agent/skills/gsd/VERSION +1 -0
- package/.agent/skills/gsd/assets/templates/user-profile.md +8 -8
- package/.agent/skills/gsd/bin/gsd-tools.cjs +81 -3
- package/.agent/skills/gsd/bin/help-manifest.json +24 -1
- package/.agent/skills/gsd/bin/hooks/gsd-check-update.js +15 -5
- package/.agent/skills/gsd/bin/hooks/gsd-context-monitor.js +1 -1
- package/.agent/skills/gsd/bin/hooks/gsd-phase-boundary.sh +27 -0
- package/.agent/skills/gsd/bin/hooks/gsd-prompt-guard.js +2 -1
- package/.agent/skills/gsd/bin/hooks/gsd-read-guard.js +1 -1
- package/.agent/skills/gsd/bin/hooks/gsd-session-state.sh +33 -0
- package/.agent/skills/gsd/bin/hooks/gsd-statusline.js +5 -5
- package/.agent/skills/gsd/bin/hooks/gsd-validate-commit.sh +47 -0
- package/.agent/skills/gsd/bin/hooks/gsd-workflow-guard.js +1 -1
- package/.agent/skills/gsd/bin/lib/config.cjs +31 -10
- package/.agent/skills/gsd/bin/lib/core.cjs +48 -13
- package/.agent/skills/gsd/bin/lib/frontmatter.cjs +34 -2
- package/.agent/skills/gsd/bin/lib/intel.cjs +660 -0
- package/.agent/skills/gsd/bin/lib/learnings.cjs +378 -0
- package/.agent/skills/gsd/bin/lib/milestone.cjs +13 -4
- package/.agent/skills/gsd/bin/lib/model-profiles.cjs +17 -17
- package/.agent/skills/gsd/bin/lib/profile-output.cjs +31 -31
- package/.agent/skills/gsd/bin/lib/security.cjs +119 -0
- package/.agent/skills/gsd/bin/lib/verify.cjs +15 -15
- package/.agent/skills/gsd/migration_report.md +7 -0
- package/.agent/skills/gsd/references/agents/gsd-code-fixer.md +516 -0
- package/.agent/skills/gsd/references/agents/gsd-code-reviewer.md +355 -0
- package/.agent/skills/gsd/references/agents/gsd-debugger.md +10 -1
- package/.agent/skills/gsd/references/agents/gsd-executor.md +3 -0
- package/.agent/skills/gsd/references/agents/gsd-intel-updater.md +314 -0
- package/.agent/skills/gsd/references/agents/gsd-phase-researcher.md +3 -0
- package/.agent/skills/gsd/references/agents/gsd-plan-checker.md +16 -4
- package/.agent/skills/gsd/references/agents/gsd-planner.md +7 -0
- package/.agent/skills/gsd/references/agents/gsd-user-profiler.md +5 -5
- package/.agent/skills/gsd/references/agents/gsd-verifier.md +55 -1
- package/.agent/skills/gsd/references/agents/profiles/dev.md +21 -0
- package/.agent/skills/gsd/references/agents/profiles/research.md +22 -0
- package/.agent/skills/gsd/references/agents/profiles/review.md +22 -0
- package/.agent/skills/gsd/references/commands/{gsd-add-todo.md → atomic/add-todo.md} +5 -4
- package/.agent/skills/gsd/references/commands/{gsd-check-todos.md → atomic/check-todos.md} +5 -4
- package/.agent/skills/gsd/references/commands/{gsd-cleanup.md → atomic/cleanup.md} +4 -3
- package/.agent/skills/gsd/references/commands/{gsd-do.md → atomic/do.md} +4 -3
- package/.agent/skills/gsd/references/commands/{gsd-help.md → atomic/help.md} +4 -3
- package/.agent/skills/gsd/references/commands/{gsd-join-discord.md → atomic/join-discord.md} +21 -19
- package/.agent/skills/gsd/references/commands/{gsd-note.md → atomic/note.md} +4 -3
- package/.agent/skills/gsd/references/commands/{gsd-session-report.md → atomic/session-report.md} +4 -3
- package/.agent/skills/gsd/references/commands/{gsd-ship.md → atomic/ship.md} +4 -3
- package/.agent/skills/gsd/references/commands/{gsd-stats.md → atomic/stats.md} +4 -3
- package/.agent/skills/gsd/references/commands/{gsd-thread.md → atomic/thread.md} +7 -6
- package/.agent/skills/gsd/references/commands/atomic/undo.md +36 -0
- package/.agent/skills/gsd/references/commands/{gsd-add-backlog.md → milestone/add-backlog.md} +8 -7
- package/.agent/skills/gsd/references/commands/{gsd-audit-milestone.md → milestone/audit-milestone.md} +4 -3
- package/.agent/skills/gsd/references/commands/{gsd-complete-milestone.md → milestone/complete-milestone.md} +6 -4
- package/.agent/skills/gsd/references/commands/{gsd-milestone-summary.md → milestone/milestone-summary.md} +5 -3
- package/.agent/skills/gsd/references/commands/{gsd-new-milestone.md → milestone/new-milestone.md} +4 -3
- package/.agent/skills/gsd/references/commands/{gsd-plan-milestone-gaps.md → milestone/plan-milestone-gaps.md} +4 -3
- package/.agent/skills/gsd/references/commands/{gsd-plant-seed.md → milestone/plant-seed.md} +4 -3
- package/.agent/skills/gsd/references/commands/{gsd-review-backlog.md → milestone/review-backlog.md} +6 -5
- package/.agent/skills/gsd/references/commands/misc/audit-fix.md +35 -0
- package/.agent/skills/gsd/references/commands/{gsd-audit-uat.md → misc/audit-uat.md} +4 -3
- package/.agent/skills/gsd/references/commands/{gsd-next.md → misc/next.md} +6 -3
- package/.agent/skills/gsd/references/commands/{gsd-progress.md → misc/progress.md} +4 -3
- package/.agent/skills/gsd/references/commands/{gsd-verify-work.md → misc/verify-work.md} +4 -3
- package/.agent/skills/gsd/references/commands/{gsd-add-phase.md → phase/add-phase.md} +5 -4
- package/.agent/skills/gsd/references/commands/{gsd-add-tests.md → phase/add-tests.md} +8 -3
- package/.agent/skills/gsd/references/commands/{gsd-discuss-phase.md → phase/discuss-phase.md} +5 -4
- package/.agent/skills/gsd/references/commands/{gsd-execute-phase.md → phase/execute-phase.md} +4 -3
- package/.agent/skills/gsd/references/commands/{gsd-insert-phase.md → phase/insert-phase.md} +5 -4
- package/.agent/skills/gsd/references/commands/{gsd-list-phase-assumptions.md → phase/list-phase-assumptions.md} +4 -3
- package/.agent/skills/gsd/references/commands/{gsd-plan-phase.md → phase/plan-phase.md} +4 -3
- package/.agent/skills/gsd/references/commands/{gsd-remove-phase.md → phase/remove-phase.md} +5 -4
- package/.agent/skills/gsd/references/commands/{gsd-research-phase.md → phase/research-phase.md} +7 -6
- package/.agent/skills/gsd/references/commands/{gsd-secure-phase.md → phase/secure-phase.md} +4 -3
- package/.agent/skills/gsd/references/commands/{gsd-ui-phase.md → phase/ui-phase.md} +4 -3
- package/.agent/skills/gsd/references/commands/{gsd-ui-review.md → phase/ui-review.md} +4 -3
- package/.agent/skills/gsd/references/commands/{gsd-validate-phase.md → phase/validate-phase.md} +4 -3
- package/.agent/skills/gsd/references/commands/{gsd-workstreams.md → phase/workstreams.md} +71 -70
- package/.agent/skills/gsd/references/commands/{gsd-analyze-dependencies.md → project/analyze-dependencies.md} +5 -4
- package/.agent/skills/gsd/references/commands/project/explore.md +29 -0
- package/.agent/skills/gsd/references/commands/project/import.md +38 -0
- package/.agent/skills/gsd/references/commands/project/intel.md +181 -0
- package/.agent/skills/gsd/references/commands/{gsd-list-workspaces.md → project/list-workspaces.md} +4 -3
- package/.agent/skills/gsd/references/commands/{gsd-map-codebase.md → project/map-codebase.md} +4 -3
- package/.agent/skills/gsd/references/commands/{gsd-new-project.md → project/new-project.md} +4 -3
- package/.agent/skills/gsd/references/commands/{gsd-new-workspace.md → project/new-workspace.md} +4 -3
- package/.agent/skills/gsd/references/commands/{gsd-remove-workspace.md → project/remove-workspace.md} +4 -3
- package/.agent/skills/gsd/references/commands/project/scan.md +28 -0
- package/.agent/skills/gsd/references/commands/{gsd-autonomous.md → system/autonomous.md} +4 -3
- package/.agent/skills/gsd/references/commands/system/code-review-fix.md +54 -0
- package/.agent/skills/gsd/references/commands/system/code-review.md +57 -0
- package/.agent/skills/gsd/references/commands/{gsd-debug.md → system/debug.md} +7 -6
- package/.agent/skills/gsd/references/commands/{gsd-docs-update.md → system/docs-update.md} +4 -3
- package/.agent/skills/gsd/references/commands/{gsd-fast.md → system/fast.md} +4 -3
- package/.agent/skills/gsd/references/commands/{gsd-forensics.md → system/forensics.md} +5 -3
- package/.agent/skills/gsd/references/commands/{gsd-health.md → system/health.md} +5 -4
- package/.agent/skills/gsd/references/commands/{gsd-manager.md → system/manager.md} +4 -3
- package/.agent/skills/gsd/references/commands/{gsd-pause-work.md → system/pause-work.md} +4 -3
- package/.agent/skills/gsd/references/commands/{gsd-pr-branch.md → system/pr-branch.md} +4 -3
- package/.agent/skills/gsd/references/commands/{gsd-profile-user.md → system/profile-user.md} +4 -3
- package/.agent/skills/gsd/references/commands/{gsd-quick.md → system/quick.md} +4 -3
- package/.agent/skills/gsd/references/commands/{gsd-reapply-patches.md → system/reapply-patches.md} +25 -7
- package/.agent/skills/gsd/references/commands/{gsd-resume-work.md → system/resume-work.md} +4 -3
- package/.agent/skills/gsd/references/commands/{gsd-review.md → system/review.md} +4 -3
- package/.agent/skills/gsd/references/commands/system/set-profile.md +14 -0
- package/.agent/skills/gsd/references/commands/{gsd-settings.md → system/settings.md} +4 -3
- package/.agent/skills/gsd/references/commands/{gsd-update.md → system/update.md} +4 -3
- package/.agent/skills/gsd/references/docs/agent-contracts.md +79 -0
- package/.agent/skills/gsd/references/docs/common-bug-patterns.md +114 -0
- package/.agent/skills/gsd/references/docs/context-budget.md +49 -0
- package/.agent/skills/gsd/references/docs/domain-probes.md +125 -0
- package/.agent/skills/gsd/references/docs/few-shot-examples/plan-checker.md +73 -0
- package/.agent/skills/gsd/references/docs/few-shot-examples/verifier.md +109 -0
- package/.agent/skills/gsd/references/docs/gate-prompts.md +100 -0
- package/.agent/skills/gsd/references/docs/gates.md +70 -0
- package/.agent/skills/gsd/references/docs/model-profile-resolution.md +2 -0
- package/.agent/skills/gsd/references/docs/model-profiles.md +20 -14
- package/.agent/skills/gsd/references/docs/planning-config.md +216 -1
- package/.agent/skills/gsd/references/docs/revision-loop.md +97 -0
- package/.agent/skills/gsd/references/docs/thinking-models-debug.md +44 -0
- package/.agent/skills/gsd/references/docs/thinking-models-execution.md +50 -0
- package/.agent/skills/gsd/references/docs/thinking-models-planning.md +62 -0
- package/.agent/skills/gsd/references/docs/thinking-models-research.md +50 -0
- package/.agent/skills/gsd/references/docs/thinking-models-verification.md +55 -0
- package/.agent/skills/gsd/references/docs/thinking-partner.md +96 -0
- package/.agent/skills/gsd/references/docs/universal-anti-patterns.md +58 -0
- package/.agent/skills/gsd/references/docs/user-profiling.md +10 -10
- package/.agent/skills/gsd/references/docs/verification-overrides.md +227 -0
- package/.agent/skills/gsd/references/docs/workstream-flag.md +2 -2
- package/.agent/skills/gsd/references/mapping.md +11 -21
- package/.agent/skills/gsd/references/workflows/analyze-dependencies.md +3 -3
- package/.agent/skills/gsd/references/workflows/audit-fix.md +157 -0
- package/.agent/skills/gsd/references/workflows/autonomous.md +22 -1
- package/.agent/skills/gsd/references/workflows/code-review-fix.md +497 -0
- package/.agent/skills/gsd/references/workflows/code-review.md +515 -0
- package/.agent/skills/gsd/references/workflows/discuss-phase-power.md +3 -3
- package/.agent/skills/gsd/references/workflows/discuss-phase.md +20 -0
- package/.agent/skills/gsd/references/workflows/execute-phase.md +103 -0
- package/.agent/skills/gsd/references/workflows/explore.md +139 -0
- package/.agent/skills/gsd/references/workflows/import.md +274 -0
- package/.agent/skills/gsd/references/workflows/inbox.md +384 -0
- package/.agent/skills/gsd/references/workflows/manager.md +5 -5
- package/.agent/skills/gsd/references/workflows/new-milestone.md +1 -1
- package/.agent/skills/gsd/references/workflows/next.md +56 -0
- package/.agent/skills/gsd/references/workflows/plan-phase.md +48 -1
- package/.agent/skills/gsd/references/workflows/quick.md +96 -2
- package/.agent/skills/gsd/references/workflows/review.md +23 -3
- package/.agent/skills/gsd/references/workflows/scan.md +102 -0
- package/.agent/skills/gsd/references/workflows/settings.md +1 -1
- package/.agent/skills/gsd/references/workflows/ui-review.md +2 -2
- package/.agent/skills/gsd/references/workflows/undo.md +312 -0
- package/.agent/skills/gsd/references/workflows/update.md +5 -5
- package/.agent/skills/gsd-converter/SKILL.md +67 -59
- package/.agent/skills/gsd-converter/assets/migration-manifest.json +74 -0
- package/.agent/skills/gsd-converter/references/mapping.md +6 -16
- package/.agent/skills/gsd-converter/scripts/convert.py +419 -80
- package/.agent/skills/gsd-converter/scripts/regression_test.py +33 -0
- package/.agent/skills/selectpaste-update/SKILL.md +46 -0
- package/.agent/skills/selectpaste-update/scripts/sync-commands.py +317 -0
- package/README.md +4 -2
- package/bin/install.js +116 -116
- package/package.json +1 -1
- package/.agent/skills/gsd/references/commands/gsd-set-profile.md +0 -12
- /package/.agent/skills/gsd/references/commands/{gsd-tools.md → system/gsd-tools.md} +0 -0
|
@@ -0,0 +1,515 @@
|
|
|
1
|
+
<purpose>
|
|
2
|
+
Review source files changed during a phase for bugs, security issues, and code quality problems. Computes file scope (--files override > SUMMARY.md > git diff fallback), checks config gate, spawns gsd-code-reviewer agent, commits REVIEW.md, and presents results to user.
|
|
3
|
+
</purpose>
|
|
4
|
+
|
|
5
|
+
<required_reading>
|
|
6
|
+
Read all files referenced by the invoking prompt's execution_context before starting.
|
|
7
|
+
</required_reading>
|
|
8
|
+
|
|
9
|
+
<available_agent_types>
|
|
10
|
+
- gsd-code-reviewer: Reviews source files for bugs and quality issues
|
|
11
|
+
</available_agent_types>
|
|
12
|
+
|
|
13
|
+
<process>
|
|
14
|
+
|
|
15
|
+
<step name="initialize">
|
|
16
|
+
Parse arguments and load project state:
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
PHASE_ARG="${1}"
|
|
20
|
+
.agent/skills/gsd/bin/gsd-tools.cjs" init phase-op "${PHASE_ARG}")
|
|
21
|
+
if [[ "$INIT" == @file:* ]]; then INIT=$(cat "${INIT#@file:}"); fi
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Parse from init JSON: `phase_found`, `phase_dir`, `phase_number`, `phase_name`, `padded_phase`, `commit_docs`.
|
|
25
|
+
|
|
26
|
+
**Input sanitization (defense-in-depth):**
|
|
27
|
+
```bash
|
|
28
|
+
# Validate PADDED_PHASE contains only digits and optional dot (e.g., "02", "03.1")
|
|
29
|
+
if ! [[ "$PADDED_PHASE" =~ ^[0-9]+(\.[0-9]+)?$ ]]; then
|
|
30
|
+
echo "Error: Invalid phase number format: '${PADDED_PHASE}'. Expected digits (e.g., 02, 03.1)."
|
|
31
|
+
# Exit workflow
|
|
32
|
+
fi
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
**Phase validation (before config gate):**
|
|
36
|
+
If `phase_found` is false, report error and exit:
|
|
37
|
+
```
|
|
38
|
+
Error: Phase ${PHASE_ARG} not found. Run /gsd-status to see available phases.
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
This runs BEFORE config gate check so user errors are surfaced immediately regardless of config state.
|
|
42
|
+
|
|
43
|
+
Parse optional flags from $ARGUMENTS:
|
|
44
|
+
|
|
45
|
+
**--depth flag:**
|
|
46
|
+
```bash
|
|
47
|
+
DEPTH_OVERRIDE=""
|
|
48
|
+
for arg in "$@"; do
|
|
49
|
+
if [[ "$arg" == --depth=* ]]; then
|
|
50
|
+
DEPTH_OVERRIDE="${arg#--depth=}"
|
|
51
|
+
fi
|
|
52
|
+
done
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
**--files flag:**
|
|
56
|
+
```bash
|
|
57
|
+
FILES_OVERRIDE=""
|
|
58
|
+
for arg in "$@"; do
|
|
59
|
+
if [[ "$arg" == --files=* ]]; then
|
|
60
|
+
FILES_OVERRIDE="${arg#--files=}"
|
|
61
|
+
fi
|
|
62
|
+
done
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
If FILES_OVERRIDE is set, split by comma into array:
|
|
66
|
+
```bash
|
|
67
|
+
if [ -n "$FILES_OVERRIDE" ]; then
|
|
68
|
+
IFS=',' read -ra FILES_ARRAY <<< "$FILES_OVERRIDE"
|
|
69
|
+
fi
|
|
70
|
+
```
|
|
71
|
+
</step>
|
|
72
|
+
|
|
73
|
+
<step name="check_config_gate">
|
|
74
|
+
Check if code review is enabled via config:
|
|
75
|
+
|
|
76
|
+
```bash
|
|
77
|
+
.agent/skills/gsd/bin/gsd-tools.cjs" config-get workflow.code_review 2>/dev/null || echo "true")
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
If CODE_REVIEW_ENABLED is "false":
|
|
81
|
+
```
|
|
82
|
+
Code review skipped (workflow.code_review=false in config)
|
|
83
|
+
```
|
|
84
|
+
Exit workflow.
|
|
85
|
+
|
|
86
|
+
Default is true — only skip on explicit false. This check runs AFTER phase validation so invalid phase errors are shown first.
|
|
87
|
+
</step>
|
|
88
|
+
|
|
89
|
+
<step name="resolve_depth">
|
|
90
|
+
Determine review depth with priority order:
|
|
91
|
+
|
|
92
|
+
1. DEPTH_OVERRIDE from --depth flag (highest priority)
|
|
93
|
+
.agent/skills/gsd/bin/gsd-tools.cjs" config-get workflow.code_review_depth 2>/dev/null`
|
|
94
|
+
3. Default: "standard"
|
|
95
|
+
|
|
96
|
+
```bash
|
|
97
|
+
if [ -n "$DEPTH_OVERRIDE" ]; then
|
|
98
|
+
REVIEW_DEPTH="$DEPTH_OVERRIDE"
|
|
99
|
+
else
|
|
100
|
+
.agent/skills/gsd/bin/gsd-tools.cjs" config-get workflow.code_review_depth 2>/dev/null || echo "")
|
|
101
|
+
REVIEW_DEPTH="${CONFIG_DEPTH:-standard}"
|
|
102
|
+
fi
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
**Validate depth value:**
|
|
106
|
+
```bash
|
|
107
|
+
case "$REVIEW_DEPTH" in
|
|
108
|
+
quick|standard|deep)
|
|
109
|
+
# Valid
|
|
110
|
+
;;
|
|
111
|
+
*)
|
|
112
|
+
echo "Warning: Invalid depth '${REVIEW_DEPTH}'. Valid values: quick, standard, deep. Using 'standard'."
|
|
113
|
+
REVIEW_DEPTH="standard"
|
|
114
|
+
;;
|
|
115
|
+
esac
|
|
116
|
+
```
|
|
117
|
+
</step>
|
|
118
|
+
|
|
119
|
+
<step name="compute_file_scope">
|
|
120
|
+
Three-tier scoping with explicit precedence:
|
|
121
|
+
|
|
122
|
+
**Tier 1 — --files override (highest precedence per D-08):**
|
|
123
|
+
|
|
124
|
+
If FILES_OVERRIDE is set (from --files flag):
|
|
125
|
+
```bash
|
|
126
|
+
if [ -n "$FILES_OVERRIDE" ]; then
|
|
127
|
+
REVIEW_FILES=()
|
|
128
|
+
REPO_ROOT=$(git rev-parse --show-toplevel 2>/dev/null)
|
|
129
|
+
|
|
130
|
+
for file_path in "${FILES_ARRAY[@]}"; do
|
|
131
|
+
# Security: validate path is within repository (prevent path traversal)
|
|
132
|
+
ABS_PATH=$(realpath -m "${file_path}" 2>/dev/null || echo "${file_path}")
|
|
133
|
+
if [[ "$ABS_PATH" != "$REPO_ROOT"* ]]; then
|
|
134
|
+
echo "Error: File path outside repository, skipping: ${file_path}"
|
|
135
|
+
continue
|
|
136
|
+
fi
|
|
137
|
+
|
|
138
|
+
# Validate path exists (relative to repo root)
|
|
139
|
+
if [ -f "${REPO_ROOT}/${file_path}" ] || [ -f "${file_path}" ]; then
|
|
140
|
+
REVIEW_FILES+=("$file_path")
|
|
141
|
+
else
|
|
142
|
+
echo "Warning: File not found, skipping: ${file_path}"
|
|
143
|
+
fi
|
|
144
|
+
done
|
|
145
|
+
|
|
146
|
+
echo "File scope: ${#REVIEW_FILES[@]} files from --files override"
|
|
147
|
+
fi
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
Skip SUMMARY/git scoping entirely when --files is provided.
|
|
151
|
+
|
|
152
|
+
**Tier 2 — SUMMARY.md extraction (primary per D-01):**
|
|
153
|
+
|
|
154
|
+
If --files NOT provided:
|
|
155
|
+
```bash
|
|
156
|
+
if [ -z "$FILES_OVERRIDE" ]; then
|
|
157
|
+
SUMMARIES=$(ls "${PHASE_DIR}"/*-SUMMARY.md 2>/dev/null)
|
|
158
|
+
REVIEW_FILES=()
|
|
159
|
+
|
|
160
|
+
if [ -n "$SUMMARIES" ]; then
|
|
161
|
+
for summary in $SUMMARIES; do
|
|
162
|
+
# Extract key_files.created and key_files.modified using node for reliable YAML parsing
|
|
163
|
+
# This avoids fragile awk parsing that breaks on indentation differences
|
|
164
|
+
EXTRACTED=$(node -e "
|
|
165
|
+
const fs = require('fs');
|
|
166
|
+
const content = fs.readFileSync('$summary', 'utf-8');
|
|
167
|
+
const match = content.match(/^---\n([\s\S]*?)\n---/);
|
|
168
|
+
if (!match) { process.exit(0); }
|
|
169
|
+
const yaml = match[1];
|
|
170
|
+
const files = [];
|
|
171
|
+
let inSection = null;
|
|
172
|
+
for (const line of yaml.split('\n')) {
|
|
173
|
+
if (/^\s+created:/.test(line)) { inSection = 'created'; continue; }
|
|
174
|
+
if (/^\s+modified:/.test(line)) { inSection = 'modified'; continue; }
|
|
175
|
+
if (/^\s+\w+:/.test(line) && !/^\s+-/.test(line)) { inSection = null; continue; }
|
|
176
|
+
if (inSection && /^\s+-\s+(.+)/.test(line)) {
|
|
177
|
+
files.push(line.match(/^\s+-\s+(.+)/)[1].trim());
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
if (files.length) console.log(files.join('\n'));
|
|
181
|
+
" 2>/dev/null)
|
|
182
|
+
|
|
183
|
+
# Add extracted files to REVIEW_FILES array
|
|
184
|
+
if [ -n "$EXTRACTED" ]; then
|
|
185
|
+
while IFS= read -r file; do
|
|
186
|
+
if [ -n "$file" ]; then
|
|
187
|
+
REVIEW_FILES+=("$file")
|
|
188
|
+
fi
|
|
189
|
+
done <<< "$EXTRACTED"
|
|
190
|
+
fi
|
|
191
|
+
done
|
|
192
|
+
|
|
193
|
+
if [ ${#REVIEW_FILES[@]} -eq 0 ]; then
|
|
194
|
+
echo "Warning: SUMMARY artifacts found but contained no file paths. Falling back to git diff."
|
|
195
|
+
fi
|
|
196
|
+
fi
|
|
197
|
+
fi
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
**Tier 3 — Git diff fallback (per D-02):**
|
|
201
|
+
|
|
202
|
+
If no SUMMARY.md files found OR no files extracted from them:
|
|
203
|
+
```bash
|
|
204
|
+
if [ ${#REVIEW_FILES[@]} -eq 0 ]; then
|
|
205
|
+
# Compute diff base from phase commits — fail closed if no reliable base found
|
|
206
|
+
PHASE_COMMITS=$(git log --oneline --all --grep="${PADDED_PHASE}" --format="%H" 2>/dev/null)
|
|
207
|
+
|
|
208
|
+
if [ -n "$PHASE_COMMITS" ]; then
|
|
209
|
+
DIFF_BASE=$(echo "$PHASE_COMMITS" | tail -1)^
|
|
210
|
+
|
|
211
|
+
# Verify the parent commit exists (first commit in repo has no parent)
|
|
212
|
+
if ! git rev-parse "${DIFF_BASE}" >/dev/null 2>&1; then
|
|
213
|
+
DIFF_BASE=$(echo "$PHASE_COMMITS" | tail -1)
|
|
214
|
+
fi
|
|
215
|
+
|
|
216
|
+
# Run git diff with specific exclusions (per D-03)
|
|
217
|
+
DIFF_FILES=$(git diff --name-only "${DIFF_BASE}..HEAD" -- . \
|
|
218
|
+
':!.planning/' ':!ROADMAP.md' ':!STATE.md' \
|
|
219
|
+
':!*-SUMMARY.md' ':!*-VERIFICATION.md' ':!*-PLAN.md' \
|
|
220
|
+
':!package-lock.json' ':!yarn.lock' ':!Gemfile.lock' ':!poetry.lock' 2>/dev/null)
|
|
221
|
+
|
|
222
|
+
while IFS= read -r file; do
|
|
223
|
+
[ -n "$file" ] && REVIEW_FILES+=("$file")
|
|
224
|
+
done <<< "$DIFF_FILES"
|
|
225
|
+
|
|
226
|
+
echo "File scope: ${#REVIEW_FILES[@]} files from git diff (base: ${DIFF_BASE})"
|
|
227
|
+
else
|
|
228
|
+
# Fail closed — no reliable diff base found. Do not use arbitrary HEAD~N.
|
|
229
|
+
echo "Warning: No phase commits found for '${PADDED_PHASE}'. Cannot determine reliable diff scope."
|
|
230
|
+
echo "Use --files flag to specify files explicitly: /gsd-code-review ${PHASE_ARG} --files=file1,file2,..."
|
|
231
|
+
fi
|
|
232
|
+
fi
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
**Post-processing (all tiers):**
|
|
236
|
+
|
|
237
|
+
1. **Apply exclusions (per D-03):** Remove paths matching planning artifacts
|
|
238
|
+
```bash
|
|
239
|
+
FILTERED_FILES=()
|
|
240
|
+
for file in "${REVIEW_FILES[@]}"; do
|
|
241
|
+
# Skip planning directory and specific artifacts
|
|
242
|
+
if [[ "$file" == .planning/* ]] || \
|
|
243
|
+
[[ "$file" == ROADMAP.md ]] || \
|
|
244
|
+
[[ "$file" == STATE.md ]] || \
|
|
245
|
+
[[ "$file" == *-SUMMARY.md ]] || \
|
|
246
|
+
[[ "$file" == *-VERIFICATION.md ]] || \
|
|
247
|
+
[[ "$file" == *-PLAN.md ]]; then
|
|
248
|
+
continue
|
|
249
|
+
fi
|
|
250
|
+
FILTERED_FILES+=("$file")
|
|
251
|
+
done
|
|
252
|
+
REVIEW_FILES=("${FILTERED_FILES[@]}")
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
2. **Filter deleted files:** Remove paths that don't exist on disk
|
|
256
|
+
```bash
|
|
257
|
+
EXISTING_FILES=()
|
|
258
|
+
DELETED_COUNT=0
|
|
259
|
+
for file in "${REVIEW_FILES[@]}"; do
|
|
260
|
+
if [ -f "$file" ]; then
|
|
261
|
+
EXISTING_FILES+=("$file")
|
|
262
|
+
else
|
|
263
|
+
DELETED_COUNT=$((DELETED_COUNT + 1))
|
|
264
|
+
fi
|
|
265
|
+
done
|
|
266
|
+
REVIEW_FILES=("${EXISTING_FILES[@]}")
|
|
267
|
+
|
|
268
|
+
if [ $DELETED_COUNT -gt 0 ]; then
|
|
269
|
+
echo "Filtered $DELETED_COUNT deleted files from review scope"
|
|
270
|
+
fi
|
|
271
|
+
```
|
|
272
|
+
|
|
273
|
+
3. **Deduplicate:** Remove duplicate paths (portable — bash 3.2+ compatible, handles spaces in paths)
|
|
274
|
+
```bash
|
|
275
|
+
DEDUPED=()
|
|
276
|
+
while IFS= read -r line; do
|
|
277
|
+
[ -n "$line" ] && DEDUPED+=("$line")
|
|
278
|
+
done < <(printf '%s\n' "${REVIEW_FILES[@]}" | sort -u)
|
|
279
|
+
REVIEW_FILES=("${DEDUPED[@]}")
|
|
280
|
+
```
|
|
281
|
+
|
|
282
|
+
4. **Sort:** Alphabetical sort for reproducible agent input (already sorted by sort -u above)
|
|
283
|
+
|
|
284
|
+
**Log final scope and warn if large:**
|
|
285
|
+
```bash
|
|
286
|
+
if [ -n "$FILES_OVERRIDE" ]; then
|
|
287
|
+
TIER="--files override"
|
|
288
|
+
elif [ -n "$SUMMARIES" ] && [ ${#REVIEW_FILES[@]} -gt 0 ]; then
|
|
289
|
+
TIER="SUMMARY.md"
|
|
290
|
+
else
|
|
291
|
+
TIER="git diff"
|
|
292
|
+
fi
|
|
293
|
+
echo "File scope: ${#REVIEW_FILES[@]} files from ${TIER}"
|
|
294
|
+
|
|
295
|
+
# Warn if file count is very large — may exceed agent context or produce superficial review
|
|
296
|
+
if [ ${#REVIEW_FILES[@]} -gt 50 ]; then
|
|
297
|
+
echo "Warning: ${#REVIEW_FILES[@]} files is a large review scope."
|
|
298
|
+
echo "Consider using --files to narrow scope, or --depth=quick for a faster pass."
|
|
299
|
+
if [ "$REVIEW_DEPTH" = "deep" ]; then
|
|
300
|
+
echo "Switching from deep to standard depth for large file count."
|
|
301
|
+
REVIEW_DEPTH="standard"
|
|
302
|
+
fi
|
|
303
|
+
fi
|
|
304
|
+
```
|
|
305
|
+
</step>
|
|
306
|
+
|
|
307
|
+
<step name="check_empty_scope">
|
|
308
|
+
If REVIEW_FILES is empty:
|
|
309
|
+
```
|
|
310
|
+
No source files changed in phase ${PHASE_ARG}. Skipping review.
|
|
311
|
+
```
|
|
312
|
+
Exit workflow. Do NOT spawn agent or create REVIEW.md.
|
|
313
|
+
</step>
|
|
314
|
+
|
|
315
|
+
<step name="spawn_reviewer">
|
|
316
|
+
Compute the review output path:
|
|
317
|
+
```bash
|
|
318
|
+
REVIEW_PATH="${PHASE_DIR}/${PADDED_PHASE}-REVIEW.md"
|
|
319
|
+
```
|
|
320
|
+
|
|
321
|
+
Compute DIFF_BASE for agent context (in case agent needs it):
|
|
322
|
+
```bash
|
|
323
|
+
PHASE_COMMITS=$(git log --oneline --all --grep="${PADDED_PHASE}" --format="%H" 2>/dev/null)
|
|
324
|
+
if [ -n "$PHASE_COMMITS" ]; then
|
|
325
|
+
DIFF_BASE=$(echo "$PHASE_COMMITS" | tail -1)^
|
|
326
|
+
else
|
|
327
|
+
DIFF_BASE=""
|
|
328
|
+
fi
|
|
329
|
+
```
|
|
330
|
+
|
|
331
|
+
Build files_to_read block for agent:
|
|
332
|
+
```bash
|
|
333
|
+
FILES_TO_READ=""
|
|
334
|
+
for file in "${REVIEW_FILES[@]}"; do
|
|
335
|
+
FILES_TO_READ+="- ${file}\n"
|
|
336
|
+
done
|
|
337
|
+
```
|
|
338
|
+
|
|
339
|
+
Build config block for agent:
|
|
340
|
+
```bash
|
|
341
|
+
CONFIG_FILES=""
|
|
342
|
+
for file in "${REVIEW_FILES[@]}"; do
|
|
343
|
+
CONFIG_FILES+=" - ${file}\n"
|
|
344
|
+
done
|
|
345
|
+
```
|
|
346
|
+
|
|
347
|
+
Spawn the gsd-code-reviewer agent:
|
|
348
|
+
|
|
349
|
+
```
|
|
350
|
+
Task(subagent_type="gsd-code-reviewer", prompt="
|
|
351
|
+
<files_to_read>
|
|
352
|
+
${FILES_TO_READ}
|
|
353
|
+
</files_to_read>
|
|
354
|
+
|
|
355
|
+
<config>
|
|
356
|
+
depth: ${REVIEW_DEPTH}
|
|
357
|
+
phase_dir: ${PHASE_DIR}
|
|
358
|
+
review_path: ${REVIEW_PATH}
|
|
359
|
+
${DIFF_BASE:+diff_base: ${DIFF_BASE}}
|
|
360
|
+
files:
|
|
361
|
+
${CONFIG_FILES}
|
|
362
|
+
</config>
|
|
363
|
+
|
|
364
|
+
Review the listed source files at ${REVIEW_DEPTH} depth. Write findings to ${REVIEW_PATH}.
|
|
365
|
+
Do NOT commit the output — the orchestrator handles that.
|
|
366
|
+
")
|
|
367
|
+
```
|
|
368
|
+
|
|
369
|
+
**Agent failure handling:**
|
|
370
|
+
|
|
371
|
+
If the Task() call fails (agent error, timeout, or exception):
|
|
372
|
+
```
|
|
373
|
+
Error: Code review agent failed: ${error_message}
|
|
374
|
+
|
|
375
|
+
No REVIEW.md created. You can retry with /gsd-code-review ${PHASE_ARG} or check agent logs.
|
|
376
|
+
```
|
|
377
|
+
|
|
378
|
+
Do NOT proceed to commit_review step. Do NOT create a partial or empty REVIEW.md. Exit workflow.
|
|
379
|
+
</step>
|
|
380
|
+
|
|
381
|
+
<step name="commit_review">
|
|
382
|
+
After agent completes successfully, verify REVIEW.md was created and has valid structure:
|
|
383
|
+
|
|
384
|
+
```bash
|
|
385
|
+
if [ -f "${REVIEW_PATH}" ]; then
|
|
386
|
+
# Validate REVIEW.md has valid YAML frontmatter with status field
|
|
387
|
+
HAS_STATUS=$(REVIEW_PATH="${REVIEW_PATH}" node -e "
|
|
388
|
+
const fs = require('fs');
|
|
389
|
+
const content = fs.readFileSync(process.env.REVIEW_PATH, 'utf-8');
|
|
390
|
+
const match = content.match(/^---\n([\s\S]*?)\n---/);
|
|
391
|
+
if (match && /status:/.test(match[1])) { console.log('valid'); } else { console.log('invalid'); }
|
|
392
|
+
" 2>/dev/null)
|
|
393
|
+
|
|
394
|
+
if [ "$HAS_STATUS" = "valid" ]; then
|
|
395
|
+
echo "REVIEW.md created at ${REVIEW_PATH}"
|
|
396
|
+
|
|
397
|
+
if [ "$COMMIT_DOCS" = "true" ]; then
|
|
398
|
+
.agent/skills/gsd/bin/gsd-tools.cjs" commit \
|
|
399
|
+
"docs(${PADDED_PHASE}): add code review report" \
|
|
400
|
+
--files "${REVIEW_PATH}"
|
|
401
|
+
fi
|
|
402
|
+
else
|
|
403
|
+
echo "Warning: REVIEW.md exists but has invalid or missing frontmatter (no status field)."
|
|
404
|
+
echo "Agent may have produced malformed output. Not committing. Review manually: ${REVIEW_PATH}"
|
|
405
|
+
fi
|
|
406
|
+
else
|
|
407
|
+
echo "Warning: Agent completed but REVIEW.md not found at ${REVIEW_PATH}. This may indicate an agent issue."
|
|
408
|
+
echo "No REVIEW.md to commit. Please retry with /gsd-code-review ${PHASE_ARG}"
|
|
409
|
+
fi
|
|
410
|
+
```
|
|
411
|
+
</step>
|
|
412
|
+
|
|
413
|
+
<step name="present_results">
|
|
414
|
+
Read the REVIEW.md YAML frontmatter to extract finding counts.
|
|
415
|
+
|
|
416
|
+
Extract frontmatter between `---` delimiters first to avoid matching values in the review body:
|
|
417
|
+
|
|
418
|
+
```bash
|
|
419
|
+
# Extract only the YAML frontmatter block (between first two --- lines)
|
|
420
|
+
FRONTMATTER=$(REVIEW_PATH="${REVIEW_PATH}" node -e "
|
|
421
|
+
const fs = require('fs');
|
|
422
|
+
const content = fs.readFileSync(process.env.REVIEW_PATH, 'utf-8');
|
|
423
|
+
const match = content.match(/^---\n([\s\S]*?)\n---/);
|
|
424
|
+
if (match) process.stdout.write(match[1]);
|
|
425
|
+
" 2>/dev/null)
|
|
426
|
+
|
|
427
|
+
# Parse fields from frontmatter only (not full file)
|
|
428
|
+
STATUS=$(echo "$FRONTMATTER" | grep "^status:" | cut -d: -f2 | xargs)
|
|
429
|
+
FILES_REVIEWED=$(echo "$FRONTMATTER" | grep "^files_reviewed:" | cut -d: -f2 | xargs)
|
|
430
|
+
CRITICAL=$(echo "$FRONTMATTER" | grep "critical:" | head -1 | cut -d: -f2 | xargs)
|
|
431
|
+
WARNING=$(echo "$FRONTMATTER" | grep "warning:" | head -1 | cut -d: -f2 | xargs)
|
|
432
|
+
INFO=$(echo "$FRONTMATTER" | grep "info:" | head -1 | cut -d: -f2 | xargs)
|
|
433
|
+
TOTAL=$(echo "$FRONTMATTER" | grep "total:" | head -1 | cut -d: -f2 | xargs)
|
|
434
|
+
```
|
|
435
|
+
|
|
436
|
+
Display inline summary to user:
|
|
437
|
+
|
|
438
|
+
```
|
|
439
|
+
═══════════════════════════════════════════════════════════════
|
|
440
|
+
|
|
441
|
+
Code Review Complete: Phase ${PHASE_NUMBER} (${PHASE_NAME})
|
|
442
|
+
|
|
443
|
+
───────────────────────────────────────────────────────────────
|
|
444
|
+
|
|
445
|
+
Depth: ${REVIEW_DEPTH}
|
|
446
|
+
Files Reviewed: ${FILES_REVIEWED}
|
|
447
|
+
|
|
448
|
+
Findings:
|
|
449
|
+
Critical: ${CRITICAL}
|
|
450
|
+
Warning: ${WARNING}
|
|
451
|
+
Info: ${INFO}
|
|
452
|
+
──────────
|
|
453
|
+
Total: ${TOTAL}
|
|
454
|
+
|
|
455
|
+
───────────────────────────────────────────────────────────────
|
|
456
|
+
```
|
|
457
|
+
|
|
458
|
+
If status is "clean":
|
|
459
|
+
```
|
|
460
|
+
✓ No issues found. All ${FILES_REVIEWED} files pass review at ${REVIEW_DEPTH} depth.
|
|
461
|
+
|
|
462
|
+
Full report: ${REVIEW_PATH}
|
|
463
|
+
```
|
|
464
|
+
|
|
465
|
+
If total findings > 0:
|
|
466
|
+
```
|
|
467
|
+
⚠ Issues found. Review the report for details.
|
|
468
|
+
|
|
469
|
+
Full report: ${REVIEW_PATH}
|
|
470
|
+
|
|
471
|
+
Next steps:
|
|
472
|
+
/gsd-code-review-fix ${PHASE_NUMBER} — Auto-fix issues
|
|
473
|
+
cat ${REVIEW_PATH} — View full report
|
|
474
|
+
```
|
|
475
|
+
|
|
476
|
+
If critical > 0 or warning > 0, list top 3 issues inline:
|
|
477
|
+
```bash
|
|
478
|
+
echo "Top issues:"
|
|
479
|
+
grep -A 3 "^### CR-\|^### WR-" "${REVIEW_PATH}" | head -n 12
|
|
480
|
+
```
|
|
481
|
+
|
|
482
|
+
**Note on tests:** Automated tests for this command and workflow are planned for Phase 4 (Pipeline Integration & Testing, requirement INFR-03). Phase 2 focuses on correct implementation; Phase 4 adds regression coverage across platforms.
|
|
483
|
+
|
|
484
|
+
═══════════════════════════════════════════════════════════════
|
|
485
|
+
</step>
|
|
486
|
+
|
|
487
|
+
</process>
|
|
488
|
+
|
|
489
|
+
<platform_notes>
|
|
490
|
+
**Windows:** This workflow uses bash features (arrays, process substitution). On Windows, it requires
|
|
491
|
+
Git Bash or WSL. Native PowerShell is not supported. The CI matrix (Ubuntu/macOS/Windows)
|
|
492
|
+
runs under Git Bash on Windows runners, which provides bash compatibility.
|
|
493
|
+
|
|
494
|
+
**macOS:** macOS ships with bash 3.2 (GPL licensing). This workflow does NOT use `mapfile` (bash 4+
|
|
495
|
+
only) — all array construction uses portable `while IFS= read -r` loops compatible with bash 3.2.
|
|
496
|
+
The `--files` path validation uses `realpath -m` which requires GNU coreutils (install via
|
|
497
|
+
`brew install coreutils`). Without coreutils, the path guard falls back to fail-closed behavior
|
|
498
|
+
(rejects paths it cannot verify), so security is maintained but valid relative paths may be rejected.
|
|
499
|
+
If `--files` validation fails unexpectedly on macOS, install coreutils or use absolute paths.
|
|
500
|
+
</platform_notes>
|
|
501
|
+
|
|
502
|
+
<success_criteria>
|
|
503
|
+
- [ ] Phase validated before config gate check
|
|
504
|
+
- [ ] Config gate checked (workflow.code_review)
|
|
505
|
+
- [ ] Depth resolved with validation (quick|standard|deep)
|
|
506
|
+
- [ ] File scope computed with 3 tiers: --files > SUMMARY.md > git diff
|
|
507
|
+
- [ ] Malformed/missing SUMMARY.md handled gracefully with fallback
|
|
508
|
+
- [ ] Deleted files filtered from scope
|
|
509
|
+
- [ ] Files deduplicated and sorted
|
|
510
|
+
- [ ] Empty scope results in skip (no agent spawn)
|
|
511
|
+
- [ ] Agent spawned with explicit file list, depth, review_path, diff_base
|
|
512
|
+
- [ ] Agent failure handled without partial commits
|
|
513
|
+
- [ ] REVIEW.md committed if created
|
|
514
|
+
- [ ] Results presented inline with next step suggestion
|
|
515
|
+
</success_criteria>
|
|
@@ -5,7 +5,7 @@ Power user mode for discuss-phase. Generates ALL questions upfront into a JSON s
|
|
|
5
5
|
</purpose>
|
|
6
6
|
|
|
7
7
|
<trigger>
|
|
8
|
-
This workflow executes when `--power` flag is present in ARGUMENTS to `/gsd
|
|
8
|
+
This workflow executes when `--power` flag is present in ARGUMENTS to `/gsd-discuss-phase`.
|
|
9
9
|
|
|
10
10
|
The caller (discuss-phase.md) has already:
|
|
11
11
|
- Validated the phase exists
|
|
@@ -265,7 +265,7 @@ Process all answered questions from the JSON file and generate CONTEXT.md.
|
|
|
265
265
|
```
|
|
266
266
|
Warning: Only {answered}/{total} questions answered ({pct}%).
|
|
267
267
|
CONTEXT.md generated with available decisions. Unanswered questions listed as deferred.
|
|
268
|
-
Consider running /gsd
|
|
268
|
+
Consider running /gsd-discuss-phase {N} again to refine before planning.
|
|
269
269
|
```
|
|
270
270
|
|
|
271
271
|
7. Print completion message:
|
|
@@ -275,7 +275,7 @@ CONTEXT.md written: {phase_dir}/{padded_phase}-CONTEXT.md
|
|
|
275
275
|
Decisions captured: {answered}
|
|
276
276
|
Deferred: {remaining}
|
|
277
277
|
|
|
278
|
-
Next step: /gsd
|
|
278
|
+
Next step: /gsd-plan-phase {N}
|
|
279
279
|
```
|
|
280
280
|
</step>
|
|
281
281
|
|
|
@@ -4,6 +4,12 @@ Extract implementation decisions that downstream agents need. Analyze the phase
|
|
|
4
4
|
You are a thinking partner, not an interviewer. The user is the visionary — you are the builder. Your job is to capture decisions that will guide research and planning, not to figure out implementation yourself.
|
|
5
5
|
</purpose>
|
|
6
6
|
|
|
7
|
+
<required_reading>
|
|
8
|
+
@references/docs/domain-probes.md
|
|
9
|
+
@references/docs/gate-prompts.md
|
|
10
|
+
@references/docs/universal-anti-patterns.md
|
|
11
|
+
</required_reading>
|
|
12
|
+
|
|
7
13
|
<downstream_awareness>
|
|
8
14
|
**CONTEXT.md feeds into:**
|
|
9
15
|
|
|
@@ -601,6 +607,20 @@ Table-first discussion flow — present research-backed comparison tables, then
|
|
|
601
607
|
- If user picks from table options → record as locked decision for that area
|
|
602
608
|
- If user picks "Other" → receive their input, reflect it back for confirmation, record
|
|
603
609
|
|
|
610
|
+
**Thinking partner (conditional):**
|
|
611
|
+
If `features.thinking_partner` is enabled in config, check the user's answer for tradeoff signals
|
|
612
|
+
(see `references/thinking-partner.md` for signal list). If tradeoff detected:
|
|
613
|
+
|
|
614
|
+
```
|
|
615
|
+
I notice competing priorities here — {option_A} optimizes for {goal_A} while {option_B} optimizes for {goal_B}.
|
|
616
|
+
|
|
617
|
+
Want me to think through the tradeoffs before we lock this in?
|
|
618
|
+
[Yes, analyze] / [No, decision made]
|
|
619
|
+
```
|
|
620
|
+
|
|
621
|
+
If yes: provide 3-5 bullet analysis (what each optimizes/sacrifices, alignment with PROJECT.md goals, recommendation). Then return to normal flow.
|
|
622
|
+
If no or thinking_partner disabled: continue to next area.
|
|
623
|
+
|
|
604
624
|
4. **After recording pick, Antigravity decides whether follow-up questions are needed:**
|
|
605
625
|
- If the pick has ambiguity that would affect downstream planning → ask 1-2 targeted follow-up questions using AskUserQuestion
|
|
606
626
|
- If the pick is clear and self-contained → move to next area
|