@pmelab/gtd 6.13.0 → 7.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -49,28 +49,28 @@ Or run without installing:
49
49
  npx @pmelab/gtd
50
50
  ```
51
51
 
52
- Then scaffold the workflow for the repo — run once:
52
+ That's it — gtd ships the **unified** workflow as its **built-in default**, so a
53
+ state command works out of the box with no configuration at all.
54
+
55
+ Optionally, seed the settings a project usually tunes — run once:
53
56
 
54
57
  ```bash
55
58
  gtd init
56
59
  ```
57
60
 
58
- This writes a `.gtdrc.json` for the bundled unified workflow, with each agent
59
- state's prompt saved as an editable Markdown file under `gtd-prompts/` and
60
- referenced from the config (review and commit both). Edit a prompt by editing
61
- its `gtd-prompts/*.md` file — no config edit needed. File references resolve
62
- relative to **the `.gtdrc` that declares them**, so a config and its
63
- `gtd-prompts/` can even live in a parent directory shared across repos while gtd
64
- runs from each repo root — run `gtd init` from that parent directory (it need
65
- not be a git repo) to scaffold it there (see
66
- [Configuration](docs/configuration.md#content-values-inline-or-a-file-reference)).
67
- It also seeds a top-level `modes:` block suggesting **Prettier** as the
68
- steering-file formatter (`npx prettier --write` for the built-in `qa`/`review`
69
- modes — format only, so gtd still validates); edit or drop it freely (swap in
70
- dprint, a script, or delete the key). `gtd init` takes no argument. gtd ships
71
- **no** default workflow: a state command run before `gtd init` fails, pointing
72
- you back here. See [Configuration](docs/configuration.md#gtd-init) for the
73
- template.
61
+ This writes a minimal `.gtdrc.json` seeding the one variable most projects
62
+ change — the test command (`vars.testCommand`, defaulting to `npm test`) — plus
63
+ a top-level `modes:` block suggesting **Prettier** as the steering-file
64
+ formatter (`npx prettier --write` for the built-in `qa`/`review` modes — format
65
+ only, so gtd still validates); edit or drop either freely (point `testCommand`
66
+ at your suite, swap Prettier for dprint or a script, delete a key). It writes
67
+ **no** `workflow:` key — the machine is built in — so review and commit the file
68
+ before your first `gtd step`. `gtd init` takes no argument and refuses to
69
+ clobber an existing config; it may also run in a plain parent directory (not a
70
+ git repo) to seed a shared config a nested repo picks up. To customize the
71
+ machine itself, add a `workflow:` key (there is no default fallback to merge
72
+ over — a `workflow:` is the whole definition). See
73
+ [Configuration](docs/configuration.md#gtd-init) for the details.
74
74
 
75
75
  ## How it works
76
76
 
@@ -111,12 +111,15 @@ and tells you to repair it first (that's what `gtd fix` is for). The two
111
111
  steering-file entries are chosen by which file you create:
112
112
 
113
113
  - Create **`.gtd/TODO.md`** with a short sketch to start the **simple** flow: an
114
- agent develops your sketch into a plan — asking any open question it can't
115
- settle itself via a deterministic `.gtd/TODO.md` format, validated before it
116
- ever reaches you — you answer inline, then it builds the plan in one turn and
114
+ agent develops your sketch into a concrete plan — deciding open points itself
115
+ rather than asking questions — and hands it back for you to accept as-is or
116
+ edit. Editing sends it round again; accepting builds the plan in one turn and
117
117
  runs your tests (looping on failures).
118
118
  - Create **`.gtd/REQUIREMENTS.md`** to start the **advanced** flow: two-phase
119
- product then technical Q&A (`.gtd/REQUIREMENTS.md` → `.gtd/ARCHITECTURE.md`),
119
+ product then technical Q&A (`.gtd/REQUIREMENTS.md` → `.gtd/ARCHITECTURE.md`) —
120
+ each open question offers a couple of candidate answers plus a
121
+ `- [ ] _your answer_` slot, and you tick exactly one per question (the gate
122
+ won't let a phase advance while any question is unanswered) — then
120
123
  decomposition into work **packages** (each a set of independent tasks a single
121
124
  build turn fans out to parallel subagents), a per-package test loop, and a
122
125
  per-package **agentic review** that verifies the package against its spec.
@@ -168,8 +171,8 @@ points at (at its `#line`), symbols over a `qa`-mode file's open questions,
168
171
  diagnostics for both (live as you edit), and a `gtd.openSteeringFile` command
169
172
  that jumps to the current state's steering file. Config-driven via each state's
170
173
  `file:`/`mode:` (see [CLI reference](docs/cli.md#gtd-lsp)) — falls back to
171
- basename dispatch (`TODO.md`/`REVIEW.md`) with no config in sight. Those two
172
- formats are gtd's built-in steering-file MODES — validators, not formatters: a
174
+ basename dispatch (`REVIEW.md` → `review`) with no config in sight. `qa` and
175
+ `review` are gtd's built-in steering-file MODES — validators, not formatters: a
173
176
  mode's `format:` and `validate:` are shell commands a workflow (or a project's
174
177
  `.gtdrc`) declares for itself, so you bring your own formatter and your own
175
178
  checkers (see