@chamba/claude-extras 0.4.0 → 0.5.1
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 +14 -5
- package/assets/agents/reviewer.md +6 -1
- package/assets/commands/ticket.md +57 -17
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -159,11 +159,20 @@ Then, in Claude Code:
|
|
|
159
159
|
/ticket TICKET-123
|
|
160
160
|
```
|
|
161
161
|
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
162
|
+
If you already wrote a plan (in plan mode, exported to a `.md`, or by hand), reuse it and
|
|
163
|
+
skip the planning step:
|
|
164
|
+
|
|
165
|
+
```
|
|
166
|
+
/ticket -p ./plans/TICKET-123.md TICKET-123
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
`/ticket` runs the full orchestrator-worker flow: `chamba_load_context` → delegate the
|
|
170
|
+
plan to the **planner** subagent (or, with `-p <plan-path>`, read your plan and skip
|
|
171
|
+
this) → `chamba_review_plan` + the **reviewer** subagent → create worktrees only for the
|
|
172
|
+
repos the plan touches → delegate code to **implementer** and tests to **tester** (all
|
|
173
|
+
inside the worktrees) → verify the real diff (referential closure + build/typecheck) →
|
|
174
|
+
`chamba_summarize_to_vault`. It runs to the end and stops for your review with an
|
|
175
|
+
acceptance-criteria checklist. It **never commits, merges or pushes** — you review,
|
|
167
176
|
commit and send to code review by hand. Each worker runs with the model + effort you
|
|
168
177
|
configured above.
|
|
169
178
|
|
|
@@ -12,7 +12,12 @@ risky assumptions, scope that's too big for one pass.
|
|
|
12
12
|
|
|
13
13
|
When reviewing a diff, check for: correctness bugs, missing tests, unhandled
|
|
14
14
|
errors, security/permissions issues, and anything that violates the project's
|
|
15
|
-
stated conventions.
|
|
15
|
+
stated conventions. When the diff **deletes** code, also check referential
|
|
16
|
+
closure both ways: nothing still references what was removed (forward), and
|
|
17
|
+
nothing the removal orphaned is left behind — now-unused exports, helpers or
|
|
18
|
+
imports whose only caller is gone (backward). A token grep misses orphans whose
|
|
19
|
+
name doesn't contain the deleted symbol; lean on the build/typechecker and a
|
|
20
|
+
dead-code check, not just grep.
|
|
16
21
|
|
|
17
22
|
Output a verdict (`approved` or `changes requested`) followed by a concise,
|
|
18
23
|
prioritized list of concrete issues. Do not rewrite the code yourself — describe
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: Resolve a ticket end-to-end in isolated worktrees, delegating to chamba's agents
|
|
3
|
-
argument-hint: <ticket> [repo ...]
|
|
3
|
+
argument-hint: "[-p <plan-path>] <ticket> [repo ...]"
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
You are orchestrating ticket **$ARGUMENTS** end-to-end. chamba provides context,
|
|
@@ -8,26 +8,66 @@ plan validation, worktrees and vault memory; you delegate the thinking and the
|
|
|
8
8
|
code to the configured subagents. **Run to the end and stop only for my final
|
|
9
9
|
review** — do not pause for approval mid-way.
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
**One exception to running autonomously:** the plan itself may mark an item as
|
|
12
|
+
needing my approval (scope expansion beyond the ticket, a destructive or
|
|
13
|
+
irreversible change, a product decision you can't make). You do NOT act on those.
|
|
14
|
+
You complete everything else and surface them at the final gate. Autonomy is
|
|
15
|
+
bounded by the plan's gates — it must never silently drop an acceptance criterion.
|
|
16
|
+
|
|
17
|
+
Parse the arguments first. If they start with `-p` or `--plan`, the next token is
|
|
18
|
+
the path to a plan I already wrote (relative to the workspace root, or absolute) —
|
|
19
|
+
read it and skip planning (see step 2). The first non-flag token is the ticket id;
|
|
20
|
+
any tokens after it are repos I named explicitly. Analyze first, create worktrees
|
|
21
|
+
only for the repos actually touched — do not create a worktree for every repo in
|
|
22
|
+
the workspace.
|
|
14
23
|
|
|
15
24
|
1. Call `chamba_load_context` with the ticket to pull the workspace map (all repos
|
|
16
|
-
and what each one is) + relevant Obsidian notes.
|
|
17
|
-
2.
|
|
18
|
-
**
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
25
|
+
and what each one is) + relevant Obsidian notes + each repo's coding rules.
|
|
26
|
+
2. Obtain the plan:
|
|
27
|
+
- **If I passed `-p <plan-path>` and the file exists:** read it and use it as
|
|
28
|
+
THE plan — do NOT delegate to the planner. Run it through `chamba_review_plan`
|
|
29
|
+
to sanity-check structure and surface issues, but do NOT bring in the reviewer
|
|
30
|
+
subagent to rewrite it (I already approved this plan). If the plan doesn't
|
|
31
|
+
cover a ticket acceptance criterion, or fails to mark a risky item
|
|
32
|
+
**needs-approval**, note it as a gap and carry it to the final report — don't
|
|
33
|
+
invent scope to fill it. Then skip to step 4.
|
|
34
|
+
- **If `-p` was given but the file does not exist:** tell me you couldn't find
|
|
35
|
+
it, then fall back to generating the plan (next bullet).
|
|
36
|
+
- **Otherwise (no `-p`):** delegate to the **planner** subagent to produce the
|
|
37
|
+
plan, then continue to step 3.
|
|
38
|
+
Either way the plan MUST state **which repos the ticket touches and why**, with
|
|
39
|
+
subtasks grouped per repo, and map **every acceptance criterion of the ticket**
|
|
40
|
+
to a subtask. Items needing a decision you can't make autonomously are marked
|
|
41
|
+
**needs-approval** — a hard gate, not something to resolve on your own. If I
|
|
42
|
+
named repos in the arguments, use exactly those; otherwise infer the set from
|
|
43
|
+
the plan + the workspace map. List ambiguities as assumptions — do not invent
|
|
44
|
+
scope.
|
|
45
|
+
3. (Skip when the plan came from `-p` — already checked in step 2.) Run the plan
|
|
46
|
+
through `chamba_review_plan` and have the **reviewer** subagent audit it. Fix
|
|
47
|
+
and re-review until approved (max 3 rounds). Do NOT stop to ask me.
|
|
24
48
|
4. Create isolated worktrees ONLY for the repos the plan identified: call
|
|
25
49
|
`chamba_create_worktrees` with the ticket and that repo list. ALL work happens
|
|
26
50
|
inside these worktrees — never edit the main checkouts.
|
|
27
51
|
5. For each subtask/repo, delegate implementation to the **implementer** subagent
|
|
28
52
|
(in that repo's worktree) and the tests to the **tester** subagent; run them.
|
|
29
|
-
6.
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
53
|
+
6. **Verify against the real diff** (not the plan). For each touched repo: have the
|
|
54
|
+
**reviewer** subagent audit the actual diff for correctness, missing tests, and
|
|
55
|
+
**referential closure** — anything the change deleted must leave no orphaned
|
|
56
|
+
callers and no now-unused exports. Then run that repo's build / typecheck / lint,
|
|
57
|
+
and a dead-code check if the repo has one (knip, ts-prune). Token grep alone
|
|
58
|
+
misses orphans whose name doesn't contain the deleted symbol — rely on the
|
|
59
|
+
build/typechecker/dead-code tool, not just grep. Fix what comes back, then
|
|
60
|
+
re-verify (max 3 rounds).
|
|
61
|
+
7. Call `chamba_summarize_to_vault` with a summary of what changed.
|
|
62
|
+
8. STOP and report for my review. The report MUST include:
|
|
63
|
+
- the repos touched and why;
|
|
64
|
+
- per repo, what changed and the test + verify results;
|
|
65
|
+
- an **acceptance-criteria checklist**: every AC of the ticket marked
|
|
66
|
+
**Delivered** or **Not delivered**. Anything the plan marked
|
|
67
|
+
**needs-approval**, or any AC you could not deliver without a deferred
|
|
68
|
+
decision, goes under **"Needs your decision"** with what's pending and why —
|
|
69
|
+
never omit it;
|
|
70
|
+
- the `.code-workspace` to open, and the suggested commit +
|
|
71
|
+
`git merge --no-ff` commands.
|
|
72
|
+
Do NOT commit, merge or push — I review, commit and send to my company's code
|
|
73
|
+
review by hand.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chamba/claude-extras",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "Optional Claude Code extras for chamba: slash commands, subagents and hooks installer",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@inquirer/prompts": "^7.0.0",
|
|
34
|
-
"@chamba/adapters": "0.
|
|
35
|
-
"@chamba/core": "0.
|
|
34
|
+
"@chamba/adapters": "0.5.1",
|
|
35
|
+
"@chamba/core": "0.5.1"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@types/node": "^22.0.0",
|