@jeiemgi/cckit 0.10.0 → 0.12.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/.claude-plugin/plugin.json +1 -1
- package/AGENTS.md +136 -127
- package/README.md +66 -43
- package/bin/cckit +151 -181
- package/cckit.config.json +1 -4
- package/package.json +1 -1
- package/scripts/advisor-test.sh +55 -0
- package/scripts/autopilot-run-test.sh +20 -12
- package/scripts/autopilot-run.sh +9 -1
- package/scripts/autopilot-test.sh +29 -13
- package/scripts/autopilot.sh +4 -4
- package/scripts/benchmark/verb-timings-test.sh +4 -0
- package/scripts/benchmark/verb-timings.sh +16 -5
- package/scripts/capture-project-ids.sh +23 -1
- package/scripts/check.sh +25 -0
- package/scripts/content-skills-test.sh +1 -1
- package/scripts/contribute.sh +8 -3
- package/scripts/copilot-loop-test.sh +66 -81
- package/scripts/exec-targets-test.sh +20 -0
- package/scripts/force-push-fence-test.sh +44 -0
- package/scripts/force-push-fence.baseline +1 -0
- package/scripts/force-push-fence.sh +51 -0
- package/scripts/forge-fence-test.sh +69 -0
- package/scripts/forge-fence.baseline +2 -0
- package/scripts/forge-fence.sh +76 -0
- package/scripts/forge-report-test.sh +100 -0
- package/scripts/forge-report.sh +176 -0
- package/scripts/init-guided-test.sh +94 -82
- package/scripts/init.sh +12 -7
- package/scripts/install-test.sh +26 -0
- package/scripts/install.sh +7 -0
- package/scripts/instruction-budget-baseline.txt +1 -1
- package/scripts/kit-doctor-test.sh +60 -12
- package/scripts/kit-doctor.sh +170 -77
- package/scripts/lib/agent-resolve-test.sh +2 -0
- package/scripts/lib/agent-resolve.sh +15 -8
- package/scripts/lib/board-view.sh +3 -3
- package/scripts/lib/captain.sh +37 -8
- package/scripts/lib/content-kinds-gc-test.sh +22 -21
- package/scripts/lib/copilot-test.sh +20 -11
- package/scripts/lib/copilot.sh +19 -13
- package/scripts/lib/effort-close-subs-test.sh +96 -0
- package/scripts/lib/effort-dispatch-test.sh +5 -3
- package/scripts/lib/effort-metrics-test.sh +7 -12
- package/scripts/lib/effort-metrics.sh +17 -46
- package/scripts/lib/effort-ops-test.sh +261 -167
- package/scripts/lib/effort-ops.sh +449 -171
- package/scripts/lib/effort-parity-test.sh +57 -62
- package/scripts/lib/effort-plan-test.sh +56 -54
- package/scripts/lib/effort-plan.sh +14 -7
- package/scripts/lib/effort-review-test.sh +107 -0
- package/scripts/lib/effort-review.sh +93 -0
- package/scripts/lib/effort-slug-test.sh +34 -14
- package/scripts/lib/effort-slug.sh +13 -13
- package/scripts/lib/effort.sh +58 -80
- package/scripts/lib/forge-github.sh +260 -0
- package/scripts/lib/forge-none.sh +24 -0
- package/scripts/lib/forge-test.sh +186 -0
- package/scripts/lib/forge.sh +133 -0
- package/scripts/lib/gh-board-add-test.sh +118 -0
- package/scripts/lib/gh-project-test.sh +151 -31
- package/scripts/lib/gh-project.sh +139 -11
- package/scripts/lib/gh-rest-test.sh +63 -118
- package/scripts/lib/gh-rest.sh +275 -52
- package/scripts/lib/git-core-test.sh +128 -0
- package/scripts/lib/grill-record-test.sh +49 -0
- package/scripts/lib/grill-record.sh +88 -0
- package/scripts/lib/handoff.sh +1 -1
- package/scripts/lib/init-github.sh +38 -13
- package/scripts/lib/kinds-test.sh +13 -16
- package/scripts/lib/kit-brief-test.sh +51 -10
- package/scripts/lib/kit-brief.sh +103 -18
- package/scripts/lib/kit-gc-test.sh +90 -109
- package/scripts/lib/kit-gc.sh +19 -22
- package/scripts/lib/kit-hotfix.sh +18 -16
- package/scripts/lib/kit-interview.sh +6 -0
- package/scripts/lib/kit-lib-test.sh +1 -1
- package/scripts/lib/kit-lib.sh +7 -7
- package/scripts/lib/kit-msg.sh +3 -3
- package/scripts/lib/kit-status.sh +19 -14
- package/scripts/lib/kit-task-ops-test.sh +20 -1
- package/scripts/lib/kit-task-ops.sh +177 -94
- package/scripts/lib/kto-hotfix-test.sh +53 -58
- package/scripts/lib/kto-task-close-test.sh +28 -27
- package/scripts/lib/kto-task-new-test.sh +55 -48
- package/scripts/lib/kto-task-pr-merge-test.sh +77 -41
- package/scripts/lib/kto-task-pr-test.sh +30 -34
- package/scripts/lib/light-task-run-test.sh +19 -15
- package/scripts/lib/light-task-test.sh +34 -29
- package/scripts/lib/light-task.sh +24 -13
- package/scripts/lib/loose-issues.sh +65 -0
- package/scripts/lib/naming-test.sh +112 -0
- package/scripts/lib/naming-verbs-test.sh +126 -0
- package/scripts/lib/naming.sh +172 -0
- package/scripts/lib/next-test.sh +27 -22
- package/scripts/lib/next.sh +13 -7
- package/scripts/lib/orchestration-runtime-test.sh +11 -8
- package/scripts/lib/plan-machine.sh +22 -16
- package/scripts/lib/plan-next.sh +4 -4
- package/scripts/lib/pr-evidence-test.sh +63 -74
- package/scripts/lib/pr-evidence.sh +15 -12
- package/scripts/lib/qa-lane-test.sh +59 -27
- package/scripts/lib/qa-lane.sh +14 -6
- package/scripts/lib/review-page-test.sh +34 -25
- package/scripts/lib/review-page.sh +10 -4
- package/scripts/lib/spec-lint-test.sh +63 -0
- package/scripts/lib/spec-lint.sh +95 -0
- package/scripts/lib/sprint-test.sh +96 -0
- package/scripts/lib/sprint.sh +216 -0
- package/scripts/lib/stage-receipt-test.sh +169 -19
- package/scripts/lib/stage-receipt.sh +195 -10
- package/scripts/lib/test-forge-shim.sh +115 -0
- package/scripts/lib/verbs.sh +105 -0
- package/scripts/lib/verbs.tsv +92 -0
- package/scripts/lib/version-bump-test.sh +20 -0
- package/scripts/lib/version-bump.sh +4 -2
- package/scripts/lib/worker-brief-test.sh +1 -1
- package/scripts/lib/worker-brief.sh +1 -1
- package/scripts/lib/worktree-issue-test.sh +24 -19
- package/scripts/lib/worktree-issue.sh +10 -10
- package/scripts/lib/worktree-start-test.sh +13 -16
- package/scripts/lib/worktree-start.sh +57 -7
- package/scripts/loose-issues-test.sh +102 -0
- package/scripts/loose-issues.baseline +5 -0
- package/scripts/marketing-walkthrough-test.sh +25 -30
- package/scripts/night-grant.sh +14 -8
- package/scripts/night-run.mjs +1 -1
- package/scripts/orchestrate-test.sh +27 -31
- package/scripts/orchestrate.sh +9 -3
- package/scripts/portable-test.sh +37 -36
- package/scripts/publish.sh +9 -3
- package/scripts/setup-labels.sh +23 -12
- package/scripts/setup-milestones.sh +8 -2
- package/scripts/status-test.sh +39 -33
- package/scripts/status.sh +12 -6
- package/scripts/task-sync-test.sh +75 -32
- package/scripts/task-sync.sh +97 -6
- package/scripts/terms-check-test.sh +191 -0
- package/scripts/terms-check.sh +242 -0
- package/scripts/verbs-gen.sh +43 -0
- package/scripts/verbs-help-test.sh +61 -0
- package/scripts/verbs-ratchet-test.sh +69 -0
- package/scripts/verbs-ratchet.sh +34 -0
- package/scripts/verbs-test.sh +120 -0
- package/scripts/verbs.baseline +5 -0
- package/skills/kit-add/SKILL.md +2 -1
- package/skills/kit-advisor/SKILL.md +75 -0
- package/skills/kit-advisor/references/close.md +53 -0
- package/skills/kit-advisor/references/grill.md +69 -0
- package/skills/kit-advisor/references/orchestrate.md +56 -0
- package/skills/kit-advisor/references/plan.md +64 -0
- package/skills/kit-advisor/references/review.md +47 -0
- package/skills/kit-advisor/references/step-report.md +61 -0
- package/skills/kit-annotate/SKILL.md +1 -0
- package/skills/kit-autopilot/SKILL.md +2 -1
- package/skills/kit-cleanup/SKILL.md +3 -2
- package/skills/kit-contribute/SKILL.md +1 -0
- package/skills/kit-customize/SKILL.md +1 -0
- package/skills/kit-dev/SKILL.md +1 -0
- package/skills/kit-digest/SKILL.md +1 -0
- package/skills/kit-docs-writer/SKILL.md +4 -3
- package/skills/kit-effort-close/SKILL.md +18 -9
- package/skills/kit-effort-new/SKILL.md +12 -8
- package/skills/kit-effort-pr/SKILL.md +8 -7
- package/skills/kit-effort-start/SKILL.md +1 -0
- package/skills/kit-gc/SKILL.md +1 -0
- package/skills/kit-next/SKILL.md +8 -7
- package/skills/kit-onboard/SKILL.md +1 -0
- package/skills/kit-page/SKILL.md +1 -0
- package/skills/kit-plan-next/SKILL.md +11 -11
- package/skills/kit-security-sweep/SKILL.md +1 -0
- package/skills/kit-ship/SKILL.md +1 -0
- package/skills/kit-status/SKILL.md +6 -5
- package/skills/kit-task-close/SKILL.md +1 -0
- package/skills/kit-task-new/SKILL.md +1 -0
- package/skills/kit-task-pr/SKILL.md +1 -0
- package/skills/kit-task-pr-auto/SKILL.md +2 -1
- package/skills/kit-task-pr-merge/SKILL.md +4 -3
- package/skills/kit-task-start/SKILL.md +1 -0
- package/skills/kit-task-sync/SKILL.md +3 -0
- package/skills/kit-ux-audit/SKILL.md +1 -0
- package/skills/routing.yaml +124 -0
- package/templates/hooks/kit-mail-check.sh.tmpl +1 -1
- package/templates/instructions.md.tmpl +3 -3
- package/templates/rules/authoring.md +7 -3
- package/templates/rules/delegation-brief.md +4 -0
- package/templates/rules/effort-model.md +34 -31
- package/templates/rules/gate-and-review.md +1 -1
- package/templates/rules/merge-safety.md +9 -7
- package/templates/rules/naming-and-ids.md +20 -24
- package/templates/rules/plan-next.md +5 -5
- package/templates/skills/campaign/SKILL.md +2 -2
- package/scripts/lib/engine-adapter.sh +0 -93
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: kit-advisor
|
|
3
|
+
terms: Advisor
|
|
4
|
+
description: >
|
|
5
|
+
Run project management as a mode of the builder: route a request to its stage (grill, plan,
|
|
6
|
+
orchestrate, review, close), run that stage with the cckit verbs, and end every stage with a step
|
|
7
|
+
report and its trail comment.
|
|
8
|
+
when_to_use: >
|
|
9
|
+
"create an effort", "plan an effort", "plan the sprint", "brief the workers", "review the
|
|
10
|
+
effort", "close the sprint". Not for one issue (kit-ship) or a plan already approved (kit-autopilot).
|
|
11
|
+
metadata:
|
|
12
|
+
version: 1.0.0
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
# kit-advisor — the stage router
|
|
16
|
+
|
|
17
|
+
The advisor helps the owner decide the work and then keeps it honest. It writes no code: builders
|
|
18
|
+
do, in their own worktrees. Each stage below has one reference file; read only the one you route to.
|
|
19
|
+
|
|
20
|
+
## 1. Route the request
|
|
21
|
+
|
|
22
|
+
| The request | Stage | Reference |
|
|
23
|
+
| --- | --- | --- |
|
|
24
|
+
| a goal with open decisions: "create an effort", "grill me on this" | grill | `references/grill.md` |
|
|
25
|
+
| a grilled goal: "plan the effort", "plan the sprint", "what goes in this week" | plan | `references/plan.md` |
|
|
26
|
+
| a planned effort: "start it", "brief the workers", "run the wave" | orchestrate | `references/orchestrate.md` |
|
|
27
|
+
| landed subs: "review the effort", "is it done", "check the subs" | review | `references/review.md` |
|
|
28
|
+
| a finished sprint or effort: "close the sprint", "retro", "wrap up" | close | `references/close.md` |
|
|
29
|
+
|
|
30
|
+
Pick the earliest stage whose input is missing. A goal with no `## Grilling` record goes to grill,
|
|
31
|
+
even when the request said "plan": a plan built on undecided questions gets planned twice.
|
|
32
|
+
|
|
33
|
+
## 2. Find where the work stands
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
cckit status --board # the open efforts, their subs, what is blocked
|
|
37
|
+
cckit effort sprint name # the current sprint, Monday to Monday
|
|
38
|
+
cckit effort sprint list # the sprints open on the forge, with their counts
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Facts are looked up, never asked: the sprint, the subs, their state and their Specs come from these
|
|
42
|
+
verbs. Only decisions go to the owner.
|
|
43
|
+
|
|
44
|
+
## 3. Run the stage
|
|
45
|
+
|
|
46
|
+
Open its reference and follow it. Every stage uses the verbs it names and nothing else; a step the
|
|
47
|
+
verbs cannot do is a defect in the kit, so report it instead of hand-rolling `git` or `gh` calls.
|
|
48
|
+
|
|
49
|
+
| Stage | Main verbs |
|
|
50
|
+
| --- | --- |
|
|
51
|
+
| grill | `cckit page open` · `cckit effort new --grilling-file F` |
|
|
52
|
+
| plan | `cckit effort sprint open` · `cckit effort new --sprint` · `cckit effort sub --spec` · `cckit effort plan --issues --effort N` |
|
|
53
|
+
| orchestrate | `cckit effort start N` · `cckit brief <sub> --skills S --verbs V` · `cckit effort plan --wave --effort N` |
|
|
54
|
+
| review | `cckit effort review N` |
|
|
55
|
+
| close | `cckit effort sprint close` · `cckit effort close N` |
|
|
56
|
+
|
|
57
|
+
## 4. Report the stage
|
|
58
|
+
|
|
59
|
+
Every stage ends with a step report, in this order and no other:
|
|
60
|
+
|
|
61
|
+
**Status · Done · Waiting for a yes · Numbers · Failing or risky · Open questions · Next step**
|
|
62
|
+
|
|
63
|
+
Write it to `.cckit/reports/<YYYY-MM-DD-HHMM>-<effort>-<stage>.md`, then post its trail comment on
|
|
64
|
+
the effort issue:
|
|
65
|
+
|
|
66
|
+
```bash
|
|
67
|
+
cckit agent receipt <issue> --report .cckit/reports/<file>.md
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
The template and the rules for each section are in `references/step-report.md`.
|
|
71
|
+
|
|
72
|
+
## 5. Stop where the owner decides
|
|
73
|
+
|
|
74
|
+
Stop and ask at: the grill playback, a plan that adds cost, a sprint close, a release. Everything
|
|
75
|
+
mechanical (start, brief, merge on a green gate, close) the advisor runs and reports.
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# Stage: close — the sprint review, the retrospective, the effort
|
|
2
|
+
|
|
3
|
+
Input: a reviewed effort, or a sprint whose week is over. Output: the review and retrospective page,
|
|
4
|
+
the milestone closed, the effort merged and closed with its subs.
|
|
5
|
+
|
|
6
|
+
## 1. Close the effort
|
|
7
|
+
|
|
8
|
+
Only after `cckit effort review <N>` exits 0 and the Spec items held (`references/review.md`):
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
cckit effort close <N> # merge the one PR, close the parent and every sub, clean the branch
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
It refuses an effort whose parent has no checkable `## Spec`. A refusal is a fact for the report;
|
|
15
|
+
`--no-spec-check` is the owner's call, never the advisor's.
|
|
16
|
+
|
|
17
|
+
## 2. Close the sprint
|
|
18
|
+
|
|
19
|
+
At the end of the week, with the owner. Draft the review (what the sprint goal promised, what
|
|
20
|
+
shipped) and the retrospective (what to keep, what to change), then preview the page:
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
cckit effort sprint close --review-file review.md --retro-file retro.md --dry-run
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
The page lists the sprint goal, the issues done and the issues carried over, from the milestone.
|
|
27
|
+
Show it to the owner as a review page when the session can show one:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
cckit page mode
|
|
31
|
+
cckit page open <sprint.html> --fallback .cckit/reports/<date>-sprint-<YYYY-Www>.md
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Stop there and wait for a yes. The close writes the page and closes the milestone:
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
cckit effort sprint close --review-file review.md --retro-file retro.md
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
Carried-over issues stay open. Move them to the next sprint with `cckit effort sprint open` and
|
|
41
|
+
their milestone, or drop them from the plan; say which in the report.
|
|
42
|
+
|
|
43
|
+
## 3. Report
|
|
44
|
+
|
|
45
|
+
Write the step report in the order Status · Done · Waiting for a yes · Numbers · Failing or risky ·
|
|
46
|
+
Open questions · Next step (`references/step-report.md`), then post its trail comment:
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
cckit agent receipt <N> --report .cckit/reports/<file>.md
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
Numbers: issues done and carried over, efforts closed. Waiting for a yes: the sprint close itself,
|
|
53
|
+
and any release, which this stage never runs.
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# Stage: grill — one interview, a playback, a record
|
|
2
|
+
|
|
3
|
+
Input: a goal with open decisions. Output: a confirmed `## Grilling` record that
|
|
4
|
+
`cckit effort new` accepts.
|
|
5
|
+
|
|
6
|
+
## 1. Look the facts up first
|
|
7
|
+
|
|
8
|
+
Read the board, the code and the issues the goal touches. A question whose answer is in the repo
|
|
9
|
+
is never asked. Only decisions go to the owner: scope, trade-offs, order, names, cost.
|
|
10
|
+
|
|
11
|
+
## 2. One interview
|
|
12
|
+
|
|
13
|
+
Put every open question on one page, at once:
|
|
14
|
+
|
|
15
|
+
- one line per question, two or three short choices, the recommendation preselected and marked;
|
|
16
|
+
- an optional free-text field per question, and one at the end for what the interview missed;
|
|
17
|
+
- one submit: the answers come back together.
|
|
18
|
+
|
|
19
|
+
Open it as a review page when this session can show one; `cckit page mode` decides, and terminal
|
|
20
|
+
mode prints the same questions as one numbered message:
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
cckit page mode
|
|
24
|
+
cckit page open <interview.html> --fallback <interview.md>
|
|
25
|
+
cckit page poll <interview.html>
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## 3. Play it back
|
|
29
|
+
|
|
30
|
+
Before anything is filed, answer with "what I understood": the decisions numbered, a diagram when
|
|
31
|
+
the plan has moving parts, and your own interpretations marked as yours. The owner confirms or
|
|
32
|
+
corrects. Only a confirmed playback becomes the record. An answer that opens a new question goes
|
|
33
|
+
into a second, smaller interview, never a lone question.
|
|
34
|
+
|
|
35
|
+
## 4. Record it
|
|
36
|
+
|
|
37
|
+
Write the confirmed record to a file in this shape:
|
|
38
|
+
|
|
39
|
+
```markdown
|
|
40
|
+
Grilled: <who>, <YYYY-MM-DD>, <where>.
|
|
41
|
+
1. <decision>
|
|
42
|
+
2. <decision>
|
|
43
|
+
3. <decision>
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
- The first line starts `Grilled:` and names who was grilled; a `YYYY-MM-DD` date is in the record.
|
|
47
|
+
- At least 3 decisions as column-0 `1.` items, or a link to the issue comment that holds them.
|
|
48
|
+
- Nothing to decide: the single line `waived: <reason>`.
|
|
49
|
+
- An unattended run writes `Grilled: <agent> (assumed), <date>` and lists what it assumed.
|
|
50
|
+
|
|
51
|
+
Then file it with the effort (the plan stage does this):
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
cckit effort new --spec-file spec.md --grilling-file grilling.md "<name>"
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
`effort new` lints the record before any forge write (`scripts/lib/grill-record.sh`) and refuses
|
|
58
|
+
one that names nobody, carries no date or holds fewer than 3 decisions.
|
|
59
|
+
|
|
60
|
+
## 5. Report
|
|
61
|
+
|
|
62
|
+
Write the step report in the order Status · Done · Waiting for a yes · Numbers · Failing or risky ·
|
|
63
|
+
Open questions · Next step (`references/step-report.md`), then post its trail comment:
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
cckit agent receipt <issue> --report .cckit/reports/<file>.md
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
Waiting for a yes holds the playback until the owner confirms it.
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# Stage: orchestrate — start the effort and brief the workers
|
|
2
|
+
|
|
3
|
+
Input: a planned effort (subs filed with Specs, wave order checked). Output: one worktree per
|
|
4
|
+
worker, each started with a brief that names its exact toolset, and the effort branch collecting
|
|
5
|
+
the landed subs.
|
|
6
|
+
|
|
7
|
+
## 1. Start the effort
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
cckit effort start <N> # effort/<N>-<slug> branch + its own worktree, from the base branch
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
The effort branch is the one integration branch. Sequential subs commit on it, one commit per sub.
|
|
14
|
+
Parallel subs each get their own worktree cut from it and merge back in. The WIP limit refuses a
|
|
15
|
+
new effort while too many are open; that refusal is a fact to report, not a reason to `--force`.
|
|
16
|
+
|
|
17
|
+
## 2. Pick the wave
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
cckit effort plan --wave --effort <N> # the subs that can start now, file-disjoint
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Run only the first wave. Subs that touch the same file go in different waves, even when the plan
|
|
24
|
+
had them parallel: two workers on one file is a conflict waiting at merge time.
|
|
25
|
+
|
|
26
|
+
## 3. Brief each worker
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
cckit brief <sub> --skills kit-ship --verbs 'effort start,status,agent receipt'
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
One brief per sub. `--skills` and `--verbs` name the tools the worker may use, and only those: an
|
|
33
|
+
unknown name exits 2 before anything is read, so fix the list instead of dropping the flag. The
|
|
34
|
+
brief carries the worktree, the files the sub owns, the helpers they sit on, the gate and the
|
|
35
|
+
standing gotchas, so the prompt adds the sub's Spec and nothing the brief already says.
|
|
36
|
+
|
|
37
|
+
Each worker works in its own worktree, never in the shared checkout, and ends with its own step
|
|
38
|
+
report and trail comment on its sub.
|
|
39
|
+
|
|
40
|
+
## 4. Collect the wave
|
|
41
|
+
|
|
42
|
+
As each worker reports, read its trail comment, check the sub's commit is on the effort branch,
|
|
43
|
+
and start the next wave from `cckit effort plan --wave --effort <N>`. A worker that stopped on a
|
|
44
|
+
decision goes to the owner; a worker that stopped on a broken verb is a kit defect to file.
|
|
45
|
+
|
|
46
|
+
## 5. Report
|
|
47
|
+
|
|
48
|
+
Write the step report in the order Status · Done · Waiting for a yes · Numbers · Failing or risky ·
|
|
49
|
+
Open questions · Next step (`references/step-report.md`), then post its trail comment:
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
cckit agent receipt <N> --report .cckit/reports/<file>.md
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Numbers: workers started, subs landed, waves left. Failing or risky: any sub whose gate is red, and
|
|
56
|
+
any two subs that turned out to share a file.
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# Stage: plan — an effort with Specs, in waves, inside this week's sprint
|
|
2
|
+
|
|
3
|
+
Input: a goal with a confirmed Grilling record. Output: one effort issue whose subs each carry a
|
|
4
|
+
`## Spec`, a wave order in its Scope, and the sprint it lands in named in its body.
|
|
5
|
+
|
|
6
|
+
## 1. The sprint
|
|
7
|
+
|
|
8
|
+
A sprint is one week, Monday to Monday, named after its ISO week. Find it, and open it when the
|
|
9
|
+
forge has no milestone for it yet (re-running is safe):
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
cckit effort sprint name # 2026-W48
|
|
13
|
+
cckit effort sprint open --goal "<the one outcome of the week>"
|
|
14
|
+
cckit effort sprint list # open sprints, open and closed counts
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
An effort planned for next week passes a day of that week: `--sprint=2026-11-30`.
|
|
18
|
+
|
|
19
|
+
## 2. Cut the subs
|
|
20
|
+
|
|
21
|
+
- **Vertical slices.** Every sub is demoable on its own, through every layer it needs.
|
|
22
|
+
- **Expand–contract** for a wide refactor: add beside, move the callers, remove. The effort stays
|
|
23
|
+
mergeable after every sub.
|
|
24
|
+
- **Each sub has a Spec:** what done means, as a checkable list. A sub nobody can check is not cut
|
|
25
|
+
small enough.
|
|
26
|
+
- **Waves.** Subs that touch disjoint files and block nothing run in the same wave; a sub that
|
|
27
|
+
needs another's output goes in a later wave. Sequential subs are one wave each.
|
|
28
|
+
|
|
29
|
+
## 3. File the effort
|
|
30
|
+
|
|
31
|
+
The parent first, with its Spec, the Grilling record and the sprint; then one sub per slice, in
|
|
32
|
+
wave order, each with its own Spec:
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
cckit effort new --spec-file spec.md --grilling-file grilling.md --sprint \
|
|
36
|
+
--scope "Wave 1: <a>, <b> (parallel). Wave 2: <c> (needs <a>)." "<name>"
|
|
37
|
+
cckit effort sub <N> "<sub name>" --spec "<item>; <item>" --body "<one line: what and why>"
|
|
38
|
+
cckit effort chain <a> <c> # a native blocked_by edge per dependency
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
`--sprint` adds a `## Sprint` section naming the week and its bounds, and puts the parent on the
|
|
42
|
+
sprint's milestone. `effort new` refuses a parent without a Spec or with a Grilling record that is
|
|
43
|
+
not one, before anything is written.
|
|
44
|
+
|
|
45
|
+
## 4. Check the wave order
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
cckit effort plan --issues --effort <N> # the subs in dependency order, one wave per line
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
The verb's waves and the Scope must agree. When they do not, the Scope is wrong or an edge is
|
|
52
|
+
missing: fix it before orchestrating.
|
|
53
|
+
|
|
54
|
+
## 5. Report
|
|
55
|
+
|
|
56
|
+
Write the step report in the order Status · Done · Waiting for a yes · Numbers · Failing or risky ·
|
|
57
|
+
Open questions · Next step (`references/step-report.md`), then post its trail comment:
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
cckit agent receipt <N> --report .cckit/reports/<file>.md
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
Numbers: subs filed, waves, the sprint's open and closed counts. Waiting for a yes: any sub that
|
|
64
|
+
adds cost, and the plan itself when the owner asked to see it first.
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# Stage: review — check each sub against its Spec
|
|
2
|
+
|
|
3
|
+
Input: an effort whose subs have landed, or claim to. Output: one verdict per sub, the gaps named,
|
|
4
|
+
and a decision on whether the effort is ready to close.
|
|
5
|
+
|
|
6
|
+
## 1. Read the verdicts
|
|
7
|
+
|
|
8
|
+
```bash
|
|
9
|
+
cckit effort review <N> # one line per sub: state, Spec, landed, verdict; exits 1 until all are done
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
| Verdict | Means | Do |
|
|
13
|
+
| --- | --- | --- |
|
|
14
|
+
| `done` | closed, and a commit on the effort branch names it | check its Spec items below |
|
|
15
|
+
| `landed, still open` | the commit is there, the issue is not closed | close it once its Spec holds |
|
|
16
|
+
| `closed, not on the branch` | closed on the forge, no commit names it | find the work or reopen the sub |
|
|
17
|
+
| `open` | not built yet | back to orchestrate |
|
|
18
|
+
| `no spec` | nothing to review against | write the Spec with the owner first |
|
|
19
|
+
|
|
20
|
+
## 2. Check each Spec item
|
|
21
|
+
|
|
22
|
+
The verb proves a sub is closed and landed; it cannot prove the Spec holds. For each `done` sub,
|
|
23
|
+
read its `## Spec` and check every item against the branch: run the command an item names, read
|
|
24
|
+
the file it names, count what it counts. An item that cannot be checked is a defect in the Spec,
|
|
25
|
+
not a pass.
|
|
26
|
+
|
|
27
|
+
Then the parent: every item of the effort's own `## Spec` must hold on the effort branch, and the
|
|
28
|
+
gate must be green on its head commit.
|
|
29
|
+
|
|
30
|
+
## 3. Decide
|
|
31
|
+
|
|
32
|
+
- Every sub `done` and every Spec item holds: ready to close.
|
|
33
|
+
- A gap the effort's scope covers: send it back to orchestrate as a fix on the same sub.
|
|
34
|
+
- A gap outside the scope: file it as its own issue and name it in the report. Never widen the
|
|
35
|
+
effort to swallow it.
|
|
36
|
+
|
|
37
|
+
## 4. Report
|
|
38
|
+
|
|
39
|
+
Write the step report in the order Status · Done · Waiting for a yes · Numbers · Failing or risky ·
|
|
40
|
+
Open questions · Next step (`references/step-report.md`), then post its trail comment:
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
cckit agent receipt <N> --report .cckit/reports/<file>.md
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Numbers: the `review #N: D of M done` line, Spec items checked and held. Failing or risky: every
|
|
47
|
+
sub not `done`, with its verdict, and every Spec item that did not hold.
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# Step report — one order for every stage
|
|
2
|
+
|
|
3
|
+
Every advisor stage ends with one report file and one trail comment.
|
|
4
|
+
|
|
5
|
+
## Where
|
|
6
|
+
|
|
7
|
+
`.cckit/reports/<YYYY-MM-DD-HHMM>-<effort>-<stage>.md`, for example
|
|
8
|
+
`.cckit/reports/2026-11-24-1430-E547-plan.md`. `.cckit/` is local and not committed unless the
|
|
9
|
+
effort asks for its report in the PR.
|
|
10
|
+
|
|
11
|
+
## The order
|
|
12
|
+
|
|
13
|
+
The sections are always these seven, in this order: Status · Done · Waiting for a yes · Numbers ·
|
|
14
|
+
Failing or risky · Open questions · Next step. A section with nothing to say says `none`; it is
|
|
15
|
+
never dropped, because an absent section reads like a passing one.
|
|
16
|
+
|
|
17
|
+
```markdown
|
|
18
|
+
# <effort> · <stage>
|
|
19
|
+
|
|
20
|
+
## Status
|
|
21
|
+
One to three lines: what is true now. The trail comment quotes this section.
|
|
22
|
+
|
|
23
|
+
## Done
|
|
24
|
+
What this stage changed, one row per artifact (issue, commit, page, file).
|
|
25
|
+
|
|
26
|
+
## Waiting for a yes
|
|
27
|
+
The decisions only the owner can make, numbered, each with the recommendation first.
|
|
28
|
+
|
|
29
|
+
## Numbers
|
|
30
|
+
| Measure | Before | After | Command |
|
|
31
|
+
|
|
32
|
+
## Failing or risky
|
|
33
|
+
A red check, a guess, a step not verified.
|
|
34
|
+
|
|
35
|
+
## Open questions
|
|
36
|
+
What the stage could not settle and nobody has been asked yet.
|
|
37
|
+
|
|
38
|
+
## Next step
|
|
39
|
+
The one next action and who takes it.
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## The trail command
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
cckit agent receipt <issue> --report .cckit/reports/<file>.md # post or update
|
|
46
|
+
cckit agent receipt <issue> --report .cckit/reports/<file>.md --dry-run # print, do not post
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
(`cckit receipt` is the old name and still works.) The comment carries the Status head, the
|
|
50
|
+
report's links and the Waiting for a yes items, capped at 1500 characters. It refuses a report that
|
|
51
|
+
holds a word from the private leak list or an absolute home path, so write paths relative to the
|
|
52
|
+
repo.
|
|
53
|
+
|
|
54
|
+
## Rules
|
|
55
|
+
|
|
56
|
+
- Numbers come with the command that produced them. A number without one is a guess; put it under
|
|
57
|
+
Failing or risky.
|
|
58
|
+
- Waiting for a yes lists decisions, not mechanics. Merging a PR whose content was decided is
|
|
59
|
+
mechanics.
|
|
60
|
+
- One report per stage run. A re-run of the same stage rewrites its file, and the trail comment is
|
|
61
|
+
edited in place, not posted twice.
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: kit-annotate
|
|
3
|
+
terms: Check
|
|
3
4
|
description: Set up and run in-app visual UI annotation for a React project, wired to Claude via Agentation. Use AUTOMATICALLY when the user asks to set up / install visual annotation or an annotation toolbar, "annotate the UI / a component", click-to-annotate, give the agent visual UI feedback, review or triage UI annotations, or run "watch mode" for UI feedback. Targets a React app (Next.js, Vite, or React Router); installs the third-party `agentation` dev dependency + its MCP. Other agents are out of scope — this wires Claude Code only.
|
|
4
5
|
argument-hint: "[setup | watch | review | status] [--dry-run]"
|
|
5
6
|
allowed-tools: Bash, Read, Edit, Glob, Grep, AskUserQuestion, mcp__agentation__agentation_get_all_pending, mcp__agentation__agentation_watch_annotations, mcp__agentation__agentation_acknowledge, mcp__agentation__agentation_resolve, mcp__agentation__agentation_dismiss, mcp__agentation__agentation_reply, mcp__agentation__agentation_list_sessions, mcp__agentation__agentation_get_session, mcp__agentation__agentation_get_pending
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: kit-autopilot
|
|
3
|
+
terms: Captain
|
|
3
4
|
description: Autonomous execution under hard caps — run ONE long objective hands-off, OR drive the planned effort/flow set in parallel. On an APPROVED plan the captain DECIDES, MERGES each wave, and CONTINUES; it pings the human ONLY on a genuine blocker. THIN wrapper over the built-in /loop + the kit's orchestrate scripts; never a new engine.
|
|
4
5
|
when_to_use: When delegating work to run unattended — a single capped objective (overnight) or several planned flows at once without tab-juggling. A verifiable stop condition is required. Maps to Kun Chen's "Good Night Have Fun" (the loop) and "First Mate" (the multi-flow captain). Not for one-off tasks (just do them) or open-ended work with no measurable stop.
|
|
5
6
|
---
|
|
@@ -38,7 +39,7 @@ scripts; it never reimplements looping or orchestration.
|
|
|
38
39
|
| **objective** | one long objective on the current branch | the built-in `/loop` + caps + a stop-check |
|
|
39
40
|
| **plan** | the planned, file-disjoint set of efforts/flows in parallel | `kit effort plan` + `orchestrate.sh` + `orchestrate-watch.sh` |
|
|
40
41
|
|
|
41
|
-
> Need the plan first? `/kit-plan-next` (`cckit plan
|
|
42
|
+
> Need the plan first? `/kit-plan-next` (`cckit effort plan --next`) proposes what to build next from the
|
|
42
43
|
> kit's current capabilities, then hands a chosen item to `/kit-effort-new` — the effort autopilot
|
|
43
44
|
> later drives. Keep that planner output with the human/orchestrator; never feed it into a monitored
|
|
44
45
|
> agent's context (context-anxiety rule).
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: kit-cleanup
|
|
3
|
+
terms: Worktree
|
|
3
4
|
description: Run the ONE guided destructive sweep over the repo — present the gc plan (SAFE / LANDED / ZOMBIE / ORPHAN / PROTECTED / stashes), then delete the SAFE + LANDED rows and prune the listed ZOMBIE metadata once the user confirms. Orphan, open-issue branches and stashes are surfaced, kept.
|
|
4
5
|
when_to_use: When `cckit gc` (or the SessionStart hygiene hook) reports merged branches and worktrees piling up and you want them gone in one pass. Use this instead of hand-rolling `git branch -D` + `git push origin --delete` loops. For the read-only report alone, use `/kit-gc`.
|
|
5
6
|
---
|
|
@@ -32,7 +33,7 @@ KIT_GC_REPO="$KIT_REPO" source "${CLAUDE_PLUGIN_ROOT}/scripts/lib/kit-gc.sh"
|
|
|
32
33
|
kit_gc_cleanup # plan only — deletes no branch, worktree, remote ref or stash
|
|
33
34
|
```
|
|
34
35
|
|
|
35
|
-
Or through the CLI: `cckit cleanup` (add `--
|
|
36
|
+
Or through the CLI: `cckit cleanup` (add `--json` for JSON counts: `safe`, `landed`, `worktrees`,
|
|
36
37
|
`zombie`, `orphan`, `protected`, `stash`, `remote_failed`, `applied`). A LANDED detached worktree
|
|
37
38
|
counts under `worktrees`, an ORPHAN one under `orphan`.
|
|
38
39
|
|
|
@@ -63,7 +64,7 @@ to compare. It requires **exact equality in both directions**: `origin/<b>..<b>`
|
|
|
63
64
|
local ⊆ remote, so a remote-ahead branch would otherwise lose remote-only history. A local delete is
|
|
64
65
|
likewise skipped when the branch is ahead of its remote (`git branch -D` is a force delete). A remote
|
|
65
66
|
delete that fails (protected ref, already gone) is reported, counted on the `remote deletes failed`
|
|
66
|
-
line (`remote_failed` in `--
|
|
67
|
+
line (`remote_failed` in `--json`), and makes the verb exit non-zero — a partial sweep is never
|
|
67
68
|
reported as a complete one. It is never retried blindly.
|
|
68
69
|
|
|
69
70
|
The plan-only path does perform one write: `kit_gc_analyze` refreshes remote-tracking refs
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: kit-contribute
|
|
3
|
+
terms: none
|
|
3
4
|
description: Contribute your additions and requests back upstream to claude-kit as a GitHub PR (or issue). Use AUTOMATICALLY whenever the user asks to contribute to claude-kit, submit a PR, open a PR upstream, propose a change to the kit, give back to the kit, share my agent / skill / profile with the kit, send or file a feature request, or request a feature. Opens a pull request (or, for a pure idea, an issue) against the kit's upstream repo. Works from a project scaffolded by /kit-init and customized with /kit-customize, but also stands alone.
|
|
4
5
|
argument-hint: "[agent <name> | skill <name> | profile <name> | request]"
|
|
5
6
|
allowed-tools: Bash, Read, Edit, Write, Glob, Grep, AskUserQuestion, Skill
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: kit-customize
|
|
3
|
+
terms: none
|
|
3
4
|
description: Customize a kit-scaffolded project's .claude/ setup. Use AUTOMATICALLY whenever the user asks to create, add, edit, modify, rename, delete, or remove an agent in a project — and also to add a skill to an agent, attach skills, wire tools, find or search for a skill, suggest agents/skills for my project, lint my agents, validate an agent, build a custom profile, or pick a preset profile. Works on a project already scaffolded by /kit-init (a `.claude/` dir with `.claude/kit.config.json`).
|
|
4
5
|
argument-hint: "[add-agent <name> | add-skill <agent> | lint | profile]"
|
|
5
6
|
allowed-tools: Bash, Read, Edit, Write, Glob, Grep, AskUserQuestion, Skill
|
package/skills/kit-dev/SKILL.md
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: kit-digest
|
|
3
|
+
terms: none
|
|
3
4
|
description: Pre-digest long inputs (video transcripts, CI logs, big files, web pages) with the LOCAL model (mlx_lm.server) so the Claude session reads a short digest + pointer instead of the full content — token saving on every long read.
|
|
4
5
|
when_to_use: Before reading any long input into the session — a YouTube/video transcript, a CI failure log, a file or page over ~2k words. Especially "procesa este video/transcript/log". If the local server is down, the script says so — fall back to reading the original directly.
|
|
5
6
|
---
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: kit-docs-writer
|
|
3
|
+
terms: none
|
|
3
4
|
description: >
|
|
4
5
|
Write and edit end-user documentation in the house voice: kind but robust, ADHD-oriented and
|
|
5
6
|
scannable, ZERO analogies, beginner-inclusive but expert-skippable. Encodes the page template
|
|
6
7
|
(title → one-line description → self-explanatory left-to-right diagram → body → next-section
|
|
7
|
-
buttons) and the diagram discipline (
|
|
8
|
+
buttons) and the diagram discipline (static, left-to-right, self-explanatory, never
|
|
8
9
|
repetitive). Use it to keep every docs page readable by people with low software knowledge
|
|
9
10
|
without watering down the substance.
|
|
10
11
|
when_to_use: >
|
|
@@ -85,8 +86,8 @@ Every page follows this order, top to bottom:
|
|
|
85
86
|
|
|
86
87
|
## Diagram discipline
|
|
87
88
|
|
|
88
|
-
- **
|
|
89
|
-
right, following how the reader reads.
|
|
89
|
+
- **Static, left-to-right.** Diagrams are static figures (inline SVG or a Mermaid block, no
|
|
90
|
+
client-side diagram library) and flow left to right, following how the reader reads.
|
|
90
91
|
- **Self-explanatory.** A diagram must make sense from the page title alone — labels are plain
|
|
91
92
|
words, the arrows tell the story, no legend required to grasp the shape.
|
|
92
93
|
- **Diagram the flow, not the prose.** Draw a flow when seeing it is faster than reading it:
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: kit-effort-close
|
|
3
|
-
|
|
3
|
+
terms: Effort
|
|
4
|
+
description: Close an effort in ONE op — snapshot each sub-issue's diff BEFORE squash (work record), capture and judge effort metrics, squash-merge the effort PR, close the parent + finished subs (open ones stay, listed), board Done for each, GC the worktree/branch, run the optional knowledge-ingest hook, and finish with the kit-sync drift check.
|
|
4
5
|
when_to_use: When the effort PR has been reviewed and is ready to land. This is the single close op for the effort lifecycle (effort-model.md) — board + record state are correct by construction. Replaces the separate merge / close / mark-done / gc steps.
|
|
5
6
|
---
|
|
6
7
|
|
|
@@ -16,7 +17,10 @@ close logic is re-authored inline (kit-engine-boundary #1/#2). Respects `KIT_BAS
|
|
|
16
17
|
The effort lifecycle's terminal op. Board state, issue state, and the work record are correct
|
|
17
18
|
**by construction** — the core op owns them, in this order:
|
|
18
19
|
|
|
19
|
-
0. **
|
|
20
|
+
0. **Spec check** — the parent body is re-read and its `## Spec` must hold at least one real list
|
|
21
|
+
item (not empty, not TODO/TBD only); otherwise the close refuses with the reasons and writes
|
|
22
|
+
nothing. `--no-spec-check` skips it and prints one line saying it was skipped.
|
|
23
|
+
**Pre-close hook** (optional, config-gated via `effort.preCloseHook`) — a project gate called as
|
|
20
24
|
`<hook> <effort#> <sub#…>` from the effort worktree before anything is written. A non-zero exit
|
|
21
25
|
refuses the close and its output is printed; `KIT_FORCE=1` skips it and says so.
|
|
22
26
|
1. **Snapshot sub-diffs BEFORE squash** (squash destroys the per-sub-issue commit pairs that ARE
|
|
@@ -33,9 +37,13 @@ The effort lifecycle's terminal op. Board state, issue state, and the work recor
|
|
|
33
37
|
(`gh pr edit <n> --base <base>`, one `↻ PR <n> re-targeted to <base>` line). If an edit fails,
|
|
34
38
|
or the list cannot be read, the close **refuses**, names the PR, and merges nothing; this runs
|
|
35
39
|
before step 2, so a refusal writes no metrics row. Skipped over REST, where the branch is kept.
|
|
36
|
-
4. **Judge
|
|
37
|
-
5. **Close the parent +
|
|
38
|
-
(guarded — a no-op when Projects v2 is off).
|
|
40
|
+
4. **Judge** the metrics (reads the durable trace dir; the record stays in the local buffer).
|
|
41
|
+
5. **Close the parent + its finished sub-issues** and set the **board Status=Done** for each
|
|
42
|
+
(guarded — a no-op when Projects v2 is off). A sub is **finished** when it is already closed
|
|
43
|
+
(its close reason is kept, no second write) or a commit on the effort branch delivers it: the
|
|
44
|
+
commit's last `#N`, a `Closes|Fixes|Resolves #N`, or the sub's `[E<N>.<k>]` step tag (#565).
|
|
45
|
+
An **unfinished** sub stays open and linked under the parent — never detached, never refused
|
|
46
|
+
on — and is listed in the close comment on the parent and at the end of the output.
|
|
39
47
|
6. **GC**: base branch checked out + pulled in the main checkout; then the effort's **`sub/<N>…`
|
|
40
48
|
worktrees and branches** are collected through `kit_gc_prune --only '^sub/<N>[a-z]-'` — the
|
|
41
49
|
squash just put their work on base, so they classify **LANDED** (no PR of their own, content or
|
|
@@ -50,7 +58,7 @@ The effort lifecycle's terminal op. Board state, issue state, and the work recor
|
|
|
50
58
|
|
|
51
59
|
## Preconditions
|
|
52
60
|
|
|
53
|
-
1. The effort PR exists, is reviewed, not in draft, and is mergeable (or
|
|
61
|
+
1. The effort PR exists, is reviewed, not in draft, and is mergeable (or can take the base by merge).
|
|
54
62
|
2. You are on the `effort/<N>-<slug>` branch (its worktree), working tree clean.
|
|
55
63
|
|
|
56
64
|
If not, abort and route to `/kit-effort-pr` first.
|
|
@@ -95,9 +103,10 @@ effort_close "$NUM"
|
|
|
95
103
|
## Output
|
|
96
104
|
|
|
97
105
|
- Pre-squash trace dir (`<git-common-dir>/traces/effort-<N>/` + `index.jsonl`) + captured metrics
|
|
98
|
-
- PR squash-merged; parent +
|
|
106
|
+
- PR squash-merged; parent + finished sub-issues closed; a close comment on the parent listing the finished subs and any left open
|
|
107
|
+
- Unfinished subs still open, still linked, listed as `⚠ left open: sub #N` and in the final report
|
|
99
108
|
- Every PR that was based on the effort branch is still OPEN, now based on the base branch
|
|
100
|
-
- Board Status=Done for parent + every sub (if Projects v2 is on)
|
|
109
|
+
- Board Status=Done for the parent + every finished sub (if Projects v2 is on)
|
|
101
110
|
- Main checkout on the base branch, up to date; effort worktree + local/remote branch removed and pruned, and every LANDED `sub/<N>…` worktree + branch with them (`✓ sub gc:` lines)
|
|
102
111
|
- Knowledge-ingest hook ran (if configured); a kit-sync warning if the effort touched kit-managed files
|
|
103
112
|
|
|
@@ -109,7 +118,7 @@ effort_close "$NUM"
|
|
|
109
118
|
the per-unit work record; the core refuses to squash when no trace was captured (`KIT_FORCE=1`
|
|
110
119
|
overrides). The trace lives under the **shared git-common-dir** so it survives the worktree prune.
|
|
111
120
|
- **One op owns board + issue + record state** — never rely on a separate, skippable "mark done"
|
|
112
|
-
(effort-model.md).
|
|
121
|
+
(effort-model.md). Finished subs go Done in the core; an unfinished one stays open, linked, and named.
|
|
113
122
|
- recover-before-prune (branch-naming.md): never remove a worktree with a staged-but-uncommitted
|
|
114
123
|
delta — the working tree must be clean (precondition) before this op proceeds.
|
|
115
124
|
- Scrub secrets from the trace if any commit diff could contain them (trace hygiene).
|