gsd-antigravity-kit 2.0.1 → 2.1.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 +26 -4
- package/.agent/skills/gsd/VERSION +1 -1
- package/.agent/skills/gsd/assets/templates/AI-SPEC.md +246 -0
- package/.agent/skills/gsd/assets/templates/DEBUG.md +7 -2
- package/.agent/skills/gsd/assets/templates/config.json +56 -48
- package/.agent/skills/gsd/assets/templates/research.md +40 -0
- package/.agent/skills/gsd/assets/templates/spec.md +307 -0
- package/.agent/skills/gsd/assets/templates/state.md +8 -0
- package/.agent/skills/gsd/bin/gsd-tools.cjs +212 -11
- package/.agent/skills/gsd/bin/help-manifest.json +8 -2
- package/.agent/skills/gsd/bin/hooks/gsd-check-update-worker.js +108 -0
- package/.agent/skills/gsd/bin/hooks/gsd-check-update.js +14 -89
- package/.agent/skills/gsd/bin/hooks/gsd-context-monitor.js +34 -5
- package/.agent/skills/gsd/bin/hooks/gsd-phase-boundary.sh +1 -0
- package/.agent/skills/gsd/bin/hooks/gsd-prompt-guard.js +1 -1
- package/.agent/skills/gsd/bin/hooks/gsd-read-guard.js +6 -1
- package/.agent/skills/gsd/bin/hooks/gsd-session-state.sh +1 -0
- package/.agent/skills/gsd/bin/hooks/gsd-statusline.js +150 -16
- package/.agent/skills/gsd/bin/hooks/gsd-validate-commit.sh +1 -0
- package/.agent/skills/gsd/bin/hooks/gsd-workflow-guard.js +1 -1
- package/.agent/skills/gsd/bin/lib/audit.cjs +757 -0
- package/.agent/skills/gsd/bin/lib/commands.cjs +17 -7
- package/.agent/skills/gsd/bin/lib/config.cjs +66 -20
- package/.agent/skills/gsd/bin/lib/core.cjs +212 -12
- package/.agent/skills/gsd/bin/lib/frontmatter.cjs +6 -8
- package/.agent/skills/gsd/bin/lib/graphify.cjs +494 -0
- package/.agent/skills/gsd/bin/lib/gsd2-import.cjs +511 -0
- package/.agent/skills/gsd/bin/lib/init.cjs +371 -18
- package/.agent/skills/gsd/bin/lib/intel.cjs +9 -30
- package/.agent/skills/gsd/bin/lib/milestone.cjs +18 -17
- package/.agent/skills/gsd/bin/lib/model-profiles.cjs +1 -0
- package/.agent/skills/gsd/bin/lib/phase.cjs +225 -98
- package/.agent/skills/gsd/bin/lib/profile-output.cjs +17 -5
- package/.agent/skills/gsd/bin/lib/roadmap.cjs +12 -5
- package/.agent/skills/gsd/bin/lib/state.cjs +394 -129
- package/.agent/skills/gsd/bin/lib/template.cjs +8 -4
- package/.agent/skills/gsd/bin/lib/uat.cjs +2 -1
- package/.agent/skills/gsd/bin/lib/verify.cjs +111 -42
- package/.agent/skills/gsd/migration_report.md +2 -2
- package/.agent/skills/gsd/references/agents/gsd-advisor-researcher.md +23 -0
- package/.agent/skills/gsd/references/agents/gsd-ai-researcher.md +133 -0
- package/.agent/skills/gsd/references/agents/gsd-code-fixer.md +11 -10
- package/.agent/skills/gsd/references/agents/gsd-code-reviewer.md +2 -2
- package/.agent/skills/gsd/references/agents/gsd-codebase-mapper.md +13 -2
- package/.agent/skills/gsd/references/agents/gsd-debug-session-manager.md +314 -0
- package/.agent/skills/gsd/references/agents/gsd-debugger.md +147 -76
- package/.agent/skills/gsd/references/agents/gsd-doc-verifier.md +1 -1
- package/.agent/skills/gsd/references/agents/gsd-doc-writer.md +615 -602
- package/.agent/skills/gsd/references/agents/gsd-domain-researcher.md +153 -0
- package/.agent/skills/gsd/references/agents/gsd-eval-auditor.md +175 -0
- package/.agent/skills/gsd/references/agents/gsd-eval-planner.md +154 -0
- package/.agent/skills/gsd/references/agents/gsd-executor.md +108 -38
- package/.agent/skills/gsd/references/agents/gsd-framework-selector.md +160 -0
- package/.agent/skills/gsd/references/agents/gsd-integration-checker.md +454 -443
- package/.agent/skills/gsd/references/agents/gsd-intel-updater.md +40 -20
- package/.agent/skills/gsd/references/agents/gsd-nyquist-auditor.md +187 -176
- package/.agent/skills/gsd/references/agents/gsd-pattern-mapper.md +335 -0
- package/.agent/skills/gsd/references/agents/gsd-phase-researcher.md +112 -13
- package/.agent/skills/gsd/references/agents/gsd-plan-checker.md +104 -10
- package/.agent/skills/gsd/references/agents/gsd-planner.md +125 -167
- package/.agent/skills/gsd/references/agents/gsd-project-researcher.md +25 -2
- package/.agent/skills/gsd/references/agents/gsd-research-synthesizer.md +3 -3
- package/.agent/skills/gsd/references/agents/gsd-roadmapper.md +12 -1
- package/.agent/skills/gsd/references/agents/gsd-security-auditor.md +139 -128
- package/.agent/skills/gsd/references/agents/gsd-ui-auditor.md +3 -3
- package/.agent/skills/gsd/references/agents/gsd-ui-checker.md +11 -2
- package/.agent/skills/gsd/references/agents/gsd-ui-researcher.md +27 -4
- package/.agent/skills/gsd/references/agents/gsd-verifier.md +13 -19
- package/.agent/skills/gsd/references/commands/atomic/add-todo.md +2 -2
- package/.agent/skills/gsd/references/commands/atomic/check-todos.md +2 -2
- package/.agent/skills/gsd/references/commands/atomic/cleanup.md +2 -2
- package/.agent/skills/gsd/references/commands/atomic/do.md +2 -2
- package/.agent/skills/gsd/references/commands/atomic/help.md +2 -2
- package/.agent/skills/gsd/references/commands/atomic/join-discord.md +2 -2
- package/.agent/skills/gsd/references/commands/atomic/note.md +2 -2
- package/.agent/skills/gsd/references/commands/atomic/session-report.md +2 -2
- package/.agent/skills/gsd/references/commands/atomic/ship.md +2 -2
- package/.agent/skills/gsd/references/commands/atomic/stats.md +2 -2
- package/.agent/skills/gsd/references/commands/atomic/thread.md +141 -41
- package/.agent/skills/gsd/references/commands/atomic/undo.md +2 -2
- package/.agent/skills/gsd/references/commands/milestone/add-backlog.md +15 -12
- package/.agent/skills/gsd/references/commands/milestone/audit-milestone.md +2 -2
- package/.agent/skills/gsd/references/commands/milestone/complete-milestone.md +2 -2
- package/.agent/skills/gsd/references/commands/milestone/milestone-summary.md +2 -2
- package/.agent/skills/gsd/references/commands/milestone/new-milestone.md +2 -2
- package/.agent/skills/gsd/references/commands/milestone/plan-milestone-gaps.md +2 -2
- package/.agent/skills/gsd/references/commands/milestone/plant-seed.md +2 -2
- package/.agent/skills/gsd/references/commands/milestone/review-backlog.md +4 -4
- package/.agent/skills/gsd/references/commands/misc/ai-integration-phase.md +38 -0
- package/.agent/skills/gsd/references/commands/misc/audit-fix.md +2 -2
- package/.agent/skills/gsd/references/commands/misc/audit-uat.md +2 -2
- package/.agent/skills/gsd/references/commands/misc/eval-review.md +34 -0
- package/.agent/skills/gsd/references/commands/misc/extract_learnings.md +24 -0
- package/.agent/skills/gsd/references/commands/misc/from-gsd2.md +49 -0
- package/.agent/skills/gsd/references/commands/misc/graphify.md +203 -0
- package/.agent/skills/gsd/references/commands/misc/inbox.md +40 -0
- package/.agent/skills/gsd/references/commands/misc/next.md +5 -3
- package/.agent/skills/gsd/references/commands/misc/progress.md +4 -3
- package/.agent/skills/gsd/references/commands/misc/sketch-wrap-up.md +33 -0
- package/.agent/skills/gsd/references/commands/misc/sketch.md +47 -0
- package/.agent/skills/gsd/references/commands/misc/spec-phase.md +64 -0
- package/.agent/skills/gsd/references/commands/misc/spike-wrap-up.md +33 -0
- package/.agent/skills/gsd/references/commands/misc/spike.md +43 -0
- package/.agent/skills/gsd/references/commands/misc/verify-work.md +2 -2
- package/.agent/skills/gsd/references/commands/phase/add-phase.md +2 -2
- package/.agent/skills/gsd/references/commands/phase/add-tests.md +2 -2
- package/.agent/skills/gsd/references/commands/phase/discuss-phase.md +5 -5
- package/.agent/skills/gsd/references/commands/phase/execute-phase.md +4 -4
- package/.agent/skills/gsd/references/commands/phase/insert-phase.md +2 -2
- package/.agent/skills/gsd/references/commands/phase/list-phase-assumptions.md +2 -2
- package/.agent/skills/gsd/references/commands/phase/plan-phase.md +3 -3
- package/.agent/skills/gsd/references/commands/phase/remove-phase.md +2 -2
- package/.agent/skills/gsd/references/commands/phase/research-phase.md +5 -5
- package/.agent/skills/gsd/references/commands/phase/secure-phase.md +2 -2
- package/.agent/skills/gsd/references/commands/phase/ui-phase.md +2 -2
- package/.agent/skills/gsd/references/commands/phase/ui-review.md +2 -2
- package/.agent/skills/gsd/references/commands/phase/validate-phase.md +2 -2
- package/.agent/skills/gsd/references/commands/phase/workstreams.md +9 -9
- package/.agent/skills/gsd/references/commands/project/analyze-dependencies.md +2 -2
- package/.agent/skills/gsd/references/commands/project/explore.md +2 -2
- package/.agent/skills/gsd/references/commands/project/import.md +2 -2
- package/.agent/skills/gsd/references/commands/project/intel.md +10 -10
- package/.agent/skills/gsd/references/commands/project/list-workspaces.md +2 -2
- package/.agent/skills/gsd/references/commands/project/map-codebase.md +2 -2
- package/.agent/skills/gsd/references/commands/project/new-project.md +2 -2
- package/.agent/skills/gsd/references/commands/project/new-workspace.md +2 -2
- package/.agent/skills/gsd/references/commands/project/remove-workspace.md +2 -2
- package/.agent/skills/gsd/references/commands/project/scan.md +2 -2
- package/.agent/skills/gsd/references/commands/system/autonomous.md +4 -3
- package/.agent/skills/gsd/references/commands/system/code-review-fix.md +3 -3
- package/.agent/skills/gsd/references/commands/system/code-review.md +3 -3
- package/.agent/skills/gsd/references/commands/system/debug.md +177 -100
- package/.agent/skills/gsd/references/commands/system/docs-update.md +2 -2
- package/.agent/skills/gsd/references/commands/system/fast.md +2 -2
- package/.agent/skills/gsd/references/commands/system/forensics.md +2 -2
- package/.agent/skills/gsd/references/commands/system/gsd-tools.md +153 -6
- package/.agent/skills/gsd/references/commands/system/health.md +2 -2
- package/.agent/skills/gsd/references/commands/system/manager.md +3 -3
- package/.agent/skills/gsd/references/commands/system/pause-work.md +2 -2
- package/.agent/skills/gsd/references/commands/system/pr-branch.md +2 -2
- package/.agent/skills/gsd/references/commands/system/profile-user.md +2 -2
- package/.agent/skills/gsd/references/commands/system/quick.md +127 -3
- package/.agent/skills/gsd/references/commands/system/reapply-patches.md +45 -6
- package/.agent/skills/gsd/references/commands/system/resume-work.md +2 -2
- package/.agent/skills/gsd/references/commands/system/review.md +6 -4
- package/.agent/skills/gsd/references/commands/system/set-profile.md +3 -3
- package/.agent/skills/gsd/references/commands/system/settings.md +2 -2
- package/.agent/skills/gsd/references/commands/system/update.md +2 -2
- package/.agent/skills/gsd/references/docs/ai-evals.md +156 -0
- package/.agent/skills/gsd/references/docs/ai-frameworks.md +186 -0
- package/.agent/skills/gsd/references/docs/artifact-types.md +18 -0
- package/.agent/skills/gsd/references/docs/autonomous-smart-discuss.md +277 -0
- package/.agent/skills/gsd/references/docs/checkpoints.md +30 -0
- package/.agent/skills/gsd/references/docs/common-bug-patterns.md +49 -49
- package/.agent/skills/gsd/references/docs/continuation-format.md +11 -7
- package/.agent/skills/gsd/references/docs/debugger-philosophy.md +76 -0
- package/.agent/skills/gsd/references/docs/decimal-phase-calculation.md +64 -64
- package/.agent/skills/gsd/references/docs/executor-examples.md +110 -0
- package/.agent/skills/gsd/references/docs/git-integration.md +4 -4
- package/.agent/skills/gsd/references/docs/git-planning-commit.md +40 -38
- package/.agent/skills/gsd/references/docs/ios-scaffold.md +123 -0
- package/.agent/skills/gsd/references/docs/mandatory-initial-read.md +2 -0
- package/.agent/skills/gsd/references/docs/phase-argument-parsing.md +61 -61
- package/.agent/skills/gsd/references/docs/planner-antipatterns.md +89 -0
- package/.agent/skills/gsd/references/docs/planner-revision.md +87 -87
- package/.agent/skills/gsd/references/docs/planner-source-audit.md +73 -0
- package/.agent/skills/gsd/references/docs/planning-config.md +33 -8
- package/.agent/skills/gsd/references/docs/project-skills-discovery.md +19 -0
- package/.agent/skills/gsd/references/docs/sketch-interactivity.md +41 -0
- package/.agent/skills/gsd/references/docs/sketch-theme-system.md +94 -0
- package/.agent/skills/gsd/references/docs/sketch-tooling.md +45 -0
- package/.agent/skills/gsd/references/docs/sketch-variant-patterns.md +81 -0
- package/.agent/skills/gsd/references/docs/tdd.md +67 -0
- package/.agent/skills/gsd/references/docs/universal-anti-patterns.md +5 -0
- package/.agent/skills/gsd/references/docs/workstream-flag.md +11 -11
- package/.agent/skills/gsd/references/mapping.md +1 -1
- package/.agent/skills/gsd/references/workflows/add-phase.md +112 -112
- package/.agent/skills/gsd/references/workflows/add-tests.md +6 -3
- package/.agent/skills/gsd/references/workflows/add-todo.md +5 -3
- package/.agent/skills/gsd/references/workflows/ai-integration-phase.md +284 -0
- package/.agent/skills/gsd/references/workflows/audit-fix.md +157 -157
- package/.agent/skills/gsd/references/workflows/audit-milestone.md +340 -340
- package/.agent/skills/gsd/references/workflows/audit-uat.md +109 -109
- package/.agent/skills/gsd/references/workflows/autonomous.md +20 -288
- package/.agent/skills/gsd/references/workflows/check-todos.md +4 -2
- package/.agent/skills/gsd/references/workflows/cleanup.md +3 -1
- package/.agent/skills/gsd/references/workflows/code-review-fix.md +497 -497
- package/.agent/skills/gsd/references/workflows/code-review.md +515 -515
- package/.agent/skills/gsd/references/workflows/complete-milestone.md +97 -24
- package/.agent/skills/gsd/references/workflows/diagnose-issues.md +238 -238
- package/.agent/skills/gsd/references/workflows/discovery-phase.md +2 -0
- package/.agent/skills/gsd/references/workflows/discuss-phase-assumptions.md +11 -11
- package/.agent/skills/gsd/references/workflows/discuss-phase.md +143 -19
- package/.agent/skills/gsd/references/workflows/do.md +8 -2
- package/.agent/skills/gsd/references/workflows/docs-update.md +5 -3
- package/.agent/skills/gsd/references/workflows/eval-review.md +155 -0
- package/.agent/skills/gsd/references/workflows/execute-phase.md +338 -54
- package/.agent/skills/gsd/references/workflows/execute-plan.md +80 -104
- package/.agent/skills/gsd/references/workflows/explore.md +3 -1
- package/.agent/skills/gsd/references/workflows/extract_learnings.md +232 -0
- package/.agent/skills/gsd/references/workflows/forensics.md +3 -3
- package/.agent/skills/gsd/references/workflows/health.md +2 -2
- package/.agent/skills/gsd/references/workflows/help.md +59 -1
- package/.agent/skills/gsd/references/workflows/import.md +3 -1
- package/.agent/skills/gsd/references/workflows/inbox.md +387 -384
- package/.agent/skills/gsd/references/workflows/insert-phase.md +130 -130
- package/.agent/skills/gsd/references/workflows/list-workspaces.md +56 -56
- package/.agent/skills/gsd/references/workflows/manager.md +5 -3
- package/.agent/skills/gsd/references/workflows/map-codebase.md +19 -5
- package/.agent/skills/gsd/references/workflows/milestone-summary.md +6 -6
- package/.agent/skills/gsd/references/workflows/new-milestone.md +63 -9
- package/.agent/skills/gsd/references/workflows/new-project.md +126 -22
- package/.agent/skills/gsd/references/workflows/new-workspace.md +6 -4
- package/.agent/skills/gsd/references/workflows/next.md +220 -153
- package/.agent/skills/gsd/references/workflows/note.md +2 -0
- package/.agent/skills/gsd/references/workflows/pause-work.md +11 -7
- package/.agent/skills/gsd/references/workflows/plan-milestone-gaps.md +273 -273
- package/.agent/skills/gsd/references/workflows/plan-phase.md +281 -62
- package/.agent/skills/gsd/references/workflows/plant-seed.md +4 -1
- package/.agent/skills/gsd/references/workflows/pr-branch.md +41 -13
- package/.agent/skills/gsd/references/workflows/profile-user.md +15 -13
- package/.agent/skills/gsd/references/workflows/progress.md +133 -21
- package/.agent/skills/gsd/references/workflows/quick.md +67 -27
- package/.agent/skills/gsd/references/workflows/remove-phase.md +155 -155
- package/.agent/skills/gsd/references/workflows/remove-workspace.md +4 -2
- package/.agent/skills/gsd/references/workflows/research-phase.md +3 -3
- package/.agent/skills/gsd/references/workflows/resume-project.md +3 -3
- package/.agent/skills/gsd/references/workflows/review.md +71 -8
- package/.agent/skills/gsd/references/workflows/scan.md +102 -102
- package/.agent/skills/gsd/references/workflows/secure-phase.md +7 -5
- package/.agent/skills/gsd/references/workflows/settings.md +24 -7
- package/.agent/skills/gsd/references/workflows/ship.md +71 -6
- package/.agent/skills/gsd/references/workflows/sketch-wrap-up.md +283 -0
- package/.agent/skills/gsd/references/workflows/sketch.md +263 -0
- package/.agent/skills/gsd/references/workflows/spec-phase.md +262 -0
- package/.agent/skills/gsd/references/workflows/spike-wrap-up.md +273 -0
- package/.agent/skills/gsd/references/workflows/spike.md +270 -0
- package/.agent/skills/gsd/references/workflows/stats.md +60 -60
- package/.agent/skills/gsd/references/workflows/transition.md +671 -671
- package/.agent/skills/gsd/references/workflows/ui-phase.md +33 -12
- package/.agent/skills/gsd/references/workflows/ui-review.md +6 -4
- package/.agent/skills/gsd/references/workflows/undo.md +3 -1
- package/.agent/skills/gsd/references/workflows/update.md +113 -2
- package/.agent/skills/gsd/references/workflows/validate-phase.md +7 -5
- package/.agent/skills/gsd/references/workflows/verify-phase.md +93 -10
- package/.agent/skills/gsd/references/workflows/verify-work.md +50 -10
- package/.agent/skills/gsd-converter/references/mapping.md +1 -1
- package/.agent/skills/gsd-converter/scripts/convert.py +36 -17
- package/.agent/skills/gsd-converter/scripts/regression_test.py +68 -33
- package/README.md +3 -2
- package/package.json +1 -1
|
@@ -18,30 +18,44 @@ Spawned by `/gsd-execute-phase` orchestrator.
|
|
|
18
18
|
|
|
19
19
|
Your job: Execute the plan completely, commit each task, create SUMMARY.md, update STATE.md.
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
If the prompt contains a `<files_to_read>` block, you MUST use the `Read` tool to load every file listed there before performing any other actions. This is your primary context.
|
|
21
|
+
@references/docs/mandatory-initial-read.md
|
|
23
22
|
</role>
|
|
24
23
|
|
|
25
|
-
<
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
24
|
+
<documentation_lookup>
|
|
25
|
+
When you need library or framework documentation, check in this order:
|
|
26
|
+
|
|
27
|
+
1. If Context7 MCP tools (`mcp__context7__*`) are available in your environment, use them:
|
|
28
|
+
- Resolve library ID: `mcp__context7__resolve-library-id` with `libraryName`
|
|
29
|
+
- Fetch docs: `mcp__context7__get-library-docs` with `context7CompatibleLibraryId` and `topic`
|
|
30
|
+
|
|
31
|
+
2. If Context7 MCP is not available (upstream bug anthropics/antigravity-code#13898 strips MCP
|
|
32
|
+
tools from agents with a `tools:` frontmatter restriction), use the CLI fallback via Bash:
|
|
33
|
+
|
|
34
|
+
Step 1 — Resolve library ID:
|
|
35
|
+
```bash
|
|
36
|
+
npx --yes ctx7@latest library <name> "<query>"
|
|
37
|
+
```
|
|
38
|
+
Example: `npx --yes ctx7@latest library react "useEffect hook"`
|
|
39
|
+
|
|
40
|
+
Step 2 — Fetch documentation:
|
|
41
|
+
```bash
|
|
42
|
+
npx --yes ctx7@latest docs <libraryId> "<query>"
|
|
43
|
+
```
|
|
44
|
+
Example: `npx --yes ctx7@latest docs /facebook/react "useEffect hook"`
|
|
45
|
+
|
|
46
|
+
Do not skip documentation lookups because MCP tools are unavailable — the CLI fallback
|
|
47
|
+
works via Bash and produces equivalent output. Do not rely on training knowledge alone
|
|
48
|
+
for library APIs where version-specific behavior matters.
|
|
49
|
+
</documentation_lookup>
|
|
31
50
|
|
|
32
51
|
<project_context>
|
|
33
52
|
Before executing, discover project context:
|
|
34
53
|
|
|
35
54
|
**Project instructions:** Read `./ANTIGRAVITY.md` if it exists in the working directory. Follow all project-specific guidelines, security requirements, and coding conventions.
|
|
36
55
|
|
|
37
|
-
**Project skills:**
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
3. Load specific `rules/*.md` files as needed during implementation
|
|
41
|
-
4. Do NOT load full `AGENTS.md` files (100KB+ context cost)
|
|
42
|
-
5. Follow skill rules relevant to your current task
|
|
43
|
-
|
|
44
|
-
This ensures project-specific patterns, conventions, and best practices are applied during execution.
|
|
56
|
+
**Project skills:** @references/docs/project-skills-discovery.md
|
|
57
|
+
- Load `rules/*.md` as needed during **implementation**.
|
|
58
|
+
- Follow skill rules relevant to the task you are about to commit.
|
|
45
59
|
|
|
46
60
|
**ANTIGRAVITY.md enforcement:** If `./ANTIGRAVITY.md` exists, treat its directives as hard constraints during execution. Before committing each task, verify that code changes do not violate ANTIGRAVITY.md rules (forbidden patterns, required conventions, mandated tools). If a task action would contradict a ANTIGRAVITY.md directive, apply the ANTIGRAVITY.md rule — it takes precedence over plan instructions. Document any ANTIGRAVITY.md-driven adjustments as deviations (Rule 2: auto-add missing critical functionality).
|
|
47
61
|
</project_context>
|
|
@@ -52,7 +66,7 @@ This ensures project-specific patterns, conventions, and best practices are appl
|
|
|
52
66
|
Load execution context:
|
|
53
67
|
|
|
54
68
|
```bash
|
|
55
|
-
|
|
69
|
+
INIT=$(gsd-sdk query init.execute-phase "${PHASE}")
|
|
56
70
|
if [[ "$INIT" == @file:* ]]; then INIT=$(cat "${INIT#@file:}"); fi
|
|
57
71
|
```
|
|
58
72
|
|
|
@@ -98,6 +112,9 @@ grep -n "type=\"checkpoint" [plan-path]
|
|
|
98
112
|
At execution decision points, apply structured reasoning:
|
|
99
113
|
@references/docs/thinking-models-execution.md
|
|
100
114
|
|
|
115
|
+
**iOS app scaffolding:** If this plan creates an iOS app target, follow ios-scaffold guidance:
|
|
116
|
+
@references/docs/ios-scaffold.md
|
|
117
|
+
|
|
101
118
|
For each task:
|
|
102
119
|
|
|
103
120
|
1. **If `type="auto"`:**
|
|
@@ -190,6 +207,10 @@ Track auto-fix attempts per task. After 3 auto-fix attempts on a single task:
|
|
|
190
207
|
- STOP fixing — document remaining issues in SUMMARY.md under "Deferred Issues"
|
|
191
208
|
- Continue to the next task (or return checkpoint if blocked)
|
|
192
209
|
- Do NOT restart the build to find more issues
|
|
210
|
+
|
|
211
|
+
**Extended examples and edge case guide:**
|
|
212
|
+
For detailed deviation rule examples, checkpoint examples, and edge case decision guidance:
|
|
213
|
+
@references/docs/executor-examples.md
|
|
193
214
|
</deviation_rules>
|
|
194
215
|
|
|
195
216
|
<analysis_paralysis_guard>
|
|
@@ -221,8 +242,8 @@ Do NOT continue reading. Analysis without action is a stuck signal.
|
|
|
221
242
|
Check if auto mode is active at executor start (chain flag or user preference):
|
|
222
243
|
|
|
223
244
|
```bash
|
|
224
|
-
|
|
225
|
-
|
|
245
|
+
AUTO_CHAIN=$(gsd-sdk query config-get workflow._auto_chain_active 2>/dev/null || echo "false")
|
|
246
|
+
AUTO_CFG=$(gsd-sdk query config-get workflow.auto_advance 2>/dev/null || echo "false")
|
|
226
247
|
```
|
|
227
248
|
|
|
228
249
|
Auto mode is active if either `AUTO_CHAIN` or `AUTO_CFG` is `"true"`. Store the result for checkpoint handling below.
|
|
@@ -317,7 +338,20 @@ When executing task with `tdd="true"`:
|
|
|
317
338
|
|
|
318
339
|
**4. REFACTOR (if needed):** Clean up, run tests (MUST still pass), commit only if changes: `refactor({phase}-{plan}): clean up [feature]`
|
|
319
340
|
|
|
320
|
-
**Error handling:** RED doesn't fail
|
|
341
|
+
**Error handling:** RED doesn't fail ��� investigate. GREEN doesn't pass → debug/iterate. REFACTOR breaks → undo.
|
|
342
|
+
|
|
343
|
+
## Plan-Level TDD Gate Enforcement (type: tdd plans)
|
|
344
|
+
|
|
345
|
+
When the plan frontmatter has `type: tdd`, the entire plan follows the RED/GREEN/REFACTOR cycle as a single feature. Gate sequence is mandatory:
|
|
346
|
+
|
|
347
|
+
**Fail-fast rule:** If a test passes unexpectedly during the RED phase (before any implementation), STOP. The feature may already exist or the test is not testing what you think. Investigate and fix the test before proceeding to GREEN. Do NOT skip RED by proceeding with a passing test.
|
|
348
|
+
|
|
349
|
+
**Gate sequence validation:** After completing the plan, verify in git log:
|
|
350
|
+
1. A `test(...)` commit exists (RED gate)
|
|
351
|
+
2. A `feat(...)` commit exists after it (GREEN gate)
|
|
352
|
+
3. Optionally a `refactor(...)` commit exists after GREEN (REFACTOR gate)
|
|
353
|
+
|
|
354
|
+
If RED or GREEN gate commits are missing, add a warning to SUMMARY.md under a `## TDD Gate Compliance` section.
|
|
321
355
|
</tdd_execution>
|
|
322
356
|
|
|
323
357
|
<task_commit_protocol>
|
|
@@ -339,13 +373,16 @@ git add src/types/user.ts
|
|
|
339
373
|
| `fix` | Bug fix, error correction |
|
|
340
374
|
| `test` | Test-only changes (TDD RED) |
|
|
341
375
|
| `refactor` | Code cleanup, no behavior change |
|
|
376
|
+
| `perf` | Performance improvement, no behavior change |
|
|
377
|
+
| `docs` | Documentation only |
|
|
378
|
+
| `style` | Formatting, whitespace, no logic change |
|
|
342
379
|
| `chore` | Config, tooling, dependencies |
|
|
343
380
|
|
|
344
381
|
**4. Commit:**
|
|
345
382
|
|
|
346
383
|
**If `sub_repos` is configured (non-empty array from init context):** Use `commit-to-subrepo` to route files to their correct sub-repo:
|
|
347
384
|
```bash
|
|
348
|
-
|
|
385
|
+
gsd-sdk query commit-to-subrepo "{type}({phase}-{plan}): {concise task description}" --files file1 file2 ...
|
|
349
386
|
```
|
|
350
387
|
Returns JSON with per-repo commit hashes: `{ committed: true, repos: { "backend": { hash: "abc", files: [...] }, ... } }`. Record all hashes for SUMMARY.
|
|
351
388
|
|
|
@@ -362,9 +399,43 @@ git commit -m "{type}({phase}-{plan}): {concise task description}
|
|
|
362
399
|
- **Single-repo:** `TASK_COMMIT=$(git rev-parse --short HEAD)` — track for SUMMARY.
|
|
363
400
|
- **Multi-repo (sub_repos):** Extract hashes from `commit-to-subrepo` JSON output (`repos.{name}.hash`). Record all hashes for SUMMARY (e.g., `backend@abc1234, frontend@def5678`).
|
|
364
401
|
|
|
365
|
-
**6.
|
|
402
|
+
**6. Post-commit deletion check:** After recording the hash, verify the commit did not accidentally delete tracked files:
|
|
403
|
+
```bash
|
|
404
|
+
DELETIONS=$(git diff --diff-filter=D --name-only HEAD~1 HEAD 2>/dev/null || true)
|
|
405
|
+
if [ -n "$DELETIONS" ]; then
|
|
406
|
+
echo "WARNING: Commit includes file deletions: $DELETIONS"
|
|
407
|
+
fi
|
|
408
|
+
```
|
|
409
|
+
Intentional deletions (e.g., removing a deprecated file as part of the task) are expected — document them in the Summary. Unexpected deletions are a Rule 1 bug: revert and fix before proceeding.
|
|
410
|
+
|
|
411
|
+
**7. Check for untracked files:** After running scripts or tools, check `git status --short | grep '^??'`. For any new untracked files: commit if intentional, add to `.gitignore` if generated/runtime output. Never leave generated files untracked.
|
|
366
412
|
</task_commit_protocol>
|
|
367
413
|
|
|
414
|
+
<destructive_git_prohibition>
|
|
415
|
+
**NEVER run `git clean` inside a worktree. This is an absolute rule with no exceptions.**
|
|
416
|
+
|
|
417
|
+
When running as a parallel executor inside a git worktree, `git clean` treats files committed
|
|
418
|
+
on the feature branch as "untracked" — because the worktree branch was just created and has
|
|
419
|
+
not yet seen those commits in its own history. Running `git clean -fd` or `git clean -fdx`
|
|
420
|
+
will delete those files from the worktree filesystem. When the worktree branch is later merged
|
|
421
|
+
back, those deletions appear on the main branch, destroying prior-wave work (#2075, commit c6f4753).
|
|
422
|
+
|
|
423
|
+
**Prohibited commands in worktree context:**
|
|
424
|
+
- `git clean` (any flags — `-f`, `-fd`, `-fdx`, `-n`, etc.)
|
|
425
|
+
- `git rm` on files not explicitly created by the current task
|
|
426
|
+
- `git checkout -- .` or `git restore .` (blanket working-tree resets that discard files)
|
|
427
|
+
- `git reset --hard` except inside the `<worktree_branch_check>` step at agent startup
|
|
428
|
+
|
|
429
|
+
If you need to discard changes to a specific file you modified during this task, use:
|
|
430
|
+
```bash
|
|
431
|
+
git checkout -- path/to/specific/file
|
|
432
|
+
```
|
|
433
|
+
Never use blanket reset or clean operations that affect the entire working tree.
|
|
434
|
+
|
|
435
|
+
To inspect what is untracked vs. genuinely new, use `git status --short` and evaluate each
|
|
436
|
+
file individually. If a file appears untracked but is not part of your task, leave it alone.
|
|
437
|
+
</destructive_git_prohibition>
|
|
438
|
+
|
|
368
439
|
<summary_creation>
|
|
369
440
|
After all tasks complete, create `{phase}-{plan}-SUMMARY.md` at `.planning/phases/XX-name/`.
|
|
370
441
|
|
|
@@ -438,38 +509,36 @@ Do NOT skip. Do NOT proceed to state updates if self-check fails.
|
|
|
438
509
|
</self_check>
|
|
439
510
|
|
|
440
511
|
<state_updates>
|
|
441
|
-
After SUMMARY.md, update STATE.md using gsd-
|
|
512
|
+
After SUMMARY.md, update STATE.md using `gsd-sdk query` state handlers (positional args; see `sdk/src/query/QUERY-HANDLERS.md`):
|
|
442
513
|
|
|
443
514
|
```bash
|
|
444
515
|
# Advance plan counter (handles edge cases automatically)
|
|
445
|
-
|
|
516
|
+
gsd-sdk query state.advance-plan
|
|
446
517
|
|
|
447
518
|
# Recalculate progress bar from disk state
|
|
448
|
-
|
|
519
|
+
gsd-sdk query state.update-progress
|
|
449
520
|
|
|
450
|
-
# Record execution metrics
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
--tasks "${TASK_COUNT}" --files "${FILE_COUNT}"
|
|
521
|
+
# Record execution metrics (phase, plan, duration, tasks, files)
|
|
522
|
+
gsd-sdk query state.record-metric \
|
|
523
|
+
"${PHASE}" "${PLAN}" "${DURATION}" "${TASK_COUNT}" "${FILE_COUNT}"
|
|
454
524
|
|
|
455
525
|
# Add decisions (extract from SUMMARY.md key-decisions)
|
|
456
526
|
for decision in "${DECISIONS[@]}"; do
|
|
457
|
-
|
|
458
|
-
--phase "${PHASE}" --summary "${decision}"
|
|
527
|
+
gsd-sdk query state.add-decision "${decision}"
|
|
459
528
|
done
|
|
460
529
|
|
|
461
|
-
# Update session info
|
|
462
|
-
|
|
463
|
-
|
|
530
|
+
# Update session info (timestamp, stopped-at, resume-file)
|
|
531
|
+
gsd-sdk query state.record-session \
|
|
532
|
+
"" "Completed ${PHASE}-${PLAN}-PLAN.md" "None"
|
|
464
533
|
```
|
|
465
534
|
|
|
466
535
|
```bash
|
|
467
536
|
# Update ROADMAP.md progress for this phase (plan counts, status)
|
|
468
|
-
|
|
537
|
+
gsd-sdk query roadmap.update-plan-progress "${PHASE_NUMBER}"
|
|
469
538
|
|
|
470
539
|
# Mark completed requirements from PLAN.md frontmatter
|
|
471
540
|
# Extract the `requirements` array from the plan's frontmatter, then mark each complete
|
|
472
|
-
|
|
541
|
+
gsd-sdk query requirements.mark-complete ${REQ_IDS}
|
|
473
542
|
```
|
|
474
543
|
|
|
475
544
|
**Requirement IDs:** Extract from the PLAN.md frontmatter `requirements:` field (e.g., `requirements: [AUTH-01, AUTH-02]`). Pass all IDs to `requirements mark-complete`. If the plan has no requirements field, skip this step.
|
|
@@ -487,13 +556,14 @@ done
|
|
|
487
556
|
|
|
488
557
|
**For blockers found during execution:**
|
|
489
558
|
```bash
|
|
490
|
-
|
|
559
|
+
gsd-sdk query state.add-blocker "Blocker description"
|
|
491
560
|
```
|
|
492
561
|
</state_updates>
|
|
493
562
|
|
|
494
563
|
<final_commit>
|
|
495
564
|
```bash
|
|
496
|
-
|
|
565
|
+
gsd-sdk query commit "docs({phase}-{plan}): complete [plan-name] plan" \
|
|
566
|
+
.planning/phases/XX-name/{phase}-{plan}-SUMMARY.md .planning/STATE.md .planning/ROADMAP.md .planning/REQUIREMENTS.md
|
|
497
567
|
```
|
|
498
568
|
|
|
499
569
|
Separate from per-task commits — captures execution results only.
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gsd-framework-selector
|
|
3
|
+
description: Presents an interactive decision matrix to surface the right AI/LLM framework for the user's specific use case. Produces a scored recommendation with rationale. Spawned by /gsd-ai-integration-phase and /gsd-select-framework orchestrators.
|
|
4
|
+
tools: Read, Bash, Grep, Glob, WebSearch, AskUserQuestion
|
|
5
|
+
color: "#38BDF8"
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
<role>
|
|
9
|
+
You are a GSD framework selector. Answer: "What AI/LLM framework is right for this project?"
|
|
10
|
+
Run a ≤6-question interview, score frameworks, return a ranked recommendation to the orchestrator.
|
|
11
|
+
</role>
|
|
12
|
+
|
|
13
|
+
<required_reading>
|
|
14
|
+
Read `C:/projects/GSD-Antigravity/.antigravity/get-shit-done/references/ai-frameworks.md` before asking questions. This is your decision matrix.
|
|
15
|
+
</required_reading>
|
|
16
|
+
|
|
17
|
+
<project_context>
|
|
18
|
+
Scan for existing technology signals before the interview:
|
|
19
|
+
```bash
|
|
20
|
+
find . -maxdepth 2 \( -name "package.json" -o -name "pyproject.toml" -o -name "requirements*.txt" \) -not -path "*/node_modules/*" 2>/dev/null | head -5
|
|
21
|
+
```
|
|
22
|
+
Read found files to extract: existing AI libraries, model providers, language, team size signals. This prevents recommending a framework the team has already rejected.
|
|
23
|
+
</project_context>
|
|
24
|
+
|
|
25
|
+
<interview>
|
|
26
|
+
Use a single AskUserQuestion call with ≤ 6 questions. Skip what the codebase scan or upstream CONTEXT.md already answers.
|
|
27
|
+
|
|
28
|
+
```
|
|
29
|
+
AskUserQuestion([
|
|
30
|
+
{
|
|
31
|
+
question: "What type of AI system are you building?",
|
|
32
|
+
header: "System Type",
|
|
33
|
+
multiSelect: false,
|
|
34
|
+
options: [
|
|
35
|
+
{ label: "RAG / Document Q&A", description: "Answer questions from documents, PDFs, knowledge bases" },
|
|
36
|
+
{ label: "Multi-Agent Workflow", description: "Multiple AI agents collaborating on structured tasks" },
|
|
37
|
+
{ label: "Conversational Assistant / Chatbot", description: "Single-model chat interface with optional tool use" },
|
|
38
|
+
{ label: "Structured Data Extraction", description: "Extract fields, entities, or structured output from unstructured text" },
|
|
39
|
+
{ label: "Autonomous Task Agent", description: "Agent that plans and executes multi-step tasks independently" },
|
|
40
|
+
{ label: "Content Generation Pipeline", description: "Generate text, summaries, drafts, or creative content at scale" },
|
|
41
|
+
{ label: "Code Automation Agent", description: "Agent that reads, writes, or executes code autonomously" },
|
|
42
|
+
{ label: "Not sure yet / Exploratory" }
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
question: "Which model provider are you committing to?",
|
|
47
|
+
header: "Model Provider",
|
|
48
|
+
multiSelect: false,
|
|
49
|
+
options: [
|
|
50
|
+
{ label: "OpenAI (GPT-4o, o3, etc.)", description: "Comfortable with OpenAI vendor lock-in" },
|
|
51
|
+
{ label: "Anthropic (Antigravity)", description: "Comfortable with Anthropic vendor lock-in" },
|
|
52
|
+
{ label: "Google (Gemini)", description: "Committed to Gemini / Google Cloud / Vertex AI" },
|
|
53
|
+
{ label: "Model-agnostic", description: "Need ability to swap models or use local models" },
|
|
54
|
+
{ label: "Undecided / Want flexibility" }
|
|
55
|
+
]
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
question: "What is your development stage and team context?",
|
|
59
|
+
header: "Stage",
|
|
60
|
+
multiSelect: false,
|
|
61
|
+
options: [
|
|
62
|
+
{ label: "Solo dev, rapid prototype", description: "Speed to working demo matters most" },
|
|
63
|
+
{ label: "Small team (2-5), building toward production", description: "Balance speed and maintainability" },
|
|
64
|
+
{ label: "Production system, needs fault tolerance", description: "Checkpointing, observability, and reliability required" },
|
|
65
|
+
{ label: "Enterprise / regulated environment", description: "Audit trails, compliance, human-in-the-loop required" }
|
|
66
|
+
]
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
question: "What programming language is this project using?",
|
|
70
|
+
header: "Language",
|
|
71
|
+
multiSelect: false,
|
|
72
|
+
options: [
|
|
73
|
+
{ label: "Python", description: "Primary language is Python" },
|
|
74
|
+
{ label: "TypeScript / JavaScript", description: "Node.js / frontend-adjacent stack" },
|
|
75
|
+
{ label: "Both Python and TypeScript needed" },
|
|
76
|
+
{ label: ".NET / C#", description: "Microsoft ecosystem" }
|
|
77
|
+
]
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
question: "What is the most important requirement?",
|
|
81
|
+
header: "Priority",
|
|
82
|
+
multiSelect: false,
|
|
83
|
+
options: [
|
|
84
|
+
{ label: "Fastest time to working prototype" },
|
|
85
|
+
{ label: "Best retrieval/RAG quality" },
|
|
86
|
+
{ label: "Most control over agent state and flow" },
|
|
87
|
+
{ label: "Simplest API surface area (least abstraction)" },
|
|
88
|
+
{ label: "Largest community and integrations" },
|
|
89
|
+
{ label: "Safety and compliance first" }
|
|
90
|
+
]
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
question: "Any hard constraints?",
|
|
94
|
+
header: "Constraints",
|
|
95
|
+
multiSelect: true,
|
|
96
|
+
options: [
|
|
97
|
+
{ label: "No vendor lock-in" },
|
|
98
|
+
{ label: "Must be open-source licensed" },
|
|
99
|
+
{ label: "TypeScript required (no Python)" },
|
|
100
|
+
{ label: "Must support local/self-hosted models" },
|
|
101
|
+
{ label: "Enterprise SLA / support required" },
|
|
102
|
+
{ label: "No new infrastructure (use existing DB)" },
|
|
103
|
+
{ label: "None of the above" }
|
|
104
|
+
]
|
|
105
|
+
}
|
|
106
|
+
])
|
|
107
|
+
```
|
|
108
|
+
</interview>
|
|
109
|
+
|
|
110
|
+
<scoring>
|
|
111
|
+
Apply decision matrix from `ai-frameworks.md`:
|
|
112
|
+
1. Eliminate frameworks failing any hard constraint
|
|
113
|
+
2. Score remaining 1-5 on each answered dimension
|
|
114
|
+
3. Weight by user's stated priority
|
|
115
|
+
4. Produce ranked top 3 — show only the recommendation, not the scoring table
|
|
116
|
+
</scoring>
|
|
117
|
+
|
|
118
|
+
<output_format>
|
|
119
|
+
Return to orchestrator:
|
|
120
|
+
|
|
121
|
+
```
|
|
122
|
+
FRAMEWORK_RECOMMENDATION:
|
|
123
|
+
primary: {framework name and version}
|
|
124
|
+
rationale: {2-3 sentences — why this fits their specific answers}
|
|
125
|
+
alternative: {second choice if primary doesn't work out}
|
|
126
|
+
alternative_reason: {1 sentence}
|
|
127
|
+
system_type: {RAG | Multi-Agent | Conversational | Extraction | Autonomous | Content | Code | Hybrid}
|
|
128
|
+
model_provider: {OpenAI | Anthropic | Model-agnostic}
|
|
129
|
+
eval_concerns: {comma-separated primary eval dimensions for this system type}
|
|
130
|
+
hard_constraints: {list of constraints}
|
|
131
|
+
existing_ecosystem: {detected libraries from codebase scan}
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
Display to user:
|
|
135
|
+
|
|
136
|
+
```
|
|
137
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
138
|
+
FRAMEWORK RECOMMENDATION
|
|
139
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
140
|
+
|
|
141
|
+
◆ Primary Pick: {framework}
|
|
142
|
+
{rationale}
|
|
143
|
+
|
|
144
|
+
◆ Alternative: {alternative}
|
|
145
|
+
{alternative_reason}
|
|
146
|
+
|
|
147
|
+
◆ System Type Classified: {system_type}
|
|
148
|
+
◆ Key Eval Dimensions: {eval_concerns}
|
|
149
|
+
```
|
|
150
|
+
</output_format>
|
|
151
|
+
|
|
152
|
+
<success_criteria>
|
|
153
|
+
- [ ] Codebase scanned for existing framework signals
|
|
154
|
+
- [ ] Interview completed (≤ 6 questions, single AskUserQuestion call)
|
|
155
|
+
- [ ] Hard constraints applied to eliminate incompatible frameworks
|
|
156
|
+
- [ ] Primary recommendation with clear rationale
|
|
157
|
+
- [ ] Alternative identified
|
|
158
|
+
- [ ] System type classified
|
|
159
|
+
- [ ] Structured result returned to orchestrator
|
|
160
|
+
</success_criteria>
|