@chris1807/claude-kit 2.1.8 → 2.1.9

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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Claude Kit
2
2
 
3
- > A starter kit for [Claude Code](https://claude.ai/code) — agents, hooks, MCP servers, slash commands, and workflow automation, installed into any project with a single `npx` command.
3
+ > A [Claude Code](https://claude.ai/code) starter kit **built for Azure DevOps teams** — agents, hooks, MCP servers, and slash commands that automate the full work item → branch → PR → release → deploy lifecycle. Installed into any project with a single `npx` command.
4
4
 
5
5
  [![npm](https://img.shields.io/npm/v/@chris1807/claude-kit)](https://www.npmjs.com/package/@chris1807/claude-kit)
6
6
 
@@ -8,7 +8,16 @@
8
8
 
9
9
  ## About
10
10
 
11
- This package installs a complete AI development infrastructure into any project. It includes specialized agents that handle specific tasks (deployment, database ops, code review), security hooks that prevent mistakes automatically, MCP server connections to your tools (databases, Teams, Stripe, Azure CLI), and slash commands that automate your entire workflow from work item to pull request.
11
+ Claude Kit installs a complete AI development infrastructure into any project that uses **Azure DevOps** for work tracking, source control (Azure Repos), and CI/CD (Azure Pipelines). It includes specialized agents that handle specific tasks (deployment, database ops, code review), security hooks that prevent mistakes automatically, MCP server connections to your tools (Azure DevOps, databases, Teams, Stripe, Azure CLI), and slash commands that automate the entire workflow from work item to pull request.
12
+
13
+ The slash commands assume Azure DevOps as the system of record:
14
+
15
+ - **Work items** — read, created, and updated via the Azure DevOps MCP server (`AB#1234` ids throughout)
16
+ - **Branches & pull requests** — created in Azure Repos and voted on / merged through Azure DevOps
17
+ - **Releases & deployments** — tracked as Azure DevOps iterations (`Release #N`) and tags; CD runs on Azure Pipelines
18
+ - **Wiki, test plans, advanced security alerts** — all surfaced through the same Azure DevOps MCP server
19
+
20
+ > **Not using Azure DevOps?** The Claude Code primitives (agents, hooks, memory) are still useful, but the slash commands, the `devops-tracker` agent, and the deployment workflow won't apply out of the box — you'd need to rewrite the `/implement`, `/review`, `/deploy`, `/create-release`, `/deploy-release`, `/cherry-pick`, `/promote`, `/rollback`, `/status`, `/rework`, and `/resolve-feedback` commands against GitHub / GitLab / Jira / etc.
12
21
 
13
22
  Every session Claude learns from your feedback and gets better at helping you specifically. The infrastructure is modular — install only what your project needs.
14
23
 
@@ -19,8 +28,8 @@ Every session Claude learns from your feedback and gets better at helping you sp
19
28
  | **Global Agents** | 13 | `~/.claude/agents/` (your machine, all projects) | backend, frontend, legacy (Lucee/CFML), manager, mockup, reviewer, test-runner, build-validator, lint-checker, uat-generator, azure-ops, security-auditor, api-tester |
20
29
  | **Project Agents** | 3 | `.claude/agents/` (in the project) | deployer, db-admin, devops-tracker |
21
30
  | **Hooks** | 9 | `.claude/hooks/` (in the project) | Secret blocker, sensitive data blocker (Bash + MCP + output), protected files, auto-format, test suggestions, UAT reminder, self-improve |
22
- | **Slash Commands** | 13 | `.claude/commands/` (in the project) | `/implement`, `/review`, `/deploy`, `/create-release`, `/deploy-release`, `/add-to-release`, `/cherry-pick`, `/promote`, `/rollback`, `/status`, `/cleanup-branches`, `/quote`, `/explain` |
23
- | **MCP Servers** | Up to 6 | `.mcp.json` (in the project) | Playwright, MongoDB/SQL/Postgres, Teams, Stripe, Azure CLI |
31
+ | **Slash Commands** | 13 | `.claude/commands/` (in the project) | `/implement`, `/review`, `/resolve-feedback`, `/deploy`, `/create-release`, `/deploy-release`, `/add-to-release`, `/cherry-pick`, `/promote`, `/rollback`, `/status`, `/cleanup-branches`, `/quote`, `/explain` |
32
+ | **MCP Servers** | Up to 6 | `.mcp.json` (in the project) | **Azure DevOps** (work items, repos, pipelines, wiki), Playwright, MongoDB/SQL/Postgres, Teams, Stripe, Azure CLI |
24
33
  | **Workflow Template** | 1 | Appended to `CLAUDE.md` | Documents the full development process |
25
34
  | **Settings** | 1 | `.claude/settings.json` (in the project) | Registers all hooks and MCP servers |
26
35
 
@@ -30,6 +39,8 @@ Every session Claude learns from your feedback and gets better at helping you sp
30
39
 
31
40
  - [Claude Code CLI](https://claude.ai/code) installed
32
41
  - [Node.js](https://nodejs.org/) 18 or later
42
+ - An **Azure DevOps** organization with a project for work items, an Azure Repos Git repository, and (optionally) Azure Pipelines for CD
43
+ - An Azure DevOps Personal Access Token (PAT) — used by the Azure DevOps MCP server. Scopes needed: Work Items (read/write), Code (read/write), Build (read/execute), Wiki (read/write)
33
44
 
34
45
  ### Verify it works
35
46
 
@@ -62,7 +73,7 @@ You'll be asked:
62
73
  2. **Components** — checkboxes to pick which parts to install:
63
74
  - ☑ Project Agents (deployer, db-admin, devops-tracker)
64
75
  - ☑ Hooks (secret blocker, auto-format, etc.)
65
- - ☑ Slash Commands (13 commands — /implement, /review, /deploy, /create-release, /deploy-release, /add-to-release, /cherry-pick, /promote, /rollback, /status, /cleanup-branches, /quote, /explain)
76
+ - ☑ Slash Commands (/implement, /review, /resolve-feedback, /deploy, /create-release, /deploy-release, /add-to-release, /cherry-pick, /promote, /rollback, /status, /cleanup-branches, /quote, /explain)
66
77
  - ☑ MCP Servers
67
78
  - ☑ Settings
68
79
  - ☑ CLAUDE.md Workflow
@@ -606,6 +617,7 @@ Claude reviews for:
606
617
  |---------|-------|-------------|
607
618
  | `/implement` | `/implement AB#1234` | Read work item → summarize → approve plan → implement → quality checks → UAT → PR |
608
619
  | `/review` | `/review 142` | Full code review on a PR with inline comments |
620
+ | `/resolve-feedback` | `/resolve-feedback 142` | Address unresolved PR comment threads, push fixes, reply + resolve threads |
609
621
  | `/deploy` | `/deploy "message"` | Commit, push, trigger pipeline if on environment branch |
610
622
  | `/create-release` | `/create-release 23` | Group work items into Release #23 iteration with tags |
611
623
  | `/deploy-release` | `/deploy-release 23 staging` | Cherry-pick release work items to environment via PR |
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@chris1807/claude-kit",
3
- "version": "2.1.8",
4
- "description": "Claude Code starter kit — agents, hooks, MCP servers, slash commands, and workflow automation",
3
+ "version": "2.1.9",
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": {
7
7
  "claude-kit": "./bin/cli.js"
@@ -17,7 +17,10 @@
17
17
  "mcp",
18
18
  "agents",
19
19
  "hooks",
20
- "starter-kit"
20
+ "starter-kit",
21
+ "azure-devops",
22
+ "azure-pipelines",
23
+ "devops-workflow"
21
24
  ],
22
25
  "author": "Chris Waters <chriswaters@caresolutions.com>",
23
26
  "license": "MIT",
@@ -0,0 +1,167 @@
1
+ Resolve unresolved comment threads on a pull request. Usage: `/resolve-feedback <pr-id>` (or `/resolve-feedback` to auto-detect from the current branch).
2
+
3
+ This is the lightweight counterpart to `/rework`. It targets **PR comment threads** specifically — read each active thread, implement the fix, push, then reply to and resolve the thread on the PR. No Task creation, no hours tracking, no UAT gate. Use `/rework` when feedback spans the whole work item or requires a new round of full quality checks.
4
+
5
+ ## Step 1: Identify the Pull Request
6
+
7
+ Parse `$ARGUMENTS`:
8
+
9
+ - **PR id given** (`142`, `#142`, `!142`) — strip non-digits and use as the PR id.
10
+ - **No argument** — find the PR for the current branch:
11
+ 1. Get current branch via `git rev-parse --abbrev-ref HEAD`.
12
+ 2. Call `repo_list_pull_requests_by_repo_or_project` filtered to `sourceRefName: refs/heads/<branch>` and `status: active`.
13
+ 3. If exactly one match, use it. If zero or multiple, ask the user which PR id to target — do not guess.
14
+
15
+ Fetch the PR via `repo_get_pull_request_by_id`. Record:
16
+ - `pullRequestId`, `title`, `status`
17
+ - `sourceRefName` (the branch holding the fixes) and `targetRefName`
18
+ - Linked work item id(s) from artifact links — used only for context, not modified by this command.
19
+
20
+ ## Step 2: List Active Comment Threads
21
+
22
+ Call `repo_list_pull_request_threads` for the PR. Filter the returned threads to the ones that need a response:
23
+
24
+ **Include a thread when all of these are true:**
25
+ - `status` is `active` or `pending` (statuses `1` or `6`). Skip `fixed`, `wontFix`, `closed`, `byDesign`.
26
+ - It contains at least one comment authored by a real reviewer (`commentType` is `text`, not `system`).
27
+ - It is not a system-generated thread (vote changes, policy violations, build failures, work-item link additions, etc. — these have `commentType: system` or no real comments).
28
+ - It is not authored exclusively by the current PR author. A thread where the PR author is talking to themselves with no reviewer input is not feedback to resolve. (Use the PR `createdBy.id` as the author id.)
29
+
30
+ For each remaining thread, capture:
31
+ - `threadId`
32
+ - `threadContext` — `filePath`, `rightFileStart.line` / `leftFileStart.line` (may be null for PR-level threads)
33
+ - Full comment chain via `repo_list_pull_request_thread_comments` — author, date, body. Inline images in comments often carry critical context; if a comment body contains an `<img src="...">` pointing to an Azure DevOps attachment, download and view it via WebFetch before proposing a fix.
34
+
35
+ If there are zero qualifying threads, tell the user `No unresolved reviewer threads on PR #{id}.` and stop.
36
+
37
+ ## Step 3: Switch to the PR Branch
38
+
39
+ Before reading code or proposing fixes, make sure local state matches the PR:
40
+
41
+ 1. `git fetch`
42
+ 2. If the current branch ≠ `sourceRefName` (stripping `refs/heads/`): `git checkout <source-branch>`. If the branch does not exist locally, `git checkout -b <source-branch> origin/<source-branch>`.
43
+ 3. `git pull --ff-only` — refuse to proceed on a dirty or diverged working tree; ask the user to resolve it first rather than auto-stashing or force-resetting.
44
+
45
+ ## Step 4: Triage and Propose Responses
46
+
47
+ For each qualifying thread, read the referenced code (use `threadContext.filePath` + line) and decide one of:
48
+
49
+ - **fix** — code change needed. Draft the change in your head and capture which files will be touched.
50
+ - **reply-only** — answers the reviewer's question without a code change (clarification, link to existing code, explanation of intentional design). Capture the reply text.
51
+ - **defer** — out of scope for this round; reply explaining why and leave the thread `active`. Do not silently skip.
52
+
53
+ Present the full triage to the user before touching any code:
54
+
55
+ ```
56
+ PR #{id}: {title}
57
+ Branch: {source-branch} → {target-branch}
58
+ Active reviewer threads: {count}
59
+
60
+ ## Thread 1 — {file}:{line} (or "PR-level" if no file context)
61
+ Reviewer ({name}, {date}):
62
+ > {comment excerpt — first ~200 chars}
63
+ {additional reply chain summarized in 1 line each, if any}
64
+
65
+ Proposed action: FIX
66
+ Files to change:
67
+ - {path} — {what changes}
68
+ - {path} — {what changes}
69
+ Reply on resolve: "{short summary that will be posted with the resolution}"
70
+
71
+ ## Thread 2 — {file}:{line}
72
+ Reviewer ({name}, {date}):
73
+ > {comment excerpt}
74
+
75
+ Proposed action: REPLY-ONLY (no code change)
76
+ Reply: "{text to post}"
77
+
78
+ ## Thread 3 — PR-level
79
+ Reviewer ({name}, {date}):
80
+ > {comment excerpt}
81
+
82
+ Proposed action: DEFER (out of scope for this round)
83
+ Reply: "{text explaining why this will be handled separately}"
84
+
85
+ ---
86
+ Approve this plan? (yes / edit <n>: <change> / skip <n> / no)
87
+ ```
88
+
89
+ **Wait for the user's response.** Apply edits and re-present until the user replies `yes`. `skip <n>` removes a thread from this round entirely — it stays active on the PR and gets no reply.
90
+
91
+ ## Step 5: Implement the Fixes
92
+
93
+ For each thread marked **fix** in the approved plan:
94
+
95
+ 1. Make the code change. Use the `backend` / `frontend` / `legacy` agents when the change is non-trivial; small targeted edits can go through `Edit` directly.
96
+ 2. Add or update tests when the fix changes observable behavior. A reviewer comment that says "this doesn't handle empty input" implies a missing test case — add it. Do not add tests for pure rename/comment/formatting fixes.
97
+
98
+ Implement all fixes before moving to validation — batching keeps the build/test cycle short.
99
+
100
+ ## Step 6: Validate
101
+
102
+ Run in this order. Stop and fix on the first failure before continuing.
103
+
104
+ 1. **Build** — via the `build-validator` agent. Build must be clean.
105
+ 2. **Lint** — `dotnet format` for `.cs` changes, ESLint for `.ts`/`.tsx` changes (only on touched files; full-repo lint runs are wasteful here).
106
+ 3. **Tests** — run the test suites that cover the files you touched (`test-runner` agent). If a touched file has no test coverage, call that out in the final summary rather than silently skipping.
107
+
108
+ If validation fails after a reasonable fix attempt, stop and report — do not push broken code to resolve a comment.
109
+
110
+ ## Step 7: Confirm Before Pushing
111
+
112
+ Show the user exactly what will happen next:
113
+
114
+ ```
115
+ Validation passed.
116
+
117
+ Changes ready to push to {source-branch}:
118
+ {git diff --stat output}
119
+
120
+ About to:
121
+ 1. git push origin {source-branch}
122
+ 2. For each FIX thread: reply with the resolution summary + mark as Fixed (status 2)
123
+ 3. For each REPLY-ONLY: reply with the response + mark as Closed (status 4)
124
+ 4. For each DEFER thread: reply with the deferral note + leave status Active
125
+
126
+ Proceed? (yes / no)
127
+ ```
128
+
129
+ **Wait for `yes`.** Anything else aborts without pushing or touching the PR.
130
+
131
+ ## Step 8: Push and Update the PR
132
+
133
+ 1. `git push origin <source-branch>`.
134
+ 2. For each thread in the approved plan, in order:
135
+ - Call `repo_reply_to_comment` with the reply text. Reference the new commit SHA in FIX replies (e.g. `Fixed in {sha} — {one-line summary of what changed}`).
136
+ - Call `repo_update_pull_request_thread` to set `status`:
137
+ - **fix** → `fixed` (2)
138
+ - **reply-only** → `closed` (4)
139
+ - **defer** → leave as `active` (do not call the update; only the reply was posted)
140
+ 3. After every thread has been processed, post one PR-level summary comment via `repo_create_pull_request_thread` (new top-level thread, status `closed`):
141
+
142
+ ```
143
+ Resolved review feedback in {sha}:
144
+ - {N} threads addressed with code fixes
145
+ - {M} threads answered without code changes
146
+ - {K} threads deferred ({reason summary})
147
+ ```
148
+
149
+ Skip the summary comment if only one thread was touched — the reply on that thread already says everything.
150
+
151
+ 4. Do **not** change the work item state, do **not** create Tasks, do **not** log hours. Those belong to `/rework`. Leave the PR vote alone — the reviewer drives the next vote when they see the resolved threads.
152
+
153
+ ## Step 9: Final Report
154
+
155
+ Print to the user:
156
+
157
+ ```
158
+ PR #{id} — feedback resolved
159
+ Branch: {source-branch} ({sha})
160
+ Fixed: {N} thread(s)
161
+ Replied: {M} thread(s)
162
+ Deferred: {K} thread(s)
163
+ Files touched: {file count}
164
+ Tests added/updated: {test file count, or "none — no behavior change"}
165
+ ```
166
+
167
+ If any thread was deferred, list those thread ids explicitly so the user can decide whether they need to file a follow-up work item or address them in a later round.
@@ -3,6 +3,8 @@
3
3
 
4
4
  This project uses [Claude Kit](https://github.com/Christopher-Waters/claude-kit) — a standardized set of agents, hooks, MCP servers, and workflows installed via `npx @chris1807/claude-kit init`.
5
5
 
6
+ > **This workflow is built for Azure DevOps.** Work items, branches, pull requests, releases (as iterations), and CD pipelines all live in Azure DevOps. The slash commands below talk to it through the Azure DevOps MCP server — `AB#1234` ids refer to Azure DevOps work items, PR numbers refer to Azure Repos pull requests, and pipeline ids refer to Azure Pipelines build definitions. If your project lives somewhere else (GitHub, GitLab, Jira), these commands will not work as-is.
7
+
6
8
  ### Agent Pipeline
7
9
 
8
10
  When given a task, Claude Code can delegate through specialized agents:
@@ -51,7 +53,7 @@ These run automatically — no action needed:
51
53
 
52
54
  | Server | What It Does |
53
55
  |--------|-------------|
54
- | **Azure DevOps** | Work items, pipelines, repos, wiki |
56
+ | **Azure DevOps** *(core — drives every slash command)* | Work items, repos, pull requests, pipelines, wiki, test plans, advanced security |
55
57
  | **Playwright** | Browser testing (navigate, click, fill, screenshot) |
56
58
  | **MongoDB** | Direct database queries and updates |
57
59
  | **Microsoft Teams** | Send/read team messages and notifications |
@@ -200,6 +202,7 @@ All deployment and release operations are available as slash commands:
200
202
  |---|---|---|
201
203
  | `/implement` | `/implement AB#1234` | Summarize work item → approve plan → implement → PR |
202
204
  | `/review` | `/review 142` | Automated code review on a PR |
205
+ | `/resolve-feedback` | `/resolve-feedback 142` | Address unresolved PR comment threads, push fixes, reply + resolve threads |
203
206
  | `/deploy` | `/deploy "commit message"` | Commit, push, trigger pipeline |
204
207
  | `/create-release` | `/create-release 23` | Group work items into Release #23 |
205
208
  | `/deploy-release` | `/deploy-release 23 staging` | Cherry-pick release to environment |