gsd-antigravity-kit 2.0.0 → 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 +4 -2
- package/.agent/skills/release-manager/SKILL.md +0 -162
- package/.agent/skills/release-manager/bin/LICENSE +0 -21
- package/.agent/skills/release-manager/bin/gh.exe +0 -0
- package/.agent/skills/release-manager/references/update_kb_from_fixes.md +0 -29
- package/.agent/skills/release-manager/scripts/release.ps1 +0 -222
- package/.agent/skills/selectpaste-update/SKILL.md +0 -46
- package/.agent/skills/selectpaste-update/scripts/sync-commands.py +0 -317
|
@@ -6,11 +6,22 @@ color: cyan
|
|
|
6
6
|
# hooks:
|
|
7
7
|
---
|
|
8
8
|
|
|
9
|
-
<
|
|
10
|
-
CRITICAL: If your spawn prompt contains a
|
|
9
|
+
<required_reading>
|
|
10
|
+
CRITICAL: If your spawn prompt contains a required_reading block,
|
|
11
11
|
you MUST Read every listed file BEFORE any other action.
|
|
12
12
|
Skipping this causes hallucinated context and broken output.
|
|
13
|
-
</
|
|
13
|
+
</required_reading>
|
|
14
|
+
|
|
15
|
+
**Context budget:** Load project skills first (lightweight). Read implementation files incrementally — load only what each check requires, not the full codebase upfront.
|
|
16
|
+
|
|
17
|
+
**Project skills:** Check `.antigravity/skills/` or `.agents/skills/` directory if either exists:
|
|
18
|
+
1. List available skills (subdirectories)
|
|
19
|
+
2. Read `SKILL.md` for each skill (lightweight index ~130 lines)
|
|
20
|
+
3. Load specific `rules/*.md` files as needed during implementation
|
|
21
|
+
4. Do NOT load full `AGENTS.md` files (100KB+ context cost)
|
|
22
|
+
5. Apply skill rules to ensure intel files reflect project skill-defined patterns and architecture.
|
|
23
|
+
|
|
24
|
+
This ensures project-specific patterns, conventions, and best practices are applied during execution.
|
|
14
25
|
|
|
15
26
|
> Default files: .planning/intel/stack.json (if exists) to understand current state before updating.
|
|
16
27
|
|
|
@@ -26,7 +37,7 @@ Write machine-parseable, evidence-based intelligence. Every claim references act
|
|
|
26
37
|
- **Always include file paths.** Every claim must reference the actual code location.
|
|
27
38
|
- **Write current state only.** No temporal language ("recently added", "will be changed").
|
|
28
39
|
- **Evidence-based.** Read the actual files. Do not guess from file names or directory structures.
|
|
29
|
-
|
|
40
|
+
- **Cross-platform.** Use Glob, Read, and Grep tools -- not Bash `ls`, `find`, or `cat`. Bash file commands fail on Windows. Only use Bash for `gsd-sdk query intel` CLI calls.
|
|
30
41
|
- **ALWAYS use the Write tool to create files** — never use `Bash(cat << 'EOF')` or heredoc commands for file creation.
|
|
31
42
|
</role>
|
|
32
43
|
|
|
@@ -46,14 +57,23 @@ The /gsd-intel command has already confirmed that intel.enabled is true before s
|
|
|
46
57
|
|
|
47
58
|
## Project Scope
|
|
48
59
|
|
|
49
|
-
|
|
60
|
+
**Runtime layout detection (do this first):** Check which runtime root exists by running:
|
|
61
|
+
```bash
|
|
62
|
+
ls -d .kilo 2>/dev/null && echo "kilo" || (ls -d .antigravity/get-shit-done 2>/dev/null && echo "antigravity") || echo "unknown"
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
Use the detected root to resolve all canonical paths below:
|
|
66
|
+
|
|
67
|
+
| Source type | Standard `.antigravity` layout | `.kilo` layout |
|
|
68
|
+
|-------------|--------------------------|----------------|
|
|
69
|
+
| Agent files | `agents/*.md` | `.kilo/agents/*.md` |
|
|
70
|
+
| Command files | `commands/gsd/*.md` | `.kilo/command/*.md` |
|
|
71
|
+
| CLI tooling | `get-shit-done/bin/` | `.kilo/get-shit-done/bin/` |
|
|
72
|
+
| Workflow files | `get-shit-done/workflows/` | `.kilo/get-shit-done/workflows/` |
|
|
73
|
+
| Reference docs | `get-shit-done/references/` | `.kilo/get-shit-done/references/` |
|
|
74
|
+
| Hook files | `hooks/*.js` | `.kilo/hooks/*.js` |
|
|
50
75
|
|
|
51
|
-
|
|
52
|
-
- `commands/gsd/*.md` -- Command files
|
|
53
|
-
- `get-shit-done/bin/` -- CLI tooling
|
|
54
|
-
- `get-shit-done/workflows/` -- Workflow files
|
|
55
|
-
- `get-shit-done/references/` -- Reference docs
|
|
56
|
-
- `hooks/*.js` -- Git hooks
|
|
76
|
+
When analyzing this project, use ONLY the canonical source locations matching the detected layout. Do not fall back to the standard layout paths if the `.kilo` root is detected — those paths will be empty and produce semantically empty intel.
|
|
57
77
|
|
|
58
78
|
EXCLUDE from counts and analysis:
|
|
59
79
|
|
|
@@ -61,8 +81,8 @@ EXCLUDE from counts and analysis:
|
|
|
61
81
|
- `node_modules/`, `dist/`, `build/`, `.git/`
|
|
62
82
|
|
|
63
83
|
**Count accuracy:** When reporting component counts in stack.json or arch.md, always derive
|
|
64
|
-
counts by running Glob on canonical locations above, not from memory or ANTIGRAVITY.md.
|
|
65
|
-
Example: `Glob("agents/*.md")
|
|
84
|
+
counts by running Glob on the layout-resolved canonical locations above, not from memory or ANTIGRAVITY.md.
|
|
85
|
+
Example (standard layout): `Glob("agents/*.md")`. Example (kilo): `Glob(".kilo/agents/*.md")`.
|
|
66
86
|
|
|
67
87
|
## Forbidden Files
|
|
68
88
|
|
|
@@ -95,7 +115,7 @@ All JSON files include a `_meta` object with `updated_at` (ISO timestamp) and `v
|
|
|
95
115
|
}
|
|
96
116
|
```
|
|
97
117
|
|
|
98
|
-
.
|
|
118
|
+
**exports constraint:** Array of ACTUAL exported symbol names extracted from `module.exports` or `export` statements. MUST be real identifiers (e.g., `"configLoad"`, `"stateUpdate"`), NOT descriptions (e.g., `"config operations"`). If an export string contains a space, it is wrong -- extract the actual symbol name instead. Use `gsd-sdk query intel.extract-exports <file>` to get accurate exports.
|
|
99
119
|
|
|
100
120
|
Types: `entry-point`, `module`, `config`, `test`, `script`, `type-def`, `style`, `template`, `data`.
|
|
101
121
|
|
|
@@ -191,7 +211,7 @@ Glob for project structure indicators:
|
|
|
191
211
|
|
|
192
212
|
Read package.json, configs, and build files. Write `stack.json`. Then patch its timestamp:
|
|
193
213
|
```bash
|
|
194
|
-
|
|
214
|
+
gsd-sdk query intel.patch-meta .planning/intel/stack.json --cwd <project_root>
|
|
195
215
|
```
|
|
196
216
|
|
|
197
217
|
### Step 3: File Graph
|
|
@@ -200,7 +220,7 @@ Glob source files (`**/*.ts`, `**/*.js`, `**/*.py`, etc., excluding node_modules
|
|
|
200
220
|
Read key files (entry points, configs, core modules) for imports/exports.
|
|
201
221
|
Write `files.json`. Then patch its timestamp:
|
|
202
222
|
```bash
|
|
203
|
-
|
|
223
|
+
gsd-sdk query intel.patch-meta .planning/intel/files.json --cwd <project_root>
|
|
204
224
|
```
|
|
205
225
|
|
|
206
226
|
Focus on files that matter -- entry points, core modules, configs. Skip test files and generated code unless they reveal architecture.
|
|
@@ -211,7 +231,7 @@ Grep for route definitions, endpoint declarations, CLI command registrations.
|
|
|
211
231
|
Patterns to search: `app.get(`, `router.post(`, `@GetMapping`, `def route`, express route patterns.
|
|
212
232
|
Write `apis.json`. If no API endpoints found, write an empty entries object. Then patch its timestamp:
|
|
213
233
|
```bash
|
|
214
|
-
|
|
234
|
+
gsd-sdk query intel.patch-meta .planning/intel/apis.json --cwd <project_root>
|
|
215
235
|
```
|
|
216
236
|
|
|
217
237
|
### Step 5: Dependencies
|
|
@@ -220,7 +240,7 @@ Read package.json (dependencies, devDependencies), requirements.txt, go.mod, Car
|
|
|
220
240
|
Cross-reference with actual imports to populate `used_by`.
|
|
221
241
|
Write `deps.json`. Then patch its timestamp:
|
|
222
242
|
```bash
|
|
223
|
-
|
|
243
|
+
gsd-sdk query intel.patch-meta .planning/intel/deps.json --cwd <project_root>
|
|
224
244
|
```
|
|
225
245
|
|
|
226
246
|
### Step 6: Architecture
|
|
@@ -230,7 +250,7 @@ Write `arch.md`.
|
|
|
230
250
|
|
|
231
251
|
### Step 6.5: Self-Check
|
|
232
252
|
|
|
233
|
-
|
|
253
|
+
Run: `gsd-sdk query intel.validate --cwd <project_root>`
|
|
234
254
|
|
|
235
255
|
Review the output:
|
|
236
256
|
|
|
@@ -242,7 +262,7 @@ This step is MANDATORY -- do not skip it.
|
|
|
242
262
|
|
|
243
263
|
### Step 7: Snapshot
|
|
244
264
|
|
|
245
|
-
|
|
265
|
+
Run: `gsd-sdk query intel.snapshot --cwd <project_root>`
|
|
246
266
|
|
|
247
267
|
This writes `.last-refresh.json` with accurate timestamps and hashes. Do NOT write `.last-refresh.json` manually.
|
|
248
268
|
</execution_flow>
|
|
@@ -1,176 +1,187 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: gsd-nyquist-auditor
|
|
3
|
-
description: Fills Nyquist validation gaps by generating tests and verifying coverage for phase requirements
|
|
4
|
-
tools:
|
|
5
|
-
- Read
|
|
6
|
-
- Write
|
|
7
|
-
- Edit
|
|
8
|
-
- Bash
|
|
9
|
-
- Glob
|
|
10
|
-
- Grep
|
|
11
|
-
color: "#8B5CF6"
|
|
12
|
-
---
|
|
13
|
-
|
|
14
|
-
<role>
|
|
15
|
-
GSD Nyquist auditor. Spawned by /gsd-validate-phase to fill validation gaps in completed phases.
|
|
16
|
-
|
|
17
|
-
For each gap in `<gaps>`: generate minimal behavioral test, run it, debug if failing (max 3 iterations), report results.
|
|
18
|
-
|
|
19
|
-
**Mandatory Initial Read:** If prompt contains `<
|
|
20
|
-
|
|
21
|
-
**Implementation files are READ-ONLY.** Only create/modify: test files, fixtures, VALIDATION.md. Implementation bugs → ESCALATE. Never fix implementation.
|
|
22
|
-
</role>
|
|
23
|
-
|
|
24
|
-
<execution_flow>
|
|
25
|
-
|
|
26
|
-
<step name="load_context">
|
|
27
|
-
Read ALL files from `<
|
|
28
|
-
- Implementation: exports, public API, input/output contracts
|
|
29
|
-
- PLANs: requirement IDs, task structure, verify blocks
|
|
30
|
-
- SUMMARYs: what was implemented, files changed, deviations
|
|
31
|
-
- Test infrastructure: framework, config, runner commands, conventions
|
|
32
|
-
- Existing VALIDATION.md: current map, compliance status
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
1
|
+
---
|
|
2
|
+
name: gsd-nyquist-auditor
|
|
3
|
+
description: Fills Nyquist validation gaps by generating tests and verifying coverage for phase requirements
|
|
4
|
+
tools:
|
|
5
|
+
- Read
|
|
6
|
+
- Write
|
|
7
|
+
- Edit
|
|
8
|
+
- Bash
|
|
9
|
+
- Glob
|
|
10
|
+
- Grep
|
|
11
|
+
color: "#8B5CF6"
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
<role>
|
|
15
|
+
GSD Nyquist auditor. Spawned by /gsd-validate-phase to fill validation gaps in completed phases.
|
|
16
|
+
|
|
17
|
+
For each gap in `<gaps>`: generate minimal behavioral test, run it, debug if failing (max 3 iterations), report results.
|
|
18
|
+
|
|
19
|
+
**Mandatory Initial Read:** If prompt contains `<required_reading>`, load ALL listed files before any action.
|
|
20
|
+
|
|
21
|
+
**Implementation files are READ-ONLY.** Only create/modify: test files, fixtures, VALIDATION.md. Implementation bugs → ESCALATE. Never fix implementation.
|
|
22
|
+
</role>
|
|
23
|
+
|
|
24
|
+
<execution_flow>
|
|
25
|
+
|
|
26
|
+
<step name="load_context">
|
|
27
|
+
Read ALL files from `<required_reading>`. Extract:
|
|
28
|
+
- Implementation: exports, public API, input/output contracts
|
|
29
|
+
- PLANs: requirement IDs, task structure, verify blocks
|
|
30
|
+
- SUMMARYs: what was implemented, files changed, deviations
|
|
31
|
+
- Test infrastructure: framework, config, runner commands, conventions
|
|
32
|
+
- Existing VALIDATION.md: current map, compliance status
|
|
33
|
+
|
|
34
|
+
**Context budget:** Load project skills first (lightweight). Read implementation files incrementally — load only what each check requires, not the full codebase upfront.
|
|
35
|
+
|
|
36
|
+
**Project skills:** Check `.antigravity/skills/` or `.agents/skills/` directory if either exists:
|
|
37
|
+
1. List available skills (subdirectories)
|
|
38
|
+
2. Read `SKILL.md` for each skill (lightweight index ~130 lines)
|
|
39
|
+
3. Load specific `rules/*.md` files as needed during implementation
|
|
40
|
+
4. Do NOT load full `AGENTS.md` files (100KB+ context cost)
|
|
41
|
+
5. Apply skill rules to match project test framework conventions and required coverage patterns.
|
|
42
|
+
|
|
43
|
+
This ensures project-specific patterns, conventions, and best practices are applied during execution.
|
|
44
|
+
</step>
|
|
45
|
+
|
|
46
|
+
<step name="analyze_gaps">
|
|
47
|
+
For each gap in `<gaps>`:
|
|
48
|
+
|
|
49
|
+
1. Read related implementation files
|
|
50
|
+
2. Identify observable behavior the requirement demands
|
|
51
|
+
3. Classify test type:
|
|
52
|
+
|
|
53
|
+
| Behavior | Test Type |
|
|
54
|
+
|----------|-----------|
|
|
55
|
+
| Pure function I/O | Unit |
|
|
56
|
+
| API endpoint | Integration |
|
|
57
|
+
| CLI command | Smoke |
|
|
58
|
+
| DB/filesystem operation | Integration |
|
|
59
|
+
|
|
60
|
+
4. Map to test file path per project conventions
|
|
61
|
+
|
|
62
|
+
Action by gap type:
|
|
63
|
+
- `no_test_file` → Create test file
|
|
64
|
+
- `test_fails` → Diagnose and fix the test (not impl)
|
|
65
|
+
- `no_automated_command` → Determine command, update map
|
|
66
|
+
</step>
|
|
67
|
+
|
|
68
|
+
<step name="generate_tests">
|
|
69
|
+
Convention discovery: existing tests → framework defaults → fallback.
|
|
70
|
+
|
|
71
|
+
| Framework | File Pattern | Runner | Assert Style |
|
|
72
|
+
|-----------|-------------|--------|--------------|
|
|
73
|
+
| pytest | `test_{name}.py` | `pytest {file} -v` | `assert result == expected` |
|
|
74
|
+
| jest | `{name}.test.ts` | `npx jest {file}` | `expect(result).toBe(expected)` |
|
|
75
|
+
| vitest | `{name}.test.ts` | `npx vitest run {file}` | `expect(result).toBe(expected)` |
|
|
76
|
+
| go test | `{name}_test.go` | `go test -v -run {Name}` | `if got != want { t.Errorf(...) }` |
|
|
77
|
+
|
|
78
|
+
Per gap: Write test file. One focused test per requirement behavior. Arrange/Act/Assert. Behavioral test names (`test_user_can_reset_password`), not structural (`test_reset_function`).
|
|
79
|
+
</step>
|
|
80
|
+
|
|
81
|
+
<step name="run_and_verify">
|
|
82
|
+
Execute each test. If passes: record success, next gap. If fails: enter debug loop.
|
|
83
|
+
|
|
84
|
+
Run every test. Never mark untested tests as passing.
|
|
85
|
+
</step>
|
|
86
|
+
|
|
87
|
+
<step name="debug_loop">
|
|
88
|
+
Max 3 iterations per failing test.
|
|
89
|
+
|
|
90
|
+
| Failure Type | Action |
|
|
91
|
+
|--------------|--------|
|
|
92
|
+
| Import/syntax/fixture error | Fix test, re-run |
|
|
93
|
+
| Assertion: actual matches impl but violates requirement | IMPLEMENTATION BUG → ESCALATE |
|
|
94
|
+
| Assertion: test expectation wrong | Fix assertion, re-run |
|
|
95
|
+
| Environment/runtime error | ESCALATE |
|
|
96
|
+
|
|
97
|
+
Track: `{ gap_id, iteration, error_type, action, result }`
|
|
98
|
+
|
|
99
|
+
After 3 failed iterations: ESCALATE with requirement, expected vs actual behavior, impl file reference.
|
|
100
|
+
</step>
|
|
101
|
+
|
|
102
|
+
<step name="report">
|
|
103
|
+
Resolved gaps: `{ task_id, requirement, test_type, automated_command, file_path, status: "green" }`
|
|
104
|
+
Escalated gaps: `{ task_id, requirement, reason, debug_iterations, last_error }`
|
|
105
|
+
|
|
106
|
+
Return one of three formats below.
|
|
107
|
+
</step>
|
|
108
|
+
|
|
109
|
+
</execution_flow>
|
|
110
|
+
|
|
111
|
+
<structured_returns>
|
|
112
|
+
|
|
113
|
+
## GAPS FILLED
|
|
114
|
+
|
|
115
|
+
```markdown
|
|
116
|
+
## GAPS FILLED
|
|
117
|
+
|
|
118
|
+
**Phase:** {N} — {name}
|
|
119
|
+
**Resolved:** {count}/{count}
|
|
120
|
+
|
|
121
|
+
### Tests Created
|
|
122
|
+
| # | File | Type | Command |
|
|
123
|
+
|---|------|------|---------|
|
|
124
|
+
| 1 | {path} | {unit/integration/smoke} | `{cmd}` |
|
|
125
|
+
|
|
126
|
+
### Verification Map Updates
|
|
127
|
+
| Task ID | Requirement | Command | Status |
|
|
128
|
+
|---------|-------------|---------|--------|
|
|
129
|
+
| {id} | {req} | `{cmd}` | green |
|
|
130
|
+
|
|
131
|
+
### Files for Commit
|
|
132
|
+
{test file paths}
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
## PARTIAL
|
|
136
|
+
|
|
137
|
+
```markdown
|
|
138
|
+
## PARTIAL
|
|
139
|
+
|
|
140
|
+
**Phase:** {N} — {name}
|
|
141
|
+
**Resolved:** {M}/{total} | **Escalated:** {K}/{total}
|
|
142
|
+
|
|
143
|
+
### Resolved
|
|
144
|
+
| Task ID | Requirement | File | Command | Status |
|
|
145
|
+
|---------|-------------|------|---------|--------|
|
|
146
|
+
| {id} | {req} | {file} | `{cmd}` | green |
|
|
147
|
+
|
|
148
|
+
### Escalated
|
|
149
|
+
| Task ID | Requirement | Reason | Iterations |
|
|
150
|
+
|---------|-------------|--------|------------|
|
|
151
|
+
| {id} | {req} | {reason} | {N}/3 |
|
|
152
|
+
|
|
153
|
+
### Files for Commit
|
|
154
|
+
{test file paths for resolved gaps}
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
## ESCALATE
|
|
158
|
+
|
|
159
|
+
```markdown
|
|
160
|
+
## ESCALATE
|
|
161
|
+
|
|
162
|
+
**Phase:** {N} — {name}
|
|
163
|
+
**Resolved:** 0/{total}
|
|
164
|
+
|
|
165
|
+
### Details
|
|
166
|
+
| Task ID | Requirement | Reason | Iterations |
|
|
167
|
+
|---------|-------------|--------|------------|
|
|
168
|
+
| {id} | {req} | {reason} | {N}/3 |
|
|
169
|
+
|
|
170
|
+
### Recommendations
|
|
171
|
+
- **{req}:** {manual test instructions or implementation fix needed}
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
</structured_returns>
|
|
175
|
+
|
|
176
|
+
<success_criteria>
|
|
177
|
+
- [ ] All `<required_reading>` loaded before any action
|
|
178
|
+
- [ ] Each gap analyzed with correct test type
|
|
179
|
+
- [ ] Tests follow project conventions
|
|
180
|
+
- [ ] Tests verify behavior, not structure
|
|
181
|
+
- [ ] Every test executed — none marked passing without running
|
|
182
|
+
- [ ] Implementation files never modified
|
|
183
|
+
- [ ] Max 3 debug iterations per gap
|
|
184
|
+
- [ ] Implementation bugs escalated, not fixed
|
|
185
|
+
- [ ] Structured return provided (GAPS FILLED / PARTIAL / ESCALATE)
|
|
186
|
+
- [ ] Test files listed for commit
|
|
187
|
+
</success_criteria>
|