@skitterbyte/skitterspec-azure-boards 2.2.0 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/claude-md-section.md +20 -1
- package/assets/core/azure-boards.config.md +4 -2
- package/assets/core/env.config.json.example +1 -0
- package/assets/core/env.config.md +90 -6
- package/assets/hooks/main-guard.cjs +18 -2
- package/assets/hooks/review-gate.cjs +19 -2
- package/assets/rules/commit-trailers.md +24 -1
- package/assets/rules/spec-planning.md +131 -18
- package/assets/rules/spec-reports.md +1 -1
- package/assets/skills/spec/SKILL.md +95 -6
- package/assets/skills/spec-azure-setup/SKILL.md +23 -1
- package/assets/skills/spec-bug/SKILL.md +68 -3
- package/assets/skills/spec-cancel/SKILL.md +35 -0
- package/assets/skills/spec-claim/SKILL.md +41 -2
- package/assets/skills/spec-complete/SKILL.md +113 -0
- package/assets/skills/spec-hotfix/SKILL.md +72 -4
- package/assets/skills/spec-incident/SKILL.md +44 -0
- package/assets/skills/spec-next/SKILL.md +12 -5
- package/assets/skills/spec-push/SKILL.md +22 -0
- package/assets/skills/spec-review/SKILL.md +32 -0
- package/assets/skills/spec-start/SKILL.md +50 -3
- package/assets/skills/spec-status/SKILL.md +18 -3
- package/assets/skills/spec-sync/SKILL.md +1 -0
- package/assets/skills/spec-to-main/SKILL.md +47 -1
- package/package.json +1 -1
- package/src/cli.js +1091 -39
- package/src/env/base.js +104 -0
- package/src/env/config.js +75 -3
- package/src/env/disposition.js +62 -0
- package/src/env/handoff.js +80 -0
- package/src/env/host.js +262 -0
- package/src/env/hotfix.js +225 -0
- package/src/env/hotfixland.js +103 -9
- package/src/env/inflight.js +95 -0
- package/src/env/integrate.js +130 -4
- package/src/env/mainguard.js +6 -0
- package/src/env/phases.js +28 -0
- package/src/env/provision.js +18 -6
- package/src/env/resolve.js +108 -9
- package/src/env/serve.js +6 -1
- package/src/env/specstate.js +101 -0
- package/src/env/teardown.js +42 -0
- package/src/vendor/azure-boards/cli-sync.js +47 -3
- package/src/vendor/azure-boards/config.js +17 -5
- package/src/vendor/provider-kit/index.js +4 -0
- package/src/vendor/provider-kit/src/apply.js +49 -4
- package/src/vendor/provider-kit/src/assignment.js +78 -1
- package/src/vendor/provider-kit/src/config.js +34 -1
- package/src/vendor/provider-kit/src/list-rows.js +35 -11
- package/src/vendor/provider-kit/src/released.js +14 -1
- package/src/vendor/provider-kit/src/specs.js +4 -2
- package/src/vendor/provider-kit/src/splice.js +64 -0
- package/src/vendor/provider-kit/src/status.js +137 -0
- package/src/vendor/sync-core/index.js +14 -1
- package/src/vendor/sync-core/src/compare.js +17 -5
- package/src/vendor/sync-core/src/normalize.js +50 -7
- package/src/vendor/sync-core/src/push.js +26 -2
- package/src/vendor/sync-core/src/summary.js +257 -0
|
@@ -158,6 +158,16 @@ it happens differs (`/spec` writes the spec in Phase B, `/spec-bug` in its step
|
|
|
158
158
|
|
|
159
159
|
## 1. Establish the base version (the tag)
|
|
160
160
|
|
|
161
|
+
**A release BRANCH instead of a tag.** Where `env.config.json` sets
|
|
162
|
+
`hotfix.releaseBranch` (e.g. `"master"` — a team whose prod is whatever that
|
|
163
|
+
branch holds), there is **no tag to ask for**: skip the questions below and run
|
|
164
|
+
§3's `up` **without `--from`**. The engine fetches, forks from the remote's head
|
|
165
|
+
of that branch, and prints two lines — `fork:` naming the commit, and
|
|
166
|
+
`record: > **Base version:** <branch>@<sha>` — and §5 copies that `record:`
|
|
167
|
+
value into the header **verbatim**. Say which commit it forked from in one line;
|
|
168
|
+
that is the version the fix is built on. The rest of this section is the tag
|
|
169
|
+
flow, unchanged.
|
|
170
|
+
|
|
161
171
|
- **Read the arguments.** `/spec-hotfix <tag> <name>` (e.g.
|
|
162
172
|
`/spec-hotfix v33.16.4 login-crash`). An argument shaped like an issue
|
|
163
173
|
reference — letters, a hyphen, digits (`SKI-123`) —
|
|
@@ -187,6 +197,27 @@ Hotfixes are concrete — confirm, don't over-grill. Establish:
|
|
|
187
197
|
- **Root cause:** read the code **at the base tag** and trace it to `file:line`.
|
|
188
198
|
The fix belongs on the tag's line, so reason about that code, not `main`'s.
|
|
189
199
|
|
|
200
|
+
### Watch for the other doors — incident, bug, or not a defect
|
|
201
|
+
|
|
202
|
+
This is the most specific defect door, so most mis-entries route *down*
|
|
203
|
+
(`.claude/rules/spec-planning.md` carries the full routing matrix):
|
|
204
|
+
|
|
205
|
+
- **Live outage** — the released version is not just wrong but down or
|
|
206
|
+
degraded **right now** → propose **`/spec-incident`**; the record comes
|
|
207
|
+
first, and the fix returns here as a linked hotfix spec.
|
|
208
|
+
- **Not on a released version** — §1 cannot name a deployed tag the defect is
|
|
209
|
+
on (it exists only on `main`, or prod runs something newer that is fine) →
|
|
210
|
+
propose **`/spec-bug`**; a hotfix branch for something `main` can carry is
|
|
211
|
+
waste, not safety.
|
|
212
|
+
- **Not a defect** — the ask is new or changed behaviour, not restoring
|
|
213
|
+
intended behaviour → propose **`/spec`**.
|
|
214
|
+
|
|
215
|
+
**Always confirm; never silently switch** — name the signal in the user's own
|
|
216
|
+
words with a one-line reason; a decline carries this skill on where it was.
|
|
217
|
+
**On a confirmed switch, hand off in-session and carry the context**
|
|
218
|
+
established so far — the symptom, the repro, any version discussion — so the
|
|
219
|
+
destination grills only what it still needs.
|
|
220
|
+
|
|
190
221
|
## 3. Provision the worktree from the tag, then write in it
|
|
191
222
|
|
|
192
223
|
**Provision before you write, not after.** §1 settled the tag and the name and
|
|
@@ -254,6 +285,10 @@ installs `.claude/hooks/main-guard.cjs` that first write is refused outright,
|
|
|
254
285
|
and a step whose documented opening the repo will not perform is not a step. The
|
|
255
286
|
spec is written in the worktree at §5, on the branch it belongs to.
|
|
256
287
|
|
|
288
|
+
**Branch-based (`hotfix.releaseBranch`):** run the same command **without**
|
|
289
|
+
`--from` — the engine picks the release branch's head and prints the
|
|
290
|
+
`record:` line §5 copies. An explicit `--from` still wins over it.
|
|
291
|
+
|
|
257
292
|
**§5 records the same tag you passed to `--from`**, on the spec's
|
|
258
293
|
`> **Base version:**` header. That is not bookkeeping: `/spec-complete` cuts the
|
|
259
294
|
release and carries the fix off the header, so a worktree forked from one ref and
|
|
@@ -292,6 +327,28 @@ you there, so create the folder and write it here. A hotfix
|
|
|
292
327
|
is usually a single-pass fix, so the `## Fix` block can live directly in
|
|
293
328
|
`00-overview.md`. Keep it lean:
|
|
294
329
|
|
|
330
|
+
**Who owns this spec's status.** Only when `specs/.core/azure-boards.config.json` exists.
|
|
331
|
+
Run `skitterspec spec-sync ownership --json` once and read both values:
|
|
332
|
+
|
|
333
|
+
- **`workflowState: "pull"`** — Azure Boards is the record of this spec's status, so
|
|
334
|
+
this skill **writes no `> **Status:**` header and appends no State log row**,
|
|
335
|
+
wherever its steps below say to. A spec this skill creates gets neither: its
|
|
336
|
+
header carries `> **Tracker:** <work item url>` instead, filled in once linking
|
|
337
|
+
has stamped the url, and its body has no `## State log` section. Readiness is
|
|
338
|
+
the spec's own content — a `Draft` is a spec whose **Open questions** is not
|
|
339
|
+
empty — so nothing is lost with the header.
|
|
340
|
+
- **`assignee: "pull"`** — Azure Boards holds who is building it, so this skill
|
|
341
|
+
**writes no `> **Developer:**` line** either.
|
|
342
|
+
- **Anything else** — `push`, `none`, sync reported off, or the command failing
|
|
343
|
+
— is cannot-tell, and the steps below run exactly as written.
|
|
344
|
+
|
|
345
|
+
What `pull` leaves alone: the folder move (a bucket records what the repo did to
|
|
346
|
+
the code, not a planning status), the phase files and index, and the Changelog.
|
|
347
|
+
A reason a `Status:` header would have carried — a cancellation's, a knock-back
|
|
348
|
+
to Draft — goes in a dated Changelog line instead. A spec that already carries
|
|
349
|
+
any of these lines keeps them untouched: they are history, and nothing rewrites
|
|
350
|
+
them.
|
|
351
|
+
|
|
295
352
|
```markdown
|
|
296
353
|
# Hotfix: <short title>
|
|
297
354
|
|
|
@@ -300,7 +357,7 @@ is usually a single-pass fix, so the `## Fix` block can live directly in
|
|
|
300
357
|
> **Status:** In Progress — fixing (red test added)
|
|
301
358
|
> **Author:** <git user.name — who reported/captured it>
|
|
302
359
|
> **Developer:** <git user.name — you, since you're fixing it now>
|
|
303
|
-
> **Base version:** <tag prod is running, e.g. v33.16.4>
|
|
360
|
+
> **Base version:** <tag prod is running, e.g. v33.16.4 — or, branch-based, the `record:` value `up` printed, e.g. master@1a2b3c4d5e6f>
|
|
304
361
|
> **Raised:** <YYYY-MM-DD (today)>
|
|
305
362
|
> **Area:** <files/modules>
|
|
306
363
|
> **Severity:** <Azure's literal values, "1 - Critical" … "4 - Low" — optional;
|
|
@@ -379,7 +436,9 @@ is opted in). If it's absent, skip this entirely — the spec stays local-only a
|
|
|
379
436
|
the skill behaves exactly as above. When present, link the spec you just wrote
|
|
380
437
|
so status and discussion live in Boards while the repo stays the source of
|
|
381
438
|
truth. A spec is a **work item**; each phase is a **child work item**, carrying
|
|
382
|
-
that phase's tasks in its description as a read-only markdown checklist.
|
|
439
|
+
that phase's tasks in its description as a read-only markdown checklist. That is the `spec` description mode;
|
|
440
|
+
under `summary` (a new config's default) the issue and each sub-issue carry
|
|
441
|
+
a short block instead, and the phase's tasks stay in git.
|
|
383
442
|
|
|
384
443
|
**Linking is just the first push**, so it runs the same engine path `/spec-push`
|
|
385
444
|
does — you never create the work item by hand:
|
|
@@ -460,6 +519,12 @@ item is a cosmetic gap that `/spec-claim` closes later.
|
|
|
460
519
|
skitterspec spec-sync assign <spec> --to <id> --name "<display name>"
|
|
461
520
|
```
|
|
462
521
|
|
|
522
|
+
**Where `spec-sync ownership` reports `assignee: pull`**, the work item is the
|
|
523
|
+
record and the spec file is not: add `--if-unassigned`. It writes Azure Boards
|
|
524
|
+
directly, claims the work item only when nobody holds it, and stamps nothing —
|
|
525
|
+
so step 4 has no header to leave alone, since under `pull` no `Developer:`
|
|
526
|
+
line was written.
|
|
527
|
+
|
|
463
528
|
4. **Leave `> **Developer:**` as `git config user.name`** — the step above this
|
|
464
529
|
seam already set it, and this seam must not overwrite it with the tracker's
|
|
465
530
|
display name.
|
|
@@ -481,12 +546,15 @@ item is a cosmetic gap that `/spec-claim` closes later.
|
|
|
481
546
|
|
|
482
547
|
**Nothing is pushed here.** `assign` writes the repo only, and the refresh these
|
|
483
548
|
skills already run sends it. Assignment is an ordinary field of the projection,
|
|
484
|
-
not a side errand with its own network call.
|
|
549
|
+
not a side errand with its own network call. Under `pull` the
|
|
550
|
+
`assign` call is itself the write, so there is nothing for a push to carry.
|
|
485
551
|
|
|
486
552
|
**There is no unassign step anywhere.** The projection derives the assignee from
|
|
487
553
|
the spec's lifecycle bucket, so `/spec-complete` and `/spec-cancel` release the
|
|
488
554
|
work item through the push they already make. The stamp deliberately stays in
|
|
489
|
-
the file: who actioned the work outlives who is currently holding it.
|
|
555
|
+
the file: who actioned the work outlives who is currently holding it. Under `pull`
|
|
556
|
+
the projection carries no assignee at all, so finishing a spec leaves it on
|
|
557
|
+
the work item: the board keeps who did the work.
|
|
490
558
|
|
|
491
559
|
Azure Boards has no project picker: a minted work item lands in the configured
|
|
492
560
|
`azure.project` by construction, decided once in
|
|
@@ -37,6 +37,28 @@ Ask for exactly these, batched, with nothing speculative:
|
|
|
37
37
|
A root cause is **not** grilled: nobody has it yet, and the Timeline is where
|
|
38
38
|
the investigation lands as it happens.
|
|
39
39
|
|
|
40
|
+
### No live outage to record — route to the right door
|
|
41
|
+
|
|
42
|
+
This is the costliest door to enter wrongly — no backlog stop, no review page,
|
|
43
|
+
straight into `specs/in-progress/` — so the grill's own answers are also its
|
|
44
|
+
exit. When items 1 and 2 establish there is **no outage to record** — nothing
|
|
45
|
+
is down or degraded, it never was live, or it is a risk rather than an event —
|
|
46
|
+
propose the right door instead of writing an incident
|
|
47
|
+
(`.claude/rules/spec-planning.md` carries the full routing matrix):
|
|
48
|
+
|
|
49
|
+
- a **defect** → **`/spec-bug`**, or **`/spec-hotfix`** when it is on a
|
|
50
|
+
released version;
|
|
51
|
+
- anything else → **`/spec`**, whose kind proposal picks feature, chore or
|
|
52
|
+
issue from there.
|
|
53
|
+
|
|
54
|
+
**A past outage someone wants a record of stays an incident**: "it is over" is
|
|
55
|
+
not "it never happened" — the signal is *no outage to record*, not *no outage
|
|
56
|
+
now*. This check is the grill's existing questions read honestly, never an
|
|
57
|
+
extra round trip, and the hand-off contract is the same as everywhere else:
|
|
58
|
+
confirm first, naming the signal in the user's own words; a decline carries
|
|
59
|
+
this skill on; on a confirmed switch invoke the destination skill in-session,
|
|
60
|
+
seeded with everything already established.
|
|
61
|
+
|
|
40
62
|
## 2. Write it, in flight
|
|
41
63
|
|
|
42
64
|
Pick a short kebab name prefixed `incident-` (e.g. `incident-api-outage`).
|
|
@@ -50,6 +72,28 @@ this spec. Without isolation, write where you stand.
|
|
|
50
72
|
The spec is a folder in **`specs/in-progress/`** — never backlog — with
|
|
51
73
|
`00-overview.md` and one phase file:
|
|
52
74
|
|
|
75
|
+
**Who owns this spec's status.** Only when `specs/.core/azure-boards.config.json` exists.
|
|
76
|
+
Run `skitterspec spec-sync ownership --json` once and read both values:
|
|
77
|
+
|
|
78
|
+
- **`workflowState: "pull"`** — Azure Boards is the record of this spec's status, so
|
|
79
|
+
this skill **writes no `> **Status:**` header and appends no State log row**,
|
|
80
|
+
wherever its steps below say to. A spec this skill creates gets neither: its
|
|
81
|
+
header carries `> **Tracker:** <work item url>` instead, filled in once linking
|
|
82
|
+
has stamped the url, and its body has no `## State log` section. Readiness is
|
|
83
|
+
the spec's own content — a `Draft` is a spec whose **Open questions** is not
|
|
84
|
+
empty — so nothing is lost with the header.
|
|
85
|
+
- **`assignee: "pull"`** — Azure Boards holds who is building it, so this skill
|
|
86
|
+
**writes no `> **Developer:**` line** either.
|
|
87
|
+
- **Anything else** — `push`, `none`, sync reported off, or the command failing
|
|
88
|
+
— is cannot-tell, and the steps below run exactly as written.
|
|
89
|
+
|
|
90
|
+
What `pull` leaves alone: the folder move (a bucket records what the repo did to
|
|
91
|
+
the code, not a planning status), the phase files and index, and the Changelog.
|
|
92
|
+
A reason a `Status:` header would have carried — a cancellation's, a knock-back
|
|
93
|
+
to Draft — goes in a dated Changelog line instead. A spec that already carries
|
|
94
|
+
any of these lines keeps them untouched: they are history, and nothing rewrites
|
|
95
|
+
them.
|
|
96
|
+
|
|
53
97
|
```markdown
|
|
54
98
|
# Incident: <short title>
|
|
55
99
|
|
|
@@ -194,10 +194,15 @@ once it is over. Without a provider this is a no-op and nothing below changes.
|
|
|
194
194
|
carries an `azure_identifier`. Otherwise skip this step — no config means zero
|
|
195
195
|
change.
|
|
196
196
|
|
|
197
|
-
- **No pull
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
197
|
+
- **No pull — one look at the board, before building.** Nothing is brought
|
|
198
|
+
down. Run `skitterspec spec-sync board <spec>`: it reads Azure Boards and writes nothing to
|
|
199
|
+
the spec, and it is **silent** unless the work item says Done or Cancelled while
|
|
200
|
+
this spec is still in flight. When it prints a line, relay it once as a
|
|
201
|
+
warning — this session holds the branch, so the cleanup it names is the
|
|
202
|
+
operator's to choose — and **carry on with the build**. Never run that
|
|
203
|
+
cleanup and never refuse on it. A status someone moved anywhere else is the
|
|
204
|
+
board doing its job, and the next push sends a state only when the spec
|
|
205
|
+
itself changes bucket.
|
|
201
206
|
- **Refresh the mirror now, without asking.** Run `/spec-push`. The spec has just
|
|
202
207
|
moved to `in-progress` and its phase to `🔄` — both real state changes, and the
|
|
203
208
|
tracker is a generated mirror of them. This holds under **both**
|
|
@@ -213,7 +218,9 @@ change.
|
|
|
213
218
|
`assignee` (it does by default; `"none"` declines it). If the spec records
|
|
214
219
|
nobody and `skitterspec spec-sync whoami --json` answers, stamp it with
|
|
215
220
|
`skitterspec spec-sync assign <spec> --to <id> --name "<name>"` and let the
|
|
216
|
-
push above carry it. If identity is unknown, skip it in silence.
|
|
221
|
+
push above carry it. If identity is unknown, skip it in silence. Where
|
|
222
|
+
`spec-sync ownership` reports `assignee: pull`, add `--if-unassigned`: the
|
|
223
|
+
ticket is the record there, so it is assigned only when nobody holds it.
|
|
217
224
|
**Do not prompt**: an assignment question in the middle of a build is an
|
|
218
225
|
interruption with no deadline, and `/spec-claim` answers it whenever the
|
|
219
226
|
operator likes.
|
|
@@ -20,6 +20,13 @@ own (the child's title and state). This skill computes what changed since the
|
|
|
20
20
|
last push and applies it — it never reads Boards content back or merges. A
|
|
21
21
|
person editing the mirror in Boards will see it overwritten on the next push.
|
|
22
22
|
|
|
23
|
+
**That is `mapping.description: "spec"`.** Under `"summary"` (what a new
|
|
24
|
+
config is written with) the issue and each sub-issue carry a delimited
|
|
25
|
+
**block** instead — summary, acceptance criteria, surfaces, gating and
|
|
26
|
+
progress for the spec; goal and task count for a phase — spliced in beside
|
|
27
|
+
whatever the team wrote in Azure Boards, which is never overwritten. Only the block
|
|
28
|
+
is the repo's, so only an edit inside it is reported.
|
|
29
|
+
|
|
23
30
|
**Opt-in**: only runs when `specs/.core/azure-boards.config.json` exists. If
|
|
24
31
|
absent, tell the user how to enable Azure Boards sync and stop.
|
|
25
32
|
|
|
@@ -142,6 +149,21 @@ configured `azure.project` by construction.
|
|
|
142
149
|
|
|
143
150
|
## 4a. Apply it yourself — the MCP path (order matters)
|
|
144
151
|
|
|
152
|
+
**In summary mode, every body you write is the engine's splice — never the plan's text on its own.**
|
|
153
|
+
Only when the plan's `descriptionMode` is
|
|
154
|
+
`summary` (it is always present; `spec` needs none of this). There
|
|
155
|
+
the plan's `description` and each sub-issue's `goal` are a **block**, and the
|
|
156
|
+
issue's body is the block *plus the team's text around it*. Writing the block
|
|
157
|
+
alone deletes that text. So, for each object you are about to write:
|
|
158
|
+
|
|
159
|
+
1. Save the body Azure Boards holds now to a file — an empty file for one you are
|
|
160
|
+
creating.
|
|
161
|
+
2. `skitterspec spec-sync splice <spec> --live <file>` for the spec issue, or
|
|
162
|
+
`… --phase <ref>` for a phase's sub-issue.
|
|
163
|
+
3. Write **exactly what it prints**. A non-zero exit printed nothing and means
|
|
164
|
+
a delimiter was edited by hand: skip that object's body, write its other
|
|
165
|
+
fields, and name it in the report. Never compose the splice yourself.
|
|
166
|
+
|
|
145
167
|
**First, check whether you are about to overwrite someone.** On the API path
|
|
146
168
|
`apply` does this for itself, off the read-back it already makes. On the MCP
|
|
147
169
|
path nothing has read the item yet, so ask before you write:
|
|
@@ -43,6 +43,11 @@ trust the spec's own wording — verify:
|
|
|
43
43
|
- **Decisions still valid.** Re-check each `## Decisions` entry against the
|
|
44
44
|
current architecture and `.claude/rules/*.md`. Flag any that now conflict with
|
|
45
45
|
how the codebase actually works (a changed convention, a superseded approach).
|
|
46
|
+
- **The ticket-facing pair.** A spec with no `## Summary` or no
|
|
47
|
+
`## Acceptance criteria` is not broken — older specs predate both — but where
|
|
48
|
+
a ticketing provider pushes summaries the ticket falls back to the Problem's
|
|
49
|
+
first paragraph and shows no definition of done. Offer to write the missing
|
|
50
|
+
one(s) in step 3, with a draft; never add them unasked.
|
|
46
51
|
- **New constraints.** Note rules/patterns introduced since the spec was written
|
|
47
52
|
that it must now honour (e.g. a new required field, a new error type, a new
|
|
48
53
|
pattern the rest of the code now follows).
|
|
@@ -96,6 +101,29 @@ resolve it by reading the code, do that instead of asking.
|
|
|
96
101
|
- Add a dated **Changelog** entry summarising the review (e.g. `- <date> —
|
|
97
102
|
Reviewed vs codebase: retargeted Phase 2 onto X, dropped Y (removed), ticked Z
|
|
98
103
|
(already done)`).
|
|
104
|
+
|
|
105
|
+
**Who owns this spec's status.** Only when `specs/.core/azure-boards.config.json` exists.
|
|
106
|
+
Run `skitterspec spec-sync ownership --json` once and read both values:
|
|
107
|
+
|
|
108
|
+
- **`workflowState: "pull"`** — Azure Boards is the record of this spec's status, so
|
|
109
|
+
this skill **writes no `> **Status:**` header and appends no State log row**,
|
|
110
|
+
wherever its steps below say to. A spec this skill creates gets neither: its
|
|
111
|
+
header carries `> **Tracker:** <work item url>` instead, filled in once linking
|
|
112
|
+
has stamped the url, and its body has no `## State log` section. Readiness is
|
|
113
|
+
the spec's own content — a `Draft` is a spec whose **Open questions** is not
|
|
114
|
+
empty — so nothing is lost with the header.
|
|
115
|
+
- **`assignee: "pull"`** — Azure Boards holds who is building it, so this skill
|
|
116
|
+
**writes no `> **Developer:**` line** either.
|
|
117
|
+
- **Anything else** — `push`, `none`, sync reported off, or the command failing
|
|
118
|
+
— is cannot-tell, and the steps below run exactly as written.
|
|
119
|
+
|
|
120
|
+
What `pull` leaves alone: the folder move (a bucket records what the repo did to
|
|
121
|
+
the code, not a planning status), the phase files and index, and the Changelog.
|
|
122
|
+
A reason a `Status:` header would have carried — a cancellation's, a knock-back
|
|
123
|
+
to Draft — goes in a dated Changelog line instead. A spec that already carries
|
|
124
|
+
any of these lines keeps them untouched: they are history, and nothing rewrites
|
|
125
|
+
them.
|
|
126
|
+
|
|
99
127
|
- **Status:** if drift is minor, leave status as-is. If a `Ready` spec needs real
|
|
100
128
|
re-grooming, knock it back to `Draft` (set `> **Status:** Draft` and append a
|
|
101
129
|
**State log** row).
|
|
@@ -119,6 +147,10 @@ PAT is set (see `apply.transport` in `azure-boards.config.md`).
|
|
|
119
147
|
complete/cancelled/reviewed in the repo regardless; the mirror is disposable
|
|
120
148
|
and the next push repairs it. Do not roll anything back, and do not stop to
|
|
121
149
|
ask.
|
|
150
|
+
- **In `/spec-complete`'s PR mode this push belongs to run 2.** Run 1 readies
|
|
151
|
+
a PR, and a ready PR is not a merged one — so skip it on run 1, even where
|
|
152
|
+
the `branch` lane committed the move to ride the PR, and run it on run 2 once
|
|
153
|
+
the host has merged. The tracker's Done lands when the work does.
|
|
122
154
|
- **Say what happened** in the skill's report: mirror updated, skipped as
|
|
123
155
|
unlinked, or failed with the reason.
|
|
124
156
|
- **There is no unassign step here.** The projection derives the assignee from
|
|
@@ -152,6 +152,14 @@ render says so. On **`--plan`** this step does not run at all.
|
|
|
152
152
|
1. **Provision.** Run `skitterspec spec-env up <name>` — a planner, so run the
|
|
153
153
|
`to provision, run:` commands it prints and confirm they succeeded.
|
|
154
154
|
|
|
155
|
+
**Under a rolling base** (`baseBranchPattern`) `up` fetches first, and where
|
|
156
|
+
the primary checkout is not on the newest release candidate the plan says
|
|
157
|
+
`fork: <base> (the base — the primary checkout is on <old>)` and forks from
|
|
158
|
+
it. Relay that line in the `Branch` row. A refusal naming
|
|
159
|
+
`no branch matches <pattern>` means no release candidate is visible —
|
|
160
|
+
usually not fetched: relay it, stop with `⏸`, and name
|
|
161
|
+
`skitterspec spec-env base` (it fetches and lists) as the next step.
|
|
162
|
+
|
|
155
163
|
2. **Trust the worktree.** `spec-env up` wrote the printed `trusted:` root into
|
|
156
164
|
`.claude/settings.local.json`, but that file does not hot-reload in this
|
|
157
165
|
session — run **`/add-dir <trusted root>`** before editing into the worktree,
|
|
@@ -255,6 +263,29 @@ branch is already here.
|
|
|
255
263
|
|
|
256
264
|
- `git mv "specs/backlog/<name>" "specs/in-progress/<name>"` if it isn't there
|
|
257
265
|
already (`mkdir -p specs/in-progress` first). Use `git mv` to keep history.
|
|
266
|
+
|
|
267
|
+
**Who owns this spec's status.** Only when `specs/.core/azure-boards.config.json` exists.
|
|
268
|
+
Run `skitterspec spec-sync ownership --json` once and read both values:
|
|
269
|
+
|
|
270
|
+
- **`workflowState: "pull"`** — Azure Boards is the record of this spec's status, so
|
|
271
|
+
this skill **writes no `> **Status:**` header and appends no State log row**,
|
|
272
|
+
wherever its steps below say to. A spec this skill creates gets neither: its
|
|
273
|
+
header carries `> **Tracker:** <work item url>` instead, filled in once linking
|
|
274
|
+
has stamped the url, and its body has no `## State log` section. Readiness is
|
|
275
|
+
the spec's own content — a `Draft` is a spec whose **Open questions** is not
|
|
276
|
+
empty — so nothing is lost with the header.
|
|
277
|
+
- **`assignee: "pull"`** — Azure Boards holds who is building it, so this skill
|
|
278
|
+
**writes no `> **Developer:**` line** either.
|
|
279
|
+
- **Anything else** — `push`, `none`, sync reported off, or the command failing
|
|
280
|
+
— is cannot-tell, and the steps below run exactly as written.
|
|
281
|
+
|
|
282
|
+
What `pull` leaves alone: the folder move (a bucket records what the repo did to
|
|
283
|
+
the code, not a planning status), the phase files and index, and the Changelog.
|
|
284
|
+
A reason a `Status:` header would have carried — a cancellation's, a knock-back
|
|
285
|
+
to Draft — goes in a dated Changelog line instead. A spec that already carries
|
|
286
|
+
any of these lines keeps them untouched: they are history, and nothing rewrites
|
|
287
|
+
them.
|
|
288
|
+
|
|
258
289
|
- Set the **Status** header: `> **Status:** In Progress — Phase 1 (started <YYYY-MM-DD>)`.
|
|
259
290
|
- Set **Developer** if it is still `—` (`git config user.name`).
|
|
260
291
|
|
|
@@ -294,6 +325,12 @@ item is a cosmetic gap that `/spec-claim` closes later.
|
|
|
294
325
|
skitterspec spec-sync assign <spec> --to <id> --name "<display name>"
|
|
295
326
|
```
|
|
296
327
|
|
|
328
|
+
**Where `spec-sync ownership` reports `assignee: pull`**, the work item is the
|
|
329
|
+
record and the spec file is not: add `--if-unassigned`. It writes Azure Boards
|
|
330
|
+
directly, claims the work item only when nobody holds it, and stamps nothing —
|
|
331
|
+
so step 4 has no header to leave alone, since under `pull` no `Developer:`
|
|
332
|
+
line was written.
|
|
333
|
+
|
|
297
334
|
4. **Leave `> **Developer:**` as `git config user.name`** — the step above this
|
|
298
335
|
seam already set it, and this seam must not overwrite it with the tracker's
|
|
299
336
|
display name.
|
|
@@ -315,12 +352,15 @@ item is a cosmetic gap that `/spec-claim` closes later.
|
|
|
315
352
|
|
|
316
353
|
**Nothing is pushed here.** `assign` writes the repo only, and the refresh these
|
|
317
354
|
skills already run sends it. Assignment is an ordinary field of the projection,
|
|
318
|
-
not a side errand with its own network call.
|
|
355
|
+
not a side errand with its own network call. Under `pull` the
|
|
356
|
+
`assign` call is itself the write, so there is nothing for a push to carry.
|
|
319
357
|
|
|
320
358
|
**There is no unassign step anywhere.** The projection derives the assignee from
|
|
321
359
|
the spec's lifecycle bucket, so `/spec-complete` and `/spec-cancel` release the
|
|
322
360
|
work item through the push they already make. The stamp deliberately stays in
|
|
323
|
-
the file: who actioned the work outlives who is currently holding it.
|
|
361
|
+
the file: who actioned the work outlives who is currently holding it. Under `pull`
|
|
362
|
+
the projection carries no assignee at all, so finishing a spec leaves it on
|
|
363
|
+
the work item: the board keeps who did the work.
|
|
324
364
|
|
|
325
365
|
- Append a **State log** row: `| <YYYY-MM-DD> | In Progress | in-progress | <git user.name> |`.
|
|
326
366
|
|
|
@@ -329,6 +369,12 @@ overview carries an `azure_identifier`. Either missing → **skip**, in one line
|
|
|
329
369
|
(`not linked to Azure Boards — /spec-push to mirror it`), and carry on. Nothing
|
|
330
370
|
else in this step changes.
|
|
331
371
|
|
|
372
|
+
**Ask the board first.** Run `skitterspec spec-sync board <spec>`. It is silent
|
|
373
|
+
unless Azure Boards already says Done or Cancelled for this work item; when it prints a
|
|
374
|
+
line, relay it once as a warning and **carry on** — you are the one about to hold
|
|
375
|
+
this branch, so the cleanup it names is yours to choose, and nothing here runs it
|
|
376
|
+
or refuses on it.
|
|
377
|
+
|
|
332
378
|
**Refresh the mirror now, without asking.** Run `/spec-push`. The spec has just
|
|
333
379
|
moved to `in-progress/` and been stamped with a developer — two real state
|
|
334
380
|
changes, and the tracker is a generated mirror of them. It costs one engine
|
|
@@ -398,7 +444,8 @@ destroyed: that skill relays the refusal and offers both ways out. Nothing to do
|
|
|
398
444
|
here beyond knowing it is no longer dead code.
|
|
399
445
|
|
|
400
446
|
A spec ideally arrives `Ready` from `/spec`; a `Draft` works too — sanity-check
|
|
401
|
-
it is well-formed first.
|
|
447
|
+
it is well-formed first. Where the spec keeps no `Status:` header (the tracker
|
|
448
|
+
owns its status), a non-empty **Open questions** section is what marks a Draft.
|
|
402
449
|
|
|
403
450
|
- **Report anything left waiting, and claim none of it.** Ask the engine once:
|
|
404
451
|
|
|
@@ -19,9 +19,12 @@ Read-only. Reports two things and writes nothing:
|
|
|
19
19
|
since the last push? The next push replaces it, so this is worth reading
|
|
20
20
|
first.
|
|
21
21
|
|
|
22
|
-
**Status is not compared
|
|
23
|
-
own transitions and
|
|
24
|
-
theirs to have moved, and push resends State only when the spec itself
|
|
22
|
+
**Status is not compared — with one exception.** Skitterspec tells Azure about
|
|
23
|
+
its own transitions and does not mirror a status back: a card someone moved by
|
|
24
|
+
hand is theirs to have moved, and push resends State only when the spec itself
|
|
25
|
+
changes bucket. The exception is the one difference the repo can act on — the
|
|
26
|
+
work item says Done or Cancelled while the spec is still in flight — which §3c
|
|
27
|
+
asks about, and reports without acting.
|
|
25
28
|
|
|
26
29
|
The repo is the source of truth; Boards is a generated mirror, so there is no
|
|
27
30
|
per-field "conflict" — only "what would the next push send" and "did someone
|
|
@@ -80,6 +83,18 @@ provider does not yet. Say so, name both places, and stop. Do not attempt the
|
|
|
80
83
|
rewrite by hand — the identifiers live in frontmatter, snapshot filenames and
|
|
81
84
|
the ids inside those snapshots, and a hand edit misses some.
|
|
82
85
|
|
|
86
|
+
## 3c. Has the board finished it?
|
|
87
|
+
|
|
88
|
+
```
|
|
89
|
+
skitterspec spec-sync board <spec>
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
Silent unless Azure Boards says Done or Cancelled while this spec is in `backlog` or
|
|
93
|
+
`in-progress`; then one line naming the cleanup (`/spec-complete` or
|
|
94
|
+
`/spec-cancel`). Relay that line as it is.
|
|
95
|
+
**Report it; never offer or run the cleanup** — this skill is read-only, and
|
|
96
|
+
the branch may be someone else's to close. Silence, an unlinked spec and an unreadable work item all say nothing.
|
|
97
|
+
|
|
83
98
|
## 4. Report
|
|
84
99
|
|
|
85
100
|
Relay the engine's output **verbatim, above the block** — it is the answer, and
|
|
@@ -47,6 +47,7 @@ bare `spec-sync …` as if the user could type it.
|
|
|
47
47
|
| "what shipped in this release?", "which tickets does CI mark deployed?" | `released` — `--json` for a script; recording deploys is the project's own |
|
|
48
48
|
| "is any of this wired up?", "why isn't sync working?" | `doctor` — scaffold, isolation, tracker and credentials in one |
|
|
49
49
|
| "set my Azure PAT", "am I authenticated?" | `credentials <status\|set\|unset>` |
|
|
50
|
+
| "did someone close this on the board?", "is Azure Boards ahead of the repo?" | `board <spec>` — silent unless Azure Boards says Done/Cancelled where the spec is not; relay its cleanup, never run it |
|
|
50
51
|
| push one spec, or "what would push?" | **defer** — see below |
|
|
51
52
|
|
|
52
53
|
The Linear provider's `retarget`, `reattach` and `sanitise` are
|
|
@@ -28,6 +28,11 @@ fast-forward leaves `base == branch`, the operation is
|
|
|
28
28
|
**idempotent and repeatable**: new commits put the branch ahead of base again,
|
|
29
29
|
and you can run `/spec-to-main` as many times as you like.
|
|
30
30
|
|
|
31
|
+
**In PR mode** (`land.strategy: "pr"` in `env.config.json`) the destination is
|
|
32
|
+
the host, not the local base: this skill becomes *push the branch and open or
|
|
33
|
+
update the DRAFT pull request* — same intent (get the work into CI / the shared
|
|
34
|
+
env), new transport. §4b replaces §4 there; everything else holds unchanged.
|
|
35
|
+
|
|
31
36
|
## 0. Preconditions — when this applies
|
|
32
37
|
|
|
33
38
|
- **Isolation must be on** (`specs/.core/env.config.json` exists **and** the spec
|
|
@@ -87,6 +92,19 @@ nothing else.
|
|
|
87
92
|
On a **no-op** ("already landed on `<base>` — nothing to integrate"), just say so
|
|
88
93
|
and continue — the branch has no commits base doesn't already have.
|
|
89
94
|
|
|
95
|
+
**Under a rolling base** (`baseBranchPattern` in `env.config.json`) the plan
|
|
96
|
+
can carry two more things, and both are the engine's to say:
|
|
97
|
+
- a `git -C <mainRepoPath> switch <base>` (or `switch -c … --track`) **first**,
|
|
98
|
+
when the primary checkout still has an older release candidate out — run it
|
|
99
|
+
in order with the rest;
|
|
100
|
+
- a `retarget: forked from <old> · landing onto <new>` line, when the rc
|
|
101
|
+
rolled while this spec was in flight. It is the land working, not a fault:
|
|
102
|
+
relay it verbatim in the `Landed` row so the reader sees where the work went.
|
|
103
|
+
|
|
104
|
+
A refusal naming `no branch matches <pattern>` means no release candidate is
|
|
105
|
+
visible — usually not fetched. Relay it, stop with `⏸`, and name
|
|
106
|
+
`skitterspec spec-env base` (it fetches and lists) as the next step.
|
|
107
|
+
|
|
90
108
|
**Then run the after-land commands.** Where the plan ends with a
|
|
91
109
|
`then, in the primary checkout (<path>), run:` section — the project's
|
|
92
110
|
`afterLand`, such as a data migration — run those commands in that directory,
|
|
@@ -99,6 +117,28 @@ land made elsewhere leaves them pending here.
|
|
|
99
117
|
that failed and the ones that did not run, and it **never undoes the land**.
|
|
100
118
|
No section, nothing to run, and nothing to say about it.
|
|
101
119
|
|
|
120
|
+
## 4b. PR mode — push the branch, keep the PR a draft
|
|
121
|
+
|
|
122
|
+
When the plan's heading reads `(pr)`, run
|
|
123
|
+
`skitterspec spec-env integrate <name> --draft` instead and run what it prints:
|
|
124
|
+
a fetch, a rebase onto `<remote>/<base>`, and — this is the consent gate — the
|
|
125
|
+
push and PR-create under its own `with your consent` section.
|
|
126
|
+
**Ask before pushing**: ask once, plainly, naming the remote and that the PR
|
|
127
|
+
opens as a draft. On a yes, re-run with `--push` added and run the single printed list; on
|
|
128
|
+
a no, relay the held commands and stop — the work is rebased and ready, and the
|
|
129
|
+
user can push it themselves.
|
|
130
|
+
|
|
131
|
+
- **The draft is the point.** A draft cannot be merged and the tracker's
|
|
132
|
+
automations read it as in-progress, so nothing downstream can close the
|
|
133
|
+
ticket early. `/spec-complete` is what flips it to ready.
|
|
134
|
+
- A `pr:` line saying the PR is already open means the push updates it —
|
|
135
|
+
nothing more to create, and that is the repeatable case.
|
|
136
|
+
- **No after-land commands run here.** The plan defers them ("after-land
|
|
137
|
+
commands are deferred: base moves when the host merges") — the completion run
|
|
138
|
+
that follows the merge owns them. §5's re-test on base does not apply either:
|
|
139
|
+
base has not moved; CI on the PR is the check this land exists for.
|
|
140
|
+
- A **rebase conflict** aborts and stops exactly as §4.
|
|
141
|
+
|
|
102
142
|
## 5. Re-test on base, then report
|
|
103
143
|
|
|
104
144
|
- Run the project's test command **from the primary checkout** — base must be
|
|
@@ -111,7 +151,9 @@ No section, nothing to run, and nothing to say about it.
|
|
|
111
151
|
to Complete, `git mv` the spec, or tear down the worktree/stack.
|
|
112
152
|
**The spec stays `In Progress` and the worktree stays put.**
|
|
113
153
|
- It **never pushes** — say the user can `git push` the base branch themselves to
|
|
114
|
-
trigger CI / the shared env.
|
|
154
|
+
trigger CI / the shared env. (PR mode is not an exception to the stance but to
|
|
155
|
+
the mechanics: there the push *is* the land, and it runs only behind §4b's
|
|
156
|
+
explicit consent — never silently.)
|
|
115
157
|
- `Next` points the way forward: `/spec-next` to continue the remaining phases
|
|
116
158
|
(you'll keep committing on the same branch and can `/spec-to-main` again), and
|
|
117
159
|
`/spec-complete` when every phase is genuinely done — it will land the final
|
|
@@ -135,6 +177,10 @@ the shape; this section carries only what is specific here.
|
|
|
135
177
|
skipped because the land matched no `when` — or the one that failed and the ones that did not run. Nothing about it when none are
|
|
136
178
|
configured.
|
|
137
179
|
|
|
180
|
+
`Landed` in PR mode names the host, not the base: `PR #14 (draft) opened` or
|
|
181
|
+
`PR #14 (draft) updated` — and `held — not pushed` when §4b's consent was
|
|
182
|
+
declined, because an unpushed rebase is a true outcome, not a failure.
|
|
183
|
+
|
|
138
184
|
**No `Spec` field, deliberately.** This skill changes no status and moves no
|
|
139
185
|
folder, and a `Spec` line here would read as though it had. The spec stays
|
|
140
186
|
`In Progress` and the worktree stays standing — if that needs saying, the
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skitterbyte/skitterspec-azure-boards",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0",
|
|
4
4
|
"description": "Spec-driven development for Claude Code, with one-way Azure Boards sync — a superset of @skitterbyte/skitterspec: the base filesystem workflow plus /spec-status · /spec-push · /spec-claim and the spec-sync CLI, mirroring specs to Azure DevOps work items with parent/child hierarchy, assignment and a release work item per tag. The repo is canonical; Boards is a generated mirror. Install this OR the base OR one other superset — exactly one.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"claude",
|