@skitterbyte/skitterspec-azure-boards 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 +8 -7
  3. package/assets/core/SETUP.md +8 -45
  4. package/assets/core/azure-boards.config.json.example +1 -0
  5. package/assets/core/azure-boards.config.md +55 -7
  6. package/assets/core/env.config.md +1 -1
  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-azure-setup/SKILL.md +5 -1
  12. package/assets/skills/spec-bug/SKILL.md +2 -2
  13. package/assets/skills/spec-list/SKILL.md +28 -5
  14. package/assets/skills/spec-next/SKILL.md +2 -2
  15. package/assets/skills/spec-status/SKILL.md +28 -26
  16. package/assets/skills/spec-sync/SKILL.md +11 -14
  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/azure-boards/api.js +77 -192
  22. package/src/vendor/azure-boards/cli-sync.js +114 -72
  23. package/src/vendor/azure-boards/config.js +60 -67
  24. package/src/vendor/azure-boards/mcp.js +14 -3
  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 Azure Boards 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; Azure Boards is a generated
7
7
  mirror.
8
8
 
@@ -23,12 +23,13 @@ npx @skitterbyte/skitterspec-azure-boards init
23
23
  - **Work item types and states are the project's own.** The process template
24
24
  (Basic, Agile, custom) decides them, so the config names the types and the
25
25
  bucket→state map, validated against the process at run time.
26
- - **One-way**: nothing is read back into the repo. A body edited in Boards is
27
- reported and replaced on the next push, loudly.
28
- - **Releases**: CI runs `spec-sync release create <tag>` on a tag push. It
29
- mints one work item of `releases.workItemType` per release, holding exactly
30
- the tickets that tag contains by their `Refs: AB#n` trailers;
31
- `release deployed <tag> <env>` moves that item's state through your envs.
26
+ - **One-way**: nothing is read back into the repo, and skitterspec tells
27
+ Boards only about its own transitions — an item moved by hand is left alone.
28
+ A body edited in Boards is reported and replaced on the next push, loudly.
29
+ - **Releases are yours to record**: `spec-sync released <range> --json` lists
30
+ exactly the tickets a range contains, by their `Refs: AB#n` trailers, each
31
+ with its spec and url. Your CI pipes that into whatever records a release or
32
+ a deploy; skitterspec writes neither.
32
33
  - **Assignment**: `/spec-start` assigns the work item to you; `/spec-claim`
33
34
  hands it on. Identity derives from the PAT (`spec-sync whoami`).
34
35
  - **Intake**: adopt a PM-filed work item as a spec's own, routed to `/spec`,
@@ -99,9 +99,9 @@ state (Agile's `Removed` is an honest override).
99
99
  **Map buckets to work states, not deployment stages.** The buckets mirror the
100
100
  repo's work lifecycle, so To Do / Doing / Done translate honestly — On Test /
101
101
  On Live do not: a finished phase would show as deployed before anything was
102
- released. Deployment position belongs to the release carrier
103
- (`releases.series[].envs`, moving the release work item) —
104
- `azure-boards.config.md` → **Choosing your state map** carries the reasoning.
102
+ released. Deployment position belongs to the project's own release tooling —
103
+ `azure-boards.config.md` → **Choosing your state map** and **Releases and
104
+ deploys** carry the reasoning.
105
105
 
106
106
  ## 4. Check — `spec-sync doctor`
107
107
 
@@ -115,37 +115,12 @@ is an opt-in not taken (fine); `broken` is configured-but-wrong (exit 1).
115
115
  configured state exists on the types, and whether the PAT can search
116
116
  identities (a warn, never broken — only user search degrades without it).
117
117
 
118
- ## 4b. Optional — see releases on the board
119
-
120
- The release carrier is a work item per release, so it can have a board of its
121
- own, and the stories it carries can show where they are. Everything here is a
122
- process or team setting, and needs **Edit process** on the inherited process
123
- plus **team administrator** — nothing in this package does it for you.
124
-
125
- - **A Releases board.** Process → Backlog levels → add a portfolio level
126
- holding the `Release` type, then Team settings → Backlogs → tick it. The
127
- board's level picker then offers **Releases**, one column per state. Put
128
- each env state in the *In Progress* category, or every card stacks in the
129
- first column.
130
- - **The release on each story** is a tag (`releases.ticketTag`, on by
131
- default). Show tags on the card and filter the board by one.
132
- - **Where each story is deployed.** Add a picklist field to every type
133
- tickets are minted as (User Story, Bug…) holding exactly the `envs` values
134
- (`On Test`, `On Demo`, `Released`…), and set its reference name as
135
- `releases.deployedField` (e.g. `Custom.Deployed`). `release deployed <env>`
136
- then sets it on each story the release carries, leaving the story's State
137
- alone. Show it on the card, and add a card style rule per value to colour
138
- cards by it.
139
- - **Releases with their stories in one list.** A *Work items and direct
140
- links* query — top level `Release` in the env states, linked `Related`
141
- stories — shows each release with its stories under it.
142
-
143
118
  ## 5. Push a spec
144
119
 
145
120
  `/spec-push <spec>` computes the plan, applies it, stamps the returned ids
146
121
  into the spec's frontmatter (`azure_identifier` / `azure_url` /
147
122
  `azure_item_id`), verifies the round-trip by words, and records the snapshot
148
- later drift is measured against. From then on the lifecycle skills keep the
123
+ later pushes diff against. From then on the lifecycle skills keep the
149
124
  mirror fresh on their own.
150
125
 
151
126
  ---
@@ -213,23 +188,11 @@ types' state names.
213
188
  ```
214
189
 
215
190
  Tickets counted, unreferenced commits reported, an earlier tracker's
216
- trailers counted as historical, bookkeeping ignored.
217
-
218
- 8. **Release carrier** — with a `releases.series` configured and a tag pushed:
219
-
220
- ```sh
221
- pnpm exec skitterspec-azure-boards spec-sync release create <tag>
222
- pnpm exec skitterspec-azure-boards spec-sync release create <tag> --apply
223
- pnpm exec skitterspec-azure-boards spec-sync release deployed <tag> staged --apply
224
- pnpm exec skitterspec-azure-boards spec-sync release complete <tag> --apply
225
- ```
226
-
227
- In Boards: one `releases.workItemType` item titled by the tag, the range's
228
- tickets Related-linked with one comment each, the item's state moving
229
- through the envs and closing on complete. A retry of `create --apply`
230
- reports "unchanged", never a duplicate.
191
+ trailers counted as historical, bookkeeping ignored. With `--json`, each
192
+ ticket names the spec and url behind it — what your CI uses to record a
193
+ release.
231
194
 
232
- 9. **Drift** — edit the item's description **in Boards**, fetch the item JSON,
195
+ 8. **Edited description** — edit the item's description **in Boards**, fetch the item JSON,
233
196
  and:
234
197
 
235
198
  ```sh
@@ -4,6 +4,7 @@
4
4
  "project": "your-project",
5
5
  "workItemType": "Issue",
6
6
  "workItemTypeByKind": {},
7
+ "bodyFieldByType": {},
7
8
  "childType": "Task",
8
9
  "areaPath": ""
9
10
  },
@@ -9,22 +9,21 @@ env-var NAMES — never a credential. Credentials live in the user-level store
9
9
  | `azure.orgUrl` | The organization (`https://dev.azure.com/<org>`). Also keys the credentials-store entry. | `""` |
10
10
  | `azure.project` | The project spec work items land in. | `""` |
11
11
  | `azure.workItemType` | The work item type a spec mints as. Types are process-defined (Basic: `Issue`; Agile: `User Story`; custom anything), so this is config, not a constant. | `"Issue"` |
12
- | `azure.workItemTypeByKind` | The mint type per spec kind — `feature`, `bug`, `hotfix`, read off the spec folder's prefix — falling back to `azure.workItemType`. In Agile/Scrum/CMMI a bug is a type, so `{ "bug": "Bug", "hotfix": "Bug" }` keeps `/spec-bug` and `/spec-hotfix` out of the story backlog. Each named type's states are validated like the base pair's. | `{}` |
12
+ | `azure.workItemTypeByKind` | The mint type per spec kind — `feature`, `bug`, `hotfix`, `chore`, read off the spec folder's prefix — falling back to `azure.workItemType`. In Agile/Scrum/CMMI a bug is a type, so `{ "bug": "Bug", "hotfix": "Bug" }` keeps `/spec-bug` and `/spec-hotfix` out of the story backlog. `chore` wants a custom inherited type — create `Chore` and its states in your process **before** mapping it — so tooling work stays off the customer-facing release ladder. Each named type's states are validated like the base pair's. | `{}` |
13
+ | `azure.bodyFieldByType` | The field a TYPE's body is written to and read from, keyed by work item type name — `{ "Bug": "Microsoft.VSTS.TCM.ReproSteps" }` on Agile/Scrum/CMMI, whose Bug form does not show `System.Description`. Unmapped types keep `System.Description`. The mapping is symmetric — create, update, read-back and the edited-in-Boards hash compare all use it — so a push then an immediate `/spec-status` round-trips clean. Items minted before the mapping read their `System.Description` until the next push rewrites them. `doctor --check-remote` verifies each mapped type exists and carries its field. | `{}` |
13
14
  | `azure.childType` | The type a phase mints as, linked parent/child under the spec's item. | `"Task"` |
14
15
  | `azure.areaPath` | Optional area path for minted items; empty means the project default. | `""` |
16
+ | `azure.backlogOrderField` | The field `spec-sync list --next` ranks the backlog by, ascending. StackRank is what Basic, Agile and CMMI backlogs drag-order; a Scrum process uses `Microsoft.VSTS.Common.BacklogPriority`. | `Microsoft.VSTS.Common.StackRank` |
15
17
  | `mapping.specFolder` / `mapping.phases` / `mapping.tasks` | Spec → work item, phase → child item, tasks → markdown checklist. Same modes as the other providers (`subissue` \| `deferred` \| `inline`; `checklist` \| `none`). | `issue` / `subissue` / `checklist` |
16
18
  | `states.<bucket>` | The Boards STATE name for each lifecycle bucket, per the project's own process. Moves are direct `System.State` writes; a state the process refuses is a named refusal listing the states the type has. `cancelled` defaults to `Done` because the Basic process carries no Cancelled state. | see example |
17
19
  | `intake.tag` / `intake.bugTags` / `intake.hotfixTags` | Intake routes an adopted work item by its tags (Boards has tags, not labels): the inbox filter, and the routes to `/spec-bug` and `/spec-hotfix`. Empty lists route nothing. | `""` / `["bug"]` / `[]` |
18
20
  | `intake.bugTypes` / `intake.hotfixTypes` | The same routes, keyed on the item's work item TYPE — in Agile/Scrum/CMMI a bug is a type, not a tag, so an untagged `Bug` still reaches `/spec-bug`. A match on either axis routes, hotfix wins over bug, and an explicit `[]` opts type routing out. | `["Bug"]` / `[]` |
19
21
  | `auth.tokenEnv` | The env-var NAME for the PAT — the official CLI's by default, so a machine set up for `az boards` needs nothing new. Work Items (Read & Write) covers everything but identity search, which wants Identity (Read). | `AZURE_DEVOPS_EXT_PAT` |
20
22
  | `refs.foreignPatterns` | Ref shapes that are KNOWN HISTORY rather than unreferenced commits — a repo migrating off another tracker lists its old key here (e.g. `"ERQ-\\d+"`). | `[]` |
21
- | `releases.workItemType` / `releases.series` | The release seam's carrier: one work item of this type per release, found by title, its state moved through each series' `envs` map by `release deployed`. | `"Release"` / `[]` |
22
- | `releases.ticketTag` | Tag each ticket `release create` attaches with the release tag (`v37.7.0`), so a story card shows which release carried it and the board filters by it. Existing tags are kept. The tag is checked per ticket, separately from the link, so re-running `release create <tag> --apply` backfills a release cut before this existed — without a second comment. `false` opts out. | `true` |
23
- | `releases.deployedField` | A field reference (e.g. `Custom.Deployed`) that `release deployed <env>` sets on each ticket the release carries, to that env's `envs` value — the same name the release item moves to. Phase Tasks and ticket State are never touched. The value is checked against each ticket type's allowed values before anything is written, so a type without the field or a value its picklist lacks refuses with nothing changed. Empty writes no field. `SETUP.md` → *see releases on the board*. | `""` |
24
23
  | `apply.transport` | `api` \| `mcp`, or empty for "api when credentials resolve, mcp when they don't". | `""` |
25
24
  | `sync.baseDir` | Where last-pushed snapshots live. | `specs/.core/azure-base` |
26
25
  | `sync.fieldOwnership` | Which projection fields push (`description`, `subIssues`, `workflowState`, `assignee`; `"none"` declines one). | all `push` |
27
- | `release.stages` / `release.ignorePaths` | The deployment ladder and bookkeeping path prefixes, exactly as the other providers define them. | `[]` / `specs/`, changelogs |
26
+ | `release.ignorePaths` | Bookkeeping path prefixes `released` ignores, exactly as the other providers define them. | `specs/`, changelogs |
28
27
 
29
28
  Descriptions are stored as MARKDOWN: the adapter writes the projection's
30
29
  markdown verbatim and declares the format beside the field
@@ -43,5 +42,54 @@ Map the four buckets to **work** states, never to deployment stages — the
43
42
  same rule the Jira reference explains at length. The repo learns where work
44
43
  **is** as it happens, but what **shipped** only when a release is cut, so a
45
44
  pipeline state driven from the spec lifecycle is wrong the moment it moves.
46
- Deployment position belongs to the release seam (`releases.series[].envs`,
47
- moving the release work item), not to each ticket's state.
45
+ Deployment position belongs to the project's own release tooling — see
46
+ "Releases and deploys" below — not to each ticket's state.
47
+
48
+ ### More than one name per bucket — read-only aliases
49
+
50
+ A board usually has more states than the four buckets: "Blocked", "Next
51
+ Sprint", "Released". A bucket's value may be an **array** instead of a string:
52
+
53
+ ```jsonc
54
+ "states": {
55
+ "in-progress": ["Active", "Blocked"],
56
+ "complete": ["Closed", "Released"]
57
+ }
58
+ ```
59
+
60
+ - **The first name is the only one push writes**, and only when the spec
61
+ itself moves. The rest are never written.
62
+ - **The rest are read as that bucket** by the listing: the live
63
+ `spec-sync list` hides every `complete` / `cancelled` name, `--state <bucket>`
64
+ matches all of them, and `spec-sync states` lists each alias under its
65
+ bucket.
66
+ - **Nothing is pulled.** An alias changes what the report *says* about a
67
+ ticket, never the spec.
68
+ - A plain string works exactly as before. An alias that also names another
69
+ bucket is refused at load. An alias the tracker lacks is reported by
70
+ `spec-sync states` but never blocks a push, because it is never written.
71
+ - `spec-sync status` never reads a ticket's state at all, aliased or not:
72
+ skitterspec tells Boards about its own transitions and nothing else.
73
+
74
+ ## Releases and deploys — the host project's to write
75
+
76
+ Skitterspec moves a ticket's state only at its own transitions, and it writes
77
+ nothing about releases or deployments. What a project records about a release
78
+ — a Release work item, a tag on each ticket, a `Custom.Deployed` field — is its own CI's to write.
79
+
80
+ The one release question skitterspec answers is
81
+ **which tickets a range contains**, because only the `Refs: AB#n` trailers know:
82
+
83
+ ```sh
84
+ skitterspec-azure-boards spec-sync released "<previous-tag>..<tag>" --json
85
+ ```
86
+
87
+ Each row carries the `ref`, its commit count, the `spec` that stamped it and its
88
+ `url` — `null` for a ref no spec has linked, never a guess. The checkout needs
89
+ the full history (`fetch-depth: 0`) so the previous tag is visible. Pipe the
90
+ list into whatever records your releases.
91
+
92
+ The `releases` block (`workItemType`, `series`, `ticketTag`, `deployedField`),
93
+ `release.stages` and the `spec-sync release` verbs are **retired**: `release`
94
+ exits 1 naming `released --json`, and `spec-sync doctor` flags leftover config
95
+ as unused (a warning, never a failure).
@@ -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
 
@@ -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
@@ -198,9 +198,31 @@ not write the spec until this is resolved.
198
198
  Stop grilling when there are no unresolved branches that would change the spec.
199
199
  Briefly play back the agreed understanding before writing.
200
200
 
201
+ ### Propose the kind — feature or chore
202
+
203
+ This skill writes two kinds of spec, and
204
+ **you propose which from what the grilling defined, with a one-line reason; the user confirms or overrides.**
205
+ The
206
+ line that decides it: a **chore** is anything that is not work end users see or
207
+ functions they use within the app — tooling, CI, dependency bumps, internal
208
+ refactors. Everything user-facing is a **feature**. So the proposal reads like
209
+ *"no user-visible surface → chore"* or *"adds an endpoint users call → feature"*.
210
+
211
+ The kind is recorded twice, and both follow from the answer: the folder prefix
212
+ (`feat-` / `chore-`) and the `> **Type:**` header (`Feature` / `Chore`). A chore
213
+ also defaults its `Gating:` to `none: not user-facing` (only when gating is
214
+ configured — offer the default, let the user override it like any other
215
+ answer), and its commits default to `chore`/`refactor`/`ci` types with no
216
+ `Release-Note:` (see `.claude/rules/spec-planning.md`).
217
+
218
+ There is no `/spec-chore` and none should be added: one entry point, one grill,
219
+ and the kind is an output of understanding the work rather than a door the user
220
+ must pick before describing it.
221
+
201
222
  ## Phase B — write the spec
202
223
 
203
- This skill is for **features**. For bugs, use `/spec-bug` (test-first, red→green).
224
+ This skill is for **features and chores**. For bugs, use `/spec-bug`
225
+ (test-first, red→green).
204
226
 
205
227
  ### Write it in its own worktree
206
228
 
@@ -267,8 +289,8 @@ move to, **warn, don't refuse**, and say the trailer for that commit wants
267
289
  that phase's goal, its task checkboxes (tests included), and any phase-specific
268
290
  notes. **Even a single-phase spec gets `01-….md`** — never lump phase tasks
269
291
  into `00-overview.md`. This keeps each phase easy to dive into on its own.
270
- - Choose a short kebab-case name and **prefix it `feat-`** (the bug counterpart
271
- uses `bug-`).
292
+ - Choose a short kebab-case name and **prefix it with the kind** — `feat-` for
293
+ a feature, `chore-` for a chore (the bug counterpart uses `bug-`).
272
294
 
273
295
  Use this template (keep it **as concise as possible** — no filler, no restating
274
296
  the codebase, link rather than duplicate):
@@ -276,8 +298,8 @@ the codebase, link rather than duplicate):
276
298
  ```markdown
277
299
  # <Feature title>
278
300
 
279
- > **Type:** Feature
280
- > **Name:** feat-<kebab-name> (the spec folder name — the handle you paste into `/spec-start`)
301
+ > **Type:** <Feature or Chore — the kind proposed after Phase A>
302
+ > **Name:** <feat- or chore-><kebab-name> (the spec folder name — the handle you paste into `/spec-start`)
281
303
  > **Status:** Ready — not started
282
304
  > **Author:** <git user.name — `git config user.name`>
283
305
  > **Developer:** —
@@ -286,7 +308,8 @@ the codebase, link rather than duplicate):
286
308
  > **Stack:** <worktree — or "worktree + docker" if it touches the DB/stateful
287
309
  > services; only acted on when isolation is enabled — see Phase A item 9>
288
310
  > **Gating:** <flag name — or "none: <one-line reason>". Only when release gating
289
- > is configured; omit the line entirely otherwise. An empty value or a bare
311
+ > is configured; omit the line entirely otherwise. A chore defaults to
312
+ > "none: not user-facing". An empty value or a bare
290
313
  > "none" is not a valid outcome — see Phase A item 10>
291
314
 
292
315
  ## Problem
@@ -548,8 +571,8 @@ the verdict — and the reader's conclusion is about what the page showed them.
548
571
 
549
572
  **A watch that dies is re-armed on the same window**, silently and bounded by
550
573
  the age of that window — `.claude/rules/spec-reports.md` carries the contract,
551
- including when to stop and what the banner says instead. Do not restate it
552
- here.
574
+ including when to stop, what the banner says instead, and when the
575
+ engine's `re-show:` brings the banner back. Do not restate it here.
553
576
 
554
577
  ```
555
578
  skitterspec spec-env review <spec> --docs --claim-since <the timestamp> --json
@@ -97,6 +97,9 @@ these are config rather than constants:
97
97
  Scrum, CMMI): a `/spec-bug` or `/spec-hotfix` minting a `User Story` files
98
98
  the bug in the wrong backlog, and `{ "bug": "Bug", "hotfix": "Bug" }` is the
99
99
  usual answer there. On Basic (no Bug type) say nothing and leave it empty.
100
+ A `chore` mapping needs a custom inherited type — offer it only when the
101
+ project has created one (e.g. `Chore`), and say the type and its states must
102
+ exist in the process before the first push mints with it.
100
103
  - **`intake.bugTypes`** / **`intake.hotfixTypes`** — the same processes route
101
104
  intake by TYPE as well as tag: `bugTypes` defaults to `["Bug"]`, so an
102
105
  untagged Bug-type item reaches `/spec-bug` without anyone remembering a tag
@@ -207,7 +210,8 @@ Then name the next step:
207
210
 
208
211
  - `/spec` — write a spec; with Boards configured it creates the linked work
209
212
  item in the configured project and stamps the id.
210
- - `/spec-status` — read-only drift report, the safe way to prove the link works.
213
+ - `/spec-status` — read-only report of what would push, the safe way to prove
214
+ the link works.
211
215
  - `/spec-push` — send a spec up.
212
216
 
213
217
  Mention what setup did **not** configure, so the defaults aren't mistaken for
@@ -554,8 +554,8 @@ and the routing on the verdict is `/spec-diff` §2 and §4, as it is everywhere.
554
554
 
555
555
  **A watch that dies is re-armed on the same window**, silently and bounded by
556
556
  the age of that window — `.claude/rules/spec-reports.md` carries the contract,
557
- including when to stop and what the banner says instead. Do not restate it
558
- here.
557
+ including when to stop, what the banner says instead, and when the
558
+ engine's `re-show:` brings the banner back. Do not restate it here.
559
559
 
560
560
  **Why this skill arms as well as waits.** Waiting is what any offer does;
561
561
  **arming** asserts an obligation that outlives the turn, and belongs only to