@jeiemgi/cckit 0.11.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 +45 -41
- package/README.md +39 -29
- package/bin/cckit +111 -70
- package/cckit.config.json +1 -1
- package/package.json +1 -1
- package/scripts/advisor-test.sh +55 -0
- package/scripts/autopilot.sh +4 -4
- package/scripts/capture-project-ids.sh +16 -0
- package/scripts/check.sh +6 -0
- package/scripts/content-skills-test.sh +1 -1
- package/scripts/copilot-loop-test.sh +8 -8
- 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/init.sh +2 -2
- package/scripts/instruction-budget-baseline.txt +1 -1
- package/scripts/kit-doctor-test.sh +5 -0
- package/scripts/kit-doctor.sh +96 -2
- package/scripts/lib/agent-resolve-test.sh +2 -0
- package/scripts/lib/agent-resolve.sh +3 -2
- package/scripts/lib/board-view.sh +3 -3
- package/scripts/lib/captain.sh +1 -1
- package/scripts/lib/copilot-test.sh +4 -4
- package/scripts/lib/copilot.sh +13 -13
- package/scripts/lib/effort-close-subs-test.sh +96 -0
- package/scripts/lib/effort-dispatch-test.sh +2 -2
- package/scripts/lib/effort-ops-test.sh +98 -9
- package/scripts/lib/effort-ops.sh +390 -63
- package/scripts/lib/effort-parity-test.sh +37 -31
- package/scripts/lib/effort-plan.sh +3 -3
- package/scripts/lib/effort-review-test.sh +107 -0
- package/scripts/lib/effort-review.sh +93 -0
- package/scripts/lib/effort-slug-test.sh +4 -0
- package/scripts/lib/effort-slug.sh +5 -4
- package/scripts/lib/effort.sh +47 -74
- package/scripts/lib/forge-github.sh +18 -7
- package/scripts/lib/gh-board-add-test.sh +118 -0
- package/scripts/lib/gh-project-test.sh +115 -0
- package/scripts/lib/gh-project.sh +128 -6
- package/scripts/lib/gh-rest-test.sh +12 -8
- package/scripts/lib/gh-rest.sh +189 -15
- package/scripts/lib/git-core-test.sh +2 -2
- 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/kit-brief-test.sh +29 -0
- package/scripts/lib/kit-brief.sh +91 -6
- 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 +1 -1
- package/scripts/lib/kit-task-ops-test.sh +17 -0
- package/scripts/lib/kit-task-ops.sh +73 -22
- package/scripts/lib/kto-task-new-test.sh +18 -0
- package/scripts/lib/kto-task-pr-merge-test.sh +44 -0
- package/scripts/lib/kto-task-pr-test.sh +3 -3
- package/scripts/lib/light-task.sh +16 -1
- 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 +1 -1
- package/scripts/lib/next.sh +6 -6
- package/scripts/lib/plan-machine.sh +9 -9
- package/scripts/lib/plan-next.sh +4 -4
- package/scripts/lib/qa-lane.sh +1 -1
- 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 +132 -0
- package/scripts/lib/stage-receipt.sh +184 -5
- package/scripts/lib/test-forge-shim.sh +2 -1
- package/scripts/lib/verbs.sh +1 -1
- package/scripts/lib/verbs.tsv +17 -15
- package/scripts/lib/worker-brief-test.sh +1 -1
- package/scripts/lib/worker-brief.sh +1 -1
- package/scripts/lib/worktree-start.sh +42 -1
- package/scripts/loose-issues-test.sh +102 -0
- package/scripts/loose-issues.baseline +5 -0
- package/scripts/night-grant.sh +1 -1
- package/scripts/portable-test.sh +1 -1
- package/scripts/status-test.sh +1 -1
- package/scripts/status.sh +4 -4
- package/scripts/task-sync-test.sh +34 -0
- package/scripts/task-sync.sh +81 -1
- package/scripts/terms-check.sh +1 -1
- package/scripts/verbs-ratchet-test.sh +6 -1
- package/scripts/verbs-test.sh +4 -4
- package/scripts/verbs.baseline +1 -1
- package/skills/kit-add/SKILL.md +1 -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-autopilot/SKILL.md +1 -1
- package/skills/kit-cleanup/SKILL.md +2 -2
- package/skills/kit-effort-close/SKILL.md +16 -8
- package/skills/kit-effort-new/SKILL.md +11 -8
- package/skills/kit-effort-pr/SKILL.md +7 -7
- package/skills/kit-next/SKILL.md +7 -7
- package/skills/kit-plan-next/SKILL.md +10 -11
- package/skills/kit-status/SKILL.md +5 -5
- package/skills/kit-task-pr-auto/SKILL.md +1 -1
- package/skills/kit-task-pr-merge/SKILL.md +3 -3
- package/skills/kit-task-sync/SKILL.md +2 -0
- package/skills/routing.yaml +5 -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
|
@@ -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.
|
|
@@ -39,7 +39,7 @@ scripts; it never reimplements looping or orchestration.
|
|
|
39
39
|
| **objective** | one long objective on the current branch | the built-in `/loop` + caps + a stop-check |
|
|
40
40
|
| **plan** | the planned, file-disjoint set of efforts/flows in parallel | `kit effort plan` + `orchestrate.sh` + `orchestrate-watch.sh` |
|
|
41
41
|
|
|
42
|
-
> 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
|
|
43
43
|
> kit's current capabilities, then hands a chosen item to `/kit-effort-new` — the effort autopilot
|
|
44
44
|
> later drives. Keep that planner output with the human/orchestrator; never feed it into a monitored
|
|
45
45
|
> agent's context (context-anxiety rule).
|
|
@@ -33,7 +33,7 @@ KIT_GC_REPO="$KIT_REPO" source "${CLAUDE_PLUGIN_ROOT}/scripts/lib/kit-gc.sh"
|
|
|
33
33
|
kit_gc_cleanup # plan only — deletes no branch, worktree, remote ref or stash
|
|
34
34
|
```
|
|
35
35
|
|
|
36
|
-
Or through the CLI: `cckit cleanup` (add `--
|
|
36
|
+
Or through the CLI: `cckit cleanup` (add `--json` for JSON counts: `safe`, `landed`, `worktrees`,
|
|
37
37
|
`zombie`, `orphan`, `protected`, `stash`, `remote_failed`, `applied`). A LANDED detached worktree
|
|
38
38
|
counts under `worktrees`, an ORPHAN one under `orphan`.
|
|
39
39
|
|
|
@@ -64,7 +64,7 @@ to compare. It requires **exact equality in both directions**: `origin/<b>..<b>`
|
|
|
64
64
|
local ⊆ remote, so a remote-ahead branch would otherwise lose remote-only history. A local delete is
|
|
65
65
|
likewise skipped when the branch is ahead of its remote (`git branch -D` is a force delete). A remote
|
|
66
66
|
delete that fails (protected ref, already gone) is reported, counted on the `remote deletes failed`
|
|
67
|
-
line (`remote_failed` in `--
|
|
67
|
+
line (`remote_failed` in `--json`), and makes the verb exit non-zero — a partial sweep is never
|
|
68
68
|
reported as a complete one. It is never retried blindly.
|
|
69
69
|
|
|
70
70
|
The plan-only path does perform one write: `kit_gc_analyze` refreshes remote-tracking refs
|
|
@@ -1,7 +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 +
|
|
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.
|
|
5
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.
|
|
6
6
|
---
|
|
7
7
|
|
|
@@ -17,7 +17,10 @@ close logic is re-authored inline (kit-engine-boundary #1/#2). Respects `KIT_BAS
|
|
|
17
17
|
The effort lifecycle's terminal op. Board state, issue state, and the work record are correct
|
|
18
18
|
**by construction** — the core op owns them, in this order:
|
|
19
19
|
|
|
20
|
-
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
|
|
21
24
|
`<hook> <effort#> <sub#…>` from the effort worktree before anything is written. A non-zero exit
|
|
22
25
|
refuses the close and its output is printed; `KIT_FORCE=1` skips it and says so.
|
|
23
26
|
1. **Snapshot sub-diffs BEFORE squash** (squash destroys the per-sub-issue commit pairs that ARE
|
|
@@ -35,8 +38,12 @@ The effort lifecycle's terminal op. Board state, issue state, and the work recor
|
|
|
35
38
|
or the list cannot be read, the close **refuses**, names the PR, and merges nothing; this runs
|
|
36
39
|
before step 2, so a refusal writes no metrics row. Skipped over REST, where the branch is kept.
|
|
37
40
|
4. **Judge** the metrics (reads the durable trace dir; the record stays in the local buffer).
|
|
38
|
-
5. **Close the parent +
|
|
39
|
-
(guarded — a no-op when Projects v2 is off).
|
|
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.
|
|
40
47
|
6. **GC**: base branch checked out + pulled in the main checkout; then the effort's **`sub/<N>…`
|
|
41
48
|
worktrees and branches** are collected through `kit_gc_prune --only '^sub/<N>[a-z]-'` — the
|
|
42
49
|
squash just put their work on base, so they classify **LANDED** (no PR of their own, content or
|
|
@@ -51,7 +58,7 @@ The effort lifecycle's terminal op. Board state, issue state, and the work recor
|
|
|
51
58
|
|
|
52
59
|
## Preconditions
|
|
53
60
|
|
|
54
|
-
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).
|
|
55
62
|
2. You are on the `effort/<N>-<slug>` branch (its worktree), working tree clean.
|
|
56
63
|
|
|
57
64
|
If not, abort and route to `/kit-effort-pr` first.
|
|
@@ -96,9 +103,10 @@ effort_close "$NUM"
|
|
|
96
103
|
## Output
|
|
97
104
|
|
|
98
105
|
- Pre-squash trace dir (`<git-common-dir>/traces/effort-<N>/` + `index.jsonl`) + captured metrics
|
|
99
|
-
- 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
|
|
100
108
|
- Every PR that was based on the effort branch is still OPEN, now based on the base branch
|
|
101
|
-
- 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)
|
|
102
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)
|
|
103
111
|
- Knowledge-ingest hook ran (if configured); a kit-sync warning if the effort touched kit-managed files
|
|
104
112
|
|
|
@@ -110,7 +118,7 @@ effort_close "$NUM"
|
|
|
110
118
|
the per-unit work record; the core refuses to squash when no trace was captured (`KIT_FORCE=1`
|
|
111
119
|
overrides). The trace lives under the **shared git-common-dir** so it survives the worktree prune.
|
|
112
120
|
- **One op owns board + issue + record state** — never rely on a separate, skippable "mark done"
|
|
113
|
-
(effort-model.md).
|
|
121
|
+
(effort-model.md). Finished subs go Done in the core; an unfinished one stays open, linked, and named.
|
|
114
122
|
- recover-before-prune (branch-naming.md): never remove a worktree with a staged-but-uncommitted
|
|
115
123
|
delta — the working tree must be clean (precondition) before this op proceeds.
|
|
116
124
|
- Scrub secrets from the trace if any commit diff could contain them (trace hygiene).
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: kit-effort-new
|
|
3
3
|
terms: Effort, SubIssue
|
|
4
|
-
description: Create an effort — a parent GitHub issue using the effort-model template (Goal / Scope / For agents / Verification) plus N native GitHub sub-issues
|
|
4
|
+
description: Create an effort — a parent GitHub issue using the effort-model template (Goal / Spec / Scope / For agents / Verification) plus N native GitHub sub-issues, all added to the project board. The parent issue IS the plan.
|
|
5
5
|
when_to_use: When starting a new unit of work (a "plan"/effort) that decomposes into several sub-tasks. Replaces ad-hoc `gh issue create` for multi-part work. The effort splits into native sub-issues at scoping time; sequential subs commit on the effort branch, parallel subs use file-disjoint worktrees and merge in. See rules/effort-model.md.
|
|
6
6
|
---
|
|
7
7
|
|
|
@@ -34,6 +34,7 @@ gate: `cckit effort start` checks nothing.
|
|
|
34
34
|
| Role | ✓ | `tech-lead` / `frontend` / … → `role:<role>` label + board Role field |
|
|
35
35
|
| Flow | optional | Controlled-vocab flow (`effort.flows` in the project config; `EFFORT_FLOWS` env overrides) → `[Flow]` title tag + `flow:<flow>` label |
|
|
36
36
|
| Goal | ✓ | 1–2 lines — `## Goal` |
|
|
37
|
+
| Spec | ✓ | What done means, one checkable item per line — `## Spec` (`--spec` or `--spec-file`; plain lines become `- ` bullets). A missing, empty or TODO/TBD-only Spec is refused before anything is created, and `cckit effort close` checks it again |
|
|
37
38
|
| Scope | ✓ | The sub-issue DAG — `## Scope` (mark each parallel \| sequential) |
|
|
38
39
|
| For agents | ✓ | Exact file paths / entry points — `## For agents` |
|
|
39
40
|
| Verification | ✓ | How we know it's done — `## Verification` |
|
|
@@ -59,12 +60,14 @@ source "${CLAUDE_PLUGIN_ROOT}/scripts/lib/effort.sh"
|
|
|
59
60
|
source "${CLAUDE_PLUGIN_ROOT}/scripts/lib/effort-metrics.sh" # effort_ctx_bucket
|
|
60
61
|
source "${CLAUDE_PLUGIN_ROOT}/scripts/lib/effort-ops.sh" # effort_new — the shared creation core
|
|
61
62
|
|
|
62
|
-
# TITLE = the human NAME only (no "[
|
|
63
|
-
# "[
|
|
64
|
-
# every sub title up front (a bad name aborts
|
|
63
|
+
# TITLE = the human NAME only (no "[E<n>]" prefix). The core files the parent under TITLE, renames it
|
|
64
|
+
# "[E<N>] <TITLE>" once it has a number, fills the five sections, applies labels (the flow goes in the
|
|
65
|
+
# flow: label, never the title), and lints the parent + every sub title up front (a bad name aborts
|
|
66
|
+
# before anything is created — no half-effort). Rule: rules/naming-and-ids.md.
|
|
65
67
|
|
|
66
68
|
# SUBS is a newline-delimited list of "name :: one-line description"; pass each line as a positional
|
|
67
|
-
# sub spec. The core numbers them 1..k and composes the "[
|
|
69
|
+
# sub spec. The core numbers them 1..k and composes the "[E<parent>.<M>] <name>" title. Add a sub to
|
|
70
|
+
# an existing effort later with: cckit effort sub <N> "<name>".
|
|
68
71
|
SUB_ARGS=()
|
|
69
72
|
while IFS= read -r line; do [[ -n "$line" ]] && SUB_ARGS+=("$line"); done <<< "$SUBS"
|
|
70
73
|
|
|
@@ -73,7 +76,7 @@ PARENT_NUM=$(effort_new \
|
|
|
73
76
|
${FLOW:+--flow "$FLOW"} \
|
|
74
77
|
--role "$ROLE" \
|
|
75
78
|
--priority "${PRIORITY:-p1}" \
|
|
76
|
-
--goal "$GOAL" --scope "$SCOPE" --for-agents "$FOR_AGENTS" --verification "$VERIFICATION" \
|
|
79
|
+
--goal "$GOAL" --spec "$SPEC" --scope "$SCOPE" --for-agents "$FOR_AGENTS" --verification "$VERIFICATION" \
|
|
77
80
|
${DEPENDS_ON:+--depends-on "$DEPENDS_ON"} \
|
|
78
81
|
${MILESTONE:+--milestone "$MILESTONE"} \
|
|
79
82
|
"$TITLE" "${SUB_ARGS[@]}")
|
|
@@ -106,8 +109,8 @@ echo "✓ effort #$PARENT_NUM created — next: /kit-effort-start $PARENT_NUM"
|
|
|
106
109
|
non-numeric argument, an issue that does not exist, a repeated number, or an edge that would
|
|
107
110
|
close a cycle. Use it when the sub-issues already exist and only their ORDER is missing;
|
|
108
111
|
`--depends-on` covers the dependencies known at creation time.
|
|
109
|
-
- The parent body MUST carry all
|
|
110
|
-
a missing section is a review blocker.
|
|
112
|
+
- The parent body MUST carry all five template sections (Goal / Spec / Scope / For agents /
|
|
113
|
+
Verification) — a missing section is a review blocker; a Spec without a real list item is refused.
|
|
111
114
|
- Sub-issues are **native** GitHub sub-issues (`POST …/issues/{parent}/sub_issues` with the child's
|
|
112
115
|
**database id**, resolved via `gh api repos/$KIT_REPO/issues/$N --jq .id`) — not just a checklist.
|
|
113
116
|
- Sub-issue bodies stay short (one line) — the parent holds the narrative.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: kit-effort-pr
|
|
3
3
|
terms: Effort
|
|
4
|
-
description: Open the ONE pull request for an effort — `effort/<N>` → base branch — with a rich human-facing review body plus a `## For agents` section listing the file paths/entry points. Title `type: <name> [
|
|
4
|
+
description: Open the ONE pull request for an effort — `effort/<N>` → base branch — with a rich human-facing review body plus a `## For agents` section listing the file paths/entry points. Title `type: <name> [E<n>]`. Inherits labels + milestone from the parent issue and moves it to In Review on the board.
|
|
5
5
|
when_to_use: When an effort branch is ready for review (all its sub-issues built + merged into the effort branch). One effort = one PR (effort-model.md) — never open per-sub PRs to the base branch. Mirrors `kit-task-pr` for the effort lifecycle.
|
|
6
6
|
---
|
|
7
7
|
|
|
@@ -14,7 +14,7 @@ body). Never re-implement it here, and never paste it into a shell.
|
|
|
14
14
|
|
|
15
15
|
Opens the **single** PR for an effort. The PR carries the human-facing review write-up + a
|
|
16
16
|
`## For agents` section (retrieval context / the work record). The parent issue holds the plan;
|
|
17
|
-
this PR is where humans review the result. The title carries `[
|
|
17
|
+
this PR is where humans review the result. The title carries `[E<n>]` (the effort token) — mandatory
|
|
18
18
|
(effort-model.md, effort-id taxonomy) — inside a Conventional Commit subject, because the PR is
|
|
19
19
|
squash-merged and its title becomes the commit release-please and the commitlint gate read.
|
|
20
20
|
|
|
@@ -35,15 +35,15 @@ From the effort worktree (branch `effort/<N>-<slug>`):
|
|
|
35
35
|
cckit effort pr <N> --summary-file <summary.md> --for-agents-file <for-agents.md>
|
|
36
36
|
# short form: cckit effort pr <N> --summary "<what + why>" --for-agents "<paths>"
|
|
37
37
|
# the change is not a feat: add --type fix (any Conventional Commit type)
|
|
38
|
-
# replace the composed title: add --title "<conventional subject carrying [
|
|
38
|
+
# replace the composed title: add --title "<conventional subject carrying [E<n>]>"
|
|
39
39
|
```
|
|
40
40
|
|
|
41
41
|
What the verb does, in order: commits pending **tracked** changes (role identity as a
|
|
42
42
|
`Co-authored-by` trailer; untracked files are listed, never swept in) → pushes → reads the parent's
|
|
43
43
|
title, labels and milestone → composes the title with `effort_pr_title` as
|
|
44
|
-
`type(scope): <name> [
|
|
44
|
+
`type(scope): <name> [E<n>]` (scope = the `flow:` label, else a legacy title's `[Flow]` tag; type =
|
|
45
45
|
`--type`, else the `kind:` label, where `kind:task` → `feat` and a `bug` label → `fix`) → refuses,
|
|
46
|
-
before any `gh` call, a title
|
|
46
|
+
before any `gh` call, a title `naming_title_lint pr` rejects (`commitlint_check` + a trailing `[E<n>]`, `[E<n>.<step>]` or `[#<n>]`) → opens the PR with the body below → adds the PR to the board at In Review (+ Role) and moves
|
|
47
47
|
the parent to In Review. A failed board add prints a warning; it is never silent.
|
|
48
48
|
|
|
49
49
|
Body: `## For the orchestrator` (+ `Closes #N`) · `## Summary` · `## For agents` · `## Verification`
|
|
@@ -51,7 +51,7 @@ Body: `## For the orchestrator` (+ `Closes #N`) · `## Summary` · `## For agent
|
|
|
51
51
|
|
|
52
52
|
## Output
|
|
53
53
|
|
|
54
|
-
- The single effort PR URL (title `type(scope): <name> [
|
|
54
|
+
- The single effort PR URL (title `type(scope): <name> [E<n>]`, e.g. `feat(core): adoption hardening [E115]`)
|
|
55
55
|
- PR + parent issue both at In Review on the board (if Projects v2 is on)
|
|
56
56
|
- Suggested next: `/kit-effort-close <N>`
|
|
57
57
|
|
|
@@ -59,7 +59,7 @@ Body: `## For the orchestrator` (+ `Closes #N`) · `## Summary` · `## For agent
|
|
|
59
59
|
|
|
60
60
|
- **ONE PR per effort** — `effort/<N>` → base branch. Never open a PR from a `sub/<N><letter>`
|
|
61
61
|
branch to the base; sub-issues merge into the effort branch first (effort-model.md).
|
|
62
|
-
- The title MUST carry `[
|
|
62
|
+
- The title MUST carry `[E<n>]` (the effort token) — a PR title without it is a review blocker
|
|
63
63
|
(effort-model.md, effort-id taxonomy).
|
|
64
64
|
- The title MUST be a Conventional Commit subject under `pr.titleStyle: conventional` (the default):
|
|
65
65
|
the verb refuses a composed or `--title` value that fails `scripts/lib/commitlint.sh`. A project
|
package/skills/kit-next/SKILL.md
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
name: kit-next
|
|
3
3
|
terms: Task, Wave
|
|
4
4
|
description: >
|
|
5
|
-
The everyday cckit loop:
|
|
6
|
-
|
|
7
|
-
worktree + branch), `cckit wave` (
|
|
5
|
+
The everyday cckit loop: pick up the next unblocked issue, or fan the unblocked wave out to
|
|
6
|
+
subagents. Wraps `cckit next` (what can I work on now?), `cckit start <N>` (isolated
|
|
7
|
+
worktree + branch), `cckit effort plan --wave` (fan-out), and `cckit watch` (gate + merge PRs).
|
|
8
8
|
when_to_use: >
|
|
9
9
|
When you sit down to work and want the next thing to do, when you finish an issue and need the
|
|
10
10
|
next one, or when you want to parallelize the unblocked wave. Not for planning an effort
|
|
@@ -18,7 +18,7 @@ metadata:
|
|
|
18
18
|
Answer one question fast: **what should I work on right now, and how do I start it?**
|
|
19
19
|
|
|
20
20
|
> Planning the work that doesn't exist yet is a different question. For "given where we are, what
|
|
21
|
-
> should we build next?" use `/kit-plan-next` (`cckit plan
|
|
21
|
+
> should we build next?" use `/kit-plan-next` (`cckit effort plan --next`) — it inventories the kit's current
|
|
22
22
|
> capabilities and proposes next efforts. `kit-next` orders the issues that already exist.
|
|
23
23
|
|
|
24
24
|
## Pick up the next issue
|
|
@@ -30,9 +30,9 @@ cckit next
|
|
|
30
30
|
Prints the unblocked set (wave 0 of the plan) and the single recommended next issue with its start
|
|
31
31
|
command. `--effort <N>` scopes it to one effort's sub-issues.
|
|
32
32
|
|
|
33
|
-
The human output ends with the weekly cadence this verb is the daily step of: Monday `cckit plan`
|
|
33
|
+
The human output ends with the weekly cadence this verb is the daily step of: Monday `cckit effort plan --issues`
|
|
34
34
|
orders the week, `cckit next` daily picks up one issue, Friday `cckit gc` reports what can be
|
|
35
|
-
pruned. `cckit next --
|
|
35
|
+
pruned. `cckit next --json` does not carry that line — its TOON rows stay `{number,ctx,title}`.
|
|
36
36
|
|
|
37
37
|
The unblocked set is ordered by the `priority:pN` label — **p0 → p1 → p2 → p3**, unlabeled last —
|
|
38
38
|
so the recommended issue is the most urgent thing that is actually startable. Ties keep their
|
|
@@ -54,7 +54,7 @@ When the unblocked issues are file-disjoint and independent, drive them in paral
|
|
|
54
54
|
at a time:
|
|
55
55
|
|
|
56
56
|
```
|
|
57
|
-
cckit wave # emits the wave-0 fan-out brief (dispatch wording per adapter)
|
|
57
|
+
cckit effort plan --wave # emits the wave-0 fan-out brief (dispatch wording per adapter)
|
|
58
58
|
cckit watch --merge # gate every open PR; squash-merge the CLEAN ones; advance the next wave
|
|
59
59
|
```
|
|
60
60
|
|
|
@@ -2,15 +2,14 @@
|
|
|
2
2
|
name: kit-plan-next
|
|
3
3
|
terms: Effort
|
|
4
4
|
description: >
|
|
5
|
-
Forward planning from the current state: run `cckit plan
|
|
6
|
-
already
|
|
7
|
-
|
|
8
|
-
mandatory docs + README step.
|
|
5
|
+
Forward planning from the current state: run `cckit effort plan --next` to inventory what the kit
|
|
6
|
+
already does (skills, verbs, rules, docs) and propose what to build next from that inventory,
|
|
7
|
+
then hand a chosen item to `/kit-effort-new`. The plan always carries a docs + README step.
|
|
9
8
|
when_to_use: >
|
|
10
9
|
When you ask "given where we are, what should we build next?" — at the start of a chapter of work,
|
|
11
10
|
after closing an effort, or when triaging a backlog against the kit's current capabilities. Not
|
|
12
|
-
for ordering issues that already exist (
|
|
13
|
-
effort you
|
|
11
|
+
for ordering issues that already exist (`/kit-next`, `cckit effort plan --issues`), nor for
|
|
12
|
+
scoping an effort you already chose (go straight to `/kit-effort-new`).
|
|
14
13
|
metadata:
|
|
15
14
|
version: 1.0.0
|
|
16
15
|
---
|
|
@@ -18,7 +17,7 @@ metadata:
|
|
|
18
17
|
# kit-plan-next — what to build next, grounded in current state
|
|
19
18
|
|
|
20
19
|
Answer one question: **given everything the kit can already do, what is the highest-value next
|
|
21
|
-
effort?** This wraps the `cckit plan
|
|
20
|
+
effort?** This wraps the `cckit effort plan --next` verb (the engine — never re-author its logic here;
|
|
22
21
|
kit-engine-boundary) and turns its proposals into a scoped effort via `/kit-effort-new`.
|
|
23
22
|
|
|
24
23
|
The verb reads the CURRENT skills, commands, rules and docs at runtime, so the plan reflects what
|
|
@@ -26,7 +25,7 @@ ships today.
|
|
|
26
25
|
|
|
27
26
|
## CRITICAL — context-anxiety rule
|
|
28
27
|
|
|
29
|
-
The plan `cckit plan
|
|
28
|
+
The plan `cckit effort plan --next` emits is **human / orchestrator-facing only**. NEVER paste it (or the
|
|
30
29
|
inventory) into a monitored model's prompt or context, and never wire it into an agent's context
|
|
31
30
|
automatically. Read it yourself, decide with the human, and hand only the CHOSEN item to
|
|
32
31
|
`/kit-effort-new`. See `rules/plan-next.md`.
|
|
@@ -34,12 +33,12 @@ automatically. Read it yourself, decide with the human, and hand only the CHOSEN
|
|
|
34
33
|
## 1. Get the forward plan
|
|
35
34
|
|
|
36
35
|
```
|
|
37
|
-
cckit plan
|
|
36
|
+
cckit effort plan --next
|
|
38
37
|
```
|
|
39
38
|
|
|
40
39
|
Prints the current capabilities (skills / commands / rules / docs counts + samples) and a ranked,
|
|
41
40
|
grounded set of proposals. Rank 1 is **always** the mandatory docs + README step (docs-always rule —
|
|
42
|
-
it is never dropped, even for a tiny change). Append `--
|
|
41
|
+
it is never dropped, even for a tiny change). Append `--json` for TOON rows `{rank,area,proposal,next}`
|
|
43
42
|
if you need to reason over the proposals structurally — but keep that output out of any monitored
|
|
44
43
|
context.
|
|
45
44
|
|
|
@@ -82,6 +81,6 @@ Carry the chosen proposal into the effort's **Goal**, decompose it into sub-issu
|
|
|
82
81
|
- **Docs are mandatory** — every plan carries a docs + README step; the effort you scope must keep it.
|
|
83
82
|
- **Context-anxiety** — planner output never enters a monitored model's context; it informs the
|
|
84
83
|
human/orchestrator's decision only.
|
|
85
|
-
- **Don't plan what exists** — for ordering already-created issues use `/kit-next` or `cckit plan`;
|
|
84
|
+
- **Don't plan what exists** — for ordering already-created issues use `/kit-next` or `cckit effort plan --issues`;
|
|
86
85
|
for scoping an item you've already chosen go straight to `/kit-effort-new`.
|
|
87
86
|
- Scrub secrets from anything pasted into the resulting effort body (trace hygiene).
|
|
@@ -44,7 +44,7 @@ mistake this skill exists to prevent.
|
|
|
44
44
|
|
|
45
45
|
```bash
|
|
46
46
|
cckit status # the board, the light tasks, the next effort per flow, the three buckets — as markdown
|
|
47
|
-
cckit status --
|
|
47
|
+
cckit status --json # the same verdicts as JSON, for an agent: local_undone, worktrees, prs,
|
|
48
48
|
# cleanup, next_efforts, light_tasks
|
|
49
49
|
```
|
|
50
50
|
|
|
@@ -54,7 +54,7 @@ Read-only. It writes nothing, deletes nothing, and pushes nothing.
|
|
|
54
54
|
|
|
55
55
|
| # | Bucket | What it answers |
|
|
56
56
|
| --- | --- | --- |
|
|
57
|
-
| 1 | **Local undone work** | What exists only on this machine: worktrees with uncommitted changes, branches holding commits reachable from **no** remote ref, and effort subs not yet merged into their effort branch. Plus the worktree inventory — a clean worktree on an issue branch is still work in progress. A detached worktree that `cckit gc` rates LANDED (clean, HEAD on the base branch or `main`) is left out of the **In progress** list and counted in one line under it; `--
|
|
57
|
+
| 1 | **Local undone work** | What exists only on this machine: worktrees with uncommitted changes, branches holding commits reachable from **no** remote ref, and effort subs not yet merged into their effort branch. Plus the worktree inventory — a clean worktree on an issue branch is still work in progress. A detached worktree that `cckit gc` rates LANDED (clean, HEAD on the base branch or `main`) is left out of the **In progress** list and counted in one line under it; `--json` `worktrees` still carries every worktree. |
|
|
58
58
|
| 2 | **PRs waiting on a human** | Every open PR with the ONE thing it needs: `conflict`, `checks`, `draft`, `wait`, `threads`, `ai-review`, `review`, or `ready`. |
|
|
59
59
|
| 3 | **Cleanup available** | Branches and worktrees that can go — **local and remote** — plus what is deliberately kept (orphan work, open-issue branches), and a count of branches that could not be classified because a GitHub read failed. |
|
|
60
60
|
|
|
@@ -70,7 +70,7 @@ In a project that tracks work with `cckit task`, the report prints a **Light tas
|
|
|
70
70
|
the board: one line of counts by state (`review`, `doing`, `todo`, `draft`, `shared`, `done`), then
|
|
71
71
|
a table of the tasks somebody has to act on — `review` (its pull request is waiting), `doing`,
|
|
72
72
|
`draft` (only in this checkout) and `shared`. A `todo` task is counted, not listed. It is read from
|
|
73
|
-
local git, with no `gh` call and no fetch. In `--
|
|
73
|
+
local git, with no `gh` call and no fetch. In `--json` output it is `light_tasks`
|
|
74
74
|
(`{counts, attention: [{id, state, title, needs}]}`), `null` when the project has no light task.
|
|
75
75
|
Relay the rows before the buckets: in such a project they are the answer to "what is waiting",
|
|
76
76
|
and the board line above them reads `open issues: 0`.
|
|
@@ -81,12 +81,12 @@ Before the buckets the report prints one row per flow that has an open effort (a
|
|
|
81
81
|
the `effort` label): the effort that can start now — no open blocker, most urgent `priority:pN`
|
|
82
82
|
first, then the lowest number — and how many of the flow's efforts still wait on an open blocker.
|
|
83
83
|
Any open `blocked_by` issue blocks, in the same flow or another; a closed one does not. A flow where
|
|
84
|
-
nothing can start keeps its row and says so. In `--
|
|
84
|
+
nothing can start keeps its row and says so. In `--json` output these rows are `next_efforts`
|
|
85
85
|
(`{flow, number, ctx, title, waiting}`; `number` is `null` for a blocked flow, and the whole key is
|
|
86
86
|
`null` when the efforts could not be read).
|
|
87
87
|
|
|
88
88
|
The line under the table is the weekly cadence, the same line `cckit next` prints: Monday
|
|
89
|
-
`cckit plan`, daily `cckit next`, Friday `cckit gc`. Relay it when the owner asks what to do next.
|
|
89
|
+
`cckit effort plan --issues`, daily `cckit next`, Friday `cckit gc`. Relay it when the owner asks what to do next.
|
|
90
90
|
|
|
91
91
|
## Reading bucket 2
|
|
92
92
|
|
|
@@ -24,5 +24,5 @@ If the PR can't be merged immediately (draft, checks pending, conflicts), report
|
|
|
24
24
|
|
|
25
25
|
- Inherits all rules from `kit-task-pr` and `kit-task-pr-merge`
|
|
26
26
|
- If `kit-task-pr` fails, stop — do not attempt merge
|
|
27
|
-
- If merge fails due to conflicts, attempt the
|
|
27
|
+
- If merge fails due to conflicts, attempt the merge-the-base-in fix from `kit-task-pr-merge` before giving up
|
|
28
28
|
- Always end on the base branch with a clean pull on success
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: kit-task-pr-merge
|
|
3
3
|
terms: Gate
|
|
4
|
-
description: Squash-merge the open PR for the current branch, switch to the base branch, and pull.
|
|
4
|
+
description: Squash-merge the open PR for the current branch, switch to the base branch, and pull. Merges the base into the branch if conflicts are detected.
|
|
5
5
|
when_to_use: When work on an issue branch is ready to land. Always run after `/kit-task-pr`.
|
|
6
6
|
---
|
|
7
7
|
|
|
@@ -52,8 +52,8 @@ fi
|
|
|
52
52
|
|
|
53
53
|
- Never merge a DRAFT PR — undraft first
|
|
54
54
|
- An effort's PR (head `effort/*`) is refused: merge it with `cckit effort close <N>`, which snapshots the per-sub diffs before the squash. `KIT_FORCE=1` overrides, with a warning
|
|
55
|
-
- Never force-push
|
|
56
|
-
- If
|
|
55
|
+
- Never force-push, anywhere: a pushed branch is updated with `git merge origin/<base>` and a plain push, never a rebase
|
|
56
|
+
- If the merge hits conflicts, the op aborts it cleanly and tells you to resolve with `git merge origin/<base>` from the branch's worktree
|
|
57
57
|
- If merge fails for a non-conflict reason (failing checks), the op reports verbatim and does not retry
|
|
58
58
|
- The op always ends on the base branch with a clean pull on success, and always cleans up the merged branch + worktree
|
|
59
59
|
- Never delete a branch that still has an open PR or unpushed commits not on the base branch's remote
|
|
@@ -15,6 +15,8 @@ Runs `${CLAUDE_PLUGIN_ROOT}/scripts/task-sync.sh` — pure bash over `gh` CLI +
|
|
|
15
15
|
`.claude/kit.config.json` (from the working directory) for the repo and board. Read-only on
|
|
16
16
|
GitHub — it never mutates the board.
|
|
17
17
|
|
|
18
|
+
From a shell the same view is `cckit status --board`; `cckit sync`, its old name, still works.
|
|
19
|
+
|
|
18
20
|
## Execution
|
|
19
21
|
|
|
20
22
|
```bash
|