@chamba/claude-extras 0.5.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/commands/ticket.md +29 -14
- 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
|
|
|
@@ -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,
|
|
@@ -14,22 +14,37 @@ irreversible change, a product decision you can't make). You do NOT act on those
|
|
|
14
14
|
You complete everything else and surface them at the final gate. Autonomy is
|
|
15
15
|
bounded by the plan's gates — it must never silently drop an acceptance criterion.
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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.
|
|
20
23
|
|
|
21
24
|
1. Call `chamba_load_context` with the ticket to pull the workspace map (all repos
|
|
22
25
|
and what each one is) + relevant Obsidian notes + each repo's coding rules.
|
|
23
|
-
2.
|
|
24
|
-
**
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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.
|
|
33
48
|
4. Create isolated worktrees ONLY for the repos the plan identified: call
|
|
34
49
|
`chamba_create_worktrees` with the ticket and that repo list. ALL work happens
|
|
35
50
|
inside these worktrees — never edit the main checkouts.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chamba/claude-extras",
|
|
3
|
-
"version": "0.5.
|
|
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.5.
|
|
35
|
-
"@chamba/core": "0.5.
|
|
34
|
+
"@chamba/adapters": "0.5.1",
|
|
35
|
+
"@chamba/core": "0.5.1"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@types/node": "^22.0.0",
|