@chris1807/claude-kit 2.1.59 → 2.2.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chris1807/claude-kit",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
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": {
|
|
@@ -33,6 +33,37 @@ Fetch each work item from Azure DevOps via MCP. Compare each one's `System.State
|
|
|
33
33
|
Cherry-pick {count} work items to {environment}? Items behind the gate: include / drop / cancel
|
|
34
34
|
```
|
|
35
35
|
|
|
36
|
+
### Step 1b: Scripts That Have to Be Run
|
|
37
|
+
|
|
38
|
+
A deployment script — a SQL migration, a data backfill, a PowerShell step — is attached to the work item it belongs to, and it has to run in **every** environment that item's code lands in. A promotion carries the code; it does not carry the script, and nothing in the PR says one exists. That is how an environment ends up half-deployed.
|
|
39
|
+
|
|
40
|
+
Fetch each carried work item with its attachments — `wit_work_item` `action: get`, `expand: "Relations"`, one call per item (`get_batch` has no `expand`) — and keep every relation whose `rel` is `AttachedFile` and whose filename extension is **not** a document, image or video:
|
|
41
|
+
|
|
42
|
+
```
|
|
43
|
+
.xlsx .xls .xlsm .xlsb .csv .docx .doc .docm .pdf
|
|
44
|
+
.png .jpg .jpeg .gif .bmp .ico .svg .webp .tiff .tif
|
|
45
|
+
.mp4 .mov .avi .webm .mkv .wmv .flv .m4v
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Everything else counts, extensionless files included. The rule is deliberately loose, because the two mistakes do not cost the same: a filename someone glances at and dismisses costs seconds, a migration nobody ran costs an environment.
|
|
49
|
+
|
|
50
|
+
Show them with the table above, before the confirmation:
|
|
51
|
+
|
|
52
|
+
```
|
|
53
|
+
📜 Scripts to run with this promotion:
|
|
54
|
+
|
|
55
|
+
| Work Item | Script |
|
|
56
|
+
|-----------|--------|
|
|
57
|
+
| AB#1234 | 2026-09-11_add_delivery_index.sql |
|
|
58
|
+
| AB#1240 | backfill-tenant-flags.ps1 |
|
|
59
|
+
|
|
60
|
+
Download them from the work items. This command does not run them.
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
If nothing carries an attachment, say `No deployment scripts attached` on one line and move on.
|
|
64
|
+
|
|
65
|
+
**Reported, never enforced.** A script does not block the promotion and does not change the gate check: the attachment may already have been run, may be a reference copy, may not be a script at all. Listing it is the whole job — the person deploying decides.
|
|
66
|
+
|
|
36
67
|
Wait for confirmation. `drop` removes flagged items from this cherry-pick only.
|
|
37
68
|
|
|
38
69
|
## Step 2: Find Commits
|
|
@@ -91,7 +122,7 @@ Cherry-picking:
|
|
|
91
122
|
- **sourceRefName**: `refs/heads/cherry-pick/<date>-to-<environment>`
|
|
92
123
|
- **targetRefName**: `refs/heads/<target-environment-branch>`
|
|
93
124
|
- **title**: `Cherry-pick AB#1234, AB#1235 → {Environment}`
|
|
94
|
-
- **description**: List all work items with IDs and titles
|
|
125
|
+
- **description**: List all work items with IDs and titles, and — under a `Scripts to run` heading — any deployment scripts found in Step 1b, so whoever merges sees them without opening the work items
|
|
95
126
|
3. Link all work items to the PR via `wit_link_work_item_to_pull_request`
|
|
96
127
|
|
|
97
128
|
## Step 6: Pick Who Verifies Each Group (before the merge)
|
|
@@ -319,3 +350,10 @@ Next: {the human step — "QA tests on Test and sets Ready for Staging" / "stake
|
|
|
319
350
|
```
|
|
320
351
|
|
|
321
352
|
If the user said `stop watching`, or an update fails, leave the rest alone, say exactly which items were and were not updated, and note that `/track` will flag the lag later.
|
|
353
|
+
|
|
354
|
+
If any carried item had a deployment script (Step 1b), repeat it here — this is the moment it has to run, and the list is stale in the scroll-back by now:
|
|
355
|
+
|
|
356
|
+
```
|
|
357
|
+
📜 Still to run on {environment}: AB#1234 2026-09-11_add_delivery_index.sql, AB#1240 backfill-tenant-flags.ps1
|
|
358
|
+
```
|
|
359
|
+
|
|
@@ -74,6 +74,37 @@ Include them anyway, or drop them from this deploy? (include / drop / cancel)
|
|
|
74
74
|
|
|
75
75
|
Wait for the answer. `drop` removes them from **this deploy only** — they stay in the release.
|
|
76
76
|
|
|
77
|
+
## Step 3b: Scripts That Have to Be Run
|
|
78
|
+
|
|
79
|
+
A deployment script — a SQL migration, a data backfill, a PowerShell step — is attached to the work item it belongs to, and it has to run in **every** environment that item's code lands in. A promotion carries the code; it does not carry the script, and nothing in the PR says one exists. That is how an environment ends up half-deployed.
|
|
80
|
+
|
|
81
|
+
Fetch each carried work item with its attachments — `wit_work_item` `action: get`, `expand: "Relations"`, one call per item (`get_batch` has no `expand`) — and keep every relation whose `rel` is `AttachedFile` and whose filename extension is **not** a document, image or video:
|
|
82
|
+
|
|
83
|
+
```
|
|
84
|
+
.xlsx .xls .xlsm .xlsb .csv .docx .doc .docm .pdf
|
|
85
|
+
.png .jpg .jpeg .gif .bmp .ico .svg .webp .tiff .tif
|
|
86
|
+
.mp4 .mov .avi .webm .mkv .wmv .flv .m4v
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
Everything else counts, extensionless files included. The rule is deliberately loose, because the two mistakes do not cost the same: a filename someone glances at and dismisses costs seconds, a migration nobody ran costs an environment.
|
|
90
|
+
|
|
91
|
+
Show them with the gate check, before Step 4's confirmation:
|
|
92
|
+
|
|
93
|
+
```
|
|
94
|
+
📜 Scripts to run with this promotion:
|
|
95
|
+
|
|
96
|
+
| Work Item | Script |
|
|
97
|
+
|-----------|--------|
|
|
98
|
+
| AB#1234 | 2026-09-11_add_delivery_index.sql |
|
|
99
|
+
| AB#1240 | backfill-tenant-flags.ps1 |
|
|
100
|
+
|
|
101
|
+
Download them from the work items. This command does not run them.
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
If nothing carries an attachment, say `No deployment scripts attached` on one line and move on.
|
|
105
|
+
|
|
106
|
+
**Reported, never enforced.** A script does not block the promotion and does not change the gate check: the attachment may already have been run, may be a reference copy, may not be a script at all. Listing it is the whole job — the person deploying decides.
|
|
107
|
+
|
|
77
108
|
## Step 4: Confirm
|
|
78
109
|
|
|
79
110
|
```
|
|
@@ -147,7 +178,7 @@ Cherry-picking commits for Release #{N}:
|
|
|
147
178
|
- **sourceRefName**: `refs/heads/release/{N}-to-<environment>`
|
|
148
179
|
- **targetRefName**: `refs/heads/<target-environment-branch>`
|
|
149
180
|
- **title**: `Release #{N} → {Environment}`
|
|
150
|
-
- **description**: List all work items included with their IDs and titles
|
|
181
|
+
- **description**: List all work items included with their IDs and titles, and — under a `Scripts to run` heading — any deployment scripts found in Step 3b, so whoever merges sees them without opening the work items
|
|
151
182
|
3. Link all work items to the PR via `wit_link_work_item_to_pull_request`
|
|
152
183
|
|
|
153
184
|
## Step 8: Pick Who Verifies Each Group (before the merge)
|
|
@@ -381,6 +412,13 @@ Next: {the human step — "QA tests on Test and sets Ready for Staging" / "stake
|
|
|
381
412
|
|
|
382
413
|
If the user said `stop watching`, or an update fails, leave the rest alone, say exactly which items were and were not updated, and note that `/track release {N}` will flag the lag later.
|
|
383
414
|
|
|
415
|
+
If any carried item had a deployment script (Step 3b), repeat it here — this is the moment it has to run, and the list is stale in the scroll-back by now:
|
|
416
|
+
|
|
417
|
+
```
|
|
418
|
+
📜 Still to run on {environment}: AB#1234 2026-09-11_add_delivery_index.sql, AB#1240 backfill-tenant-flags.ps1
|
|
419
|
+
```
|
|
420
|
+
|
|
421
|
+
|
|
384
422
|
## Step 11: Notify Team (if Teams MCP is configured)
|
|
385
423
|
|
|
386
424
|
Send a notification to the project's Teams channel via the Microsoft Teams MCP server — once when the PR is created:
|
|
@@ -79,6 +79,37 @@ Which? (1 / 2)
|
|
|
79
79
|
|
|
80
80
|
For `main → dev` the gate is `Code Review`: an item still at `Code Review` whose commits are on `main` has had its PR merged, which is exactly right — not a warning. Features and Tasks are skipped. Items *ahead* of the gate are reported and left alone.
|
|
81
81
|
|
|
82
|
+
## Step 3b: Scripts That Have to Be Run
|
|
83
|
+
|
|
84
|
+
A deployment script — a SQL migration, a data backfill, a PowerShell step — is attached to the work item it belongs to, and it has to run in **every** environment that item's code lands in. A promotion carries the code; it does not carry the script, and nothing in the PR says one exists. That is how an environment ends up half-deployed.
|
|
85
|
+
|
|
86
|
+
Fetch each carried work item with its attachments — `wit_work_item` `action: get`, `expand: "Relations"`, one call per item (`get_batch` has no `expand`) — and keep every relation whose `rel` is `AttachedFile` and whose filename extension is **not** a document, image or video:
|
|
87
|
+
|
|
88
|
+
```
|
|
89
|
+
.xlsx .xls .xlsm .xlsb .csv .docx .doc .docm .pdf
|
|
90
|
+
.png .jpg .jpeg .gif .bmp .ico .svg .webp .tiff .tif
|
|
91
|
+
.mp4 .mov .avi .webm .mkv .wmv .flv .m4v
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
Everything else counts, extensionless files included. The rule is deliberately loose, because the two mistakes do not cost the same: a filename someone glances at and dismisses costs seconds, a migration nobody ran costs an environment.
|
|
95
|
+
|
|
96
|
+
Show them with the gate check, before the confirmation:
|
|
97
|
+
|
|
98
|
+
```
|
|
99
|
+
📜 Scripts to run with this promotion:
|
|
100
|
+
|
|
101
|
+
| Work Item | Script |
|
|
102
|
+
|-----------|--------|
|
|
103
|
+
| AB#1234 | 2026-09-11_add_delivery_index.sql |
|
|
104
|
+
| AB#1240 | backfill-tenant-flags.ps1 |
|
|
105
|
+
|
|
106
|
+
Download them from the work items. This command does not run them.
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
If nothing carries an attachment, say `No deployment scripts attached` on one line and move on.
|
|
110
|
+
|
|
111
|
+
**Reported, never enforced.** A script does not block the promotion and does not change the gate check: the attachment may already have been run, may be a reference copy, may not be a script at all. Listing it is the whole job — the person deploying decides.
|
|
112
|
+
|
|
82
113
|
Then confirm: `Promote {count} commits from {source} to {target}? (yes/no)` — and wait.
|
|
83
114
|
|
|
84
115
|
## Step 4: Create PR
|
|
@@ -88,7 +119,7 @@ Create a PR directly from the source branch to the target branch via Azure DevOp
|
|
|
88
119
|
- **sourceRefName**: `refs/heads/<source-branch>`
|
|
89
120
|
- **targetRefName**: `refs/heads/<target-branch>`
|
|
90
121
|
- **title**: `Promote {source} → {target}`
|
|
91
|
-
- **description**: List all commits and associated work items being promoted
|
|
122
|
+
- **description**: List all commits and associated work items being promoted, and — under a `Scripts to run` heading — any deployment scripts found in Step 3b, so whoever merges sees them without opening the work items
|
|
92
123
|
|
|
93
124
|
Link the associated work items to the PR.
|
|
94
125
|
|
|
@@ -312,3 +343,10 @@ Next: {the human step — "QA tests on Test and sets Ready for Staging" / "stake
|
|
|
312
343
|
```
|
|
313
344
|
|
|
314
345
|
If the user said `stop watching`, or an update fails, leave the rest alone, say exactly which items were and were not updated, and note that `/track` will flag the lag later.
|
|
346
|
+
|
|
347
|
+
If any carried item had a deployment script (Step 3b), repeat it here — this is the moment it has to run, and the list is stale in the scroll-back by now:
|
|
348
|
+
|
|
349
|
+
```
|
|
350
|
+
📜 Still to run on {target}: AB#1234 2026-09-11_add_delivery_index.sql, AB#1240 backfill-tenant-flags.ps1
|
|
351
|
+
```
|
|
352
|
+
|
|
@@ -183,6 +183,14 @@ How the commands use this table:
|
|
|
183
183
|
- **Assign the verifier at the same time.** The state change hands the item to a person, so the same three commands ask **before the merge** who each group of items should go to, then apply the assignee alongside the state once the pipeline is green. See **Verifier Assignment** below.
|
|
184
184
|
- **Never assume the state list.** Confirm with `mcp__azure-devops__wit_work_item` (`action: get_type`) on an unfamiliar project before writing a state name — a bad name is accepted silently by a query and rejected only at write time.
|
|
185
185
|
|
|
186
|
+
#### Deployment Scripts
|
|
187
|
+
|
|
188
|
+
A SQL migration or a backfill script is attached to the work item it belongs to, and it has to run in **every** environment that item's code lands in — test, then staging, then prod. The promotion carries the code, never the script.
|
|
189
|
+
|
|
190
|
+
`/promote`, `/cherry-pick` and `/deploy-release` therefore read the carried items' attachments (`wit_work_item` `action: get`, `expand: "Relations"`) and list any that look like something to run: an `AttachedFile` whose extension is **not** a document, image or video (`.docx .xlsx .csv .pdf .png .jpg .mp4` and friends). Everything else counts — the rule is loose on purpose, because a filename glanced at and dismissed costs seconds while a migration nobody ran costs an environment. The list appears before the confirmation, in the PR description, and again once the pipeline is green, which is when it actually has to be run.
|
|
191
|
+
|
|
192
|
+
**Reported, never enforced.** A script never blocks a promotion and never changes the gate check — it may already have been run, or be a reference copy. The person deploying decides; the commands only make sure nobody finds out afterwards.
|
|
193
|
+
|
|
186
194
|
#### Verifier Assignment
|
|
187
195
|
|
|
188
196
|
Moving an item to `Testing`, `Staging`, or `Deployed` puts it on someone's plate, so `/promote`, `/cherry-pick`, and `/deploy-release` also change who owns it. The developer implemented it; from here on it belongs to whoever checks it in that environment.
|
|
@@ -303,10 +311,10 @@ All deployment and release operations are available as slash commands:
|
|
|
303
311
|
| `/resolve-feedback` | `/resolve-feedback 142` | Address unresolved PR comment threads, push fixes, reply + resolve threads |
|
|
304
312
|
| `/deploy` | `/deploy "commit message"` | Commit, push, trigger pipeline (only on `dev`/`test`/`staging`/`prod` — never on `main`) |
|
|
305
313
|
| `/create-release` | `/create-release 23` | Group work items into Release #23 |
|
|
306
|
-
| `/deploy-release` | `/deploy-release 23 staging` | Gate-check → cherry-pick release to environment → PR → ask who verifies → merge on Serena's approval (below prod) → advance + assign on a green pipeline |
|
|
314
|
+
| `/deploy-release` | `/deploy-release 23 staging` | Gate-check → list deployment scripts → cherry-pick release to environment → PR → ask who verifies → merge on Serena's approval (below prod) → advance + assign on a green pipeline |
|
|
307
315
|
| `/add-to-release` | `/add-to-release 24 AB#4599` | Add work items to existing release |
|
|
308
|
-
| `/cherry-pick` | `/cherry-pick AB#1234 AB#1235 prod` | Gate-check → cherry-pick specific work items → PR → ask who verifies → merge on Serena's approval (below prod) → advance + assign on a green pipeline |
|
|
309
|
-
| `/promote` | `/promote main dev` | Promote all code between environments (`main → dev → test → staging → prod`) → ask who verifies → merge on Serena's approval (below prod) → advance + assign on a green pipeline |
|
|
316
|
+
| `/cherry-pick` | `/cherry-pick AB#1234 AB#1235 prod` | Gate-check → list deployment scripts → cherry-pick specific work items → PR → ask who verifies → merge on Serena's approval (below prod) → advance + assign on a green pipeline |
|
|
317
|
+
| `/promote` | `/promote main dev` | Promote all code between environments (`main → dev → test → staging → prod`) → list deployment scripts → ask who verifies → merge on Serena's approval (below prod) → advance + assign on a green pipeline |
|
|
310
318
|
| `/rollback` | `/rollback AB#1234 prod` | Revert commits on an environment |
|
|
311
319
|
| `/track` | `/track release 24` | Check release, pipeline, environment, or work item status; flags work items whose state lags their environment |
|
|
312
320
|
| `/where` | `/where AB#1234` | Show which environment branches contain a work item's commits |
|