@skitterbyte/skitterspec-azure-boards 3.0.0 → 3.1.1

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.
@@ -1,1018 +1,130 @@
1
1
  # Spec Planning
2
2
 
3
- Spec-driven development is driven by ten lifecycle skills (plus the
4
- `/spec-connect` and `/spec-live` **commands** when isolation is on) — use them rather than hand-rolling specs so the structure
5
- and lifecycle stay consistent. Each sets a status on the spec header
6
- (`> **Status:** …`):
7
-
8
- | Skill | Purpose | Status | Folder |
9
- |-------|---------|--------|--------|
10
- | `/spec` | (Feature/Chore/Issue) Grill to a clear shared understanding, propose the kind, write a groomed spec in its own worktree, then land it on the verdict | `Ready` (or `Draft`) | `specs/backlog/` (on the base branch by a fast-forward — or riding the feature branch under `land.specDocs: "branch"`) |
11
- | `/spec-bug` | (Bug) Reproduce with a failing test, capture spec, drive red→green | `In Progress` | `specs/in-progress/` |
12
- | `/spec-hotfix` | (Hotfix) Fork a worktree from a release tag, red→green, land by tag + cherry-pick | `In Progress` | `specs/in-progress/` |
13
- | `/spec-incident` | (Incident) Capture a live outage as a record written during it — grill, write in flight, fixes as separate linked specs | `In Progress` | `specs/in-progress/` |
14
- | `/no-spec` | Work that genuinely has no spec — its own branch, worktree, page and land. Writes no spec and moves nothing through the lifecycle | `—` | (none) |
15
- | `/spec-idea` | Capture an idea without specing it — in the tracker when the provider holds ideas, else `specs/ideas.md` on the base branch; bare lists, `--drop` discards. `/spec idea:<id>` or `/spec #N` promotes one | `—` | (none) |
16
- | `/spec-review` | Re-validate a spec against the codebase; refresh stale parts | `—` | (unchanged) |
17
- | `/spec-start` | Put a spec in flight — provision its branch, then build phase 1 | `In Progress` | `specs/in-progress/` |
18
- | `/spec-next` | Build the next phase of the spec this session is in (re-run per phase) | `In Progress` (unchanged) | (unchanged) |
19
- | `/spec-reviewed` | Pick up a review approved on the page — offered by its code, claimed on your word | (unchanged) | (unchanged) |
20
- | `/spec-epic-next` | Name the epic member that can start now, as the `/spec-start` to type in a new tab — a picker when several can; reads only | (unchanged) | (unchanged) |
21
- | `/spec-resume` | Go back into a spec already in flight, by name or `#N`. It rebuilds the worktree when this machine has none, shows what it is blocked on, and acts on the message given with it. It starts nothing. A completed spec is offered a re-open: a fresh branch from the base, moved back to in-progress | (unchanged), or `In Progress` on a re-open | (unchanged), or `specs/in-progress/` on a re-open |
22
- | `/spec-park` | Park a spec in flight on something outside the repo: a `Blocked on:` line on the spec or a phase, committed on its branch. The worktree stays | (unchanged) | (unchanged) |
23
- | `/spec-to-main` | Land the branch on the base (rebase + ff) **without** finishing — for running the work in CI / a shared env mid-spec; repeatable | `In Progress` (unchanged) | (unchanged) |
24
- | `/spec-complete` | Verify all phases done + tests green; land + tear down | `Complete` | `specs/complete/` |
25
- | `/spec-cancel` | Record progress, stamp a reason on the header; tear down | `Cancelled` | `specs/cancelled/` |
26
- | `/spec-tada` | A ta-da list — recap what you did in Claude Code over a window, across every project, by project then spec, ending in a standup. Read-only | (unchanged) | (unchanged) |
27
- | `/spec-todo` | The morning half — where each project was left on the last working day, what is waiting on you, what to pick up first. Read-only | (unchanged) | (unchanged) |
28
- | `/spec-init` | Bootstrap/repair this workflow in a project (idempotent) | — | — |
29
-
30
- **Skills vs commands.** The table above lists **skills** — Claude reads them and
31
- exercises judgment. `/spec-connect` and `/spec-live` are
32
- instead **slash commands**
33
- (`.claude/commands/`): each pre-executes one `skitterspec spec-env` verb and
34
- relays its output, so there is no judgment to apply and no model turn spent
35
- finding one. They are marked `disable-model-invocation`, meaning
36
- **only you can run them** — a skill that wants one will tell you to type it
37
- rather than invoking it.
38
-
39
- **A command finds the project itself, wherever the session stands.** Its line
40
- runs in the session's current directory, which after a `cd` may be the git root
41
- or a worktree's root rather than the project folder — and in a repo whose
42
- project is a subfolder, a runner started there found no install and printed
43
- npm's registry 404. So with a local install the line is a small `node -e`
44
- launcher, written that way because both `/bin/sh` and cmd.exe can start it. It
45
- runs in the current directory when the install is there, which is the usual case and unchanged. Otherwise
46
- it runs in this checkout's project folder, using the subfolder recorded when
47
- the command was installed and the primary checkout's install when a worktree
48
- has none. Failing both, it refuses in one line naming the folder it expected.
49
- `skitterspec update` rewrites the command files to this form.
50
-
51
- **The `spec-remote-review` command was retired** with the published review tier
52
- (feat-tailnet-remote-tier). It toggled whether a spec might publish its review
53
- as a claude.ai page — a second store no wait could watch, and a page this
54
- tooling could never delete. The `remote:` line now names the review server's
55
- tailnet address, on the same switch as `network`, so there is nothing left for
56
- a command to toggle.
57
-
58
- `/spec-reviewed` is a **skill** and **user-only**, and there the marking is not
59
- convenience — it is the enforcement of `/spec-diff` step 0's rule that a waiting
60
- review pass is never claimed unasked. Because the model cannot invoke this
61
- skill, a pass named this way is only ever picked up because a person typed the
62
- command, and typing it **is** the human signal. Prose alone did not hold that
63
- line once already.
64
-
65
- It is **no longer the only way in**, and the difference is worth stating
66
- precisely. A phase that ends now *waits* on its page, and a pass arriving inside
67
- that wait is claimed by the engine (`--claim-since`) without anyone typing
68
- anything — scoped to the window, refusing when two arrive. `/spec-reviewed` is
69
- what answers everything outside it: a pass sent when nobody was waiting, two
70
- passes to choose between, and every harness with no file-watch to wait with.
71
-
72
- **`/no-spec` is the one row that writes no spec**, and it is in the table
73
- because it is the same lane: a branch, a worktree, a review page, a verdict, a
74
- land. What it leaves out is the document, because mechanical work — a version
75
- bump, a lockfile refresh, a rename — genuinely has none, and a one-phase spec
76
- written for it is a document nobody reads. What it does **not** leave out is the
77
- branch. Doing that work in the primary checkout leaves the base branch dirty for
78
- every in-flight spec to replay over, and renders no page, so it is the one kind
79
- of change that reaches the base branch unreviewed. It is model-invocable, which
80
- matters: it is where Claude is sent when it would otherwise write on the base
81
- branch. Beneath it, `skitterspec spec-env nospec <name>` records the branch —
82
- and that record is what makes a name with nothing under `specs/**` resolvable by
83
- `review`, `integrate`, `down` and a bare `resolve`.
84
-
85
- **`/spec-idea` is the door before `/spec`.** `/spec` grills until there is a
86
- spec, which is right for work and wrong for a passing thought. This skill files
87
- the thought as it stands, somewhere the team can see. An idea is not a spec,
88
- so it has no folder, no status and no branch. It lives in the tracker when the
89
- provider can hold ideas (an issue kept off the board, which `/spec #N` already
90
- adopts), and otherwise in `specs/ideas.md`. That file is committed straight
91
- onto the base branch by `skitterspec idea`, using plumbing, so no checkout is
92
- switched or left dirty, and it is never pushed for you. A configured provider
93
- that does not declare an idea store is cannot-tell: capture refuses and hands
94
- the text back, rather than putting one idea in each store.
95
-
96
- **`/spec-tada` reads, and moves nothing.** It is in the table because it
97
- reports in the unit the table is about — a spec — but it changes no status,
98
- writes no file and commits nothing. `skitterspec tada` reads Claude Code's own
99
- transcripts down to the prompts a person typed and folds each session into
100
- the **repo** it worked in, so a session that moved into `../<repo>-wt/<slug>`
101
- is that repo's work, not a project of its own. A commit already on the base
102
- branch is attributed by the spec folder it touched or its `Refs:` ticket, never
103
- by a branch that happens to contain it — a spec branch cut this afternoon
104
- contains all of this morning. It is model-invocable, because "what did I do
105
- today?" should reach it.
106
-
107
- **It leads with the wins, and it acts on nothing outside home.** The digest
108
- marks a completed bug, hotfix or incident as `★ saved bacon` and any other
109
- completed spec or a cut release as `★ win`, so the evening answer to *did I get
110
- anything done?* opens with the evidence. It also marks the project the run
111
- started from as `(here)`, and the report's closing `Next` — the line a reader
112
- copies — names only that project's work: other projects' next steps are
113
- suggestions in their own sections. **`/spec-todo`** is the morning half
114
- (`skitterspec todo`): the last day with any activity, up to 14 days back, each
115
- open spec where it was left, the verdicts waiting and gates armed, and today
116
- so far — home first, and listed even when nothing happened there.
117
-
118
- **A report covers one category.** `project.category` in `env.config.json`
119
- decides which projects share a report — only those with the category of the
120
- repo it runs from, and an uncategorised project is in nobody's but its own
121
- (`--all-projects` takes everything). `project.name` is what heads the page,
122
- and every review page, with the repo folder as the fallback.
123
- `skitterspec project` shows both and sets them (`--name`, `--category`) by
124
- editing only those values; `--categories` lists what your other projects
125
- already use, so one category is not spelled two ways. `/spec-init` asks for
126
- both — on an existing config through a `/no-spec` branch, since the base
127
- branch is a landing zone.
128
-
129
- **`/allow-main` is the third command.** It is user-only for a different reason
130
- from the other two: `/spec-connect` and `/spec-live`
131
- are marked that way because there is no judgment to apply. This one is marked that
132
- way because **Claude must not be able to lift a guard aimed at Claude.**
133
-
134
- The guard is `.claude/hooks/main-guard.cjs`, a `PreToolUse` hook on the write
135
- tools, and it refuses an `Edit` or a `Write` in the **primary checkout** while
136
- it is on the **base branch**. `main` is where work lands, not where it happens:
137
- work done there leaves the base branch dirty for every in-flight spec to replay
138
- over, and renders no review page at all, so it is the one kind of change that
139
- arrives unreviewed. It refuses the FIRST write rather than the commit, because
140
- nothing has been written yet and the fix is one command — where a commit-time
141
- gate fires once the work already exists in a checkout that cannot `switch -c`
142
- out from under the other worktrees.
143
-
144
- It fires only on a **positive signal** — isolation configured, the guard not
145
- switched off, this directory IS the primary checkout, HEAD IS the base branch —
146
- and every cannot-tell allows the write in silence: no repo, no config, a
147
- worktree, an unresolvable base, a missing or crashed engine
148
- (`.claude/rules/negative-checks.md`). `skitterspec spec-env main
149
- <check|allow|status>` is the engine, and `guards.mainIsLandingZone` in
150
- `env.config.json` turns it off for a project. It is
151
- **on by default wherever isolation is configured**, matching the review gate.
152
-
153
- There is **no allowlist**, and it is empty by construction rather than by
154
- omission: `/spec` authors into its own worktree and `/no-spec` catches ad-hoc
155
- work, so no legitimate writer to the base branch is left. `/spec-init` looks
156
- like the exception and is not one — it bootstraps a repo with no
157
- `env.config.json` yet, so the guard never fires there.
158
-
159
- **Two exits, and they are not equal.** `/no-spec <name>` and `/spec-start
160
- <name>` move the work, and Claude takes those on its own; `/allow-main` lifts
161
- the guard, and only a person can type it. That asymmetry is the same line
162
- `/spec-reviewed` draws, and `spec-planning.md` already records that prose alone
163
- did not hold it once.
164
-
165
- **`/allow-project` is its twin, for the other direction.** The main guard
166
- stops work landing where it should not happen; `.claude/hooks/project-guard.cjs`
167
- stops a session doing work that is **not its project's**. A session belongs to
168
- the project it was started in, and a report read across projects once ended on
169
- another repo's `/spec-complete` — which the session ran, `cd`-ing over there to
170
- do it. So a write, a `git` change or a `skitterspec` lifecycle command aimed at
171
- another skitterspec project (a checkout with `specs/.core/`) is refused, while
172
- reads (`git log`, `skitterspec tada`) and every other program pass. Home is the
173
- project the hook is installed in, never the session's cwd, because after a `cd`
174
- the cwd is the thing being judged. `skitterspec spec-env project
175
- <check|allow|status>` is the engine, `guards.projectBoundary` turns it off, and
176
- it fails open on every cannot-tell. `/allow-project <name>` lifts it for one
177
- session, and it is user-only for `/allow-main`'s reason: Claude must not be
178
- able to lift a guard aimed at Claude.
179
-
180
- **`/spec-skip` is the fourth command**, and it is user-only for `/allow-main`'s
181
- reason rather than the mild one: it lifts the review gate, which is a guard
182
- aimed at Claude. It pre-executes `skitterspec spec-env review skip "<reason>"`
183
- and relays it — the same exit that always existed, at an address a person will
184
- actually type. The long form stays exactly as valid and is what the engine
185
- prints; what changed is that a refusal now names something reachable, because a
186
- gate whose exit nobody can find gets switched off wholesale instead of answered.
187
-
188
- **It is not a `--force`, and one was asked for.** A reasonless lift reopens
189
- precisely what the reason requirement closed: `none: additive, nothing to
190
- revert` is a decision a reviewer can argue with, and silence is an oversight.
191
- So a bare `/spec-skip` refuses and asks for a reason, and the two things that
192
- discharge a phase's obligation are still a committing verdict and a recorded
193
- skip — never a flag. Putting the flag on `/commit` was the other suggestion and
194
- is worse: `/commit` belongs to skittership, which is why the gate is enforced
195
- by a hook rather than by editing that skill.
196
-
197
- **`/spec-epic` is the fifth command**, and it is user-only for the mild reason: it
198
- pre-executes `skitterspec epic status` and relays it, so there is no judgement
199
- to apply. It exists for the tab an epic is run from — each member is built in
200
- a tab of its own, and on a phone the in-app browser has to close to switch
201
- tabs, so the epic page's link has to be one command away rather than scrolled
202
- past. Bare, it means the epic of the worktree it runs in. It reads and nothing
203
- more: the next action it names for a member is typed in that member's tab.
204
-
205
- **A refusal may OFFER its own exit, and that is a different thing again.**
206
- Where the engine declares one, a skill relays the refusal and **then** offers it
207
- — once per obligation, with the choice recorded, and answered by the operator
208
- rather than by Claude. `.claude/rules/offered-unblocks.md` is the whole
209
- contract. The three properties named there are what let a Claude-raised bypass
210
- survive the rule above, where a reasonless `--force` did not: the operator
211
- answers, the choice is on the record, and it is offered once. Remove any one and
212
- the objection returns.
213
-
214
- `/spec-to-main`, `/spec-status` and `/spec-sync` stay **skills** — each carries
215
- real judgment (green tests before a land; an MCP fetch and a team-key check; ten
216
- subcommands) — but they are marked user-only too, since nobody reaches them
217
- except by typing them. Everything else in the table above stays model-invocable,
218
- which is what lets `/spec-next` hand off to `/spec-push` as work progresses.
219
-
220
- Status flow: `Ready → In Progress → Complete` (or `Cancelled` from any state).
221
- `/spec` grills to a **Ready** spec directly — there is no separate grooming
222
- command; it writes `Draft` only when open questions are deliberately left.
223
- `/spec-bug` and `/spec-hotfix` are test-first and start straight in `In Progress`
224
- (work begins immediately), so they skip Draft/Ready. `/spec-to-main` does **not**
225
- move the spec through the flow at all — it lands the branch on the base branch
226
- mid-spec (so the work can run in CI / a shared test env) while the spec stays
227
- `In Progress` in `specs/in-progress/`; it's the intermediate, repeatable half of
228
- `/spec-complete`'s landing, without the finalise-and-tear-down.
229
-
230
- **Two workspace modes.** `specs/.core/env.config.json` → `mode` decides where a
231
- spec's branch is built. **`worktree`** (the default) gives each spec its own
232
- checkout — several specs at once and `main` left free. `/spec-start` builds the
233
- branch there, **moves your session into it** with a plain `cd`, and then asks:
234
- build phase 1 now? Say yes and it carries on into a bare `/spec-next`; say no and
235
- you are already standing in the worktree, so `/spec-next` typed later does the
236
- same thing. The primary checkout stays on the base branch throughout — the
237
- session followed the spec, nothing was checked out anywhere.
238
- That is also why the base branch reads `backlog` for a spec being built: the
239
- move happened on its branch. **`skitterspec status`** reads each worktree's own
240
- copy and lists what is in flight and how far along it is.
241
- **`checkout`** builds the branch in the primary checkout instead: one spec at a
242
- time, nowhere else to stand, and the build always carries straight on.
243
- The difference is how many specs can be in flight at once.
244
- Pick it for how you work rather than for what the project contains — a repo with
245
- no dev servers may still want several specs in flight. In `checkout` mode
246
- `/spec-connect` and `/spec-live` do not apply and say so: both exist to reach
247
- work that lives elsewhere, which is the gap that mode removes.
248
-
249
- **Per-spec isolation (opt-in to adopt, then the default policy).** When a project
250
- adopts isolation (`skitterspec init --isolation`, or `specs/.core/env.config.json`
251
- present), `/spec-start` gives **every** in-progress spec its own git worktree
252
- automatically — several specs run side by side without stashing or clashing, and
253
- `main` stays free. Docker is a **per-spec escalation**: `/spec` records
254
- `> **Stack:** worktree` (default) or `worktree + docker` when the spec touches the
255
- DB / stateful services, and `/spec-start` brings up a namespaced stack only for the
256
- latter. `/spec-start` also starts the project's host **dev servers** (`env.config`
257
- → `dev`) on the spec's ports; **`/spec-connect <name>`** then exposes that spec on
258
- your canonical `localhost` ports so you can test it at the normal URL
259
- (`/spec-connect main` hands them back). All housekeeping (the backlog→in-progress
260
- move, header edits, the code) happens on the spec's branch in the worktree; `main`
261
- changes only when it merges. Teardown is folded into `/spec-complete` ·
262
- `/spec-cancel`. Beneath the skills, `skitterspec spec-env
263
- <up|bootstrap|nospec|main|project|down|prune|dev|connect|integrate|disposition|handoff|hotfix|live|review|stage|checks|status|resolve|resume|base>` is the CLI
264
- engine. `up` plans the fork;
265
- **`bootstrap` then runs the worktree's own steps itself** — seeding the gitignored files, the env file, `setup`, the stack — so
266
- the command a skill runs names no file, and a secrets hook that refuses any
267
- `.env` path has nothing to refuse. **Omit the spec name anywhere and it uses the worktree you are standing in**,
268
- else the sole provisioned spec — with no exceptions left: a bare
269
- `/spec-connect` connects, and a bare `/spec-live` takes, where both once meant
270
- `main`. Teardown drops
271
- the finished spec's own test-DB volume; `spec-env prune` additionally reaps
272
- **orphaned** volumes left by declined/aborted teardowns, so `/spec-complete` and
273
- `/spec-cancel` also sweep orphans (confirm-first). A **hotfix** is the one
274
- exception to "fork from `main`": `/spec-hotfix` forks the worktree from a release
275
- tag and `/spec-complete` lands it via `spec-env hotfix land` (release, push on
276
- consent, carry to `main` without the version commit), not a fast-forward; its
277
- worktree stays until the deploy is out and a second `/spec-complete` runs
278
- `spec-env hotfix finish`. Isolation is **orthogonal to lifecycle status** and inactive
279
- when `env.config.json` is absent — every skill then behaves as it does today.
280
-
281
- **Live overlay (`/spec-live`, a command) — the light way to test a spec.** `/spec-connect`
282
- runs a spec's *own* dev stack and proxies the canonical ports to it (one stack per
283
- spec). **Live overlay** instead reuses the one dev server you already have running:
284
- `/spec-live <spec>` — or a bare `/spec-live`, which takes the spec you are
285
- standing on — rebases the branch onto base (the fetched remote base under PR
286
- landing), frees it from its worktree, and
287
- checks it out **in the primary checkout**, so your running server hot-reloads the
288
- feature at the normal URL — no second stack, no proxy. Bare only acts when there
289
- is exactly one answer *and* the workbench is free; anything else prints the
290
- status report rather than guessing. The branch checked out in
291
- the primary checkout **is** the lock: exactly one spec is live at a time, and
292
- `/spec-live main` hands the instance back (fixes you make while live commit
293
- straight onto the branch; `/spec-complete` is live-aware and lands them). Rule of
294
- thumb: **live overlay is the light default for *testing* a code-only spec** — it
295
- is not how work gets started, and no lifecycle skill invokes it; it *refuses*
296
- stateful ones (`Stack: worktree + docker`, or a branch touching migrations) — keep
297
- `/spec-connect` + a Docker stack for those, and for genuinely parallel testing.
298
- `live.afterSwitch` is the switch's counterpart of `afterLand` — the same
299
- `{ run, when }` entries, run in the primary checkout after take and again after
300
- release, so a changed lockfile or schema is caught up both ways. The engine runs
301
- them itself, since `/spec-live` has no turn to run anything after it.
302
- Beneath it, `skitterspec spec-env live <take|release|abort|status>` is the engine.
303
-
304
- **Authoring a spec is work, so it happens off the base branch too (`/spec`).**
305
- `main` is where work **lands**, not where it happens, and a spec document is no
306
- exception. With isolation configured, `/spec` grills first — which puts nothing
307
- on disk — then provisions the new spec's own worktree with
308
- `spec-env up <name> --docs`, moves the session into it, and writes the spec
309
- there. `--docs` skips the `setup` commands and Docker, so a tree to write
310
- markdown in costs one `git worktree add`; `/spec-start` re-runs `up` without the
311
- flag and the install happens then, at the first moment the tree holds code.
312
-
313
- **The committing verdict is what puts it on the base branch.** Phase C2's page
314
- offers `Commit & Start` and `Commit`, and **both** commit on the branch and then
315
- `spec-env integrate` — rebase, fast-forward — so the base gains the spec as one
316
- commit. That is not optional tidiness: `ls specs/backlog/` is how specs are
317
- found, and a folder bucket is only the truth on the branch you are standing on,
318
- so a spec left unlanded is invisible to everyone. They differ only in the
319
- worktree: `Commit & Start` keeps it and carries into `/spec-start`, plain
320
- `commit` tears it down, because a spec parked in the backlog should hold no
321
- checkout.
322
-
323
- **`land.specDocs: "branch"` is the exception — and the default with a tracker.**
324
- The spec rides its feature branch and lands with the work: both verdicts commit
325
- and skip the integrate, plain `commit` keeps branch and worktree (they are the
326
- document's only copy), and the backlog is found through the tracker listing
327
- rather than `ls specs/backlog/` on base. It began as the lane for a base branch
328
- that accepts no direct push even for documents. It is now also what a project
329
- gets by default once a ticketing provider is configured and the key is unset,
330
- under either landing strategy: the ticket already exists and the board already
331
- owns status, so a land whose only purpose was findability buys nothing. Setting
332
- the key, to either value, always wins. The worktree fork-point check is exempt
333
- in this mode for the hotfix's reason: the spec is *supposed* to be absent from
334
- the fork point.
335
-
336
- **What this bought is the reason it changed.** The page waits for a verdict
337
- without a timeout — deliberately, because a reader walking away from a diff is
338
- the normal case — and while the spec was authored in the primary checkout that
339
- wait held the base branch dirty for as long as it lasted, so a release could not
340
- be cut through it. Now an unanswered spec sits on its own branch in its own
341
- worktree, in nothing's way. Phase C2 still **arms nothing**: the gate asserts
342
- that a phase which ended owes an answer, and a backlog spec owes no phase — and
343
- walking away from it now costs nobody anything rather than leaving a mess
344
- someone else has to work around.
345
-
346
- With isolation **absent** none of this applies: there is no worktree to make and
347
- no land to do, so `/spec` writes the folder where the session is standing,
348
- exactly as it always did.
349
-
350
- **Staging one spec and not another (`spec-env stage`).** A `git add specs/`
351
- stages a *directory*, sweeping whatever else happens to be sitting in it into
352
- this spec's commit, under this spec's ticket trailer.
353
- `skitterspec spec-env stage [<spec>] [--json]` is how a skill asks instead of
354
- guessing: it splits the uncommitted tree into the paths that are this spec's —
355
- its folder in **any** bucket, so a tree mid-`git mv` is handled, plus each
356
- `spec.companionPaths` entry the project declares — and the paths that are not.
357
- It reads **the tree you are standing in**, which is the worktree inside one and
358
- the primary checkout outside, and prints which. The `owned` half is the spec's
359
- **documents**, never its code: a phase's own implementation is `foreign`, because
360
- the commits this bounds are the lifecycle ones. Nothing here refuses, writes, or
361
- exits non-zero — `foreign` is a list of paths to leave alone, not an accusation.
362
-
363
- **And it stays load-bearing now that `/spec` authors in its own worktree**, even
364
- though that tree holds one spec. It was once justified by several specs sharing
365
- one `specs/` folder, and that justification is gone; what replaces it is smaller
366
- and just as real. A project's `spec.companionPaths`, a hand-edited
367
- `specs/.core/`, and a tracker snapshot all land in the same tree as the spec, and
368
- only the spec's own documents belong under its authoring verdict. Where isolation
369
- is absent the original reason applies unchanged.
370
-
371
- **Naming the paths is necessary and not sufficient**, which is why every spec
372
- commit is also pathspec-limited: `git add -- <paths>` **and**
373
- `git commit -m "…" -- <paths>`. A checkout has one `.git/index` and every session
374
- standing in it shares that index, so a bare `git commit` takes whatever another
375
- session has already staged no matter how carefully this one staged its own. The
376
- `add` is still needed — `git commit` cannot take a path git has never seen, which
377
- is every brand-new spec folder — but it is the `--` on the **commit** that bounds
378
- what lands. The two failures are different and the fix needs both halves.
379
-
380
- **Reading a spec's diff (`/spec-diff`) — seeing the work, not running it.**
381
- `/spec-connect` and `/spec-live` both exist to reach a *running app*.
382
- **`/spec-diff`** answers the other question: what did this actually change? A
383
- phase is built in its own worktree, so `git diff` in your terminal answers about
384
- the base branch — and a 350-line diff read as terminal text is scrolling, not
385
- review. The engine collects the worktree's changes with `git -C` and writes a
386
- self-contained HTML page (`.spec-env/reviews/<spec>.html`, gitignored) with
387
- whole-file context that folds away, a file tree, and new files included. You open
388
- it locally, or on a phone over your LAN or tailnet.
389
- **The diff never passes through the model**, so the page is free to produce
390
- however large it is; the *written*
391
- review — a short read plus `flag`/`confirm`/`good` notes — is the part that costs
392
- tokens, and it is offered rather than assumed. It is a **skill**, model-invocable,
393
- and it is gated on nothing: half a phase, a hand edit and a colleague's branch are
394
- all ordinary inputs. `/spec-next` renders the page at the end of a phase and
395
- offers the review; `skitterspec spec-env review <spec> [--branch]` is the engine.
396
-
397
- **The page is not read-only — it takes a review pass back.** Tick `✓ accept` per
398
- file as you read, write notes against a line or a whole file, answer the
399
- questions a written review asked, then **end it in a decision** and hand it
400
- back. Three buttons, each carrying its own verdict:
401
- **`✓ Approve`** (commit it), **`↺ Request changes`** (work them now),
402
- **`… Discuss first`** (report and talk). `/spec-diff` stores it (`--notes`),
403
- plays back what it read, and routes on the verdict — `changes` **is** the
404
- go-ahead, so it works the commented files immediately, while `discuss`, a
405
- refused approval and a pass carrying no verdict at all report and wait, which
406
- is what a bare paste has always done. Accepted files stay unopened either way.
407
-
408
- **Two ways back, and both are ordinary.** A **served** page POSTs the pass to
409
- its own URL; the engine holds it in a gitignored `.pending.json` beside the
410
- notes sidecar and answers with a **six-digit code**. Read the code out and
411
- `/spec-diff` claims it (`--claim`), merging exactly the pass that code names.
412
- A `file://` page has no server to talk to — the File System Access API is
413
- Chrome-only and absent on iOS Safari — so it copies to the clipboard and you
414
- paste, exactly as before. The clipboard path is **not legacy**: it is the whole
415
- story for a local reader.
416
-
417
- The code is **not a secret** — it is printed on the page, and it cannot be a
418
- gate against Claude either, because the store is a file Claude can read.
419
-
420
- It was once true that a device reaching your page
421
- **could not reach your conversation**, and that fact was the whole guard: a pass sat in the holding
422
- area until you typed `/spec-reviewed`. It is no longer true, deliberately —
423
- a phase that ends **waits** for its verdict, so the button you press on the page
424
- is what carries the work on. What replaced the guard is two mechanisms and one
425
- rule. The **serve token** — 48 bits of randomness in the URL path, minted per
426
- server — decides who can POST at all. The **wait window** decides which pass may
427
- be claimed without you naming it: the engine's `--claim-since` takes the one
428
- pass that arrived *while this session was waiting*, acts on nothing when none
429
- did, and refuses to choose when two did. And outside that window the rule stands
430
- unchanged and absolute: **Claude never claims a pass it was not asked to**
431
- (`/spec-diff` step 0, because nothing enforces it).
432
-
433
- What you give up is real and worth naming: the page can now act. What you get is
434
- the loop closing without anyone remembering a command — which is the failure the
435
- old design traded it for.
436
-
437
- What the code *does* is let you **tell two passes apart** — it is an address,
438
- never a password. One waiting pass is claimed and acted on the moment you type
439
- `/spec-reviewed`, with nothing read back: the round-trip verified *which* pass
440
- in a design where the page pushed and the agent went looking, and that design is
441
- gone. Two waiting is a refusal to guess — the one case where a stranger's pass
442
- sits beside yours, and the one case where six digits are worth anyone's time.
443
- Pasting the code (`/spec-reviewed 324199`) skips even that. A pass you disown is `--drop <code>`; left there it is reported on every
444
- render until you stop reading the line.
445
-
446
- A code that matches nothing refuses, **names nothing**, and never falls back to
447
- "the only one" — that fallback is precisely what would let an unread pass
448
- through. Claiming **consumes**: a code works once. A second pass from the same
449
- page render supersedes the first, so the code on screen is always the pass on
450
- screen; passes from different renders stand alongside each other.
451
-
452
- **And a claimed pass never enters the model's context.** The engine holds it,
453
- merges it, and reports the counts — six digits is what reaches Claude, where a
454
- pasted blob costs context in proportion to how much you wrote. That is the same
455
- rule the diff already follows, applied to the one place it used to break. What it did comes back as a **resolution** (`--resolve`),
456
- so the next render shows each note struck through with a one-line account and you
457
- verify the fix instead of trusting it. An accept is keyed to the file's
458
- **content hash**, so it survives the commit that ends the phase and lapses by
459
- itself when that file changes again — announced as `accepted earlier — changed since`, never
460
- silently. All of it lives beside the page in gitignored `.spec-env/`, and
461
- **the marks are information, never a gate**: nothing counts them and nothing
462
- refuses on them.
463
-
464
- **A second opinion, from something that did not write the code (`review.reviewers`).**
465
- The page can also carry findings from code reviewers
466
- that run from a CLI — CodeRabbit's has a free tier, PR-Agent and Kodus are
467
- self-hosted — and they arrive as **checks**, the same shape a written review
468
- uses. `/spec-next` runs them once per phase before the render, so the page is
469
- populated when it is opened; `/spec-diff --reviewers` is the opt-in mid-phase
470
- run, and a bare `/spec-diff` never spends one. Results are cached against a hash
471
- of the diff, so re-reading unchanged work costs nothing.
472
-
473
- **They inform; they never gate.** A check is not a comment, so a page carrying
474
- twenty findings still offers `Commit` — and a reader who replies to one creates
475
- a comment, which does gate, because then a person has asked for something. There
476
- is deliberately no severity threshold that blocks: that is the counting gate
477
- this whole design exists against, wearing a vendor's name.
478
-
479
- **And a reviewer that could not run says so**, which is the one place
480
- `.claude/rules/negative-checks.md` inverts. Silence is normally the safe branch;
481
- here a rate-limited or unauthenticated reviewer would render identically to one
482
- that read the diff and approved of it, on the page a commit decision is made
483
- from. So each gets a line — `12 findings` · `clean` · `did not run — <why>` —
484
- and none of it ever refuses a render, a verdict or a commit.
485
-
486
- The list is **empty by default** and `init` never writes one: configuring a
487
- hosted reviewer sends the worktree's diff to a third party, which is a real
488
- change for a tool that otherwise touches nothing outside `.spec-env/`. Every
489
- finding on the page is badged with the reviewer that produced it. `env.config.md`
490
- carries the field reference.
491
-
492
- **The verdict is chosen, never derived.** A verdict is one person's conclusion,
493
- sent once per pass; a counting gate is a refusal computed from how many boxes
494
- are ticked, and it stays forbidden. The one refusal here is not a count of
495
- ticks: **committing** is unavailable while any **comment** is unresolved,
496
- because you asked for something and it therefore cannot also be fine. Files you
497
- never ticked block nothing — an unticked file is something you said nothing
498
- about, and requiring every one of them would be the tally this design exists to
499
- avoid.
500
-
501
- **The gate — a phase that ended owes an answer.** That is the second refusal,
502
- and it is a different kind: not a count, and not about the marks at all.
503
- `/spec-next` **arms** it when a phase ends and renders its page, and exactly two
504
- things clear it — a **committing verdict**, or
505
- `skitterspec spec-env review skip "<reason>"`. Until one of them happens,
506
- `/spec-next` refuses to build the next phase and (where the hook is installed)
507
- `git commit` refuses in that worktree. `skitterspec spec-env review gate
508
- [--check] [--json]` is what both ask.
509
-
510
- **The hook is the half that cannot be talked past.** `skitterspec init` and
511
- `skitterspec update` install `.claude/hooks/review-gate.cjs` and register it in
512
- the project's committed `.claude/settings.json`, so a `git commit` is refused by
513
- the harness rather than by prose — which is what covers a bare `git commit`, a chained command, and
514
- skittership's own `/commit` without skitterspec ever editing it. It decides
515
- nothing itself: it hands the command line to
516
- `spec-env review gate --check --for-command` and turns one exit status into an
517
- answer. It refuses only where the commit is running
518
- **inside that spec's own worktree** — a commit on the base branch, or in
519
- another spec's tree, is not this obligation's business — and it fails **open** on everything else: no engine, an
520
- unreadable payload, a crash, a timeout, a repo with no isolation.
521
-
522
- Three things keep it a push rather than a wall. It is armed
523
- **only by a phase ending**, so reading your own half-finished work mid-phase
524
- owes nothing.
525
- It has an **exit that is always one command**, and one of them is
526
- *"I am moving on"* — with a reason, because `none: additive, nothing to revert` is a decision
527
- a reviewer can argue with while silence is an oversight. And it accuses
528
- **only on a positive signal**: an unreadable sidecar, a project that set
529
- `review.required: false`, a spec the engine could not resolve — every
530
- cannot-tell exits 0 and says nothing (`.claude/rules/negative-checks.md`).
531
-
532
- It is on by default wherever isolation is configured. That is the point: the
533
- push toward reading the diff is the normal path, and stepping off it is the
534
- thing you have to do deliberately.
535
-
536
- **The verdict names the action**, and that is why it is `commit` rather than
537
- `approve`: a review is the guard in front of an action, and an approval that
538
- only recorded itself was the one control on the page that did not describe what
539
- it does. Both committing verdicts hand off to the project's own commit skill
540
- (`review.commitWith` in `env.config.json`, `/commit` by default) — skitterspec
541
- never vendors one, because `/commit` belongs to skittership.
542
- **There is no off switch**: `"none"` existed and was removed, since it produced
543
- exactly the record-and-do-nothing verdict this design is against.
544
- `Commit & Continue` then runs `/spec-next` and **stops there** — it never
545
- completes, lands or tears anything down.
546
-
547
- A verdict is **consumed**, not stored: a commit verdict is spent by the commit
548
- and a changes one by the work, so neither can go stale and later act on
549
- something nobody read. What survives is a one-line outcome log, shown on the
550
- next render as history.
551
-
552
- **One ending, every skill (`.claude/rules/spec-reports.md`).** Every skill in
553
- the table above finishes with the same block — a verdict, then a table of only
554
- the fields that skill declares — and says nothing while it runs beyond a
555
- question it cannot answer itself or a failure at the moment it happens. The
556
- shape is defined once in that rule; each skill's `## Report` section names only
557
- its verdicts and its fields.
558
-
559
- ✅ **Phase 2 built** — `feat-orders`, 2 of 4
560
-
561
- | | |
562
- |---|---|
563
- | **Tracker** | [ABC-88](https://example.invalid/ABC-88) · `feat-orders` · phase 2 moved |
564
- | **Branch** | `spec/feat-orders` · 3 commits, clean |
565
- | **Built** | POST /orders handler, orders schema |
566
- | **Tests** | 128 passed · dotnet test |
567
- | **Review** | 7 files, +212 −18 · **local** [http://127.0.0.1:7760/…](http://127.0.0.1:7760/…) · **network** [http://192.168.0.136:7760/…](http://192.168.0.136:7760/…) · **remote** [http://100.126.111.34:7760/…](http://100.126.111.34:7760/…) (tailnet) |
568
- | **Follow-ups** | none |
569
- | **Next** | `/spec-next` → phase 3 (Auth) |
570
-
571
- Four verdicts, and the last two are different facts about the repo: `✅` done ·
572
- `⚠️` done with caveats · `❌` failed part-way, so there is a mess to clear ·
573
- `⏸` refused before acting, so nothing changed.
574
- **A refusal emits the block too** — "nothing happened" is a reported outcome
575
- rather than an absent one.
576
- `Follow-ups` is always present, because a recorded `none` is a decision where a
577
- missing line is an oversight. And the block covers **that run only**: what else
578
- is in flight is another question, and volunteering it here leaves the reader
579
- unable to tell what followed from the run they just watched.
580
-
581
- **Ticketing-provider sync (opt-in, a separate package).** The base is
582
- tracker-free: it knows nothing about any specific ticketing system. A
583
- ticketing provider is installed as its own distribution that plugs into named
584
- **seams** in the shared skills and fulfils a skill-name + CLI contract.
585
-
586
- Part of that contract is the **binary name**. `skitterspec` belongs to the base
587
- package alone, and a provider exposes only its own name
588
- (`skitterspec-<provider>`). The shipped commands and skills invoke
589
- `skitterspec`, so a provider is installed **alongside the base**, globally or
590
- as two dev dependencies, and the two are updated together. Providers used to alias
591
- `skitterspec` to their own entry point. That kept a machine to one global
592
- provider, because npm refuses a second package claiming a bin another already
593
- owns (feat-global-install). `init` and `update` warn when `skitterspec` cannot
594
- be found beside a provider.
595
- Sync is **one-way**: the repo is the source of truth and the tracker is a
596
- **generated mirror**. It ships `/spec-push` (repo→tracker; computes a create/update plan
597
- against a committed last-pushed snapshot and applies it) and `/spec-status`
598
- (read-only — what would push, and whether someone edited a description there),
599
- backed by a `spec-sync` CLI. There is no content pull — the tracker is never
600
- read back or merged.
601
-
602
- **What a ticket carries is the project's choice (`mapping.description`).**
603
- Under `"spec"` the issue body is the whole overview and each phase sub-issue
604
- its phase file, replaced on every push — what every config written before the
605
- setting existed gets. Under `"summary"`, what a new config is written with, the
606
- spec stays in git and the ticket gets what a ticket is for: a delimited
607
- **block** holding the spec's `## Summary`, its `## Acceptance criteria`, the
608
- Impact table's surfaces, its gating and its progress (`62% · phase 3 of 4`),
609
- with each sub-issue's block holding its goal and task count. Push **splices**
610
- the block into whatever the description holds, so a team's own text around it
611
- survives every push, and only an edit *inside* the block is drift. That is a
612
- splice, not a pull: nothing outside the block is parsed, merged or written
613
- back. A delimiter edited by hand is cannot-tell — the push names it and writes
614
- nothing there rather than guess. `mapping.phases: "none"` drops the phase
615
- objects entirely; `subissue` stays the default because assignable phases are
616
- what let them run in parallel.
617
-
618
- **The tracker owns status; the repo owns the spec.** With a provider attached,
619
- a team runs its work from the board — assignment, Ready, Blocked, Cancelled and
620
- Done all happen there — so a status kept in the repo as well is a copy somebody
621
- has to keep in step by hand, and on the base branch it was already wrong (an
622
- in-flight spec still reads `backlog` there). The split follows what each side
623
- can actually know:
624
-
625
- 1. **The repo owns the content** — Problem, Decisions, phases, checkboxes,
626
- Changelog. Content follows branches, lands in the same commit as its code,
627
- and is read offline by the agent building it. That is why specs did not move
628
- into the tracker wholesale: a ticket has no branches.
629
- 2. **The tracker owns status and assignee** — `sync.fieldOwnership`
630
- `workflowState` and `assignee` ship as **`pull`**. Under `pull` the skills
631
- write no `Status:` header, no `Developer:` line and no State log row (the
632
- `spec-status-owner` seam asks `spec-sync ownership` first), `assign` writes
633
- the ticket directly, and the repo stores nothing it reads.
634
- 3. **Buckets are code facts**, not planning status: `backlog` (not started),
635
- `in-progress` (`/spec-start` ran), `complete` (landed — merged on the host
636
- under PR landing), `cancelled` (torn down). Only skills that act on code move
637
- them.
638
- 4. **The repo writes status only when it acts on code** — creation, start,
639
- complete, cancel — detected as a bucket move, never on a push that merely
640
- cannot tell. Under PR landing the complete transition waits for run 2: a
641
- ready PR is not a merged one.
642
- 5. **A board that finished first is reported, never obeyed.** `spec-sync board`
643
- says one line when the ticket is Done or Cancelled while the spec is still in
644
- flight, naming the cleanup; `/spec-start` and `/spec-next` warn and carry on,
645
- `/spec-status` reports. Nobody is obliged to sync, because nothing reads the
646
- bucket as planning truth any more.
647
-
648
- `"push"` on either field restores the repo-owned behaviour; `"none"` leaves it
649
- alone entirely. Without a provider none of this applies: the header, the State
650
- log and the buckets keep their meaning, because there is nowhere else for status
651
- to live. Releases and deployments are the host project's to record. The one
652
- release question skitterspec answers is which tickets a commit range contains
653
- (`spec-sync released <range> --json`, each row with its spec and url), because
654
- only the `Refs:` trailers know. What the project's CI does with that list is its
655
- own business.
656
-
657
- **One-way means the repo wins, and it now wins *loudly*.** Those are different
658
- claims and only the first was ever in doubt. A ticket's description is generated
659
- from the spec, so a person editing it there is writing something the next push
660
- replaces — which is correct, and which used to happen in silence. The engine now
661
- compares a hash of what the tracker holds against a hash of what the repo last
662
- sent, and says *that* it changed and where to read it.
663
- It **reports and never refuses**: only a person can tell a typo fix from a
664
- paragraph worth keeping.
665
-
666
- **This is still not a pull.** Nothing read is merged, written to a spec, or fed
667
- into the projection, and the text never enters the conversation — the comparison
668
- is hashes, and the output is one line for a human. It is the same thing
669
- `compareStored` has always done for a different question.
670
-
671
- **And adoption no longer costs the reporter their words.** When a provider
672
- adopts an existing ticket — one a PM or colleague filed — the linking push
673
- replaces its description with the spec. Before that happens the original is
674
- posted back onto the ticket as a **comment**: a surface one-way sync never
675
- touches, so no later push can clobber it. Where a provider supports it, this is
676
- automatic and has an opt-out. See the provider's own docs.
677
-
678
- A provider may also ship a **read-only listing** of what the tracker holds. That
679
- is not a pull: nothing is merged back and no spec file is written. It exists
680
- because the folder buckets are only the truth *on the branch you are standing
681
- on* — `/spec-start` moves a spec to
682
- `specs/in-progress/` on that spec's own branch, so on the base branch an
683
- in-flight spec still reads `backlog` and a teammate's unlanded spec is not on
684
- disk at all. The tracker knows both, and each row carries the spec's folder name
685
- so `/spec-start <name>` is a copy-paste away. See the provider's own docs for
686
- what it calls the command.
687
-
688
- A provider also knows **who is building a spec**, and under the default `pull`
689
- the ticket's assignee is the record: `/spec-start` assigns the operator only when
690
- nobody holds the ticket (`assign --if-unassigned`), never reassigns anyone, and
691
- leaves the assignee in place when the spec finishes — the board keeps who did
692
- the work. `/spec-claim` moves ownership mid-flight — take it, hand it back, or
693
- hand it to a teammate — by writing the ticket directly. Under `push` the spec
694
- file is the record and the ticket the mirror, as before. See the provider's own
695
- docs for both.
696
-
697
- **Every skill that moves a spec through the lifecycle carries a seam**, so the
698
- mirror keeps up without anyone remembering to push: `/spec`, `/spec-bug` and
699
- `/spec-hotfix` link the spec they create; `/spec-next` refreshes it as work starts;
700
- `/spec-complete`, `/spec-cancel` and `/spec-review` refresh it after they change
701
- it. `/spec-to-main` and `/spec-live` carry none — they change no status.
702
- With no provider installed the seams are empty and every skill behaves as a plain
703
- filesystem workflow. See the provider package's own docs for its config and field
704
- reference.
705
-
706
- **Release gating (opt-in, config-gated).** With
707
- `specs/.core/gating.config.json` present, every spec `/spec`, `/spec-bug` and
708
- `/spec-hotfix` write carries a `> **Gating:**` header recording one decision:
709
- does this ship behind a feature flag, or land live? The value is a **flag name**,
710
- or **`none: <one-line reason>`** — and the reason half is the load-bearing part,
711
- because `none: additive, nothing to revert` is a decision a reviewer can argue
712
- with while a bare `none` is a shrug and a missing line is an oversight.
713
-
714
- Skitterspec bakes in **the offer, never the mechanism**: it asks, cites the
715
- project's own doc (`guidance` in that config), and records the answer. It never
716
- reads your flag code. `skitterspec gating check` reports specs with no decision
717
- and **always exits 0** — it reads only `backlog/` and `in-progress/`, so specs
718
- finished before you adopted gating are out of range by construction. With the
719
- config absent nothing appears at all: no question, no header, no check.
720
-
721
- ## Project conventions (fill this in)
722
-
723
- The spec skills tell you to run "your project's typecheck and test commands" and
724
- to "honour project conventions". Make those concrete here so specs stay
725
- consistent with the codebase:
726
-
727
- Skitterspec never runs these itself and knows nothing about what this project
728
- is written in — it shells out to `git`, and to whatever you write below. The
729
- examples span several stacks on purpose: pick the shape that fits, or write one
730
- none of them describes.
731
-
732
- - **Typecheck command:** `<e.g. npm run typecheck · dotnet build · mypy . · go vet ./...>`
733
- - **Test command:** `<e.g. npm test · dotnet test · pytest · go test ./...>`
734
- (single file/dir: `<e.g. npx vitest run path · dotnet test --filter · pytest path>`)
735
- - **Lint/format:** `<e.g. npm run lint · dotnet format · ruff check · golangci-lint run>`
736
- - **Other rules specs must honour:** link the relevant `.claude/rules/*.md`
737
- (architecture, code style, testing, database, etc.) rather than restating them.
738
-
739
- ## Spec types — Feature, Chore, Issue, Bug, Hotfix, Incident, Epic
740
-
741
- Every spec is one of seven types, recorded **both** in the header and the filename:
742
-
743
- - **Header field:** `> **Type:** Feature`, `> **Type:** Chore`,
744
- `> **Type:** Issue`, `> **Type:** Bug`, `> **Type:** Hotfix`,
745
- `> **Type:** Incident`, or `> **Type:** Epic` (authoritative, greppable:
746
- `grep -rl 'Type:.*Hotfix' specs/`).
747
- - **Filename prefix:** `feat-<name>` for features, `chore-<name>` for chores,
748
- `issue-<name>` for issues, `bug-<name>` for bugs, `hotfix-<name>` for
749
- hotfixes, `incident-<name>` for incidents, `epic-<name>` for epics (visible in listings;
750
- glob-safe — never use `[BUG]`/`[FEATURE]` brackets).
751
-
752
- A **Chore** is code work no end user sees — tooling, CI, dependency bumps,
753
- internal refactors. An **Issue** is work with **no code change at all** —
754
- in-app configuration, a data fix, a support task — written as a spec of manual
755
- steps so there is a record and a history; everything user-facing that changes
756
- code is a feature. There is no
757
- separate entry skill for either — `/spec` **proposes** feature, chore or issue
758
- from what the
759
- grilling defined, with a one-line reason, and the user confirms. A chore
760
- defaults its `Gating:` to `none: not user-facing` (where gating is configured),
761
- and its commits default to `chore`/`refactor`/`ci` types with **no**
762
- `Release-Note:` footer — a chore is by definition not user-visible, so it has
763
- no release note to write. An issue defaults its `Gating:` to `none: no code`
764
- and its commits to `docs` with no `Release-Note:`, and it closes when the spec
765
- completes — nothing is released. Feature specs keep `feat`; bug specs keep
766
- `fix`.
767
- Where a ticketing provider maps kinds to tracker types (e.g. Azure's
768
- `workItemTypeByKind`), the chore mapping is what keeps tooling work off the
769
- customer-facing release ladder.
770
-
771
- A **Hotfix** is a Bug fixed against a **released tag** rather than `main`: it
772
- carries an extra `> **Base version:** <tag>` header, forks its worktree from that
773
- tag, and lands by tagging a new patch + cherry-picking onto `main` (never a
774
- fast-forward merge). `/spec-live` refuses a hotfix — test it with `/spec-connect`.
775
-
776
- An **Incident** is an outage or degradation of a live service, captured by
777
- **`/spec-incident`** during the outage, so it starts straight in
778
- `specs/in-progress/`. It is a record, not delivery work: its fixes are
779
- separate hotfix, bug, chore or issue specs, each carrying
780
- `> **Incident:** incident-<name>` so the push links them, and they are never
781
- its phases. It carries `> **Severity:**` (Azure's literal values,
782
- `1 - Critical` … `4 - Low`) and a `## Timeline` appended to as the incident
783
- unfolds; `/spec-complete` writes `incident-log.md` from it and pushes the log
784
- onto the tracker item as a comment.
785
-
786
- An **Epic** is a spec of specs: `epic-<name>/00-overview.md` and
787
- **no phase files** — the one kind for which that is valid — recording why a group belongs
788
- together and, optionally, `> **Lanes:** N`, how many members may be in flight at
789
- once. `/spec` proposes it when the grill describes several specs and their
790
- order. **The order lives on the members, never on the epic**: each carries
791
- `> **Epic:** epic-<name>` and `> **Waits on:**`, and any phase file may carry
792
- its own `Waits on:` for a wait that holds only that phase.
793
- `skitterspec epic status <epic>` turns those headers into what can start now,
794
- what is blocked and on what, the waves, the phase-level sync points, and the
795
- pairs whose `Area:` overlaps (never together). A wait is met only on the base
796
- branch — the spec in `complete/`, or that phase file reading done — and
797
- anything it cannot see is cannot-tell, never met.
798
-
799
- The rule is checked **where the work happens**: `/spec-start` and `/spec-next`
800
- on a member ask `skitterspec epic check` before building, and an unmet wait
801
- warns and offers a recorded bypass (`.claude/rules/offered-unblocks.md`) — it
802
- never refuses, and it never lets a build pass the wait in silence. An epic
803
- itself gets a documents-only worktree, `/spec-next` refuses it, and
804
- `/spec-complete` refuses while a member is open, offering to complete with them
805
- listed.
806
-
807
- **Migrating an `issue-` plan spec to an epic.** A coordination spec written
808
- before epics existed — waves as phases, ticked by hand — becomes one by moving
809
- its order onto its members: rename the folder to `epic-<name>` (`git mv`), set
810
- `> **Type:** Epic`, add `> **Epic:**` and `> **Waits on:**` to each member (and
811
- a phase file's own `Waits on:` for a phase-level sync point), and delete the
812
- wave phase files — `epic status` derives them. Keep the plan's Decisions: they
813
- are the *why* the members' headers cannot say.
814
-
815
- **A phase that is not a wave becomes a member.** A test pass, a review, a
816
- manual step the plan held as a phase is its own spec of the kind its work is —
817
- usually an **Issue** (manual steps, no code) — with `> **Epic:**` and its own
818
- `> **Waits on:**`; whatever waited on that phase waits on the member instead.
819
- An epic holds no phases, because it holds no check it cannot observe.
820
-
821
- **Do it off the base branch, and check it before it lands.** The conversion is
822
- documents only, so it is a `/no-spec` branch. From that worktree,
823
- `skitterspec epic status <epic> --here` reads the members and headers as the
824
- branch has them — uncommitted edits included — while a wait still counts as met
825
- only on the base branch, so you can confirm it reproduces the plan you had
826
- before landing it.
827
-
828
- **The epic's first push retires the wave sub-issues.** An epic has no phases,
829
- so every phase sub-issue its snapshot still remembers is a leftover of the plan
830
- it was converted from: the push closes each as not planned and unlinks it from
831
- the epic's issue, leaving the members as its only sub-issues. A tracker that
832
- cannot retire one names it, to close by hand.
833
-
834
- ### Kind routing — any door, the right spec
835
-
836
- `/spec` is the default door, so the kind of work someone describes does not
837
- always match the skill they typed — especially for someone new, for whom
838
- "spec it" is the reflex. Every entry skill therefore
839
- **watches its grill for the signals that mark the other kinds**, and proposes a
840
- hand-off the moment one appears — never at the end of a grill already shaping
841
- the wrong spec:
842
-
843
- | In | Watches for | Hands to |
844
- |----|-------------|----------|
845
- | `/spec` | defect · defect on a released version · live outage | `/spec-bug` · `/spec-hotfix` · `/spec-incident` |
846
- | `/spec-bug` | on a released version · live outage · not a defect | `/spec-hotfix` · `/spec-incident` · `/spec` |
847
- | `/spec-hotfix` | live outage · not on a released version · not a defect | `/spec-incident` · `/spec-bug` · `/spec` |
848
- | `/spec-incident` | no live outage to record | defect → `/spec-bug` (on a released version → `/spec-hotfix`), else `/spec` |
849
-
850
- Feature, chore and issue all route to `/spec` — one door for the three kinds it
851
- writes, where its kind proposal picks between them. Example signals, weighed in
852
- context rather than matched as keywords: a **defect** is behaviour differing
853
- from intended — "it's broken", a failing flow, a stack trace of a failure;
854
- **on a released version** is that defect where what is deployed is named — "in
855
- prod", "since v2.1"; a **live outage** is a service down or degraded
856
- **right now**, users affected as we speak; **not a defect** is an ask for new or
857
- changed behaviour rather than for restoring intended behaviour.
858
-
859
- Three rules, the same in every skill:
860
-
861
- - **Always confirm; never silently switch.** Name the signal in the user's own
862
- words and propose the destination with a one-line reason; the user confirms
863
- or declines. A decline ends the matter — the grill carries on where it was,
864
- and the same signal is not raised again. A signal is a question, never a
865
- verdict: a pasted stack trace in "handle this error nicely" is a feature
866
- request, not a bug report.
867
- - **Precedence: incident > hotfix > bug.** One description can carry several
868
- signals; propose the most specific destination — the same reasoning the
869
- intake label routing documents for hotfix-over-bug.
870
- - **Hand off in-session, carrying the context.** On a confirmed switch the
871
- current skill invokes the destination skill directly and seeds it with
872
- everything the grilling has already established — symptom, version, impact,
873
- repro material, decisions so far — so the destination grills only what it
874
- still needs ("seed, don't skip, the grill", the principle issue adoption
875
- already uses). Stop-and-retype is the **label** routing's shape, and right
876
- there because it fires before any grilling; mid-grill it would throw away
877
- the answers already given.
878
-
879
- This is judgment, not configuration: the signals are examples, there is no
880
- list to maintain, and nothing here reads a label. A ticketing provider's
881
- intake label routing (`intake.bugLabels` / `intake.hotfixLabels`) is a
882
- separate, earlier check and is unchanged by this.
883
-
884
- All seven types share the same lifecycle folders below — type is orthogonal to
885
- status.
886
-
887
- ## Header fields & State log (audit trail)
888
-
889
- Every spec header carries:
890
-
891
- - `> **Name:**` — the spec's folder name
892
- (`feat-`/`chore-`/`issue-`/`bug-`/`hotfix-`/`incident-`/`epic-<kebab-name>`).
893
- It's the handle you pass to `/spec-start` and the other lifecycle skills, surfaced
894
- in the header so it's copy-pasteable without digging for the folder name.
895
- - `> **Author:**` — who created the spec (set at `/spec` / `/spec-bug`, defaults
896
- to `git config user.name`).
897
- - `> **Developer:**` — who implements it (`—` until `/spec-start` starts work, then
898
- set to `git config user.name`; `/spec-bug` sets it immediately).
899
- - `> **Gating:**` — the release-gating decision,
900
- **only when `specs/.core/gating.config.json` exists**: a flag name, or
901
- `none: <one-line reason>`. Absent entirely in a project that has not adopted
902
- gating.
903
- - `> **Severity:**` — on bug, hotfix and incident specs, optional except where
904
- `/spec-incident` grills it: Azure's literal values
905
- (`1 - Critical` … `4 - Low`). The push writes it where the provider has a
906
- home for it; absent, nothing is sent.
907
- - `> **Incident:**` — on a spec that is a **fix** for an open incident:
908
- `incident-<name>`. The push links the two as related on the tracker
909
- (one-way; the repo owns the link), and `/spec-complete` on the incident
910
- counts the spec among its fixes. Absent on everything else.
911
- - `> **Epic:**` — on a spec that is a **member** of an epic: `epic-<name>`.
912
- Absent on everything else.
913
- - `> **Waits on:**` — on an epic member: what its start waits for, as
914
- `<spec>` (that spec complete) or `<spec> phase N` (that phase done on the base
915
- branch), comma-separated, or `none`. A phase file may carry its own, holding
916
- only that phase.
917
- - `> **Lanes:**` — on an epic, optional: how many members may be in flight at
918
- once.
919
- - `> **Blocked on:**`: on a spec, or on one phase file. It records that the
920
- spec, or that phase, waits on something outside the repo: a deploy, another
921
- project's release, a soak. The value is free text, with an optional
922
- `(until YYYY-MM-DD)` that `/spec-todo` reads. `/spec` writes the planned
923
- ones, `/spec-park` writes the ad-hoc ones, and `/spec-resume` clears them on
924
- the record. `/spec-next` stops before building past one, and
925
- `/spec-complete` reports one still standing. **Not `Waits on:`.** That one
926
- is an epic wait the engine can observe on the base branch. This one is a
927
- condition only a person can judge, so nothing ever counts it as met.
928
-
929
- **Under a provider's default `pull`, these three are the tracker's** —
930
- `Status:`, `Developer:` and the State log — and new specs carry
931
- `> **Tracker:** <url>` instead; see the ticketing section above. A spec that already has them keeps them as history.
932
-
933
- Every spec also has a **State log** table — the audit trail of folder/status
934
- transitions. Each lifecycle skill appends exactly one row when it changes state:
935
-
936
- ```
937
- ## State log
938
-
939
- | Date | Status | Folder | By |
940
- |------|--------|--------|----|
941
- | 2026-01-01 | Draft | backlog | Jane Dev |
942
- | 2026-01-02 | In Progress | in-progress | Jane Dev |
943
- ```
944
-
945
- Keep the **State log** (state transitions) separate from the **Changelog**
946
- (decisions and course-corrections) — state moves go in the table, not the
947
- changelog.
948
-
949
- When asked for a plan, implementation strategy, or feature breakdown:
950
-
951
- 1. Create or update a spec under `specs/` — never plan only in chat.
952
- 2. Reach a clear shared understanding of the requirement AND the proposed
953
- solution before writing (the `/spec` skill grills for this).
954
- 3. Use markdown checkboxes `- [ ]` for tasks, `- [x]` when done.
955
- 4. Organise work into phased sections with short goal descriptions.
956
- 5. Tasks must be granular enough to complete in one coding session.
957
- 6. Every phase ends with creating and running tests — a phase is not done until
958
- its tests are green (run the project's typecheck + test commands above).
959
- 7. Keep specs **as concise as possible**.
960
- 8. Record decisions and course-corrections in the spec's **Changelog** section.
961
-
962
- ## Lifecycle folders
963
-
964
- ```
965
- specs/backlog/ Ready (or Draft) specs (/spec)
966
- specs/in-progress/ under active implementation (/spec-start, /spec-bug, /spec-incident)
967
- specs/complete/ finished (/spec-complete)
968
- specs/cancelled/ abandoned, with a reason on the header (/spec-cancel)
969
- specs/.core/ project rules — ALWAYS APPLY, never moved
970
- ```
971
-
972
- Every spec is a **folder** `specs/<bucket>/<name>/` — never a bare file, even for
973
- simple changes. Inside it:
974
-
975
- - `00-overview.md` is the entry point / dashboard: header, Problem, Decisions,
976
- Solution overview, the **Impact map** (a `Surface | Change | Detail` table
977
- naming the concrete surfaces the spec touches — endpoints, schemas, DB tables,
978
- domain objects, routes, business rules — as the scannable blast radius), the
979
- **phase index** (a table linking to each phase file with its status), Open
980
- questions, State log, Changelog. **No per-phase task lists live here.**
981
- - **One file per phase** — `01-<phase-slug>.md`, `02-<phase-slug>.md`, … in
982
- execution order. Each holds that phase's goal, its task checkboxes (tests
983
- included), and any phase-specific notes. Even a single-phase spec gets `01-….md`
984
- — so each phase is easy to open and work on its own.
985
-
986
- Keep the index and the phase files in sync (`⬜`/`🔄`/`✅`). Legacy specs may be a
987
- bare `<name>.md`, or a `00-overview.md` with inline phases — the skills read
988
- those, but new specs always use the folder + phase-file form.
989
-
990
- ## Finding specs
991
-
992
- The **folder buckets are the source of truth** — a spec's bucket is its status.
993
- To see the backlog, list `specs/backlog/`; for the latest completed specs, use
994
- `git log`/mtime on `specs/complete/` or each spec's dated **State log**. Live
995
- status also lives in the tracker when a ticketing provider is linked. (There are
996
- no `00-index.md` summary files — the folder tree, headers, and State logs are
997
- queried directly.)
998
-
999
- Under `land.specDocs: "branch"` a spec is not on the base branch until its
1000
- work lands, so `specs/backlog/` there misses it. `gating check` and
1001
- `epic status` therefore also read the spec folders each spec branch changed —
1002
- local branches, then remote-tracking ones as of the last fetch, never
1003
- fetching — and a branch copy wins over the base copy unless the base branch
1004
- has already finished that spec. A branch copy can make an epic member visible;
1005
- it never meets a wait, which is still read only off the base branch.
1006
-
1007
- ## Rules
1008
-
1009
- - If a spec already exists, update it — don't rewrite from scratch.
1010
- - Preserve completed `[x]` tasks.
1011
- - Add new tasks to the appropriate phase.
1012
- - Never delete historical notes.
1013
- - The spec file is the single source of truth for implementation progress.
1014
- - Move specs between buckets with `git mv` to preserve history.
1015
- - Never let inline emphasis or a link cross a hard line break — keep a whole
1016
- `**bold**`, `*italic*`, or `[text](url)` on one line (let it overflow the wrap
1017
- column rather than splitting it). Many round-tripping editors mangle a
1018
- `**`/`*`/link span that straddles a newline, so clean source avoids the churn.
3
+ Spec-driven development runs through the lifecycle skills. Use them rather than
4
+ writing specs by hand, so structure and lifecycle stay consistent.
5
+
6
+ | Skill | Does | Folder |
7
+ |-------|------|--------|
8
+ | `/spec` | Feature, chore or issue. Grills to a shared understanding, proposes the kind, writes the spec in its own worktree, and lands it on the verdict | `backlog/` |
9
+ | `/spec-bug` | Bug: reproduces it with a failing test, writes the spec, drives red→green | `in-progress/` |
10
+ | `/spec-hotfix` | Hotfix: forks from a release tag, red→green, lands by tag + cherry-pick | `in-progress/` |
11
+ | `/spec-incident` | Incident: records a live outage while it happens; its fixes are separate linked specs | `in-progress/` |
12
+ | `/no-spec` | Mechanical work with no spec (bump, rename): own branch, worktree, page and land | — |
13
+ | `/spec-idea` | Captures an idea without specing it; `/spec idea:<id>` or `/spec #N` promotes it | — |
14
+ | `/spec-review` | Re-validates a spec against the code and refreshes stale parts | unchanged |
15
+ | `/spec-start` | Puts a spec in flight: provisions its branch, then builds phase 1 | `in-progress/` |
16
+ | `/spec-next` | Builds the next phase of the spec this session is in | unchanged |
17
+ | `/spec-reviewed` | Picks up a review verdict sent from the page | unchanged |
18
+ | `/spec-epic-next` | Names the epic member that can start now | unchanged |
19
+ | `/spec-resume` | Goes back into a spec in flight, by name or `#N`; never starts anything | unchanged |
20
+ | `/spec-park` | Records a `Blocked on:` wait outside the repo | unchanged |
21
+ | `/spec-to-main` | Lands the branch mid-spec without finishing it | unchanged |
22
+ | `/spec-complete` | Verifies phases and tests, lands, tears down | `complete/` |
23
+ | `/spec-cancel` | Records progress and a reason, tears down | `cancelled/` |
24
+ | `/spec-tada` · `/spec-todo` | Evening recap and morning pick-up across projects. Read-only | — |
25
+ | `/spec-init` | Bootstraps or repairs this workflow (idempotent) | — |
26
+
27
+ Status flow: `Ready → In Progress → Complete`, or `Cancelled` from any state.
28
+ `/spec` writes `Draft` only when open questions are deliberately left.
29
+ `/spec-bug`, `/spec-hotfix` and `/spec-incident` start straight in
30
+ `In Progress`.
31
+
32
+ The spec layout, header fields, kinds and folders are in
33
+ `.claude/rules/spec-format.md`, which loads when you touch `specs/`. This
34
+ project's typecheck and test commands are in
35
+ `.claude/rules/project-conventions.md`.
36
+
37
+ ## Skills vs commands
38
+
39
+ The table lists **skills**, which Claude reads and applies judgment to. These
40
+ are **slash commands that only a person can run**:
41
+
42
+ - `/spec-connect` and `/spec-live` each pre-run one `spec-env` verb.
43
+ - `/spec-epic` pre-runs `skitterspec epic status`.
44
+ - `/allow-main`, `/allow-project` and `/spec-skip` lift guards aimed at Claude.
45
+ **Claude must never be able to lift a guard aimed at Claude.**
46
+
47
+ `/spec-reviewed`, `/spec-to-main`, `/spec-status` and `/spec-sync` are skills,
48
+ but user-only. When a skill wants one of these, it tells the user to type it and
49
+ never runs it itself. Every other skill is model-invocable.
50
+
51
+ ## Guards
52
+
53
+ - **The main guard** (`.claude/hooks/main-guard.cjs`) refuses an Edit or Write
54
+ in the **primary checkout on the base branch**. `main` is where work lands,
55
+ not where it happens. There is **no allowlist**. Move the work instead:
56
+ `/spec-start <name>` or `/no-spec <name>`, which Claude may take on its own.
57
+ Only a person can type `/allow-main`. The engine is
58
+ `skitterspec spec-env main <check|allow|status>`, and
59
+ `guards.mainIsLandingZone` turns the guard off.
60
+ - **The project guard** (`.claude/hooks/project-guard.cjs`) refuses writes, git
61
+ changes and `skitterspec` lifecycle commands aimed at **another** skitterspec
62
+ project. Reads pass. A session works on the project it started in. Reports
63
+ that read across projects suggest work elsewhere and never act on it. Only a
64
+ person can type `/allow-project <name>`. `guards.projectBoundary` turns it
65
+ off.
66
+ - **The review gate.** A phase that ended owes a verdict. `/spec-next` arms the
67
+ gate when it renders the end-of-phase page. A **committing verdict** or
68
+ `skitterspec spec-env review skip "<reason>"` (`/spec-skip`) clears it. While
69
+ it is armed, `/spec-next` refuses, and the hook refuses `git commit` in that
70
+ spec's worktree. Mid-phase renders arm nothing.
71
+ - **Never claim a review pass you were not asked to.** Inside a wait the run
72
+ started, the engine's `--claim-since` claims it. Outside one, only a person
73
+ typing `/spec-reviewed` does.
74
+ - Every guard fails **open** on a cannot-tell
75
+ (`.claude/rules/negative-checks.md`). Where a refusal carries an `offer`,
76
+ follow `.claude/rules/offered-unblocks.md`. Never invent an offer.
77
+
78
+ ## Isolation, briefly
79
+
80
+ With `specs/.core/env.config.json` present, each spec gets its own git
81
+ worktree (`mode: worktree`, the default) or is built in the primary checkout
82
+ (`mode: checkout`, one spec at a time). `/spec-start` moves the session into the
83
+ worktree with a plain `cd`. A bare command uses the worktree you are standing
84
+ in, or else the only provisioned spec. `/spec` writes a new spec in its own
85
+ `--docs` worktree, and its committing verdict lands it on the base branch.
86
+ Under `land.specDocs: "branch"` it rides the feature branch instead. Without
87
+ `env.config.json`, none of this applies.
88
+
89
+ Workspace modes, Docker stacks, `/spec-connect`, the live overlay, spec-docs
90
+ landing and staging are detailed in `.claude/skills/spec-start/isolation.md`.
91
+ Read it when a skill sends you there.
92
+
93
+ **Commit with a pathspec on both halves**: `git add -- <paths>` and
94
+ `git commit -m "…" -- <paths>`. Every session shares one `.git/index`, so a bare
95
+ `git commit` takes whatever someone else staged. `skitterspec spec-env stage`
96
+ splits the tree into this spec's documents and everything else.
97
+
98
+ ## Ticketing provider (when one is installed)
99
+
100
+ The repo owns each spec's **content**. The tracker is a one-way generated
101
+ mirror: nothing is ever pulled back or merged. Under the default
102
+ `sync.fieldOwnership` value `pull`, the tracker owns **status and assignee**.
103
+ Skills then write no `Status:` or `Developer:` header and no State log row. Ask
104
+ `spec-sync ownership` rather than assuming. Buckets record what was done to the
105
+ code. A board that finished first is reported, never obeyed. Each lifecycle
106
+ skill refreshes the mirror at its seam, and `/spec-push` does it on demand.
107
+
108
+ ## Release gating (when `specs/.core/gating.config.json` exists)
109
+
110
+ Every new spec records `> **Gating:** <flag>` or `none: <one-line reason>`. A
111
+ bare `none` does not count. Skitterspec asks the question and cites the
112
+ project's guidance. It never reads flag code, and `gating check` always exits 0.
113
+
114
+ ## When asked for a plan
115
+
116
+ 1. Create or update a spec under `specs/`. Never plan only in chat.
117
+ 2. Reach a clear shared understanding of the requirement and the solution
118
+ before writing (`/spec` grills for this).
119
+ 3. Tasks are checkboxes, `- [ ]`, ticked `- [x]` when done, and each fits in one
120
+ session.
121
+ 4. Organise the work into phase files, each with a short goal.
122
+ 5. Every phase ends with tests. It is not done until the typecheck and tests are
123
+ green.
124
+ 6. Keep specs as concise as possible.
125
+ 7. Record decisions and course corrections in the spec's **Changelog**.
126
+
127
+ ---
128
+
129
+ Why the workflow is shaped this way, and the amendments behind it:
130
+ [docs/rationale/spec-planning.md](https://github.com/SkitterByte/skitterspec/blob/main/docs/rationale/spec-planning.md).