@skitterbyte/skitterspec-github 1.3.0 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/MIGRATION.md +170 -1
  2. package/README.md +9 -7
  3. package/assets/core/SETUP.md +10 -12
  4. package/assets/core/env.config.md +1 -1
  5. package/assets/core/github.config.json.example +2 -1
  6. package/assets/core/github.config.md +51 -69
  7. package/assets/rules/spec-planning.md +35 -12
  8. package/assets/rules/spec-reports.md +28 -2
  9. package/assets/skills/no-spec/SKILL.md +2 -2
  10. package/assets/skills/spec/SKILL.md +31 -8
  11. package/assets/skills/spec-bug/SKILL.md +2 -2
  12. package/assets/skills/spec-github-setup/SKILL.md +6 -4
  13. package/assets/skills/spec-list/SKILL.md +28 -4
  14. package/assets/skills/spec-next/SKILL.md +2 -2
  15. package/assets/skills/spec-status/SKILL.md +28 -27
  16. package/assets/skills/spec-sync/SKILL.md +11 -27
  17. package/package.json +1 -1
  18. package/src/cli.js +108 -3
  19. package/src/env/resolve.js +11 -4
  20. package/src/env/review.js +79 -0
  21. package/src/vendor/github/api.js +86 -123
  22. package/src/vendor/github/cli-sync.js +106 -83
  23. package/src/vendor/github/config.js +21 -58
  24. package/src/vendor/github/mcp.js +1 -5
  25. package/src/vendor/provider-kit/src/config.js +101 -48
  26. package/src/vendor/provider-kit/src/list-assignee.js +71 -0
  27. package/src/vendor/provider-kit/src/list-rows.js +35 -0
  28. package/src/vendor/provider-kit/src/released.js +27 -77
  29. package/src/vendor/provider-kit/src/specs.js +89 -7
  30. package/src/vendor/sync-core/index.js +3 -4
  31. package/src/vendor/sync-core/src/compare.js +6 -6
  32. package/src/vendor/sync-core/src/normalize.js +60 -59
  33. package/src/vendor/provider-kit/src/releases.js +0 -595
package/MIGRATION.md CHANGED
@@ -1,5 +1,133 @@
1
1
  # Migration guide
2
2
 
3
+ ## The `chore` spec kind, and per-type bodies (additive — nothing breaks)
4
+
5
+ Specs can now be **chores** (`chore-` prefix, `> **Type:** Chore`) and every
6
+ provider can map spec kinds to its own idiom. Configs without a mapping keep
7
+ working unchanged: an unmapped kind mints the provider's default type exactly
8
+ as before, and `System.Description` stays Azure's body field unless a type is
9
+ mapped away from it. `skitterspec update` ships the new skills and rules.
10
+
11
+ **Create tracker types and states before mapping them.** A mapping names
12
+ something the tracker must already have:
13
+
14
+ - **Azure Boards** — create the custom inherited type (e.g. `Chore`) and its
15
+ states in your process, then set
16
+ `azure.workItemTypeByKind: { "chore": "Chore" }`. To fill a Bug form's Repro
17
+ Steps instead of the hidden Description, set
18
+ `azure.bodyFieldByType: { "Bug": "Microsoft.VSTS.TCM.ReproSteps" }` — it
19
+ applies symmetrically to create, update, read-back and the edited-hash
20
+ compare, so `/spec-status` stays quiet after a push. Bugs minted before the
21
+ mapping keep reading their Description until the next push rewrites them.
22
+ `spec-sync doctor --check-remote` verifies every mapped type exists and
23
+ carries its body field.
24
+ - **GitHub** — `github.labelsByKind: { "chore": "chore" }` adds the kind's
25
+ label beside the spec marker.
26
+ - **Jira** — `jira.issueTypeByKind: { "bug": "Bug", "chore": "Task" }` picks
27
+ the mint type per kind; the type must exist in the project.
28
+ - **Linear** — `linear.labelsByKind: { "chore": "Chore" }` labels the mint;
29
+ the label must already exist on the team (a missing one is a one-line note,
30
+ never a failed push).
31
+
32
+ ## `@skitterbyte/skitterspec-github` v1 → v2 (tell, don't track)
33
+
34
+ Skitterspec now tells GitHub about **its own** transitions and nothing
35
+ else. It writes nothing about releases or deployments, and it never reads a
36
+ ticket's state back.
37
+
38
+ ### Breaking change 1 — The `release create|deployed|complete|reconcile` verbs are removed
39
+
40
+ They exit 1 with one line naming `spec-sync released <range> --json`. A pipeline
41
+ still calling them goes red rather than silently believing it mirrors
42
+ anything. **To migrate**, replace the step with your own script over the
43
+ release's ticket list:
44
+
45
+ ```sh
46
+ skitterspec-github spec-sync released "<previous-tag>..<tag>" --json
47
+ ```
48
+
49
+ Each ticket row now carries `spec` and `url` (both `null` for a ref no spec has
50
+ linked), so the script needs no second lookup. Set whatever GitHub field,
51
+ state or release object your process uses from that list. The checkout needs
52
+ `fetch-depth: 0` so the previous tag is visible.
53
+
54
+ ### Breaking change 2 — The `releases` block (`deployedField`, `series`) and `release.stages` are retired
55
+
56
+ The keys are ignored, like any unknown key, so a config carrying them still
57
+ loads. `spec-sync doctor` names them as unused config (a `warn`, never a
58
+ failure). Delete them when you remove the CI step.
59
+
60
+ ### Breaking change 3 — no state drift
61
+
62
+ `spec-sync status --remote` and `/spec-status` no longer compare the tracker's
63
+ state with the spec's. A ticket someone moved on GitHub is not reported, and
64
+ push still resends state only when the spec itself moves. The edited-description
65
+ warning is unchanged.
66
+
67
+ ## `@skitterbyte/skitterspec-azure-boards` v1 → v2 (tell, don't track)
68
+
69
+ Skitterspec now tells Azure Boards about **its own** transitions and nothing
70
+ else. It writes nothing about releases or deployments, and it never reads a
71
+ ticket's state back.
72
+
73
+ ### Breaking change 1 — The `release create|deployed|complete` verbs are removed
74
+
75
+ They exit 1 with one line naming `spec-sync released <range> --json`. A pipeline
76
+ still calling them goes red rather than silently believing it mirrors
77
+ anything. **To migrate**, replace the step with your own script over the
78
+ release's ticket list:
79
+
80
+ ```sh
81
+ skitterspec-azure-boards spec-sync released "<previous-tag>..<tag>" --json
82
+ ```
83
+
84
+ Each ticket row now carries `spec` and `url` (both `null` for a ref no spec has
85
+ linked), so the script needs no second lookup. Set whatever Azure Boards field,
86
+ state or release object your process uses from that list. The checkout needs
87
+ `fetch-depth: 0` so the previous tag is visible.
88
+
89
+ ### Breaking change 2 — The `releases` block (`workItemType`, `series`, `ticketTag`, `deployedField`) and `release.stages` are retired
90
+
91
+ The keys are ignored, like any unknown key, so a config carrying them still
92
+ loads. `spec-sync doctor` names them as unused config (a `warn`, never a
93
+ failure). Delete them when you remove the CI step.
94
+
95
+ ### Breaking change 3 — no state drift
96
+
97
+ `spec-sync status --remote` and `/spec-status` no longer compare the tracker's
98
+ state with the spec's. A ticket someone moved on Azure Boards is not reported, and
99
+ push still resends state only when the spec itself moves. The edited-description
100
+ warning is unchanged.
101
+
102
+ ## `@skitterbyte/skitterspec-jira` v1 → v2 (tell, don't track)
103
+
104
+ Skitterspec now tells Jira about **its own** transitions and nothing else. It
105
+ writes nothing about releases or deployments, and it never reads an issue's
106
+ status back.
107
+
108
+ ### Breaking change 1 — no status drift
109
+
110
+ `spec-sync status --remote` and `/spec-status` no longer compare Jira's status
111
+ with the spec's. An issue someone moved on Jira is not reported, and push still
112
+ transitions it only when the spec itself moves. The edited-description warning
113
+ is unchanged.
114
+
115
+ ### Breaking change 2 — `release.stages` retired
116
+
117
+ It was accepted and validated before, and never acted on. It is now ignored
118
+ like any unknown key, and `spec-sync doctor` names it as unused config (a
119
+ `warn`, never a failure). Delete it.
120
+
121
+ ### Also — `released --json` names the spec
122
+
123
+ Each ticket row now carries `spec` and `url` (both `null` for a ref no spec has
124
+ linked), so CI can record a release, for example as a fix version, without a
125
+ second lookup:
126
+
127
+ ```sh
128
+ skitterspec-jira spec-sync released "<previous-tag>..<tag>" --json
129
+ ```
130
+
3
131
  ## `@skitterbyte/skitterspec` v23 → v24 (hotfix land runs the release itself)
4
132
 
5
133
  ### Breaking change 1 — `spec-env hotfix land` runs its steps, and holds before the carry
@@ -275,7 +403,48 @@ can run it.
275
403
  committed file, so it changes for everyone who pulls and leaves that tree dirty.
276
404
  The engine says so when it does.
277
405
 
278
- ## `@skitterbyte/skitterspec-linear` v18 → v19 (hotfix land runs the release itself)
406
+ ## `@skitterbyte/skitterspec-linear` v18 → v19 (tell, don't track; hotfix land runs the release itself)
407
+
408
+ Skitterspec now tells Linear about **its own** transitions and nothing
409
+ else. It writes nothing about releases or deployments, and it never reads a
410
+ ticket's state back.
411
+
412
+ ### Breaking change 1 — The `spec-sync stage` verb is removed
413
+
414
+ It exits 1 with one line naming `spec-sync released <range> --json`. A pipeline
415
+ still calling it goes red rather than silently believing it mirrors
416
+ anything. **To migrate**, replace the step with your own script over the
417
+ release's ticket list:
418
+
419
+ ```sh
420
+ skitterspec-linear spec-sync released "<previous-tag>..<tag>" --json
421
+ ```
422
+
423
+ Each ticket row now carries `spec` and `url` (both `null` for a ref no spec has
424
+ linked), so the script needs no second lookup. Set whatever Linear field,
425
+ state or release object your process uses from that list. The checkout needs
426
+ `fetch-depth: 0` so the previous tag is visible.
427
+
428
+ ### Breaking change 2 — `release.stages` (the deployment ladder) is retired
429
+
430
+ The keys are ignored, like any unknown key, so a config carrying them still
431
+ loads. `spec-sync doctor` names them as unused config (a `warn`, never a
432
+ failure). Delete them when you remove the CI step.
433
+
434
+ ### Breaking change 3 — no state drift
435
+
436
+ `spec-sync status --remote` and `/spec-status` no longer compare the tracker's
437
+ state with the spec's. A ticket someone moved on Linear is not reported, and
438
+ push still resends state only when the spec itself moves. The edited-description
439
+ warning is unchanged.
440
+
441
+ **A ladder rung no longer reads as `complete`.** Where a state was a
442
+ `release.stages` rung, the live `spec-sync list` now shows it as unmapped. To
443
+ keep it reading as finished, list it as an alias:
444
+ `"complete": ["Done", "On Test"]`. `init-config --stage` is gone too, and is
445
+ refused as an unknown flag.
446
+
447
+ ### Also — hotfix land runs the release itself
279
448
 
280
449
  The same change as `@skitterbyte/skitterspec` v23 → v24 above — this
281
450
  distribution composes the same engine. Read that entry; nothing here is
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Spec-driven development for Claude Code, with **one-way GitHub sync** — a
4
4
  superset of [`@skitterbyte/skitterspec`](https://www.npmjs.com/package/@skitterbyte/skitterspec):
5
- the base filesystem workflow plus `/spec-push` · `/spec-status` · `/spec-claim`
5
+ the base filesystem workflow plus `/spec-push` · `/spec-status` · `/spec-list` · `/spec-claim`
6
6
  and the `spec-sync` CLI. The repo is canonical; GitHub is a generated mirror.
7
7
 
8
8
  Install exactly one distribution — this, the base, or one other superset —
@@ -21,12 +21,14 @@ npx @skitterbyte/skitterspec-github init
21
21
  closed, so each lifecycle bucket maps to an option of the board's `Status`
22
22
  field; `complete` and `cancelled` also close the issue (`completed` /
23
23
  `not_planned`). The board is required — one per repo.
24
- - **One-way**: nothing is read back into the repo. A body edited on GitHub —
25
- a ticked box included — is reported and replaced on the next push, loudly.
26
- - **Releases**: CI runs `spec-sync release create <tag>` on a tag push. It makes
27
- a GitHub Release listing exactly the issues that tag contains, by their
28
- `Refs: #N` trailers. `release deployed <tag> <env>` then sets a second board
29
- field, `Deployed`, so release stages never mix into the work state.
24
+ - **One-way**: nothing is read back into the repo, and skitterspec tells the
25
+ board only about its own transitions — a card moved by hand is left alone. A
26
+ body edited on GitHub — a ticked box included — is reported and replaced on
27
+ the next push, loudly.
28
+ - **Releases are yours to record**: `spec-sync released <range> --json` lists
29
+ exactly the issues a range contains, by their `Refs: #N` trailers, each with
30
+ its spec and url. Your CI pipes that into whatever records a release or a
31
+ deploy; skitterspec writes neither.
30
32
  - **Assignment**: `/spec-start` assigns the issue to your login; `/spec-claim`
31
33
  hands it on. Only collaborators can be assigned, and that is checked before
32
34
  anything is written.
@@ -34,16 +34,13 @@ its number from the URL (`…/projects/7` → `7`).
34
34
  - Under the board's **Workflows**, turn off *Item closed* and *Pull request
35
35
  merged* (both set Done): the engine sets Status itself, and a second writer
36
36
  is one the next push overrides.
37
- - Optional, for releases: a second single-select field, **Deployed**, with
38
- options such as `Test`, `Demo`, `Prod` (or `Staged`, `Published` for an npm
39
- package). Keep release stages out of Status — otherwise a finished phase
40
- reads as deployed. Declare the matching `releases.series` in the config, and
41
- give each series its `npm` name so a scheduled
42
- `spec-sync release reconcile --apply` run can repair the mirror when an
43
- approval happens outside your pipeline — `github.config.md` → "Releases" has
44
- the semantics and a copy-paste workflow. The workflow's secret must be a
45
- classic PAT (`repo` + `project`): the Actions `GITHUB_TOKEN` cannot write a
46
- user-owned Projects board.
37
+ - Deploy tracking is yours to add, not skitterspec's. If you want it on the
38
+ board, give it a field of its own (a `Deployed` single-select, say) and set
39
+ it from your CI using `spec-sync released <range> --json` — keep release
40
+ stages out of Status, or a finished phase reads as deployed.
41
+ `github.config.md` → "Releases and deploys" has the details. A CI secret for
42
+ this must be a classic PAT (`repo` + `project`): the Actions `GITHUB_TOKEN`
43
+ cannot write a user-owned Projects board.
47
44
 
48
45
  ## 3. The token
49
46
 
@@ -111,9 +108,10 @@ provider.
111
108
  6. **Verify** — save a read-back (`{ "issue": "<body>", "subIssues": { "<ref>":
112
109
  "<body>" } }`, keyed by the phase file's basename **without** `.md`) and run
113
110
  `spec-sync verify`: every body round-trips intact.
114
- 7. **Drift** — tick a task box on GitHub, then `spec-sync status --remote`
111
+ 7. **Edited body** — tick a task box on GitHub, then `spec-sync status --remote`
115
112
  reports the body edited; the next push replaces it and says so.
116
113
  8. **Released** — over a range with `Refs: #N` trailers and an older
117
- `Refs: KEY-N` one: tickets listed, the old one counted as historical.
114
+ `Refs: KEY-N` one: tickets listed, the old one counted as historical. With
115
+ `--json`, each linked ticket names its spec and url.
118
116
  9. **Intake** — label an issue with `intake.label` (and one with a bug label):
119
117
  `spec-sync intake` lists both, routed to `/spec` and `/spec-bug`.
@@ -580,7 +580,7 @@ through to a documented conservative default; see the field notes below.
580
580
  - `{repo}` — primary checkout dir basename (e.g. `skitterspec`).
581
581
  - `{repoSlug}` — `{repo}` lower-cased, non-alphanumerics collapsed to `-`
582
582
  (safe for a `COMPOSE_PROJECT_NAME`).
583
- - `{slug}` — the spec slug (folder name minus its `feat-`/`bug-` prefix).
583
+ - `{slug}` — the spec slug (folder name minus its `feat-`/`bug-`/`hotfix-`/`chore-` prefix).
584
584
 
585
585
  ## Pruning orphaned test-DB volumes
586
586
 
@@ -4,7 +4,8 @@
4
4
  "repo": "skitterspec",
5
5
  "project": 7,
6
6
  "statusField": "Status",
7
- "labels": { "spec": "spec", "phase": "phase" }
7
+ "labels": { "spec": "spec", "phase": "phase" },
8
+ "labelsByKind": {}
8
9
  },
9
10
  "states": {
10
11
  "backlog": "Backlog",
@@ -30,9 +30,9 @@ Option names must match the field's options exactly (case aside). An unknown
30
30
  name is refused and the refusal lists the options the field does have.
31
31
 
32
32
  **Map work states, not pipeline stages.** "On Test" is where a *release* is,
33
- not where a spec's work is. Keep it on a second single-select (`Deployed`)
34
- that releases set — never as a Status option, or a finished phase will read as
35
- deployed.
33
+ not where a spec's work is. If you track deploys on the board, keep them on a
34
+ field of your own that your CI sets — never as a Status option, or a finished
35
+ phase will read as deployed. See "Releases and deploys" below.
36
36
 
37
37
  ## Fields
38
38
 
@@ -44,83 +44,65 @@ deployed.
44
44
  | `github.statusField` | `Status` | The single-select carrying workflow state. |
45
45
  | `github.labels.spec` / `.phase` | `spec` / `phase` | Labels that tell a spec issue from a phase. Empty string = no label. |
46
46
  | `github.issueTypes.spec` / `.phase` | — | Issue type names. **Org-owned repos only** — naming one on a personal repo is refused by GitHub. |
47
- | `states.<bucket>` | see table | Board Status option per lifecycle bucket. |
47
+ | `github.labelsByKind` | `{}` | One extra label per spec kind (`feature`/`bug`/`hotfix`/`chore`, from the folder prefix), applied beside `labels.spec` — `{ "chore": "chore" }` keeps tooling work filterable. Unmapped kinds add nothing. |
48
+ | `states.<bucket>` | see table | Board Status option per lifecycle bucket — a string, or an array whose first name is written and whose rest are read-only aliases. |
48
49
  | `intake.label` | — | The label `/spec --from-issue` lists. |
49
50
  | `intake.bugLabels` / `.hotfixLabels` | `["bug"]` / `[]` | Labels that route an adopted issue to `/spec-bug` / `/spec-hotfix`. |
50
51
  | `auth.tokenEnv` | `GITHUB_TOKEN` | Env var holding the token; `GH_TOKEN` is read after it. |
51
52
  | `apply.transport` | — | `api` or `mcp`; unset = API when a token resolves. |
52
53
  | `sync.baseDir` | `specs/.core/github-base` | Last-pushed snapshots. Commit them. |
53
54
  | `sync.fieldOwnership` | all `push` | Per-field ownership; `"none"` declines one (e.g. `assignee`). |
54
- | `releases.deployedField` | `Deployed` | The second single-select the release verbs set. |
55
- | `releases.series` | `[]` | One entry per tag series: `{ tagPrefix, envs, npm }` — see below. |
56
-
57
- ## Releases — the mirror of what shipped
58
-
59
- The `spec-sync release` verbs write a release onto GitHub and move its issues'
60
- `Deployed` field: `create <tag> --stage <env>` mints a prerelease listing the
61
- tickets the tag's range contains, `deployed <tag> <env>` sets the field on
62
- every one of them, `complete <tag>` clears the prerelease flag. Every verb is a
63
- dry run unless `--apply`. A series declares its envs in order:
64
-
65
- ```json
66
- "releases": {
67
- "series": [
68
- { "tagPrefix": "myapp@",
69
- "envs": { "staged": "Staged", "published": "Published" },
70
- "npm": "@scope/myapp" }
71
- ]
55
+
56
+ ## More than one name per bucket — read-only aliases
57
+
58
+ A board usually has more states than the four buckets: "Blocked", "Next
59
+ Sprint", "Released". A bucket's value may be an **array** instead of a string:
60
+
61
+ ```jsonc
62
+ "states": {
63
+ "in-progress": ["Active", "Blocked"],
64
+ "complete": ["Closed", "Released"]
72
65
  }
73
66
  ```
74
67
 
75
- **`reconcile` is the self-healing verb**, for the approvals that happen where
76
- no verb runs — the npm website, a batched tag push that fired no workflow. It
77
- asks the npm registry which versions of `npm` are live and repairs the mirror:
78
-
79
- - A marked release whose version is live — **or contained in a newer live
80
- version of its series**, since that version carries its commits — moves to
81
- the series' **final** env and is completed. Ascending, and only the newest
82
- takes GitHub's "Latest".
83
- - A pushed tag with **no release at all** is backfilled at the first env, then
84
- probed like the rest — bounded to tags newer than the series' newest
85
- release (the newest tag alone where the series has none), so old history is
86
- never flooded onto the releases page.
87
- - **Absence is never failure**: a version the registry lacks is "not yet" and
88
- the release is kept; an unreachable registry, a 404 package, or a series
89
- with no `npm` key skips that series in one line and exits 0. Only a release
90
- listing that could not be read refuses.
91
- - Only releases carrying the skitterspec marker are touched — a hand-made
92
- release is never read or written.
93
-
94
- Run it hourly from a scheduled workflow (plus `workflow_dispatch` for an
95
- instant run after an approval). The checkout needs `fetch-depth: 0` — tag
96
- ranges are refused on a shallow clone — and the token must be a classic PAT
97
- (`repo` + `project`) in a secret: the Actions `GITHUB_TOKEN` cannot write a
98
- user-owned Projects board.
99
-
100
- ```yaml
101
- on:
102
- schedule:
103
- - cron: '17 * * * *'
104
- workflow_dispatch:
105
- permissions:
106
- contents: read
107
- jobs:
108
- reconcile:
109
- runs-on: ubuntu-latest
110
- steps:
111
- - uses: actions/checkout@v7
112
- with:
113
- fetch-depth: 0
114
- # …install your toolchain…
115
- - env:
116
- GITHUB_TOKEN: ${{ secrets.YOUR_PAT_SECRET }}
117
- run: |
118
- if [ -z "$GITHUB_TOKEN" ]; then
119
- echo "::notice::no PAT secret — reconcile skipped"; exit 0
120
- fi
121
- skitterspec-github spec-sync release reconcile --apply
68
+ - **The first name is the only one push writes**, and only when the spec
69
+ itself moves. The rest are never written.
70
+ - **The rest are read as that bucket** by the listing: the live
71
+ `spec-sync list` hides every `complete` / `cancelled` name, `--state <bucket>`
72
+ matches all of them, and `spec-sync states` lists each alias under its
73
+ bucket.
74
+ - **Nothing is pulled.** An alias changes what the report *says* about a
75
+ ticket, never the spec.
76
+ - A plain string works exactly as before. An alias that also names another
77
+ bucket is refused at load. An alias the tracker lacks is reported by
78
+ `spec-sync states` but never blocks a push, because it is never written.
79
+ - `spec-sync status` never reads an issue's Status at all, aliased or not:
80
+ skitterspec tells the board about its own transitions and nothing else.
81
+
82
+ ## Releases and deploys — the host project's to write
83
+
84
+ Skitterspec moves an issue's Status only at its own transitions, and it writes
85
+ nothing about releases or deployments. What a project records about a release
86
+ — a GitHub Release, a `Deployed` field, a comment — is its own CI's to write.
87
+
88
+ The one release question skitterspec answers is
89
+ **which issues a range contains**, because only the `Refs: #N` trailers know:
90
+
91
+ ```sh
92
+ skitterspec-github spec-sync released "<previous-tag>..<tag>" --json
122
93
  ```
123
94
 
95
+ Each row carries the `ref`, its commit count, the `spec` that stamped it and its
96
+ `url` — `null` for a ref no spec has linked, never a guess. The checkout needs
97
+ `fetch-depth: 0` so the previous tag is visible. Pipe the list into `gh`, the
98
+ GraphQL API or anything else. This repo's own `scripts/mirror-deployed.cjs` is
99
+ a worked example: it sets the board's `Deployed` field on a tag push, on
100
+ approval, and hourly for approvals made elsewhere.
101
+
102
+ The `releases` block and the `spec-sync release` verbs are **retired**:
103
+ `release` exits 1 naming `released --json`, and `spec-sync doctor` flags a
104
+ leftover `releases` block as unused config (a warning, never a failure).
105
+
124
106
  ## The token
125
107
 
126
108
  A **classic** personal access token with the `repo` and `project` scopes.
@@ -7,7 +7,7 @@ and lifecycle stay consistent. Each sets a status on the spec header
7
7
 
8
8
  | Skill | Purpose | Status | Folder |
9
9
  |-------|---------|--------|--------|
10
- | `/spec` | (Feature) Grill to a clear shared understanding, 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) |
10
+ | `/spec` | (Feature/Chore) 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) |
11
11
  | `/spec-bug` | (Bug) Reproduce with a failing test, capture spec, drive red→green | `In Progress` | `specs/in-progress/` |
12
12
  | `/spec-hotfix` | (Hotfix) Fork a worktree from a release tag, red→green, land by tag + cherry-pick | `In Progress` | `specs/in-progress/` |
13
13
  | `/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) |
@@ -492,9 +492,19 @@ missing alias.
492
492
  Sync is **one-way**: the repo is the source of truth and the tracker is a
493
493
  **generated mirror**. It ships `/spec-push` (repo→tracker; computes a create/update plan
494
494
  against a committed last-pushed snapshot and applies it) and `/spec-status`
495
- (read-only drift report — what would push, and whether the tracker's
496
- workflow-state drifted), backed by a `spec-sync` CLI. There is no content pull —
497
- the tracker is never read back or merged.
495
+ (read-only — what would push, and whether someone edited a description there),
496
+ backed by a `spec-sync` CLI. There is no content pull — the tracker is never
497
+ read back or merged.
498
+
499
+ **It tells, it doesn't track.** Skitterspec sends the tracker its own
500
+ transitions — a spec starting, a phase finishing, a spec completing or being
501
+ cancelled — and nothing else. A status someone changes on the tracker is
502
+ theirs to have changed: it is never read back, never reported, and only
503
+ overwritten when the spec itself next moves. Releases and deployments are the
504
+ host project's to record. The one release question skitterspec answers is which
505
+ tickets a commit range contains (`spec-sync released <range> --json`, each row
506
+ with its spec and url), because only the `Refs:` trailers know. What the
507
+ project's CI does with that list is its own business.
498
508
 
499
509
  **One-way means the repo wins, and it now wins *loudly*.** Those are different
500
510
  claims and only the first was ever in doubt. A ticket's description is generated
@@ -577,23 +587,36 @@ none of them describes.
577
587
  - **Other rules specs must honour:** link the relevant `.claude/rules/*.md`
578
588
  (architecture, code style, testing, database, etc.) rather than restating them.
579
589
 
580
- ## Spec types — Feature, Bug, Hotfix
590
+ ## Spec types — Feature, Chore, Bug, Hotfix
581
591
 
582
- Every spec is one of three types, recorded **both** in the header and the filename:
592
+ Every spec is one of four types, recorded **both** in the header and the filename:
583
593
 
584
- - **Header field:** `> **Type:** Feature`, `> **Type:** Bug`, or
585
- `> **Type:** Hotfix` (authoritative, greppable:
594
+ - **Header field:** `> **Type:** Feature`, `> **Type:** Chore`,
595
+ `> **Type:** Bug`, or `> **Type:** Hotfix` (authoritative, greppable:
586
596
  `grep -rl 'Type:.*Hotfix' specs/`).
587
- - **Filename prefix:** `feat-<name>` for features, `bug-<name>` for bugs,
588
- `hotfix-<name>` for hotfixes (visible in listings; glob-safe — never use
589
- `[BUG]`/`[FEATURE]` brackets).
597
+ - **Filename prefix:** `feat-<name>` for features, `chore-<name>` for chores,
598
+ `bug-<name>` for bugs, `hotfix-<name>` for hotfixes (visible in listings;
599
+ glob-safe — never use `[BUG]`/`[FEATURE]` brackets).
600
+
601
+ A **Chore** is work no end user sees — tooling, CI, dependency bumps, internal
602
+ refactors. The line: anything that is not work end users see or functions they
603
+ use within the app is a chore; everything user-facing is a feature. There is no
604
+ separate entry skill — `/spec` **proposes** feature or chore from what the
605
+ grilling defined, with a one-line reason, and the user confirms. A chore
606
+ defaults its `Gating:` to `none: not user-facing` (where gating is configured),
607
+ and its commits default to `chore`/`refactor`/`ci` types with **no**
608
+ `Release-Note:` footer — a chore is by definition not user-visible, so it has
609
+ no release note to write. Feature specs keep `feat`; bug specs keep `fix`.
610
+ Where a ticketing provider maps kinds to tracker types (e.g. Azure's
611
+ `workItemTypeByKind`), the chore mapping is what keeps tooling work off the
612
+ customer-facing release ladder.
590
613
 
591
614
  A **Hotfix** is a Bug fixed against a **released tag** rather than `main`: it
592
615
  carries an extra `> **Base version:** <tag>` header, forks its worktree from that
593
616
  tag, and lands by tagging a new patch + cherry-picking onto `main` (never a
594
617
  fast-forward merge). `/spec-live` refuses a hotfix — test it with `/spec-connect`.
595
618
 
596
- All three types share the same lifecycle folders below — type is orthogonal to
619
+ All four types share the same lifecycle folders below — type is orthogonal to
597
620
  status.
598
621
 
599
622
  ## Header fields & State log (audit trail)
@@ -231,8 +231,34 @@ again on the **same** `--since`. Not a fresh one — a pass that arrived during
231
231
  the gap is still inside the original window, and re-arming on a new timestamp
232
232
  would strand exactly that pass.
233
233
 
234
- **Say nothing when you do it.** Nothing happened and the window is unchanged; a
235
- line on every death turns a working loop into a stream of non-events.
234
+ **Say as little as the harness allows when you do it.** Nothing happened and
235
+ the window is unchanged; a line on every death turns a working loop into a
236
+ stream of non-events. Where the harness lets a turn end on the tool call, the
237
+ tool call is the whole turn. Where it insists on visible text — Claude Code
238
+ does, after a monitor event — that text is one fixed line,
239
+ `Still waiting for the verdict.`, and nothing else: not the spec, not the age,
240
+ not the links. The wait's own start line arriving as an event is answered the
241
+ same way.
242
+
243
+ **Every fifth re-arm, show the banner again.** Even one line per re-arm adds
244
+ up: over a long idle they push the verdict line and the banner's links out of
245
+ sight, and a reader who comes back has to scroll for the URL that lets them
246
+ answer. So `review wait` counts the starts on each window, and on every fifth
247
+ re-arm its start line is followed by `re-show: banner (re-arm N)` and the stack.
248
+ Relay that as the run's **verdict line** — copied from the block when it is
249
+ still in context, dropped rather than reconstructed when it is not — and then
250
+ **the banner** in its current state, with its stack copied from the `re-show:`
251
+ lines. Not the table: that would be a second block.
252
+
253
+ **A count here, not an age**, and the bound below is unaffected. What buries
254
+ the banner is how many re-arms have scrolled past it, and a death every five
255
+ minutes and one every forty-five push it up the same distance each. The age of
256
+ the window still decides when to stop.
257
+
258
+ **And it is not a third control after the block.** It is the banner this file
259
+ already defines, repeated in whatever state it is in — past the bound, that is
260
+ the degraded sentence below. No block is repeated, so nothing follows a second
261
+ one, and nothing about the banner's shape changes.
236
262
 
237
263
  **An operator who stopped it is not a death** — re-arming over a deliberate
238
264
  stop makes the wait unstoppable, which is worse than a wait that stops. But a
@@ -142,8 +142,8 @@ because writing it means reading the diff, and that spend is the user's call.
142
142
 
143
143
  **A watch that dies is re-armed on the same window**, silently and bounded by
144
144
  the age of that window — `.claude/rules/spec-reports.md` carries the contract,
145
- including when to stop and what the banner says instead. Do not restate it
146
- here.
145
+ including when to stop, what the banner says instead, and when the
146
+ engine's `re-show:` brings the banner back. Do not restate it here.
147
147
 
148
148
  ```
149
149
  skitterspec spec-env review <name> --claim-since <the timestamp> --json
@@ -191,9 +191,31 @@ not write the spec until this is resolved.
191
191
  Stop grilling when there are no unresolved branches that would change the spec.
192
192
  Briefly play back the agreed understanding before writing.
193
193
 
194
+ ### Propose the kind — feature or chore
195
+
196
+ This skill writes two kinds of spec, and
197
+ **you propose which from what the grilling defined, with a one-line reason; the user confirms or overrides.**
198
+ The
199
+ line that decides it: a **chore** is anything that is not work end users see or
200
+ functions they use within the app — tooling, CI, dependency bumps, internal
201
+ refactors. Everything user-facing is a **feature**. So the proposal reads like
202
+ *"no user-visible surface → chore"* or *"adds an endpoint users call → feature"*.
203
+
204
+ The kind is recorded twice, and both follow from the answer: the folder prefix
205
+ (`feat-` / `chore-`) and the `> **Type:**` header (`Feature` / `Chore`). A chore
206
+ also defaults its `Gating:` to `none: not user-facing` (only when gating is
207
+ configured — offer the default, let the user override it like any other
208
+ answer), and its commits default to `chore`/`refactor`/`ci` types with no
209
+ `Release-Note:` (see `.claude/rules/spec-planning.md`).
210
+
211
+ There is no `/spec-chore` and none should be added: one entry point, one grill,
212
+ and the kind is an output of understanding the work rather than a door the user
213
+ must pick before describing it.
214
+
194
215
  ## Phase B — write the spec
195
216
 
196
- This skill is for **features**. For bugs, use `/spec-bug` (test-first, red→green).
217
+ This skill is for **features and chores**. For bugs, use `/spec-bug`
218
+ (test-first, red→green).
197
219
 
198
220
  ### Write it in its own worktree
199
221
 
@@ -260,8 +282,8 @@ move to, **warn, don't refuse**, and say the trailer for that commit wants
260
282
  that phase's goal, its task checkboxes (tests included), and any phase-specific
261
283
  notes. **Even a single-phase spec gets `01-….md`** — never lump phase tasks
262
284
  into `00-overview.md`. This keeps each phase easy to dive into on its own.
263
- - Choose a short kebab-case name and **prefix it `feat-`** (the bug counterpart
264
- uses `bug-`).
285
+ - Choose a short kebab-case name and **prefix it with the kind** — `feat-` for
286
+ a feature, `chore-` for a chore (the bug counterpart uses `bug-`).
265
287
 
266
288
  Use this template (keep it **as concise as possible** — no filler, no restating
267
289
  the codebase, link rather than duplicate):
@@ -269,8 +291,8 @@ the codebase, link rather than duplicate):
269
291
  ```markdown
270
292
  # <Feature title>
271
293
 
272
- > **Type:** Feature
273
- > **Name:** feat-<kebab-name> (the spec folder name — the handle you paste into `/spec-start`)
294
+ > **Type:** <Feature or Chore — the kind proposed after Phase A>
295
+ > **Name:** <feat- or chore-><kebab-name> (the spec folder name — the handle you paste into `/spec-start`)
274
296
  > **Status:** Ready — not started
275
297
  > **Author:** <git user.name — `git config user.name`>
276
298
  > **Developer:** —
@@ -279,7 +301,8 @@ the codebase, link rather than duplicate):
279
301
  > **Stack:** <worktree — or "worktree + docker" if it touches the DB/stateful
280
302
  > services; only acted on when isolation is enabled — see Phase A item 9>
281
303
  > **Gating:** <flag name — or "none: <one-line reason>". Only when release gating
282
- > is configured; omit the line entirely otherwise. An empty value or a bare
304
+ > is configured; omit the line entirely otherwise. A chore defaults to
305
+ > "none: not user-facing". An empty value or a bare
283
306
  > "none" is not a valid outcome — see Phase A item 10>
284
307
 
285
308
  ## Problem
@@ -541,8 +564,8 @@ the verdict — and the reader's conclusion is about what the page showed them.
541
564
 
542
565
  **A watch that dies is re-armed on the same window**, silently and bounded by
543
566
  the age of that window — `.claude/rules/spec-reports.md` carries the contract,
544
- including when to stop and what the banner says instead. Do not restate it
545
- here.
567
+ including when to stop, what the banner says instead, and when the
568
+ engine's `re-show:` brings the banner back. Do not restate it here.
546
569
 
547
570
  ```
548
571
  skitterspec spec-env review <spec> --docs --claim-since <the timestamp> --json
@@ -547,8 +547,8 @@ and the routing on the verdict is `/spec-diff` §2 and §4, as it is everywhere.
547
547
 
548
548
  **A watch that dies is re-armed on the same window**, silently and bounded by
549
549
  the age of that window — `.claude/rules/spec-reports.md` carries the contract,
550
- including when to stop and what the banner says instead. Do not restate it
551
- here.
550
+ including when to stop, what the banner says instead, and when the
551
+ engine's `re-show:` brings the banner back. Do not restate it here.
552
552
 
553
553
  **Why this skill arms as well as waits.** Waiting is what any offer does;
554
554
  **arming** asserts an obligation that outlives the turn, and belongs only to