@chris1807/claude-kit 2.1.42 → 2.1.43
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chris1807/claude-kit",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.43",
|
|
4
4
|
"description": "Claude Code starter kit for Azure DevOps teams — agents, hooks, MCP servers, slash commands, and end-to-end work item → PR → release → deploy workflow automation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -142,9 +142,32 @@ After presenting the draft, ask:
|
|
|
142
142
|
Approve this draft? (yes / suggest changes / cancel)
|
|
143
143
|
```
|
|
144
144
|
|
|
145
|
-
**Wait for the user.** If they suggest changes, revise the draft and present it again — repeat until they approve or cancel. Do NOT proceed to mockup or project selection until approved.
|
|
145
|
+
**Wait for the user.** If they suggest changes, revise the draft and present it again — repeat until they approve or cancel. Do NOT proceed to story points, mockup, or project selection until approved.
|
|
146
146
|
|
|
147
|
-
## Step 4:
|
|
147
|
+
## Step 4: Propose Story Points
|
|
148
|
+
|
|
149
|
+
Every work item this command creates gets a story point estimate — proposed automatically, applied only with the user's agreement.
|
|
150
|
+
|
|
151
|
+
Estimate using the same rubric as `/quote`: the **modified Fibonacci scale** (`1, 2, 3, 5, 8, 13, 21`), calibrated for a **senior developer working with Claude assistance** in a codebase they know. Don't pad for ramp-up, routine architectural decisions, or stack familiarity — only for things a senior cannot shortcut: genuinely novel work, unresolved open questions, cross-team coordination, external dependencies. If the work looks larger than 21 points, recommend splitting the item instead of proposing a number.
|
|
152
|
+
|
|
153
|
+
Present the estimate:
|
|
154
|
+
|
|
155
|
+
```
|
|
156
|
+
**Proposed estimate:** {n} story points
|
|
157
|
+
- {one-line rationale: scope / layers touched / test burden}
|
|
158
|
+
|
|
159
|
+
Agree? (yes / different number / skip)
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
**Wait for the user.**
|
|
163
|
+
|
|
164
|
+
- `yes` → the agreed points are set at creation, and the item is moved to **Dev Ready** after creation (Step 8)
|
|
165
|
+
- a different number → use the user's number (their call wins); same Dev Ready behavior
|
|
166
|
+
- `skip` → create the item without points; it stays in the default `New` state and can be pointed later with `/quote`
|
|
167
|
+
|
|
168
|
+
Points are never written without the user's explicit agreement.
|
|
169
|
+
|
|
170
|
+
## Step 5: Offer a Mockup (User Stories only — skip for Bugs)
|
|
148
171
|
|
|
149
172
|
If the work item type is **User Story** and the requirements appear to involve UI (a screen, a form, a button, a workflow), ask:
|
|
150
173
|
|
|
@@ -167,7 +190,7 @@ If any step fails (mockup generation, screenshot, upload), report the failure to
|
|
|
167
190
|
|
|
168
191
|
Continue without a mockup.
|
|
169
192
|
|
|
170
|
-
## Step
|
|
193
|
+
## Step 6: Choose the Project
|
|
171
194
|
|
|
172
195
|
### Detect the default project
|
|
173
196
|
|
|
@@ -191,7 +214,7 @@ If no default is found, ask without a preselection and offer to list projects vi
|
|
|
191
214
|
|
|
192
215
|
**Wait for the user's response.** Validate the project name by calling `mcp__azure-devops__core_list_projects` if the response is ambiguous or doesn't match a known project.
|
|
193
216
|
|
|
194
|
-
## Step
|
|
217
|
+
## Step 7: Final Confirmation
|
|
195
218
|
|
|
196
219
|
Before creating anything in Azure DevOps, present a final summary and ask for one last confirmation:
|
|
197
220
|
|
|
@@ -205,6 +228,8 @@ Before creating anything in Azure DevOps, present a final summary and ask for on
|
|
|
205
228
|
**Priority:** {n}
|
|
206
229
|
**Severity:** {n - Label}
|
|
207
230
|
{end for Bugs}
|
|
231
|
+
**Story Points:** {n (agreed) | skipped}
|
|
232
|
+
**Initial State:** {Dev Ready (pointed) | New (no points)}
|
|
208
233
|
**Mockup:** {Embedded | Not requested | Skipped (non-UI)}
|
|
209
234
|
**Images:** {count} user-supplied image(s) embedded in description
|
|
210
235
|
**Open Questions:** {count}
|
|
@@ -213,11 +238,11 @@ Create this work item now? (yes / edit / cancel)
|
|
|
213
238
|
```
|
|
214
239
|
|
|
215
240
|
**Wait for the user.**
|
|
216
|
-
- `yes` → proceed to Step
|
|
217
|
-
- `edit` → ask which field to revise (title, description, AC, priority, severity, project, mockup), revise it, then re-show this summary
|
|
241
|
+
- `yes` → proceed to Step 8
|
|
242
|
+
- `edit` → ask which field to revise (title, description, AC, priority, severity, story points, project, mockup), revise it, then re-show this summary
|
|
218
243
|
- `cancel` → abort with no work item created and confirm "Cancelled — no work item created."
|
|
219
244
|
|
|
220
|
-
## Step
|
|
245
|
+
## Step 8: Render to HTML and Create
|
|
221
246
|
|
|
222
247
|
### Render Markdown sections to HTML
|
|
223
248
|
|
|
@@ -258,6 +283,7 @@ Call `mcp__azure-devops__wit_create_work_item` with:
|
|
|
258
283
|
- **fields**: a JSON Patch document setting:
|
|
259
284
|
- `System.Description` — the rendered HTML description (with embedded mockup `<img>` and any user-supplied images)
|
|
260
285
|
- `Microsoft.VSTS.Common.AcceptanceCriteria` — the rendered HTML acceptance criteria block
|
|
286
|
+
- `Microsoft.VSTS.Scheduling.StoryPoints` — the points agreed in Step 4 (omit entirely if the user skipped)
|
|
261
287
|
- For Bugs:
|
|
262
288
|
- `Microsoft.VSTS.TCM.ReproSteps` — the rendered HTML repro steps (Azure DevOps puts repro steps in this field for the Bug template; if the project uses the Agile template instead, fold repro steps into Description)
|
|
263
289
|
- `Microsoft.VSTS.Common.Priority` — the chosen Priority (1–4)
|
|
@@ -265,7 +291,11 @@ Call `mcp__azure-devops__wit_create_work_item` with:
|
|
|
265
291
|
|
|
266
292
|
If the `Open Questions` section is non-empty, append it to the description as a clearly-labeled HTML block (`<h3>Open Questions</h3><ul>...</ul>`) so the assignee can address it later.
|
|
267
293
|
|
|
268
|
-
|
|
294
|
+
### Move to Dev Ready (pointed items only)
|
|
295
|
+
|
|
296
|
+
If story points were agreed in Step 4, set `System.State` to `Dev Ready` via `mcp__azure-devops__wit_update_work_item` **after** the item is created (a separate call — new items start in `New`, and some process templates reject a non-initial state in the create call). If the state transition is rejected, report the error and leave the state as-is — don't silently retry through intermediate states. Items created without points stay in `New`.
|
|
297
|
+
|
|
298
|
+
## Step 9: Confirm
|
|
269
299
|
|
|
270
300
|
After creation, report:
|
|
271
301
|
|
|
@@ -273,13 +303,15 @@ After creation, report:
|
|
|
273
303
|
Created AB#{id}: {title}
|
|
274
304
|
Project: {project}
|
|
275
305
|
Type: {type}
|
|
306
|
+
Story Points: {n | not set}
|
|
307
|
+
State: {Dev Ready | New}
|
|
276
308
|
URL: {work item URL}
|
|
277
309
|
Mockup attached: {yes / no}
|
|
278
310
|
Open questions: {count}
|
|
279
311
|
|
|
280
312
|
Next steps:
|
|
281
313
|
/explain AB#{id} — re-read the item in plain language
|
|
282
|
-
/quote AB#{id} — estimate story points
|
|
314
|
+
/quote AB#{id} — {re-estimate | set story points (skipped at creation)}
|
|
283
315
|
/implement AB#{id} — start working on it
|
|
284
316
|
```
|
|
285
317
|
|
|
@@ -11,7 +11,7 @@ This command walks the **backlog** of a chosen Azure DevOps project, finds user
|
|
|
11
11
|
|
|
12
12
|
**Hard batch limit: 10 items per run.** If more qualify, process the first 10 (by backlog rank) and report how many remain.
|
|
13
13
|
|
|
14
|
-
**Nothing is written to Azure DevOps — no points, no comments — until the user has seen the full batch and approved.** This command never modifies code
|
|
14
|
+
**Nothing is written to Azure DevOps — no points, no comments — until the user has seen the full batch and approved.** This command never modifies code and never reassigns items. The only state change it makes: when approved points are written to an item, that item also moves to **Dev Ready** (see Step 5).
|
|
15
15
|
|
|
16
16
|
Treat `$ARGUMENTS` as an optional project name (e.g. `/quote-backlog CSI Development`). If provided, skip the project prompt in Step 1.
|
|
17
17
|
|
|
@@ -121,7 +121,7 @@ This is read-only reconnaissance. Skip it for non-technical items or when the co
|
|
|
121
121
|
|
|
122
122
|
Use the **modified Fibonacci scale**: `1, 2, 3, 5, 8, 13, 21`. Anything larger than 21 is flagged as "needs to be split" rather than given a number.
|
|
123
123
|
|
|
124
|
-
> **Assume a senior developer is the implementer.** Don't pad for ramp-up, routine architectural decisions, or familiarity with the stack — that's already priced into the rubric. Only pad for things a senior *cannot* shortcut: genuinely novel work, missing AC, cross-team coordination, or external dependencies. Do not apply a second seniority discount on top of the rubric.
|
|
124
|
+
> **Assume a senior developer working with Claude assistance is the implementer.** Don't pad for ramp-up, routine architectural decisions, or familiarity with the stack — that's already priced into the rubric. Only pad for things a senior *cannot* shortcut: genuinely novel work, missing AC, cross-team coordination, or external dependencies. Do not apply a second seniority discount on top of the rubric.
|
|
125
125
|
|
|
126
126
|
| Points | Looks like |
|
|
127
127
|
|--------|-----------|
|
|
@@ -186,6 +186,8 @@ Batch: {n} of {total} qualifying items{ — run /quote-backlog again for the nex
|
|
|
186
186
|
|
|
187
187
|
Then a detail block per item — estimate reasoning (2–3 bullets), completeness findings, duplicate evidence with links/IDs, code notes, the **full text of any draft comment**, and the **full text of any suggested rewrite**. The user must be able to read every word that would be posted.
|
|
188
188
|
|
|
189
|
+
Note above the prompt: **items that get points will also move to Dev Ready** — approving the points approves the state change.
|
|
190
|
+
|
|
189
191
|
Then ask:
|
|
190
192
|
|
|
191
193
|
```
|
|
@@ -205,7 +207,7 @@ Approve? (all / numbers e.g. "1,2,4" / edit N / skip N / apply rewrite N / cance
|
|
|
205
207
|
|
|
206
208
|
Only for approved items, in batch order:
|
|
207
209
|
|
|
208
|
-
1. **Set Story Points** (items with a proposed number):
|
|
210
|
+
1. **Set Story Points and move to Dev Ready** (items with a proposed number): in one `mcp__azure-devops__wit_update_work_item` call, set `Microsoft.VSTS.Scheduling.StoryPoints` **and** `System.State` = `Dev Ready`. The state change applies only to `User Story`, `Bug`, and `Hot Fix` types, and never moves an item backward — if an item is somehow already past Dev Ready, set the points only and note it. Touch no other field — assignee, iteration, and tags stay as they are.
|
|
209
211
|
2. **Post the comment** (items with an approved draft): add it with `mcp__azure-devops__wit_add_work_item_comment` (or the server's work-item comment tool). Use the mention syntax the server supports so the creator is notified; otherwise lead with their display name as drafted.
|
|
210
212
|
3. **Apply the rewrite** (only items the user marked `apply rewrite N`): update `System.Description` and/or `Microsoft.VSTS.Common.AcceptanceCriteria` via `wit_update_work_item`, and adjust the comment to say the rewrite was applied ("rewrote the description/AC per the above — please review") rather than suggesting it. Never apply a rewrite the user didn't explicitly mark.
|
|
211
213
|
|
|
@@ -217,7 +219,7 @@ If a write fails, report the failure and ask whether to continue with the remain
|
|
|
217
219
|
## Quote Sweep Complete — {project}
|
|
218
220
|
|
|
219
221
|
Items analyzed: {n} (of {total} qualifying — {remaining} left for the next run)
|
|
220
|
-
✓ Points set: {n_pointed} (total {sum} pts)
|
|
222
|
+
✓ Points set: {n_pointed} (total {sum} pts — each moved to Dev Ready)
|
|
221
223
|
✓ Comments: {n_comments} posted to creators
|
|
222
224
|
✓ Rewrites: {n_rewrites_applied} applied, {n_rewrites_suggested} suggested in comments
|
|
223
225
|
⏭ Skipped: {n_skipped} ({reasons: user skipped / blocking gaps / possible duplicate})
|
|
@@ -236,4 +238,4 @@ Next steps:
|
|
|
236
238
|
/quote AB#{id} — re-estimate a single item after the creator responds
|
|
237
239
|
```
|
|
238
240
|
|
|
239
|
-
Do not
|
|
241
|
+
Do not create tasks or assign items — those are downstream decisions. Pointed items are now Dev Ready, so `/plan-backlog` picks them up on its next run. Make no state change other than the points→Dev Ready move described in Step 5.
|
|
@@ -14,9 +14,9 @@ Capture: title, type, description, acceptance criteria, attached child items, an
|
|
|
14
14
|
|
|
15
15
|
Use the **modified Fibonacci scale** for story points: `1, 2, 3, 5, 8, 13, 21`. Anything that feels larger than 21 should be flagged as "needs to be split" rather than given a number.
|
|
16
16
|
|
|
17
|
-
> **Assume a senior developer is the implementer.** Don't pad for ramp-up, routine architectural decisions, or familiarity with the stack. A senior is expected to read the codebase, find existing patterns, and resolve ordinary unknowns without help — that effort is already priced into the rubric below. Only pad for things a senior *cannot* shortcut: genuinely novel work, missing AC, cross-team coordination, or external dependencies.
|
|
17
|
+
> **Assume a senior developer working with Claude assistance is the implementer.** Don't pad for ramp-up, routine architectural decisions, or familiarity with the stack. A senior is expected to read the codebase, find existing patterns, and resolve ordinary unknowns without help — that effort is already priced into the rubric below. Only pad for things a senior *cannot* shortcut: genuinely novel work, missing AC, cross-team coordination, or external dependencies.
|
|
18
18
|
|
|
19
|
-
Rough sizing rubric (calibrated for a senior developer working in a codebase they know):
|
|
19
|
+
Rough sizing rubric (calibrated for a senior developer, assisted by Claude, working in a codebase they know):
|
|
20
20
|
|
|
21
21
|
| Points | Looks like |
|
|
22
22
|
|--------|-----------|
|
|
@@ -64,8 +64,15 @@ If an existing `Story Points` value is already set on the work item and your est
|
|
|
64
64
|
|
|
65
65
|
If the work looks larger than 21 points, do not assign a number — instead report `**Estimate:** needs to be split` and suggest 2–4 candidate split points based on the acceptance criteria.
|
|
66
66
|
|
|
67
|
-
## Step 4: Offer to Persist
|
|
67
|
+
## Step 4: Offer to Persist (Points + Dev Ready)
|
|
68
68
|
|
|
69
|
-
After displaying the estimate, ask the user: *"Want me to set Story Points = {n} on AB#{id}?"*
|
|
69
|
+
After displaying the estimate, ask the user: *"Want me to set Story Points = {n} on AB#{id}? (This will also move it to Dev Ready.)"*
|
|
70
70
|
|
|
71
71
|
Only update the work item if the user explicitly says yes. Do not modify anything otherwise.
|
|
72
|
+
|
|
73
|
+
When the user agrees, in the **same** `wit_update_work_item` call:
|
|
74
|
+
|
|
75
|
+
1. Set `Microsoft.VSTS.Scheduling.StoryPoints` to the agreed value (the user's number wins if they adjusted it).
|
|
76
|
+
2. Set `System.State` to `Dev Ready` — **but only if** the work item type is `User Story`, `Bug`, or `Hot Fix` **and** the item is not already past Dev Ready in the workflow (e.g. `Active`, `Code Review`, `Ready to Deploy`). Never move an item backward — if it's already past Dev Ready, set the points only and mention the state was left alone.
|
|
77
|
+
|
|
78
|
+
**Never change the state of a Feature or a Task** — if the sized item is a Feature, persist points only (or per-child points on the children, each of which does get Dev Ready if it qualifies).
|
|
@@ -105,6 +105,14 @@ Claude maintains persistent memory across sessions in `~/.claude/projects/.../me
|
|
|
105
105
|
8. **Track** work items via the Azure DevOps MCP server
|
|
106
106
|
9. **Learn** — Claude saves what worked for next time
|
|
107
107
|
|
|
108
|
+
### Story Points & Dev Ready Policy
|
|
109
|
+
|
|
110
|
+
These rules apply to **every** command or flow that creates or estimates work items:
|
|
111
|
+
|
|
112
|
+
1. **Every work item Claude creates gets a proposed story point estimate** — User Stories and Bugs are never created unpointed by default. Estimates use the modified Fibonacci scale (`1, 2, 3, 5, 8, 13, 21`), calibrated for a **senior developer working with Claude assistance** — no ramp-up padding; pad only for what seniority + Claude can't shortcut (novel work, missing AC, cross-team coordination, external dependencies).
|
|
113
|
+
2. **The user must agree before points are written.** Claude proposes the number with a one-line rationale; the user confirms, adjusts (their number wins), or skips. Points are never set silently.
|
|
114
|
+
3. **Setting points moves the item to Dev Ready.** Any time story points are written to a **User Story**, **Bug**, or **Hot Fix**, `System.State` is set to `Dev Ready` in the same update. Never for Features or Tasks (a Feature's state is never touched; Tasks carry hour estimates, not points), and never backward — an item already past Dev Ready keeps its state, with a note.
|
|
115
|
+
|
|
108
116
|
### Branching Strategy
|
|
109
117
|
|
|
110
118
|
#### Target Branch-to-Environment Mapping
|
|
@@ -244,7 +252,9 @@ All deployment and release operations are available as slash commands:
|
|
|
244
252
|
| `/status` | `/status release 24` | Check release, pipeline, or work item status |
|
|
245
253
|
| `/plan-backlog` | `/plan-backlog [project]` | Sweep backlog for Dev Ready stories with points and no tasks → propose child tasks with hours |
|
|
246
254
|
| `/plan-sprint` | `/plan-sprint [project]` | Sweep the current sprint for stories/bugs with no child tasks → propose one child task with hours per item |
|
|
247
|
-
| `/quote-backlog` | `/quote-backlog [project]` | Sweep backlog for Design Approved items without points → review completeness, check for duplicates, suggest rewrites, propose points + creator comments (10 at a time, approval-gated) |
|
|
255
|
+
| `/quote-backlog` | `/quote-backlog [project]` | Sweep backlog for Design Approved items without points → review completeness, check for duplicates, suggest rewrites, propose points + creator comments (10 at a time, approval-gated; approved points also move the item to Dev Ready) |
|
|
256
|
+
| `/quote` | `/quote AB#1234` | Estimate story points for one work item; on approval, sets the points and moves the item to Dev Ready |
|
|
257
|
+
| `/create-work-item` | `/create-work-item [description]` | Interactively draft and create a Bug or User Story — proposes story points (user must agree) and creates pointed items in Dev Ready |
|
|
248
258
|
| `/cleanup-branches` | `/cleanup-branches` | Delete merged branches |
|
|
249
259
|
| `/close-orphan-tasks` | `/close-orphan-tasks [scope] [--dry-run]` | Close open Tasks whose parent is Ready to Deploy / Deployed / Closed |
|
|
250
260
|
|