@skitterbyte/skitterspec-azure-boards 2.12.0 → 2.13.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.
@@ -20,6 +20,7 @@ env-var NAMES — never a credential. Credentials live in the user-level store
20
20
  | `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 |
21
21
  | `statesByType.<type>.<bucket>` | Per-TYPE override laid over `states` — `{ "Issue": { "complete": "Closed" }, "Incident": { "backlog": null, "complete": "Closed" } }`. A bucket set to `null` sends no state; a bucket the entry lacks falls through. Validation checks each configured type's effective states against that type's own list, before the first write. | `{}` |
22
22
  | `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"]` / `[]` |
23
+ | `intake.ideaTag` | The tag that marks a work item as an idea (`/spec-idea`). Ideas are created with no area path. | `"idea"` |
23
24
  | `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"]` / `[]` |
24
25
  | `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` |
25
26
  | `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+"`). | `[]` |
@@ -12,6 +12,7 @@ and lifecycle stay consistent. Each sets a status on the spec header
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
  | `/spec-incident` | (Incident) Capture a live outage as a record written during it — grill, write in flight, fixes as separate linked specs | `In Progress` | `specs/in-progress/` |
14
14
  | `/no-spec` | Work that genuinely has no spec — its own branch, worktree, page and land. Writes no spec and moves nothing through the lifecycle | `—` | (none) |
15
+ | `/spec-idea` | Capture an idea without specing it — in the tracker when the provider holds ideas, else `specs/ideas.md` on the base branch; bare lists, `--drop` discards. `/spec idea:<id>` or `/spec #N` promotes one | `—` | (none) |
15
16
  | `/spec-review` | Re-validate a spec against the codebase; refresh stale parts | `—` | (unchanged) |
16
17
  | `/spec-start` | Put a spec in flight — provision its branch, then build phase 1 | `In Progress` | `specs/in-progress/` |
17
18
  | `/spec-next` | Build the next phase of the spec this session is in (re-run per phase) | `In Progress` (unchanged) | (unchanged) |
@@ -74,6 +75,17 @@ branch. Beneath it, `skitterspec spec-env nospec <name>` records the branch —
74
75
  and that record is what makes a name with nothing under `specs/**` resolvable by
75
76
  `review`, `integrate`, `down` and a bare `resolve`.
76
77
 
78
+ **`/spec-idea` is the door before `/spec`.** `/spec` grills until there is a
79
+ spec, which is right for work and wrong for a passing thought. This skill files
80
+ the thought as it stands, somewhere the team can see. An idea is not a spec,
81
+ so it has no folder, no status and no branch. It lives in the tracker when the
82
+ provider can hold ideas (an issue kept off the board, which `/spec #N` already
83
+ adopts), and otherwise in `specs/ideas.md`. That file is committed straight
84
+ onto the base branch by `skitterspec idea`, using plumbing, so no checkout is
85
+ switched or left dirty, and it is never pushed for you. A configured provider
86
+ that does not declare an idea store is cannot-tell: capture refuses and hands
87
+ the text back, rather than putting one idea in each store.
88
+
77
89
  **`/spec-tada` reads, and moves nothing.** It is in the table because it
78
90
  reports in the unit the table is about — a spec — but it changes no status,
79
91
  writes no file and commits nothing. `skitterspec tada` reads Claude Code's own
@@ -150,6 +150,36 @@ it happens differs (`/spec` writes the spec in Phase B, `/spec-bug` in its step
150
150
  is the answer, and the other half is the spec's own **Problem** (or
151
151
  **Symptom**) section quoting the reporter.
152
152
 
153
+ ## Phase 0b — start from an idea (only when asked)
154
+
155
+ **Only when the invocation names an idea** with `idea:<id>`, a handle that
156
+ `/spec-idea` lists for an idea kept in `specs/ideas.md`. An idea kept in the
157
+ tracker is an ordinary issue, so `/spec #N` adopts it through Phase 0 above,
158
+ and nothing here applies to it.
159
+
160
+ 1. **Read it.** Run `skitterspec idea list --json` and find the entry whose
161
+ `id` matches. If none does, **stop** and say so: an id that matches nothing
162
+ is never stood in for by the nearest one.
163
+ 2. **Seed, don't skip, the grill.** The idea's title becomes the working spec
164
+ title, and its body becomes the starting material for **Problem**. Quote it
165
+ rather than paraphrasing it away. An idea is a thought, not a groomed
166
+ requirement, so grill it as hard as anything else.
167
+ 3. **Retire it once the spec exists — never before.** The idea is dropped
168
+ after the spec reaches somewhere it can be found. With isolation, that is
169
+ once a committing verdict has committed it (and landed it, under
170
+ `"trunk"`). Without isolation, it is once the spec is written. Run:
171
+
172
+ ```
173
+ skitterspec idea drop <id> --reason "promoted to <spec-name>"
174
+ ```
175
+
176
+ It commits onto the base branch by itself, so it needs no pathspec and has
177
+ no part in the spec's own commit. A drop that is refused leaves the idea
178
+ listed. Say so in `Notes` and carry on: a stale idea is a nuisance, but a
179
+ lost one is the failure this exists to prevent.
180
+ **A run that writes no spec drops nothing** — a `⏸` grill and a
181
+ `discuss` verdict both leave the idea where it was.
182
+
153
183
  ## Phase A — reach a clear shared understanding (grill first)
154
184
 
155
185
  Interview the user until requirement AND proposed solution are unambiguous. Do
@@ -97,10 +97,20 @@ PAT is set (see `apply.transport` in `azure-boards.config.md`).
97
97
  complete/cancelled/reviewed in the repo regardless; the mirror is disposable
98
98
  and the next push repairs it. Do not roll anything back, and do not stop to
99
99
  ask.
100
- - **In `/spec-complete`'s PR mode this push belongs to run 2.** Run 1 readies
101
- a PR, and a ready PR is not a merged one — so skip it on run 1, even where
102
- the `branch` lane committed the move to ride the PR, and run it on run 2 once
103
- the host has merged. The tracker's Done lands when the work does.
100
+ - **In `/spec-complete`'s PR mode the Done waits for run 2.** Run 1 readies a
101
+ PR, and a ready PR is not a merged one. Which run pushes depends on the
102
+ `land.specDocs` lane:
103
+ - **`trunk`** — skip it on run 1. Run 2 moves the spec on base, so it pushes
104
+ there in this step's usual place, before its own commit.
105
+ - **`branch`** — run 1 commits the move to ride the PR, so push **here**,
106
+ holding the state: `spec-sync apply <spec> --plan <file> --hold-state`.
107
+ Everything but the Done goes now, and the snapshot is written as if the
108
+ Done had gone too, so it rides the PR. Run 2 sends it once the host has
109
+ merged: `spec-sync apply <spec> --send-held`, which needs no plan and
110
+ leaves the snapshot untouched. Over MCP, apply by hand and end run 1 with
111
+ `spec-sync record <spec> --held`.
112
+
113
+ The tracker's Done lands when the work does.
104
114
  - **Say what happened** in the skill's report: mirror updated, skipped as
105
115
  unlinked, or failed with the reason.
106
116
  - **There is no unassign step here.** The projection derives the assignee from
@@ -120,6 +130,14 @@ In `/spec-complete` and `/spec-cancel` this step is deliberately pinned
120
130
  snapshot under `specs/.core/`. Push after the commit instead and both are left
121
131
  uncommitted, which makes `spec-env integrate` refuse to land the branch.
122
132
 
133
+ **PR mode keeps both halves by splitting the push across the runs.** In the
134
+ `branch` lane the commit happens in run 1, and run 2 only has the base branch,
135
+ where nothing is left to commit a snapshot to. An unsplit push there left a
136
+ modified snapshot on base after every completion. `--hold-state` writes run 2's
137
+ snapshot in run 1, and `--send-held` then moves only the state. If it says
138
+ nothing was held (a run 1 from before this), it sends the whole plan and names
139
+ the snapshot it leaves modified. Relay that line.
140
+
123
141
  The snapshot is reached **by name**, not by breadth. It is a declared
124
142
  `spec.companionPaths` entry (`specs/.core/azure-base/{identifier}.base.json`),
125
143
  so `spec-env stage` returns it among this spec's owned paths and the commit below
@@ -178,10 +178,20 @@ PAT is set (see `apply.transport` in `azure-boards.config.md`).
178
178
  complete/cancelled/reviewed in the repo regardless; the mirror is disposable
179
179
  and the next push repairs it. Do not roll anything back, and do not stop to
180
180
  ask.
181
- - **In `/spec-complete`'s PR mode this push belongs to run 2.** Run 1 readies
182
- a PR, and a ready PR is not a merged one — so skip it on run 1, even where
183
- the `branch` lane committed the move to ride the PR, and run it on run 2 once
184
- the host has merged. The tracker's Done lands when the work does.
181
+ - **In `/spec-complete`'s PR mode the Done waits for run 2.** Run 1 readies a
182
+ PR, and a ready PR is not a merged one. Which run pushes depends on the
183
+ `land.specDocs` lane:
184
+ - **`trunk`** — skip it on run 1. Run 2 moves the spec on base, so it pushes
185
+ there in this step's usual place, before its own commit.
186
+ - **`branch`** — run 1 commits the move to ride the PR, so push **here**,
187
+ holding the state: `spec-sync apply <spec> --plan <file> --hold-state`.
188
+ Everything but the Done goes now, and the snapshot is written as if the
189
+ Done had gone too, so it rides the PR. Run 2 sends it once the host has
190
+ merged: `spec-sync apply <spec> --send-held`, which needs no plan and
191
+ leaves the snapshot untouched. Over MCP, apply by hand and end run 1 with
192
+ `spec-sync record <spec> --held`.
193
+
194
+ The tracker's Done lands when the work does.
185
195
  - **Say what happened** in the skill's report: mirror updated, skipped as
186
196
  unlinked, or failed with the reason.
187
197
  - **There is no unassign step here.** The projection derives the assignee from
@@ -201,6 +211,14 @@ In `/spec-complete` and `/spec-cancel` this step is deliberately pinned
201
211
  snapshot under `specs/.core/`. Push after the commit instead and both are left
202
212
  uncommitted, which makes `spec-env integrate` refuse to land the branch.
203
213
 
214
+ **PR mode keeps both halves by splitting the push across the runs.** In the
215
+ `branch` lane the commit happens in run 1, and run 2 only has the base branch,
216
+ where nothing is left to commit a snapshot to. An unsplit push there left a
217
+ modified snapshot on base after every completion. `--hold-state` writes run 2's
218
+ snapshot in run 1, and `--send-held` then moves only the state. If it says
219
+ nothing was held (a run 1 from before this), it sends the whole plan and names
220
+ the snapshot it leaves modified. Relay that line.
221
+
204
222
  The snapshot is reached **by name**, not by breadth. It is a declared
205
223
  `spec.companionPaths` entry (`specs/.core/azure-base/{identifier}.base.json`),
206
224
  so `spec-env stage` returns it among this spec's owned paths and the commit below
@@ -475,6 +493,10 @@ person happens before the ready, in this order:
475
493
  — run 2 moves it on base after the merge; under `branch` commit the move on
476
494
  the branch *before* step 3 so it rides the PR. Either way
477
495
  **the tracker's Done waits for run 2**: a ready PR is not a merged one.
496
+ Under `branch` the §4 tracker step still runs here, but holding the state
497
+ (`--hold-state`, as the step says), so the snapshot run 2 would write is in
498
+ the commit that rides the PR. Otherwise run 2 leaves it modified on the base
499
+ branch, where nothing is left to commit it to.
478
500
  5. **Stop, keeping the worktree.** Report
479
501
  `Landed: PR #N opened — finish after merge` (or `ready`), spec
480
502
  `In Progress`, worktree standing. No afterLand runs — the plan deferred it
@@ -484,13 +506,19 @@ person happens before the ready, in this order:
484
506
  **Run 2 — after the host merges.** `integrate` recognises the landed branch
485
507
  (ancestry or the host's answer) and prints the finish: catch local base up and
486
508
  the deferred `afterLand` with the land's own range. Run those, then do what run
487
- 1 deferred — the §4 move (trunk lane) with its State log row and commit, the
488
- §5 report — then **§7 teardown runs as normal**:
509
+ 1 deferred — the §4 move (trunk lane) with its State log row and commit, or
510
+ under `branch` the held state alone (`--send-held`, which writes nothing to the
511
+ tree), the §5 report — then **§7 teardown runs as normal**:
489
512
  a host-merged branch counts as landed (squash and rebase
490
513
  merges included), and a host that auto-deleted the branch makes the remote
491
514
  delete an already-gone no-op, never a failure. Re-test on base before calling
492
515
  it done, exactly as 6-feature/bug step 4.
493
516
 
517
+ Where `--send-held` reports that nothing was held — a run 1 from before the
518
+ hold existed — it has sent the whole plan, and its line names the snapshot it
519
+ left modified on base. Put that in the report's `Notes`: only the operator can
520
+ choose where that file goes.
521
+
494
522
  ## 7. Tear down the environment (opt-in, only if configured)
495
523
 
496
524
  **A hotfix is torn down later, by `hotfix finish`.**
@@ -0,0 +1,115 @@
1
+ ---
2
+ name: spec-idea
3
+ description: Capture an idea for a future spec without specing it — one step, no grilling — somewhere the team can see it (the tracker when a provider holds ideas, else specs/ideas.md on the base branch). Bare, it lists the ideas waiting; --drop discards one. Use when the user says "/spec-idea", "note this idea", "park this for later", "add to the ideas list", "what ideas do we have", or wants to get a thought down without writing a spec.
4
+ ---
5
+
6
+ # /spec-idea — capture now, spec later
7
+
8
+ > Stay silent while this runs — speak only to ask something you cannot answer
9
+ > yourself, or to report a failure at the moment it happens. Read
10
+ > `.claude/rules/spec-reports.md` before reporting; it defines the block this
11
+ > skill ends with.
12
+
13
+ `/spec` grills until there is a spec. That is right for work and wrong for a
14
+ passing thought, which then gets specced too early or not written down at all.
15
+ This skill is the other door: it files the thought as it stands, and the grill
16
+ happens later, when someone promotes it with `/spec`.
17
+
18
+ **The engine decides where an idea lives — never you.** `skitterspec idea`
19
+ uses the tracker when the installed provider holds ideas (an issue kept off the
20
+ board), and `specs/ideas.md` on the base branch when there is no provider or
21
+ the provider says it cannot. A configured provider that says nothing is
22
+ cannot-tell, and the engine refuses rather than splitting ideas across two
23
+ stores. Relay what it decided; do not second-guess it.
24
+
25
+ ## 1. Pick the mode from the arguments
26
+
27
+ | Invocation | Mode |
28
+ |------------|------|
29
+ | `/spec-idea <text>` | capture |
30
+ | `/spec-idea` (bare), "what ideas do we have" | list |
31
+ | `/spec-idea --drop <ref> [reason]` | drop |
32
+
33
+ ## 2. Capture
34
+
35
+ **Ask nothing by default.** Getting the thought out of someone's head is the
36
+ whole point, and every question is a reason not to bother.
37
+
38
+ **One judgement, made once.** Read the text. If it is asking for design rather
39
+ than recording a thought — questions addressed to you, "suggestions welcome",
40
+ several alternatives left open for someone to weigh — it wants the grill now.
41
+ Offer the choice once, with a picker:
42
+
43
+ - **Grill it now with `/spec`.** Invoke `/spec` and seed it with the text. The
44
+ idea is not filed, because the spec will record it.
45
+ - **File it as an idea.** File it exactly as typed.
46
+
47
+ A short or rough thought is not a design question. When in doubt, file it: an
48
+ idea can always be promoted, but a grill that nobody asked for is the cost this
49
+ skill exists to remove.
50
+
51
+ To file it, pass the text as **one argument**, newlines included. The first
52
+ line becomes the title and the rest becomes the body:
53
+
54
+ ```
55
+ skitterspec idea add "<text>" --json
56
+ ```
57
+
58
+ **Never push.** On the file store the engine commits onto the base branch and
59
+ prints the push instead of running it, because a push publishes the base
60
+ branch and that is always the operator's call.
61
+
62
+ **A refused capture loses nothing.** The engine prints the text back. Put it in
63
+ the `Why` row verbatim so the user can copy it.
64
+
65
+ ## 3. List
66
+
67
+ ```
68
+ skitterspec idea list
69
+ ```
70
+
71
+ Relay the ideas as a table in the body of the message, one row per idea:
72
+ title, date, and the handle that promotes it. That is `/spec idea:<id>` for a
73
+ file idea, and `/spec #N` (or the provider's own reference) for a tracker idea.
74
+ An empty list is an answer, so say it is empty.
75
+
76
+ ## 4. Drop
77
+
78
+ ```
79
+ skitterspec idea drop <ref> --reason "<reason>"
80
+ ```
81
+
82
+ Pass the reason when one was given. **Do not ask for one** — dropping a
83
+ thought should cost no more than having it. On the tracker the idea is closed
84
+ as not planned. In the file the entry is removed and the reason goes in the
85
+ commit, where git keeps it.
86
+
87
+ ## Promotion is `/spec`'s, not this skill's
88
+
89
+ `/spec idea:<id>` or `/spec #N` turns an idea into a spec. It seeds the grill
90
+ from the idea and retires the idea once the spec exists. This skill never
91
+ writes a spec.
92
+
93
+ ## Report
94
+
95
+ End with the block defined in `.claude/rules/spec-reports.md`. That file carries
96
+ the shape; this section carries only what is specific here. In list mode the
97
+ table of ideas is the body of the message, and the block follows it.
98
+
99
+ **Verdicts**
100
+
101
+ - `✅` — an idea was filed or dropped, or the list was read (an empty list
102
+ included).
103
+ - `⏸` — the engine refused, so nothing was written. Name the reason in `Why`,
104
+ with the text when it was a capture.
105
+ - Handing off to `/spec` emits no block here: that skill ends with its own.
106
+
107
+ **Fields:** `Tracker` · `Built` · `Landed` · `Follow-ups` · `Next`
108
+
109
+ `Tracker` is the idea's issue, when the provider holds it. `Built` is what
110
+ happened: the idea's id and title, where it went, or the count listed.
111
+ `Landed` covers the file store only: the commit on the base branch and
112
+ `not pushed · <the push it printed> publishes it`. `Next` is the handle that
113
+ promotes the idea (`/spec idea:<id>`, `/spec #N`), or `none` after a drop.
114
+
115
+ **`Follow-ups` is always `none` here.** An idea is the follow-up.
@@ -27,7 +27,7 @@ clobber customised content. Finish with a summary of created vs already-present.
27
27
  > **Leave alone**. Non-interactively it only adds what's missing; `--resync` /
28
28
  > `--reset` (reset needs `--yes`) drive the stronger actions.
29
29
 
30
- The system is **seventeen skills**: `spec` (feature, chore or issue), `spec-bug` (bug),
30
+ The system is **eighteen skills**: `spec` (feature, chore or issue), `spec-bug` (bug),
31
31
  `spec-hotfix` (a bug fixed on a released tag),
32
32
  `spec-incident` (a live outage, recorded as it happens),
33
33
  `no-spec` (work that genuinely has none — off the base branch all the same),
@@ -36,7 +36,8 @@ The system is **seventeen skills**: `spec` (feature, chore or issue), `spec-bug`
36
36
  `spec-reviewed` (pick up a review you approved on that page),
37
37
  `spec-epic-next` (name the epic member that can start now), `spec-to-main`,
38
38
  `spec-complete`, `spec-cancel`, `spec-tada` (a ta-da list of what got done),
39
- `spec-todo` (where you left off, and what is ahead),
39
+ `spec-todo` (where you left off, and what is ahead), `spec-idea` (an idea
40
+ parked without a spec),
40
41
  and this `spec-init`. The lifecycle is `backlog → in-progress → complete / cancelled`,
41
42
  with `.core` holding always-apply project rules.
42
43
 
@@ -147,10 +147,20 @@ PAT is set (see `apply.transport` in `azure-boards.config.md`).
147
147
  complete/cancelled/reviewed in the repo regardless; the mirror is disposable
148
148
  and the next push repairs it. Do not roll anything back, and do not stop to
149
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.
150
+ - **In `/spec-complete`'s PR mode the Done waits for run 2.** Run 1 readies a
151
+ PR, and a ready PR is not a merged one. Which run pushes depends on the
152
+ `land.specDocs` lane:
153
+ - **`trunk`** — skip it on run 1. Run 2 moves the spec on base, so it pushes
154
+ there in this step's usual place, before its own commit.
155
+ - **`branch`** — run 1 commits the move to ride the PR, so push **here**,
156
+ holding the state: `spec-sync apply <spec> --plan <file> --hold-state`.
157
+ Everything but the Done goes now, and the snapshot is written as if the
158
+ Done had gone too, so it rides the PR. Run 2 sends it once the host has
159
+ merged: `spec-sync apply <spec> --send-held`, which needs no plan and
160
+ leaves the snapshot untouched. Over MCP, apply by hand and end run 1 with
161
+ `spec-sync record <spec> --held`.
162
+
163
+ The tracker's Done lands when the work does.
154
164
  - **Say what happened** in the skill's report: mirror updated, skipped as
155
165
  unlinked, or failed with the reason.
156
166
  - **There is no unassign step here.** The projection derives the assignee from
@@ -170,6 +180,14 @@ In `/spec-complete` and `/spec-cancel` this step is deliberately pinned
170
180
  snapshot under `specs/.core/`. Push after the commit instead and both are left
171
181
  uncommitted, which makes `spec-env integrate` refuse to land the branch.
172
182
 
183
+ **PR mode keeps both halves by splitting the push across the runs.** In the
184
+ `branch` lane the commit happens in run 1, and run 2 only has the base branch,
185
+ where nothing is left to commit a snapshot to. An unsplit push there left a
186
+ modified snapshot on base after every completion. `--hold-state` writes run 2's
187
+ snapshot in run 1, and `--send-held` then moves only the state. If it says
188
+ nothing was held (a run 1 from before this), it sends the whole plan and names
189
+ the snapshot it leaves modified. Relay that line.
190
+
173
191
  The snapshot is reached **by name**, not by breadth. It is a declared
174
192
  `spec.companionPaths` entry (`specs/.core/azure-base/{identifier}.base.json`),
175
193
  so `spec-env stage` returns it among this spec's owned paths and the commit below
@@ -46,6 +46,9 @@ What the lines mean:
46
46
  - `finished:` — the specs that day completed or cancelled, by name.
47
47
  - `blocked:` — a review verdict waiting, or a gate armed by a phase that ended
48
48
  and still owes an answer. Read only for specs in flight.
49
+ - `ideas:` — how many ideas are waiting for the `(here)` project. It is a count,
50
+ never the next action: `/spec-idea` lists them, and the line is absent when
51
+ there are none or the count could not be read.
49
52
  - `today:` — commits and moves since midnight, when there are any.
50
53
 
51
54
  ## 2. Write the recap
@@ -33,6 +33,14 @@ require('../src/env/config.js').setProviderEnvDefaults(
33
33
  require('../src/env/config.js').setProviderConfigFile(
34
34
  require('../src/vendor/azure-boards/config.js').CONFIG_FILE,
35
35
  )
36
+ // Azure Boards holds ideas: a work item tagged `intake.ideaTag`, at the
37
+ // project root. Registered so `skitterspec idea` hands Azure the command
38
+ // instead of writing specs/ideas.md (see common src/idea.js, selectStore).
39
+ require('../src/idea.js').setProviderIdeaStore({
40
+ supports: true,
41
+ run: (sub, argv, { cwd, out } = {}) =>
42
+ require('../src/vendor/azure-boards/cli-sync.js').specSync(['idea', sub, ...argv], { cwd, out }),
43
+ })
36
44
  const {
37
45
  PROVIDER_COMMANDS,
38
46
  providerHelpSection,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skitterbyte/skitterspec-azure-boards",
3
- "version": "2.12.0",
3
+ "version": "2.13.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",
package/src/cli.js CHANGED
@@ -377,6 +377,13 @@ Usage:
377
377
  waiting and gates armed, and today so far. Same
378
378
  scope as tada (--here, --all-projects), --json,
379
379
  --page [--summary <recap.md>].
380
+ skitterspec idea <cmd> Ideas not specced yet, where the team can see them:
381
+ in the tracker when the provider holds ideas, else
382
+ specs/ideas.md landed on the base branch (never
383
+ pushed — it prints the push). Subcommands:
384
+ add <text> capture one; first line is the title
385
+ list what is waiting (--count, --json)
386
+ drop <id> discard one (--reason <why>)
380
387
  skitterspec gating <cmd> Release-gating check (opt-in; needs
381
388
  specs/.core/gating.config.json). Subcommands:
382
389
  check [spec] report specs with no recorded gating
@@ -905,6 +912,26 @@ function repoBlockers(repo, specs) {
905
912
  return readBlockers(reviewsDirFor(repo, config), specs, config.review && config.review.required)
906
913
  }
907
914
 
915
+ /**
916
+ * The home project's waiting ideas, or null when that cannot be told. A
917
+ * provider store asks the network, so the answer is bounded: a slow, failed or
918
+ * refused count is null, and null prints nothing — an idea count is never a
919
+ * reason for the morning report to fail or stall.
920
+ */
921
+ async function ideaCount(repo) {
922
+ let text = ''
923
+ const sink = { write: (s) => (text += s) }
924
+ try {
925
+ const counted = require('./ideacmd.js').ideaCommand(['list', '--count', '--json'], { cwd: repo, out: sink })
926
+ const timeout = new Promise((resolve) => setTimeout(() => resolve('timeout'), 5000).unref())
927
+ if ((await Promise.race([counted, timeout])) !== 0) return null
928
+ const n = JSON.parse(text).count
929
+ return Number.isInteger(n) ? n : null
930
+ } catch {
931
+ return null
932
+ }
933
+ }
934
+
908
935
  /**
909
936
  * `skitterspec todo` — the morning half of the ta-da list: where each project
910
937
  * was left on the last day with any activity, what is ahead, and what is in
@@ -931,7 +958,7 @@ async function todoCommand(argv) {
931
958
  } catch {
932
959
  // the folder name stands in, as it does everywhere else
933
960
  }
934
- home = { repo: homeRepo, name, groups: openSpecsIn(homeRepo).map((row) => ({ spec: row.spec, inFlight: row })) }
961
+ home = { repo: homeRepo, name, groups: openSpecsIn(homeRepo).map((row) => ({ spec: row.spec, inFlight: row })), ideas: await ideaCount(homeRepo) }
935
962
  }
936
963
 
937
964
  const todo = buildTodo({ leftOff, leftOffDay: day, today: todaySoFar, home, blockersFor: repoBlockers })
@@ -8107,6 +8134,11 @@ async function run(argv) {
8107
8134
  return
8108
8135
  }
8109
8136
 
8137
+ if (cmd === 'idea') {
8138
+ process.exitCode = await require('./ideacmd.js').ideaCommand(rest)
8139
+ return
8140
+ }
8141
+
8110
8142
  if (cmd === 'epic') {
8111
8143
  const [sub, ...eArgs] = rest
8112
8144
  if (sub === 'status') epicStatusCommand(eArgs)
package/src/env/config.js CHANGED
@@ -927,6 +927,12 @@ function setProviderConfigFile(rel) {
927
927
  providerConfigFile = rel || null
928
928
  }
929
929
 
930
+ // Is a ticketing provider registered AND configured in this project? The same
931
+ // signal `land.specDocs` defaults on, so the two cannot disagree.
932
+ function providerConfigured(dir) {
933
+ return Boolean(providerConfigFile) && existsSync(join(dir, providerConfigFile))
934
+ }
935
+
930
936
  // An explicit `specDocs` in the file — any value, even one the merge rejected —
931
937
  // is the project's decision; a rejected typo stays on the conservative "trunk"
932
938
  // rather than being promoted to the provider default.
@@ -976,6 +982,7 @@ module.exports = {
976
982
  loadEnvConfig,
977
983
  setProviderEnvDefaults,
978
984
  setProviderConfigFile,
985
+ providerConfigured,
979
986
  resolveServePort,
980
987
  derivedServePort,
981
988
  servePortRoot,
@@ -52,7 +52,7 @@ const GIT_READS = new Set([
52
52
 
53
53
  // skitterspec verbs that only read, as `verb` or `verb sub`.
54
54
  const ENGINE_READS = new Set([
55
- 'tada', 'todo', 'status', 'help', '--help', '-h', '--version', '-v',
55
+ 'tada', 'todo', 'idea list', 'status', 'help', '--help', '-h', '--version', '-v',
56
56
  'spec-env status', 'spec-env resolve',
57
57
  'epic status', 'epic check', 'gating check', 'spec-sync ownership', 'spec-sync board',
58
58
  ])