@undeemed/get-shit-done-codex 1.20.10 → 1.22.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/.codex/config.toml +77 -0
- package/README.md +53 -42
- package/agents/gsd-codebase-mapper.md +3 -3
- package/agents/gsd-debugger.md +5 -5
- package/agents/gsd-executor.md +14 -14
- package/agents/gsd-phase-researcher.md +7 -7
- package/agents/gsd-plan-checker.md +10 -10
- package/agents/gsd-planner.md +19 -19
- package/agents/gsd-project-researcher.md +3 -3
- package/agents/gsd-research-synthesizer.md +6 -6
- package/agents/gsd-roadmapper.md +7 -7
- package/agents/gsd-verifier.md +29 -17
- package/bin/install.js +161 -208
- package/commands/gsd/add-tests.md +5 -4
- package/commands/gsd/complete-milestone.md +6 -6
- package/commands/gsd/debug.md +1 -1
- package/commands/gsd/map-codebase.md +3 -3
- package/commands/gsd/new-milestone.md +1 -1
- package/commands/gsd/new-project.md +1 -1
- package/commands/gsd/plan-milestone-gaps.md +2 -2
- package/commands/gsd/reapply-patches.md +2 -2
- package/commands/gsd/research-phase.md +3 -3
- package/commands/gsd/verify-work.md +1 -1
- package/{AGENTS.md → get-shit-done/AGENTS.md} +1 -1
- package/get-shit-done/bin/lib/commands.cjs +1 -1
- package/get-shit-done/bin/lib/phase.cjs +2 -2
- package/get-shit-done/bin/lib/verify.cjs +8 -8
- package/get-shit-done/references/continuation-format.md +16 -16
- package/get-shit-done/references/model-profiles.md +1 -1
- package/get-shit-done/references/ui-brand.md +2 -2
- package/get-shit-done/templates/DEBUG.md +1 -1
- package/get-shit-done/templates/UAT.md +3 -3
- package/get-shit-done/templates/VALIDATION.md +1 -1
- package/get-shit-done/templates/debug-subagent-prompt.md +1 -1
- package/get-shit-done/templates/discovery.md +2 -2
- package/get-shit-done/templates/phase-prompt.md +1 -1
- package/get-shit-done/templates/planner-subagent-prompt.md +3 -3
- package/get-shit-done/templates/project.md +1 -1
- package/get-shit-done/templates/research.md +1 -1
- package/get-shit-done/templates/retrospective.md +13 -7
- package/get-shit-done/templates/state.md +2 -2
- package/get-shit-done/workflows/add-phase.md +7 -7
- package/get-shit-done/workflows/add-tests.md +41 -18
- package/get-shit-done/workflows/add-todo.md +2 -2
- package/get-shit-done/workflows/audit-milestone.md +5 -5
- package/get-shit-done/workflows/check-todos.md +8 -8
- package/get-shit-done/workflows/complete-milestone.md +33 -8
- package/get-shit-done/workflows/diagnose-issues.md +1 -1
- package/get-shit-done/workflows/discovery-phase.md +3 -3
- package/get-shit-done/workflows/discuss-phase.md +10 -10
- package/get-shit-done/workflows/execute-phase.md +7 -7
- package/get-shit-done/workflows/execute-plan.md +3 -3
- package/get-shit-done/workflows/health.md +5 -5
- package/get-shit-done/workflows/help.md +85 -85
- package/get-shit-done/workflows/insert-phase.md +6 -6
- package/get-shit-done/workflows/list-phase-assumptions.md +4 -4
- package/get-shit-done/workflows/map-codebase.md +2 -2
- package/get-shit-done/workflows/new-milestone.md +5 -5
- package/get-shit-done/workflows/new-project.md +11 -11
- package/get-shit-done/workflows/pause-work.md +1 -1
- package/get-shit-done/workflows/plan-milestone-gaps.md +7 -7
- package/get-shit-done/workflows/plan-phase.md +12 -12
- package/get-shit-done/workflows/progress.md +22 -22
- package/get-shit-done/workflows/quick.md +3 -3
- package/get-shit-done/workflows/remove-phase.md +6 -6
- package/get-shit-done/workflows/research-phase.md +2 -2
- package/get-shit-done/workflows/resume-project.md +9 -9
- package/get-shit-done/workflows/settings.md +5 -5
- package/get-shit-done/workflows/transition.md +10 -10
- package/get-shit-done/workflows/update.md +2 -2
- package/get-shit-done/workflows/verify-work.md +8 -8
- package/package.json +2 -2
- package/commands/gsd/new-project.md.bak +0 -1041
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
:schema https://developers.openai.com/codex/config-schema.json
|
|
2
|
+
|
|
3
|
+
# Project-scoped Codex config for get-shit-done-codex.
|
|
4
|
+
# Loaded only when this project is trusted.
|
|
5
|
+
# Docs:
|
|
6
|
+
# - https://developers.openai.com/codex/config-basic
|
|
7
|
+
# - https://developers.openai.com/codex/config-reference
|
|
8
|
+
# - https://developers.openai.com/codex/multi-agent
|
|
9
|
+
|
|
10
|
+
web_search = "live"
|
|
11
|
+
|
|
12
|
+
[features]
|
|
13
|
+
multi_agent = true
|
|
14
|
+
collaboration_modes = true
|
|
15
|
+
shell_tool = true
|
|
16
|
+
shell_snapshot = true
|
|
17
|
+
unified_exec = true
|
|
18
|
+
apply_patch_freeform = true
|
|
19
|
+
personality = true
|
|
20
|
+
request_rule = true
|
|
21
|
+
|
|
22
|
+
[agents]
|
|
23
|
+
max_threads = 12
|
|
24
|
+
max_depth = 3
|
|
25
|
+
|
|
26
|
+
[agents."general-purpose"]
|
|
27
|
+
description = "General fallback role for GSD orchestration and ad-hoc subtasks."
|
|
28
|
+
|
|
29
|
+
[agents."gsd-codebase-mapper"]
|
|
30
|
+
description = "Map stack, architecture, conventions, testing, and concerns into .planning/codebase docs."
|
|
31
|
+
developer_instructions = "Read and follow agents/gsd-codebase-mapper.md for your complete role definition."
|
|
32
|
+
|
|
33
|
+
[agents."gsd-debugger"]
|
|
34
|
+
description = "Investigate regressions with hypothesis testing, isolate root cause, and propose or apply fixes."
|
|
35
|
+
developer_instructions = "Read and follow agents/gsd-debugger.md for your complete role definition."
|
|
36
|
+
|
|
37
|
+
[agents."gsd-executor"]
|
|
38
|
+
description = "Execute PLAN.md tasks with atomic commits, verification, and summary updates."
|
|
39
|
+
developer_instructions = "Read and follow agents/gsd-executor.md for your complete role definition."
|
|
40
|
+
|
|
41
|
+
[agents."gsd-integration-checker"]
|
|
42
|
+
description = "Verify cross-phase wiring and end-to-end behavior across delivered milestones."
|
|
43
|
+
developer_instructions = "Read and follow agents/gsd-integration-checker.md for your complete role definition."
|
|
44
|
+
|
|
45
|
+
[agents."gsd-phase-researcher"]
|
|
46
|
+
description = "Research phase implementation patterns and write RESEARCH.md artifacts for planners."
|
|
47
|
+
developer_instructions = "Read and follow agents/gsd-phase-researcher.md for your complete role definition."
|
|
48
|
+
|
|
49
|
+
[agents."gsd-plan-checker"]
|
|
50
|
+
description = "Stress-test plan quality and requirement coverage before execution."
|
|
51
|
+
developer_instructions = "Read and follow agents/gsd-plan-checker.md for your complete role definition."
|
|
52
|
+
|
|
53
|
+
[agents."gsd-planner"]
|
|
54
|
+
description = "Draft atomic PLAN.md files with objective, context, tasks, and success criteria."
|
|
55
|
+
developer_instructions = "Read and follow agents/gsd-planner.md for your complete role definition."
|
|
56
|
+
|
|
57
|
+
[agents."gsd-project-researcher"]
|
|
58
|
+
description = "Research ecosystem and produce project-level research docs for roadmap creation."
|
|
59
|
+
developer_instructions = "Read and follow agents/gsd-project-researcher.md for your complete role definition."
|
|
60
|
+
|
|
61
|
+
[agents."gsd-research-synthesizer"]
|
|
62
|
+
description = "Synthesize parallel research artifacts into actionable roadmap inputs."
|
|
63
|
+
developer_instructions = "Read and follow agents/gsd-research-synthesizer.md for your complete role definition."
|
|
64
|
+
|
|
65
|
+
[agents."gsd-roadmapper"]
|
|
66
|
+
description = "Turn requirements into phased ROADMAP.md structure with clear success criteria."
|
|
67
|
+
developer_instructions = "Read and follow agents/gsd-roadmapper.md for your complete role definition."
|
|
68
|
+
|
|
69
|
+
[agents."gsd-verifier"]
|
|
70
|
+
description = "Perform goal-backward verification that outcomes are actually delivered in code."
|
|
71
|
+
developer_instructions = "Read and follow agents/gsd-verifier.md for your complete role definition."
|
|
72
|
+
|
|
73
|
+
[mcp_servers.context7]
|
|
74
|
+
url = "https://mcp.context7.com/mcp"
|
|
75
|
+
|
|
76
|
+
[mcp_servers.context7.env_http_headers]
|
|
77
|
+
CONTEXT7_API_KEY = "CONTEXT7_API_KEY"
|
package/README.md
CHANGED
|
@@ -21,10 +21,13 @@ get-shit-done-codex (GSD) solves context rot — the quality degradation that ha
|
|
|
21
21
|
|
|
22
22
|
## What Changed In This Fork
|
|
23
23
|
|
|
24
|
-
- **AGENTS-first for Codex:** `AGENTS.md` is the primary behavior contract
|
|
25
|
-
- **
|
|
26
|
-
- **
|
|
27
|
-
- **
|
|
24
|
+
- **AGENTS-first for Codex:** `AGENTS.md` is the primary behavior contract. [Agent.md > Skills.md](https://vercel.com/blog/agents-md-outperforms-skills-in-our-agent-evals)
|
|
25
|
+
- **Native skills:** all commands use `$gsd-*` skill notation — no prompt aliases needed.
|
|
26
|
+
- **Full config distribution:** installer ships `.codex/config.toml` (multi-agent, feature flags, MCP servers) and 11 rich `agents/*.md` sub-agent definitions — everything needed for multi-agent orchestration out of the box.
|
|
27
|
+
- **Sub-agent linking:** each agent role in `config.toml` uses `developer_instructions` to load its full role definition from `agents/gsd-*.md` at runtime — no manual wiring needed.
|
|
28
|
+
- **Overwrite protection:** `config.toml` is never overwritten on reinstall. `AGENTS.md` prompts for confirmation on global installs.
|
|
29
|
+
- **Installer integrity checks:** `--verify` audits `AGENTS.md`, `config.toml`, agent definitions, command surfaces, and version metadata. `--repair` restores missing artifacts.
|
|
30
|
+
- **One-click trust:** Codex prompts to trust the project on first run so the config takes effect.
|
|
28
31
|
|
|
29
32
|
## Installation
|
|
30
33
|
|
|
@@ -40,51 +43,39 @@ You can install globally (`~/.codex/`) or locally (`./`).
|
|
|
40
43
|
npx @undeemed/get-shit-done-codex --global
|
|
41
44
|
```
|
|
42
45
|
|
|
43
|
-
If you run this in an interactive terminal, the installer will prompt you to choose `skills` (`$`) or `prompts` (`/prompts`).
|
|
44
|
-
In non-interactive runs, default is `skills` mode.
|
|
45
|
-
|
|
46
|
-
For non-interactive installs:
|
|
47
|
-
|
|
48
46
|
```bash
|
|
49
47
|
npx @undeemed/get-shit-done-codex --global # Install to ~/.codex/
|
|
50
48
|
npx @undeemed/get-shit-done-codex --local # Install to current directory
|
|
51
|
-
npx @undeemed/get-shit-done-codex --global --
|
|
52
|
-
npx @undeemed/get-shit-done-codex --global --codex-mode prompts # Prompt aliases only
|
|
53
|
-
npx @undeemed/get-shit-done-codex --global --migrate # Apply detected migration cleanup
|
|
54
|
-
npx @undeemed/get-shit-done-codex --global --skip-migrate # Keep legacy surface files
|
|
49
|
+
npx @undeemed/get-shit-done-codex --global --migrate # Clean up legacy prompts/
|
|
55
50
|
npx @undeemed/get-shit-done-codex --verify --global # Check install integrity
|
|
56
51
|
npx @undeemed/get-shit-done-codex --verify --repair --global # Auto-repair
|
|
57
52
|
```
|
|
58
53
|
|
|
59
|
-
|
|
54
|
+
After installation, run `codex` (CLI) or `codex app` (Desktop), then run `$gsd-help`.
|
|
60
55
|
|
|
61
|
-
|
|
62
|
-
| --------- | ---------------------------- | --------------------------- |
|
|
63
|
-
| `skills` (default) | `skills/gsd-*/SKILL.md` | `$gsd-help`, `$gsd-plan-phase 1` |
|
|
64
|
-
| `prompts` | `prompts/gsd-*.md` | `/prompts:gsd-help` |
|
|
56
|
+
### What Gets Installed
|
|
65
57
|
|
|
66
|
-
|
|
67
|
-
Single-surface policy: mixed `skills/` + `prompts/` installs are treated as drift and fail `--verify`.
|
|
58
|
+
The installer distributes everything GSD needs:
|
|
68
59
|
|
|
69
|
-
|
|
60
|
+
- **`AGENTS.md`** — behavior contract and command reference for Codex
|
|
61
|
+
- **`.codex/config.toml`** — multi-agent mode, feature flags, agent role registry, MCP servers
|
|
62
|
+
- **`agents/gsd-*.md`** — rich agent definitions (700+ lines each) for sub-agent orchestration
|
|
63
|
+
- **`skills/gsd-*/SKILL.md`** — native Codex skill commands
|
|
64
|
+
- **`get-shit-done/`** — workflow files, templates, and references
|
|
70
65
|
|
|
71
|
-
|
|
66
|
+
On first run, Codex will prompt you to **trust the project** so the config takes effect (one-time, one-click).
|
|
72
67
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
├── AGENTS.md
|
|
76
|
-
├── skills/
|
|
77
|
-
│ └── gsd-*/SKILL.md
|
|
78
|
-
└── get-shit-done/
|
|
79
|
-
```
|
|
68
|
+
> [!NOTE]
|
|
69
|
+
> `.codex/config.toml` is non-destructive — the installer skips it if you already have one, so your customizations are preserved on updates.
|
|
80
70
|
|
|
81
|
-
|
|
71
|
+
### Installed File Structure
|
|
82
72
|
|
|
83
73
|
```text
|
|
84
74
|
~/.codex/
|
|
85
75
|
├── AGENTS.md
|
|
86
|
-
├──
|
|
87
|
-
|
|
76
|
+
├── .codex/config.toml
|
|
77
|
+
├── agents/gsd-*.md
|
|
78
|
+
├── skills/gsd-*/SKILL.md
|
|
88
79
|
└── get-shit-done/
|
|
89
80
|
```
|
|
90
81
|
|
|
@@ -92,7 +83,7 @@ For local installs, replace `~/.codex/` with `./`.
|
|
|
92
83
|
|
|
93
84
|
### Verify And Repair
|
|
94
85
|
|
|
95
|
-
- `--verify`: checks `AGENTS.md`, command surfaces, workflow assets, and version metadata.
|
|
86
|
+
- `--verify`: checks `AGENTS.md`, `config.toml`, agent definitions, command surfaces, workflow assets, and version metadata.
|
|
96
87
|
- `--verify --repair`: reinstalls missing/broken artifacts and verifies again.
|
|
97
88
|
- Migration is **detect-then-confirm**, not automatic:
|
|
98
89
|
- Interactive install asks before removing legacy surface files
|
|
@@ -105,20 +96,18 @@ This fork is intentionally **AGENTS.md-first** for Codex reliability:
|
|
|
105
96
|
|
|
106
97
|
- `AGENTS.md` is the source of truth for behavior and workflow constraints
|
|
107
98
|
- `$gsd-*` skills are lightweight command wrappers around the same workflow docs
|
|
108
|
-
- `/prompts:gsd-*` are optional compatibility aliases (prompts mode)
|
|
109
99
|
|
|
110
100
|
## Staying Updated
|
|
111
101
|
|
|
112
102
|
```bash
|
|
113
103
|
# Check for updates from inside Codex
|
|
114
104
|
$gsd-update
|
|
115
|
-
# or: /prompts:gsd-update
|
|
116
105
|
|
|
117
106
|
# Update from terminal
|
|
118
107
|
npx @undeemed/get-shit-done-codex@latest --global
|
|
119
108
|
```
|
|
120
109
|
|
|
121
|
-
The installer writes a `get-shit-done/VERSION` file so `$gsd-update`
|
|
110
|
+
The installer writes a `get-shit-done/VERSION` file so `$gsd-update` can detect installed vs latest and show changelog before updating.
|
|
122
111
|
|
|
123
112
|
## npm Trusted Publisher (OIDC)
|
|
124
113
|
|
|
@@ -205,8 +194,6 @@ Manual user acceptance testing. The system walks you through testable deliverabl
|
|
|
205
194
|
| `$gsd-verify-work [N]` | Manual user acceptance testing |
|
|
206
195
|
| `$gsd-help` | Show all commands |
|
|
207
196
|
|
|
208
|
-
Use `/prompts:gsd-*` aliases when installed with `--codex-mode prompts`.
|
|
209
|
-
|
|
210
197
|
## Why It Works
|
|
211
198
|
|
|
212
199
|
### Context Engineering
|
|
@@ -231,6 +218,26 @@ Every stage uses a thin orchestrator that spawns specialized agents:
|
|
|
231
218
|
|
|
232
219
|
The orchestrator stays at 30-40% context. The work happens in fresh subagent contexts.
|
|
233
220
|
|
|
221
|
+
### Sub-Agent Roles
|
|
222
|
+
|
|
223
|
+
GSD ships 11 specialized agent definitions in `agents/gsd-*.md`, each wired into `config.toml` via `developer_instructions`:
|
|
224
|
+
|
|
225
|
+
| Agent | Role |
|
|
226
|
+
| -------------------------- | ---------------------------------------------------------- |
|
|
227
|
+
| `gsd-planner` | Draft atomic PLAN.md files with tasks and success criteria |
|
|
228
|
+
| `gsd-executor` | Execute plans with atomic commits and verification |
|
|
229
|
+
| `gsd-verifier` | Goal-backward verification that outcomes are delivered |
|
|
230
|
+
| `gsd-debugger` | Hypothesis testing, root cause isolation, fix proposals |
|
|
231
|
+
| `gsd-phase-researcher` | Research implementation patterns for planners |
|
|
232
|
+
| `gsd-project-researcher` | Ecosystem research for roadmap creation |
|
|
233
|
+
| `gsd-research-synthesizer` | Synthesize parallel research into actionable inputs |
|
|
234
|
+
| `gsd-plan-checker` | Stress-test plan quality and requirement coverage |
|
|
235
|
+
| `gsd-codebase-mapper` | Map stack, architecture, and conventions |
|
|
236
|
+
| `gsd-roadmapper` | Turn requirements into phased roadmaps |
|
|
237
|
+
| `gsd-integration-checker` | Verify cross-phase wiring and e2e behavior |
|
|
238
|
+
|
|
239
|
+
Each agent gets its full role definition (700+ lines) loaded at spawn time — no context wasted on the orchestrator.
|
|
240
|
+
|
|
234
241
|
### Atomic Git Commits
|
|
235
242
|
|
|
236
243
|
Each task gets its own commit immediately after completion:
|
|
@@ -249,7 +256,12 @@ Git bisect finds exact failing task. Each task independently revertable.
|
|
|
249
256
|
|
|
250
257
|
- Restart Codex to reload installed command surfaces
|
|
251
258
|
- Check `~/.codex/skills/gsd-*/SKILL.md` (global) or `./skills/gsd-*/SKILL.md` (local)
|
|
252
|
-
|
|
259
|
+
|
|
260
|
+
**Multi-agent / sub-agents not working?**
|
|
261
|
+
|
|
262
|
+
- Check `.codex/config.toml` exists in your install directory
|
|
263
|
+
- Ensure the project is **trusted** in Codex (it prompts on first run)
|
|
264
|
+
- Run `--verify` to check all artifacts are present
|
|
253
265
|
|
|
254
266
|
**Update to latest:**
|
|
255
267
|
|
|
@@ -260,7 +272,7 @@ npx @undeemed/get-shit-done-codex@latest
|
|
|
260
272
|
**Can users be notified when an update is available?**
|
|
261
273
|
|
|
262
274
|
- Yes. The installer prints an update notice if a newer npm version exists.
|
|
263
|
-
- In-Codex update checks are available via `$gsd-update
|
|
275
|
+
- In-Codex update checks are available via `$gsd-update`.
|
|
264
276
|
- For release notifications outside the CLI, enable GitHub release watching on this repo.
|
|
265
277
|
|
|
266
278
|
## More Documentation
|
|
@@ -277,8 +289,7 @@ The original repository contains:
|
|
|
277
289
|
|
|
278
290
|
**Note:** The original README is written for Codex Code. When following it, remember that this fork uses:
|
|
279
291
|
|
|
280
|
-
- Codex-native skills (`$gsd-*`)
|
|
281
|
-
- Optional prompt aliases (`/prompts:gsd-*`) via `--codex-mode prompts`
|
|
292
|
+
- Codex-native skills (`$gsd-*`)
|
|
282
293
|
- OpenAI Codex CLI & Desktop
|
|
283
294
|
|
|
284
295
|
## Keywords
|
|
@@ -8,7 +8,7 @@ color: cyan
|
|
|
8
8
|
<role>
|
|
9
9
|
You are a GSD codebase mapper. You explore a codebase for a specific focus area and write analysis documents directly to `.planning/codebase/`.
|
|
10
10
|
|
|
11
|
-
You are spawned by
|
|
11
|
+
You are spawned by `$gsd-map-codebase` with one of four focus areas:
|
|
12
12
|
- **tech**: Analyze technology stack and external integrations → write STACK.md and INTEGRATIONS.md
|
|
13
13
|
- **arch**: Analyze architecture and file structure → write ARCHITECTURE.md and STRUCTURE.md
|
|
14
14
|
- **quality**: Analyze coding conventions and testing patterns → write CONVENTIONS.md and TESTING.md
|
|
@@ -23,7 +23,7 @@ If the prompt contains a `<files_to_read>` block, you MUST use the `Read` tool t
|
|
|
23
23
|
<why_this_matters>
|
|
24
24
|
**These documents are consumed by other GSD commands:**
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
**`$gsd-plan-phase`** loads relevant codebase docs when creating implementation plans:
|
|
27
27
|
| Phase Type | Documents Loaded |
|
|
28
28
|
|------------|------------------|
|
|
29
29
|
| UI, frontend, components | CONVENTIONS.md, STRUCTURE.md |
|
|
@@ -34,7 +34,7 @@ If the prompt contains a `<files_to_read>` block, you MUST use the `Read` tool t
|
|
|
34
34
|
| refactor, cleanup | CONCERNS.md, ARCHITECTURE.md |
|
|
35
35
|
| setup, config | STACK.md, STRUCTURE.md |
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
**`$gsd-execute-phase`** references codebase docs to:
|
|
38
38
|
- Follow existing conventions when writing code
|
|
39
39
|
- Know where to place new files (STRUCTURE.md)
|
|
40
40
|
- Match testing patterns (TESTING.md)
|
package/agents/gsd-debugger.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: gsd-debugger
|
|
3
|
-
description: Investigates bugs using scientific method, manages debug sessions, handles checkpoints. Spawned by
|
|
3
|
+
description: Investigates bugs using scientific method, manages debug sessions, handles checkpoints. Spawned by $gsd-debug orchestrator.
|
|
4
4
|
tools: Read, Write, Edit, Bash, Grep, Glob, WebSearch
|
|
5
5
|
color: orange
|
|
6
6
|
---
|
|
@@ -10,7 +10,7 @@ You are a GSD debugger. You investigate bugs using systematic scientific method,
|
|
|
10
10
|
|
|
11
11
|
You are spawned by:
|
|
12
12
|
|
|
13
|
-
-
|
|
13
|
+
- `$gsd-debug` command (interactive debugging)
|
|
14
14
|
- `diagnose-issues` workflow (parallel UAT diagnosis)
|
|
15
15
|
|
|
16
16
|
Your job: Find the root cause through hypothesis testing, maintain debug file state, optionally fix and verify (depending on mode).
|
|
@@ -897,7 +897,7 @@ Gather symptoms through questioning. Update file after EACH answer.
|
|
|
897
897
|
- Otherwise -> proceed to fix_and_verify
|
|
898
898
|
- **ELIMINATED:** Append to Eliminated section, form new hypothesis, return to Phase 2
|
|
899
899
|
|
|
900
|
-
**Context management:** After 5+ evidence entries, ensure Current Focus is updated. Suggest "/clear - run
|
|
900
|
+
**Context management:** After 5+ evidence entries, ensure Current Focus is updated. Suggest "/clear - run $gsd-debug to resume" if context filling up.
|
|
901
901
|
</step>
|
|
902
902
|
|
|
903
903
|
<step name="resume_from_file">
|
|
@@ -1027,7 +1027,7 @@ mv .planning/debug/{slug}.md .planning/debug/resolved/
|
|
|
1027
1027
|
**Check planning config using state load (commit_docs is available from the output):**
|
|
1028
1028
|
|
|
1029
1029
|
```bash
|
|
1030
|
-
INIT=$(node
|
|
1030
|
+
INIT=$(node ./get-shit-done/bin/gsd-tools.cjs state load)
|
|
1031
1031
|
# commit_docs is in the JSON output
|
|
1032
1032
|
```
|
|
1033
1033
|
|
|
@@ -1044,7 +1044,7 @@ Root cause: {root_cause}"
|
|
|
1044
1044
|
|
|
1045
1045
|
Then commit planning docs via CLI (respects `commit_docs` config automatically):
|
|
1046
1046
|
```bash
|
|
1047
|
-
node
|
|
1047
|
+
node ./get-shit-done/bin/gsd-tools.cjs commit "docs: resolve debug {slug}" --files .planning/debug/resolved/{slug}.md
|
|
1048
1048
|
```
|
|
1049
1049
|
|
|
1050
1050
|
Report completion and offer next steps.
|
package/agents/gsd-executor.md
CHANGED
|
@@ -8,7 +8,7 @@ color: yellow
|
|
|
8
8
|
<role>
|
|
9
9
|
You are a GSD plan executor. You execute PLAN.md files atomically, creating per-task commits, handling deviations automatically, pausing at checkpoints, and producing SUMMARY.md files.
|
|
10
10
|
|
|
11
|
-
Spawned by
|
|
11
|
+
Spawned by `$gsd-execute-phase` orchestrator.
|
|
12
12
|
|
|
13
13
|
Your job: Execute the plan completely, commit each task, create SUMMARY.md, update STATE.md.
|
|
14
14
|
|
|
@@ -37,7 +37,7 @@ This ensures project-specific patterns, conventions, and best practices are appl
|
|
|
37
37
|
Load execution context:
|
|
38
38
|
|
|
39
39
|
```bash
|
|
40
|
-
INIT=$(node
|
|
40
|
+
INIT=$(node ./get-shit-done/bin/gsd-tools.cjs init execute-phase "${PHASE}")
|
|
41
41
|
```
|
|
42
42
|
|
|
43
43
|
Extract from init JSON: `executor_model`, `commit_docs`, `phase_dir`, `plans`, `incomplete_plans`.
|
|
@@ -190,7 +190,7 @@ Track auto-fix attempts per task. After 3 auto-fix attempts on a single task:
|
|
|
190
190
|
Check if auto mode is active at executor start:
|
|
191
191
|
|
|
192
192
|
```bash
|
|
193
|
-
AUTO_CFG=$(node
|
|
193
|
+
AUTO_CFG=$(node ./get-shit-done/bin/gsd-tools.cjs config-get workflow.auto_advance 2>/dev/null || echo "false")
|
|
194
194
|
```
|
|
195
195
|
|
|
196
196
|
Store the result for checkpoint handling below.
|
|
@@ -203,7 +203,7 @@ Store the result for checkpoint handling below.
|
|
|
203
203
|
Before any `checkpoint:human-verify`, ensure verification environment is ready. If plan lacks server startup before checkpoint, ADD ONE (deviation Rule 3).
|
|
204
204
|
|
|
205
205
|
For full automation-first patterns, server lifecycle, CLI handling:
|
|
206
|
-
**See
|
|
206
|
+
**See @./get-shit-done/references/checkpoints.md**
|
|
207
207
|
|
|
208
208
|
**Quick reference:** Users NEVER run CLI commands. Users ONLY visit URLs, click UI, evaluate visuals, provide secrets. Codex does all automation.
|
|
209
209
|
|
|
@@ -326,7 +326,7 @@ After all tasks complete, create `{phase}-{plan}-SUMMARY.md` at `.planning/phase
|
|
|
326
326
|
|
|
327
327
|
**ALWAYS use the Write tool to create files** — never use `Bash(cat << 'EOF')` or heredoc commands for file creation.
|
|
328
328
|
|
|
329
|
-
**Use template:**
|
|
329
|
+
**Use template:** @./get-shit-done/templates/summary.md
|
|
330
330
|
|
|
331
331
|
**Frontmatter:** phase, plan, subsystem, tags, dependency graph (requires/provides/affects), tech-stack (added/patterns), key-files (created/modified), decisions, metrics (duration, completed date).
|
|
332
332
|
|
|
@@ -379,34 +379,34 @@ After SUMMARY.md, update STATE.md using gsd-tools:
|
|
|
379
379
|
|
|
380
380
|
```bash
|
|
381
381
|
# Advance plan counter (handles edge cases automatically)
|
|
382
|
-
node
|
|
382
|
+
node ./get-shit-done/bin/gsd-tools.cjs state advance-plan
|
|
383
383
|
|
|
384
384
|
# Recalculate progress bar from disk state
|
|
385
|
-
node
|
|
385
|
+
node ./get-shit-done/bin/gsd-tools.cjs state update-progress
|
|
386
386
|
|
|
387
387
|
# Record execution metrics
|
|
388
|
-
node
|
|
388
|
+
node ./get-shit-done/bin/gsd-tools.cjs state record-metric \
|
|
389
389
|
--phase "${PHASE}" --plan "${PLAN}" --duration "${DURATION}" \
|
|
390
390
|
--tasks "${TASK_COUNT}" --files "${FILE_COUNT}"
|
|
391
391
|
|
|
392
392
|
# Add decisions (extract from SUMMARY.md key-decisions)
|
|
393
393
|
for decision in "${DECISIONS[@]}"; do
|
|
394
|
-
node
|
|
394
|
+
node ./get-shit-done/bin/gsd-tools.cjs state add-decision \
|
|
395
395
|
--phase "${PHASE}" --summary "${decision}"
|
|
396
396
|
done
|
|
397
397
|
|
|
398
398
|
# Update session info
|
|
399
|
-
node
|
|
399
|
+
node ./get-shit-done/bin/gsd-tools.cjs state record-session \
|
|
400
400
|
--stopped-at "Completed ${PHASE}-${PLAN}-PLAN.md"
|
|
401
401
|
```
|
|
402
402
|
|
|
403
403
|
```bash
|
|
404
404
|
# Update ROADMAP.md progress for this phase (plan counts, status)
|
|
405
|
-
node
|
|
405
|
+
node ./get-shit-done/bin/gsd-tools.cjs roadmap update-plan-progress "${PHASE_NUMBER}"
|
|
406
406
|
|
|
407
407
|
# Mark completed requirements from PLAN.md frontmatter
|
|
408
408
|
# Extract the `requirements` array from the plan's frontmatter, then mark each complete
|
|
409
|
-
node
|
|
409
|
+
node ./get-shit-done/bin/gsd-tools.cjs requirements mark-complete ${REQ_IDS}
|
|
410
410
|
```
|
|
411
411
|
|
|
412
412
|
**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.
|
|
@@ -424,13 +424,13 @@ node ~/.codex/get-shit-done/bin/gsd-tools.cjs requirements mark-complete ${REQ_I
|
|
|
424
424
|
|
|
425
425
|
**For blockers found during execution:**
|
|
426
426
|
```bash
|
|
427
|
-
node
|
|
427
|
+
node ./get-shit-done/bin/gsd-tools.cjs state add-blocker "Blocker description"
|
|
428
428
|
```
|
|
429
429
|
</state_updates>
|
|
430
430
|
|
|
431
431
|
<final_commit>
|
|
432
432
|
```bash
|
|
433
|
-
node
|
|
433
|
+
node ./get-shit-done/bin/gsd-tools.cjs commit "docs({phase}-{plan}): complete [plan-name] plan" --files .planning/phases/XX-name/{phase}-{plan}-SUMMARY.md .planning/STATE.md .planning/ROADMAP.md .planning/REQUIREMENTS.md
|
|
434
434
|
```
|
|
435
435
|
|
|
436
436
|
Separate from per-task commits — captures execution results only.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: gsd-phase-researcher
|
|
3
|
-
description: Researches how to implement a phase before planning. Produces RESEARCH.md consumed by gsd-planner. Spawned by
|
|
3
|
+
description: Researches how to implement a phase before planning. Produces RESEARCH.md consumed by gsd-planner. Spawned by $gsd-plan-phase orchestrator.
|
|
4
4
|
tools: Read, Write, Bash, Grep, Glob, WebSearch, WebFetch, mcp__context7__*
|
|
5
5
|
color: cyan
|
|
6
6
|
---
|
|
@@ -8,7 +8,7 @@ color: cyan
|
|
|
8
8
|
<role>
|
|
9
9
|
You are a GSD phase researcher. You answer "What do I need to know to PLAN this phase well?" and produce a single RESEARCH.md that the planner consumes.
|
|
10
10
|
|
|
11
|
-
Spawned by
|
|
11
|
+
Spawned by `$gsd-plan-phase` (integrated) or `$gsd-research-phase` (standalone).
|
|
12
12
|
|
|
13
13
|
**CRITICAL: Mandatory Initial Read**
|
|
14
14
|
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.
|
|
@@ -37,7 +37,7 @@ This ensures research aligns with project-specific conventions and libraries.
|
|
|
37
37
|
</project_context>
|
|
38
38
|
|
|
39
39
|
<upstream_input>
|
|
40
|
-
**CONTEXT.md** (if exists) — User decisions from
|
|
40
|
+
**CONTEXT.md** (if exists) — User decisions from `$gsd-discuss-phase`
|
|
41
41
|
|
|
42
42
|
| Section | How You Use It |
|
|
43
43
|
|---------|----------------|
|
|
@@ -120,7 +120,7 @@ When researching "best library for X": find what the ecosystem actually uses, do
|
|
|
120
120
|
Check `brave_search` from init context. If `true`, use Brave Search for higher quality results:
|
|
121
121
|
|
|
122
122
|
```bash
|
|
123
|
-
node
|
|
123
|
+
node ./get-shit-done/bin/gsd-tools.cjs websearch "your query" --limit 10
|
|
124
124
|
```
|
|
125
125
|
|
|
126
126
|
**Options:**
|
|
@@ -317,7 +317,7 @@ Verified patterns from official sources:
|
|
|
317
317
|
### Nyquist Sampling Rate
|
|
318
318
|
- **Minimum sample interval:** After every committed task → run: `{quick run command}`
|
|
319
319
|
- **Full suite trigger:** Before merging final task of any plan wave
|
|
320
|
-
- **Phase-complete gate:** Full suite green before
|
|
320
|
+
- **Phase-complete gate:** Full suite green before `$gsd-verify-work` runs
|
|
321
321
|
- **Estimated feedback latency per task:** ~{N} seconds
|
|
322
322
|
|
|
323
323
|
### Wave 0 Gaps (must be created before implementation)
|
|
@@ -361,7 +361,7 @@ Orchestrator provides: phase number/name, description/goal, requirements, constr
|
|
|
361
361
|
|
|
362
362
|
Load phase context using init command:
|
|
363
363
|
```bash
|
|
364
|
-
INIT=$(node
|
|
364
|
+
INIT=$(node ./get-shit-done/bin/gsd-tools.cjs init phase-op "${PHASE}")
|
|
365
365
|
```
|
|
366
366
|
|
|
367
367
|
Extract from init JSON: `phase_dir`, `padded_phase`, `phase_number`, `commit_docs`.
|
|
@@ -476,7 +476,7 @@ Write to: `$PHASE_DIR/$PADDED_PHASE-RESEARCH.md`
|
|
|
476
476
|
## Step 7: Commit Research (optional)
|
|
477
477
|
|
|
478
478
|
```bash
|
|
479
|
-
node
|
|
479
|
+
node ./get-shit-done/bin/gsd-tools.cjs commit "docs($PHASE): research phase domain" --files "$PHASE_DIR/$PADDED_PHASE-RESEARCH.md"
|
|
480
480
|
```
|
|
481
481
|
|
|
482
482
|
## Step 8: Return Structured Result
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: gsd-plan-checker
|
|
3
|
-
description: Verifies plans will achieve phase goal before execution. Goal-backward analysis of plan quality. Spawned by
|
|
3
|
+
description: Verifies plans will achieve phase goal before execution. Goal-backward analysis of plan quality. Spawned by $gsd-plan-phase orchestrator.
|
|
4
4
|
tools: Read, Bash, Glob, Grep
|
|
5
5
|
color: green
|
|
6
6
|
---
|
|
@@ -8,7 +8,7 @@ color: green
|
|
|
8
8
|
<role>
|
|
9
9
|
You are a GSD plan checker. Verify that plans WILL achieve the phase goal, not just that they look complete.
|
|
10
10
|
|
|
11
|
-
Spawned by
|
|
11
|
+
Spawned by `$gsd-plan-phase` orchestrator (after planner creates PLAN.md) or re-verification (after planner revises).
|
|
12
12
|
|
|
13
13
|
Goal-backward verification of PLANS before execution. Start from what the phase SHOULD deliver, verify plans address it.
|
|
14
14
|
|
|
@@ -42,7 +42,7 @@ This ensures verification checks that plans follow project-specific conventions.
|
|
|
42
42
|
</project_context>
|
|
43
43
|
|
|
44
44
|
<upstream_input>
|
|
45
|
-
**CONTEXT.md** (if exists) — User decisions from
|
|
45
|
+
**CONTEXT.md** (if exists) — User decisions from `$gsd-discuss-phase`
|
|
46
46
|
|
|
47
47
|
| Section | How You Use It |
|
|
48
48
|
|---------|----------------|
|
|
@@ -271,7 +271,7 @@ issue:
|
|
|
271
271
|
|
|
272
272
|
## Dimension 7: Context Compliance (if CONTEXT.md exists)
|
|
273
273
|
|
|
274
|
-
**Question:** Do plans honor user decisions from
|
|
274
|
+
**Question:** Do plans honor user decisions from $gsd-discuss-phase?
|
|
275
275
|
|
|
276
276
|
**Only check if CONTEXT.md was provided in the verification context.**
|
|
277
277
|
|
|
@@ -419,7 +419,7 @@ If Dimension 8 FAILS:
|
|
|
419
419
|
|
|
420
420
|
Load phase operation context:
|
|
421
421
|
```bash
|
|
422
|
-
INIT=$(node
|
|
422
|
+
INIT=$(node ./get-shit-done/bin/gsd-tools.cjs init phase-op "${PHASE_ARG}")
|
|
423
423
|
```
|
|
424
424
|
|
|
425
425
|
Extract from init JSON: `phase_dir`, `phase_number`, `has_plans`, `plan_count`.
|
|
@@ -430,7 +430,7 @@ Orchestrator provides CONTEXT.md content in the verification prompt. If provided
|
|
|
430
430
|
ls "$phase_dir"/*-PLAN.md 2>/dev/null
|
|
431
431
|
# Read research for Nyquist validation data
|
|
432
432
|
cat "$phase_dir"/*-RESEARCH.md 2>/dev/null
|
|
433
|
-
node
|
|
433
|
+
node ./get-shit-done/bin/gsd-tools.cjs roadmap get-phase "$phase_number"
|
|
434
434
|
ls "$phase_dir"/*-BRIEF.md 2>/dev/null
|
|
435
435
|
```
|
|
436
436
|
|
|
@@ -443,7 +443,7 @@ Use gsd-tools to validate plan structure:
|
|
|
443
443
|
```bash
|
|
444
444
|
for plan in "$PHASE_DIR"/*-PLAN.md; do
|
|
445
445
|
echo "=== $plan ==="
|
|
446
|
-
PLAN_STRUCTURE=$(node
|
|
446
|
+
PLAN_STRUCTURE=$(node ./get-shit-done/bin/gsd-tools.cjs verify plan-structure "$plan")
|
|
447
447
|
echo "$PLAN_STRUCTURE"
|
|
448
448
|
done
|
|
449
449
|
```
|
|
@@ -461,7 +461,7 @@ Map errors/warnings to verification dimensions:
|
|
|
461
461
|
Extract must_haves from each plan using gsd-tools:
|
|
462
462
|
|
|
463
463
|
```bash
|
|
464
|
-
MUST_HAVES=$(node
|
|
464
|
+
MUST_HAVES=$(node ./get-shit-done/bin/gsd-tools.cjs frontmatter get "$PLAN_PATH" --field must_haves)
|
|
465
465
|
```
|
|
466
466
|
|
|
467
467
|
Returns JSON: `{ truths: [...], artifacts: [...], key_links: [...] }`
|
|
@@ -504,7 +504,7 @@ For each requirement: find covering task(s), verify action is specific, flag gap
|
|
|
504
504
|
Use gsd-tools plan-structure verification (already run in Step 2):
|
|
505
505
|
|
|
506
506
|
```bash
|
|
507
|
-
PLAN_STRUCTURE=$(node
|
|
507
|
+
PLAN_STRUCTURE=$(node ./get-shit-done/bin/gsd-tools.cjs verify plan-structure "$PLAN_PATH")
|
|
508
508
|
```
|
|
509
509
|
|
|
510
510
|
The `tasks` array in the result shows each task's completeness:
|
|
@@ -666,7 +666,7 @@ Return all issues as a structured `issues:` YAML list (see dimension examples fo
|
|
|
666
666
|
| 01 | 3 | 5 | 1 | Valid |
|
|
667
667
|
| 02 | 2 | 4 | 2 | Valid |
|
|
668
668
|
|
|
669
|
-
Plans verified. Run
|
|
669
|
+
Plans verified. Run `$gsd-execute-phase {phase}` to proceed.
|
|
670
670
|
```
|
|
671
671
|
|
|
672
672
|
## ISSUES FOUND
|