@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.
Files changed (193) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/AGENTS.md +136 -127
  3. package/README.md +66 -43
  4. package/bin/cckit +151 -181
  5. package/cckit.config.json +1 -4
  6. package/package.json +1 -1
  7. package/scripts/advisor-test.sh +55 -0
  8. package/scripts/autopilot-run-test.sh +20 -12
  9. package/scripts/autopilot-run.sh +9 -1
  10. package/scripts/autopilot-test.sh +29 -13
  11. package/scripts/autopilot.sh +4 -4
  12. package/scripts/benchmark/verb-timings-test.sh +4 -0
  13. package/scripts/benchmark/verb-timings.sh +16 -5
  14. package/scripts/capture-project-ids.sh +23 -1
  15. package/scripts/check.sh +25 -0
  16. package/scripts/content-skills-test.sh +1 -1
  17. package/scripts/contribute.sh +8 -3
  18. package/scripts/copilot-loop-test.sh +66 -81
  19. package/scripts/exec-targets-test.sh +20 -0
  20. package/scripts/force-push-fence-test.sh +44 -0
  21. package/scripts/force-push-fence.baseline +1 -0
  22. package/scripts/force-push-fence.sh +51 -0
  23. package/scripts/forge-fence-test.sh +69 -0
  24. package/scripts/forge-fence.baseline +2 -0
  25. package/scripts/forge-fence.sh +76 -0
  26. package/scripts/forge-report-test.sh +100 -0
  27. package/scripts/forge-report.sh +176 -0
  28. package/scripts/init-guided-test.sh +94 -82
  29. package/scripts/init.sh +12 -7
  30. package/scripts/install-test.sh +26 -0
  31. package/scripts/install.sh +7 -0
  32. package/scripts/instruction-budget-baseline.txt +1 -1
  33. package/scripts/kit-doctor-test.sh +60 -12
  34. package/scripts/kit-doctor.sh +170 -77
  35. package/scripts/lib/agent-resolve-test.sh +2 -0
  36. package/scripts/lib/agent-resolve.sh +15 -8
  37. package/scripts/lib/board-view.sh +3 -3
  38. package/scripts/lib/captain.sh +37 -8
  39. package/scripts/lib/content-kinds-gc-test.sh +22 -21
  40. package/scripts/lib/copilot-test.sh +20 -11
  41. package/scripts/lib/copilot.sh +19 -13
  42. package/scripts/lib/effort-close-subs-test.sh +96 -0
  43. package/scripts/lib/effort-dispatch-test.sh +5 -3
  44. package/scripts/lib/effort-metrics-test.sh +7 -12
  45. package/scripts/lib/effort-metrics.sh +17 -46
  46. package/scripts/lib/effort-ops-test.sh +261 -167
  47. package/scripts/lib/effort-ops.sh +449 -171
  48. package/scripts/lib/effort-parity-test.sh +57 -62
  49. package/scripts/lib/effort-plan-test.sh +56 -54
  50. package/scripts/lib/effort-plan.sh +14 -7
  51. package/scripts/lib/effort-review-test.sh +107 -0
  52. package/scripts/lib/effort-review.sh +93 -0
  53. package/scripts/lib/effort-slug-test.sh +34 -14
  54. package/scripts/lib/effort-slug.sh +13 -13
  55. package/scripts/lib/effort.sh +58 -80
  56. package/scripts/lib/forge-github.sh +260 -0
  57. package/scripts/lib/forge-none.sh +24 -0
  58. package/scripts/lib/forge-test.sh +186 -0
  59. package/scripts/lib/forge.sh +133 -0
  60. package/scripts/lib/gh-board-add-test.sh +118 -0
  61. package/scripts/lib/gh-project-test.sh +151 -31
  62. package/scripts/lib/gh-project.sh +139 -11
  63. package/scripts/lib/gh-rest-test.sh +63 -118
  64. package/scripts/lib/gh-rest.sh +275 -52
  65. package/scripts/lib/git-core-test.sh +128 -0
  66. package/scripts/lib/grill-record-test.sh +49 -0
  67. package/scripts/lib/grill-record.sh +88 -0
  68. package/scripts/lib/handoff.sh +1 -1
  69. package/scripts/lib/init-github.sh +38 -13
  70. package/scripts/lib/kinds-test.sh +13 -16
  71. package/scripts/lib/kit-brief-test.sh +51 -10
  72. package/scripts/lib/kit-brief.sh +103 -18
  73. package/scripts/lib/kit-gc-test.sh +90 -109
  74. package/scripts/lib/kit-gc.sh +19 -22
  75. package/scripts/lib/kit-hotfix.sh +18 -16
  76. package/scripts/lib/kit-interview.sh +6 -0
  77. package/scripts/lib/kit-lib-test.sh +1 -1
  78. package/scripts/lib/kit-lib.sh +7 -7
  79. package/scripts/lib/kit-msg.sh +3 -3
  80. package/scripts/lib/kit-status.sh +19 -14
  81. package/scripts/lib/kit-task-ops-test.sh +20 -1
  82. package/scripts/lib/kit-task-ops.sh +177 -94
  83. package/scripts/lib/kto-hotfix-test.sh +53 -58
  84. package/scripts/lib/kto-task-close-test.sh +28 -27
  85. package/scripts/lib/kto-task-new-test.sh +55 -48
  86. package/scripts/lib/kto-task-pr-merge-test.sh +77 -41
  87. package/scripts/lib/kto-task-pr-test.sh +30 -34
  88. package/scripts/lib/light-task-run-test.sh +19 -15
  89. package/scripts/lib/light-task-test.sh +34 -29
  90. package/scripts/lib/light-task.sh +24 -13
  91. package/scripts/lib/loose-issues.sh +65 -0
  92. package/scripts/lib/naming-test.sh +112 -0
  93. package/scripts/lib/naming-verbs-test.sh +126 -0
  94. package/scripts/lib/naming.sh +172 -0
  95. package/scripts/lib/next-test.sh +27 -22
  96. package/scripts/lib/next.sh +13 -7
  97. package/scripts/lib/orchestration-runtime-test.sh +11 -8
  98. package/scripts/lib/plan-machine.sh +22 -16
  99. package/scripts/lib/plan-next.sh +4 -4
  100. package/scripts/lib/pr-evidence-test.sh +63 -74
  101. package/scripts/lib/pr-evidence.sh +15 -12
  102. package/scripts/lib/qa-lane-test.sh +59 -27
  103. package/scripts/lib/qa-lane.sh +14 -6
  104. package/scripts/lib/review-page-test.sh +34 -25
  105. package/scripts/lib/review-page.sh +10 -4
  106. package/scripts/lib/spec-lint-test.sh +63 -0
  107. package/scripts/lib/spec-lint.sh +95 -0
  108. package/scripts/lib/sprint-test.sh +96 -0
  109. package/scripts/lib/sprint.sh +216 -0
  110. package/scripts/lib/stage-receipt-test.sh +169 -19
  111. package/scripts/lib/stage-receipt.sh +195 -10
  112. package/scripts/lib/test-forge-shim.sh +115 -0
  113. package/scripts/lib/verbs.sh +105 -0
  114. package/scripts/lib/verbs.tsv +92 -0
  115. package/scripts/lib/version-bump-test.sh +20 -0
  116. package/scripts/lib/version-bump.sh +4 -2
  117. package/scripts/lib/worker-brief-test.sh +1 -1
  118. package/scripts/lib/worker-brief.sh +1 -1
  119. package/scripts/lib/worktree-issue-test.sh +24 -19
  120. package/scripts/lib/worktree-issue.sh +10 -10
  121. package/scripts/lib/worktree-start-test.sh +13 -16
  122. package/scripts/lib/worktree-start.sh +57 -7
  123. package/scripts/loose-issues-test.sh +102 -0
  124. package/scripts/loose-issues.baseline +5 -0
  125. package/scripts/marketing-walkthrough-test.sh +25 -30
  126. package/scripts/night-grant.sh +14 -8
  127. package/scripts/night-run.mjs +1 -1
  128. package/scripts/orchestrate-test.sh +27 -31
  129. package/scripts/orchestrate.sh +9 -3
  130. package/scripts/portable-test.sh +37 -36
  131. package/scripts/publish.sh +9 -3
  132. package/scripts/setup-labels.sh +23 -12
  133. package/scripts/setup-milestones.sh +8 -2
  134. package/scripts/status-test.sh +39 -33
  135. package/scripts/status.sh +12 -6
  136. package/scripts/task-sync-test.sh +75 -32
  137. package/scripts/task-sync.sh +97 -6
  138. package/scripts/terms-check-test.sh +191 -0
  139. package/scripts/terms-check.sh +242 -0
  140. package/scripts/verbs-gen.sh +43 -0
  141. package/scripts/verbs-help-test.sh +61 -0
  142. package/scripts/verbs-ratchet-test.sh +69 -0
  143. package/scripts/verbs-ratchet.sh +34 -0
  144. package/scripts/verbs-test.sh +120 -0
  145. package/scripts/verbs.baseline +5 -0
  146. package/skills/kit-add/SKILL.md +2 -1
  147. package/skills/kit-advisor/SKILL.md +75 -0
  148. package/skills/kit-advisor/references/close.md +53 -0
  149. package/skills/kit-advisor/references/grill.md +69 -0
  150. package/skills/kit-advisor/references/orchestrate.md +56 -0
  151. package/skills/kit-advisor/references/plan.md +64 -0
  152. package/skills/kit-advisor/references/review.md +47 -0
  153. package/skills/kit-advisor/references/step-report.md +61 -0
  154. package/skills/kit-annotate/SKILL.md +1 -0
  155. package/skills/kit-autopilot/SKILL.md +2 -1
  156. package/skills/kit-cleanup/SKILL.md +3 -2
  157. package/skills/kit-contribute/SKILL.md +1 -0
  158. package/skills/kit-customize/SKILL.md +1 -0
  159. package/skills/kit-dev/SKILL.md +1 -0
  160. package/skills/kit-digest/SKILL.md +1 -0
  161. package/skills/kit-docs-writer/SKILL.md +4 -3
  162. package/skills/kit-effort-close/SKILL.md +18 -9
  163. package/skills/kit-effort-new/SKILL.md +12 -8
  164. package/skills/kit-effort-pr/SKILL.md +8 -7
  165. package/skills/kit-effort-start/SKILL.md +1 -0
  166. package/skills/kit-gc/SKILL.md +1 -0
  167. package/skills/kit-next/SKILL.md +8 -7
  168. package/skills/kit-onboard/SKILL.md +1 -0
  169. package/skills/kit-page/SKILL.md +1 -0
  170. package/skills/kit-plan-next/SKILL.md +11 -11
  171. package/skills/kit-security-sweep/SKILL.md +1 -0
  172. package/skills/kit-ship/SKILL.md +1 -0
  173. package/skills/kit-status/SKILL.md +6 -5
  174. package/skills/kit-task-close/SKILL.md +1 -0
  175. package/skills/kit-task-new/SKILL.md +1 -0
  176. package/skills/kit-task-pr/SKILL.md +1 -0
  177. package/skills/kit-task-pr-auto/SKILL.md +2 -1
  178. package/skills/kit-task-pr-merge/SKILL.md +4 -3
  179. package/skills/kit-task-start/SKILL.md +1 -0
  180. package/skills/kit-task-sync/SKILL.md +3 -0
  181. package/skills/kit-ux-audit/SKILL.md +1 -0
  182. package/skills/routing.yaml +124 -0
  183. package/templates/hooks/kit-mail-check.sh.tmpl +1 -1
  184. package/templates/instructions.md.tmpl +3 -3
  185. package/templates/rules/authoring.md +7 -3
  186. package/templates/rules/delegation-brief.md +4 -0
  187. package/templates/rules/effort-model.md +34 -31
  188. package/templates/rules/gate-and-review.md +1 -1
  189. package/templates/rules/merge-safety.md +9 -7
  190. package/templates/rules/naming-and-ids.md +20 -24
  191. package/templates/rules/plan-next.md +5 -5
  192. package/templates/skills/campaign/SKILL.md +2 -2
  193. package/scripts/lib/engine-adapter.sh +0 -93
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cckit",
3
- "version": "0.10.0",
3
+ "version": "0.12.0",
4
4
  "installationPreference": "beta",
5
5
  "description": "cckit — a project operating system for coding agents. The full GitHub work lifecycle (start/pr/close/sync, efforts, worktrees, orchestrate, gc) as agents + skills + rules, drivable by Claude Code and any other agent. Driven from cckit.config.json; no org or repo hardcoded.",
6
6
  "author": {
package/AGENTS.md CHANGED
@@ -1,14 +1,12 @@
1
1
  # AGENTS.md — driving cckit from an agent
2
2
 
3
3
  cckit is agent-agnostic. Claude Code is first-class (skills + slash commands), but any agent that
4
- can run a shell can drive the full lifecycle. This file is the contract.
5
-
6
- The two-layer split — an agnostic core (this contract) and per-agent adapters (Claude Code is
7
- adapter one) — is described in [the Adapters page](docs-site/src/content/docs/adapters.md).
4
+ can run a shell can drive the full lifecycle. This file is the contract: the agnostic core. The
5
+ per-agent adapters are described in [the Adapters page](docs-site/src/content/docs/adapters.md).
8
6
 
9
7
  ## Ground rules
10
8
 
11
- - **Read state before acting.** `cckit sync --llm` returns the board as TOON. Decide from data.
9
+ - **Read state before acting.** `cckit status --board --json` returns the board as one JSON object. Decide from data.
12
10
  - **One issue = one branch = one worktree = one PR.** `cckit start <issue>` creates the isolated
13
11
  worktree; do all work there; `cckit pr <issue>` opens the PR. Never commit to the base branch.
14
12
  **The effort flow is the one exception, and it is deliberate:** an effort is *1 parent issue = 1
@@ -19,9 +17,9 @@ adapter one) — is described in [the Adapters page](docs-site/src/content/docs/
19
17
  `cckit effort close <N>`: `cckit merge` refuses an `effort/*` head, because its squash skips the
20
18
  per-sub trace snapshot (`KIT_FORCE=1` merges anyway, with a warning). Full spec:
21
19
  `.claude/rules/effort-model.md`.
22
- - **Structured output, TOON-first.** Append `--llm` to any verb for machine-readable output. List
23
- reads (sync, next, plan, wave) come back as **TOON** (token-cheap); single-result action verbs
24
- (start, pr, close) return one JSON object. Human (pretty) output is the default; agents prefer `--llm`.
20
+ - **Structured output, TOON-first.** Append `--json` to any verb for machine-readable output. List
21
+ reads (next, plan, wave) come back as **TOON** (token-cheap), the board (`status --board`) as one JSON document; single-result action verbs
22
+ (start, pr, close) return one JSON object. Human (pretty) output is the default; agents prefer `--json`.
25
23
  - **Idempotent + safe.** Re-running a verb on an already-done step is a no-op, not an error.
26
24
  - **Never invent paths or config.** Everything resolves from `cckit.config.json`.
27
25
  - **Hand off when you stop with unfinished work.** `cckit handoff "<what's pending, next step, refs>"`
@@ -34,74 +32,109 @@ adapter one) — is described in [the Adapters page](docs-site/src/content/docs/
34
32
  decision are fixed at the gap, not reworded. `cckit brief <issue>` emits this instruction in its
35
33
  `## Durable prose` section, so a delegated agent gets it without being told twice.
36
34
 
37
- ## What cckit installs for itself
35
+ ## Which skill does what
38
36
 
39
- `templates/` is what `cckit init` writes into a consuming project. `.claude/skills/` and
40
- `.claude/rules/` in this repo are the subset cckit applies to its **own** work — `concrete`,
41
- `karpathy-guidelines`, and the rules for branches, efforts, PR titles, delegation, communication
42
- style and issue lifecycle (`issue-lifecycle.md`: sub-issues not checkboxes, approved-plan autonomy,
43
- explicit closes) and merge safety (`merge-safety.md`: current base before merging, a coupled chain as
44
- one PR, the gate re-run on the integration branch) and authoring (`authoring.md`: docs in the same change,
45
- no issue numbers in pasted prompts, summaries without machine flags) and the shared checkout
46
- (`shared-checkout.md`: never move the primary checkout by hand, work in a worktree, call a freshly merged verb from a
47
- current worktree's `bin/cckit`) and review pages (`review-pages.md`: a plan, a decision or a grilling round opens as a
48
- page, terminal output where there is no browser, the answer written back). No agents are installed: this file plus `cckit brief` is the delegation contract here.
37
+ One row per skill; its tasks and terms are its entries in `skills/routing.yaml` (the machine-readable
38
+ copy; `bash scripts/terms-check.sh` names a drift between the two). A term is a file under
39
+ `ontology/terms/`; `none` says the skill serves the kit's own setup and no process term yet.
49
40
 
50
- The manifest and the reason for every skipped template are in `scripts/self-install-test.sh`, which
51
- also fails if an installed copy drifts from its template. Edit a template and its installed copy in
52
- the same commit.
41
+ | What you want | Skill | Term |
42
+ | --- | --- | --- |
43
+ | know where we are: local undone work, PRs waiting, cleanup | `kit-status` | Report |
44
+ | read the board by role, see what is blocked | `kit-task-sync` | Sync |
45
+ | pick up the next unblocked issue · fan the unblocked wave out to builders | `kit-next` | Task, Wave |
46
+ | decide what to build next from what the kit already does | `kit-plan-next` | Effort |
47
+ | run an approved plan unattended, waves merged as they go | `kit-autopilot` | Captain |
48
+ | create or plan an effort: grill, plan, orchestrate, review, close | `kit-advisor` | Advisor |
49
+ | track a new piece of work as an issue | `kit-task-new` | Task |
50
+ | start work on an issue in its own worktree | `kit-task-start` | Worktree |
51
+ | open the PR for an issue | `kit-task-pr` | Task |
52
+ | land an issue's PR once the gate is green | `kit-task-pr-merge` | Gate |
53
+ | open and land the PR in one step | `kit-task-pr-auto` | Task |
54
+ | close an issue whose PR merged | `kit-task-close` | Task |
55
+ | take one issue from code to merged | `kit-ship` | Task |
56
+ | scope a goal into an effort · record the deliverables as sub-issues | `kit-effort-new` | Effort, SubIssue |
57
+ | start building an effort | `kit-effort-start` | Effort |
58
+ | open the one PR of an effort | `kit-effort-pr` | Effort |
59
+ | land and close an effort | `kit-effort-close` | Effort |
60
+ | see which branches and worktrees can go | `kit-gc` | Worktree |
61
+ | delete the merged branches and worktrees | `kit-cleanup` | Worktree |
62
+ | audit the project for security findings | `kit-security-sweep` | Check |
63
+ | audit the UI's flows, consistency and accessibility | `kit-ux-audit` | Check |
64
+ | give visual feedback on a running UI and triage it | `kit-annotate` | Check |
65
+ | set cckit up on a new machine | `kit-onboard` | none |
66
+ | add an integration or a module to the project | `kit-add` | none |
67
+ | add or edit an agent or a skill in a project | `kit-customize` | none |
68
+ | send a change upstream to cckit | `kit-contribute` | none |
69
+ | change cckit itself and test it live | `kit-dev` | none |
70
+ | write a docs page in the house voice | `kit-docs-writer` | none |
71
+ | shorten a long input before reading it | `kit-digest` | none |
72
+ | show a plan, a decision or a grilling round as a page | `kit-page` | none |
73
+
74
+ `.claude/skills/` and `.claude/rules/` here are the subset of `templates/` cckit applies to its own
75
+ work (`concrete`, `karpathy-guidelines`, and the rules). No agents are installed: this file plus
76
+ `cckit brief` is the delegation contract. `scripts/self-install-test.sh` holds the manifest and every
77
+ skip reason, and fails when an installed copy drifts; edit template and copy in the same commit.
53
78
 
54
79
  ## Core verbs
55
80
 
81
+ Every verb, the question it answers, one prompt to paste, its usage and whether it uses the forge
82
+ live in one table, `scripts/lib/verbs.tsv`. `cckit help` prints it grouped by question, git
83
+ mechanics first; `cckit commands --json` returns it as data, one object per verb. The table below
84
+ carries the flags and behaviour of each verb.
85
+
56
86
  | Verb | Purpose | LLM mode |
57
87
  | --- | --- | --- |
58
88
  | `cckit init [<folder>] [--adapter <claude\|codex\|both>]` | guided project setup, then the scaffold. Before anything is written init classifies the folder: a repository with a remote, a repository without one, a project without git, files with no project marker, an empty or missing folder, or a home/system folder (`$HOME`, `~/Desktop`, `~/Documents`, `~/Downloads`, `/`), which is never scaffolded into. Questions (is this a new project, where it lives, recipe, database, profile) are answered from `--answers FILE` (a JSON object `{"<key>":"<value>"}`: `new_project`, `folder_use`, `project_name`, `location`, `recipe`, `database_needed`, `database`, `profile`), else on a terminal; a key the file omits takes the recommended option. With neither a terminal nor an answers file init runs from flags alone, and a home folder exits 2. `--recipe <id>` starts a NEW project from `recipes/<id>.json` (shipped: `nextjs-shadcn`), and the recipe's `config` object is merged into the project config (`nextjs-shadcn` sets `tasks.check` to `pnpm build && pnpm lint` and `tasks.design` to `true`, which makes every task of the project a page task and installs the `page-design` skill); `--database <id>` applies `databases/<id>.json` (shipped: `supabase`: packages, `lib/supabase/{client,server}.ts`, variable names with placeholders in the gitignored `.env.local`, and a guide page; values are typed by the user and never printed). Then the git + GitHub steps, listed first and run after one confirmation (a terminal prompt, or `--yes`; with no terminal and no `--yes` they do not run and the last lines say so, naming what is left undone and the command for it: `Not done: the cckit files are not committed.` and, when the config's base branch is in neither the repository nor origin, `Not done: the branch '<base>' … does not exist`; the base branch written without the setup is the repository's GitHub default, else `main` when it exists or there is no commit, else the checked-out branch): `git init` + first commit, on a repository that already had commits ONE commit `chore: add the cckit project files` on the base branch holding the files init wrote (no env file, nothing git ignores, no script of the project's own, nothing the project had staged; skipped once the project config is tracked; `failed` when the folder is on another branch than an existing base), `gh repo create` (private; `--public` for public) or the existing remote, base branch `develop` created and pushed (when GitHub already has the base branch, the kit files commit is pushed to it), labels + milestones (missing ones only), delete-head-branches, base-branch protection (a plan that refuses it is `skipped` with the reason), Projects v2 ids when the board is on, the doctor report. Each step prints `done` / `skipped` / `failed`; a failed step does not stop the later ones and the run exits 1; a re-run skips finished steps. `--no-github` is the scaffold alone. Every scaffold adds `.cckit/` and `.claude/worktrees/` to `.gitignore`. The rendered instruction file names the project's base branch in its PR section and, with `tasks.default: "light"`, names the task files as the source of truth; the closing next steps of such a project name `cckit task new` / `cckit task start`, not the label and milestone scripts. `--dry-run` prints the recipe commands and every step and writes nothing, the folder included. Exit 0 done · 1 a step failed · 2 refused before any write (home folder, unknown recipe or answer, a recipe on a non-empty folder). `--upgrade` never enters this flow. The scaffold: config + the selected adapter(s), default `claude`. `claude` writes `CLAUDE.md` + `.claude/`; `codex` writes `AGENTS.md` + `.agents/{skills,rules}` and, when it is the only adapter, keeps the config at the root `cckit.config.json` and the ownership manifest at `.cckit/kit.manifest.json` — no `.claude/` tree. `--plain-language <on\|off>` installs the `plain-language` rule and sets `plainLanguage.enabled` (default: the profile's). `--profile <name>` picks one of `profiles/*.json` (`software`, `content`, `marketing`, `research`, `automation`, `minimal`); `marketing` is `content` plus `tasks.default: "light"`, plain language on, and the `brand-voice`, `campaign` and `page-design` skills. `page-design` is also installed by any recipe or project config that sets `tasks.design: true` (on `--upgrade` too, when the project is behind the installed version; a project already at it is refused before anything is added, and gets the skill from `cckit add page-design`). It coordinates three third-party design skills that init never installs: the closing next steps offer them as `cckit add impeccable`, `cckit add emil-design-eng`, `cckit add web-design-guidelines`, then `cckit doctor --fix`. The selection is stored as `adapters` in the config; `--upgrade` keeps it, and `--upgrade --adapter <name>` adds an adapter without rewriting the other's files. Both adapters get the same hook scripts — base-branch commit guard, raw-git guard, session mail, session-start checks: Claude in `.claude/hooks/` (mail wired in the tracked `.claude/settings.json`), Codex in `.codex/hooks/`, registered in `.codex/hooks.json` by a merge that keeps the entries already there and uses no absolute path. Codex runs a project hook only after it is trusted (`/hooks`). Specialist agents come from one role source (`templates/agents/<role>.md`): Claude gets `.claude/agents/<role>/AGENT.md`, Codex gets `.codex/agents/<role>.toml` (`name`, `description`, `developer_instructions`); a Claude tool allowlist and model alias do not translate and are written into the TOML as comments. Not installed for Codex: memory hooks (they read Claude Code transcripts) | — |
59
- | `cckit sync` | board state / what's unblocked | `--llm` → TOON |
60
- | `cckit sync --json` | the board as ONE JSON object for a dashboard: per-role issues, `unassigned`, `blocked`, `stale`, `mergeQueue` (merge order). `--write` saves it atomically to `<git-common-dir>/kit-sync-cache.json` and never overwrites it with a failed or partial fetch; `--cached [TTL]` prints that cache with no `gh` call while it is younger than TTL seconds (default 60), else refreshes it; `--watch [SECS]` refreshes every SECS (default 30) and keeps the last good cache when a fetch fails; `--plan` inlines `effort plan`. Each fetch emits `op.start` / `op.done` (op `sync`) to `kit-events.jsonl`. `--write` / `--cached` / `--watch` refuse `--role` / `--milestone` (exit 2) | `--json` → JSON (`--llm` / `--output=json` stay TOON) |
61
- | `cckit next` | the next unblocked issue + how to start it. With `tasks.default: "light"` in the config, a bare `cckit next` prints what `cckit task next` prints and makes no `gh` call (with `--llm`, that verb's one JSON object or `null`, not TOON rows); any argument takes the issue path. Human output ends with the weekly cadence line (Monday `cckit plan` · daily `cckit next` · Friday `cckit gc`); the TOON rows stay `{number,ctx,title}` | `--llm` → TOON |
62
- | `cckit plan` | wave plan: deps-ordered, priority-sorted within a wave, file-disjoint, session-fit | `--llm` → TOON |
63
- | `cckit plan-next` | forward plan: inventory current skills/verbs/rules/docs → propose what to build next | `--llm` → TOON |
64
- | `cckit status` | where are we: the next effort that can start in each flow (no open blocker; p0 → p3, then lowest number), the light tasks when the project has any (counts by state, then the tasks somebody has to act on: `review`, `doing`, `draft`, `shared`; read from local git, no `gh` call and no fetch), local undone work, open PRs waiting on a human, cleanup available (local + remote), then one line with the resident instruction-file bytes (`CLAUDE.md` + rules without `paths:`) against the 150k limit and the three largest files | `--llm` → JSON (`next_efforts` is one row per flow; `null` when the efforts could not be read) (`instruction_budget`, `null` when nothing was measured) (`light_tasks`: `{counts, attention}`, `null` when the project has no light task) |
89
+ | `cckit status --board` | board state / what's unblocked. Every read (not `--raw-json`, not a `--cached` hit) also writes `.cckit/board.md` atomically: one tab-separated line per open issue (`#N`, status, kind, effort token `E546` / `E546.3` / `-`, labels, title), grouped Efforts / Sub-issues / Standalone, for `rg '#572' <path>` (`.cckit/` is gitignored, so give the path; sync prints it). `--no-snapshot` skips it, `CCKIT_BOARD_SNAPSHOT=<path>` moves it; no forge, no file | `--llm` → TOON |
90
+ | `cckit status --board --json` | the board as ONE JSON object for a dashboard: per-role issues, `unassigned`, `blocked`, `stale`, `mergeQueue` (merge order). `--write` saves it atomically to `<git-common-dir>/kit-sync-cache.json` and never overwrites it with a failed or partial fetch; `--cached [TTL]` prints that cache with no `gh` call while it is younger than TTL seconds (default 60), else refreshes it; `--watch [SECS]` refreshes every SECS (default 30) and keeps the last good cache when a fetch fails; `--plan` inlines `effort plan`. Each fetch emits `op.start` / `op.done` (op `sync`) to `kit-events.jsonl`. `--write` / `--cached` / `--watch` refuse `--role` / `--milestone` (exit 2) | `--json` → JSON (`--llm` / `--output=json` stay TOON) |
91
+ | `cckit next` | the next unblocked issue + how to start it. With `tasks.default: "light"` in the config, a bare `cckit next` prints what `cckit task next` prints and makes no `gh` call (with `--json`, that verb's one JSON object or `null`, not TOON rows); any argument takes the issue path. Human output ends with the weekly cadence line (Monday `cckit effort plan --issues` · daily `cckit next` · Friday `cckit gc`); the TOON rows stay `{number,ctx,title}` | `--json` → TOON |
92
+ | `cckit effort plan --issues` | wave plan: deps-ordered, priority-sorted within a wave, file-disjoint, session-fit | `--json` → TOON |
93
+ | `cckit effort plan --next` | forward plan: inventory current skills/verbs/rules/docs → propose what to build next | `--json` → TOON |
94
+ | `cckit status` | where are we: the next effort that can start in each flow (no open blocker; p0 → p3, then lowest number), the light tasks when the project has any (counts by state, then the tasks somebody has to act on: `review`, `doing`, `draft`, `shared`; read from local git, no `gh` call and no fetch), local undone work, open PRs waiting on a human, cleanup available (local + remote), then one line with the resident instruction-file bytes (`CLAUDE.md` + rules without `paths:`) against the 150k limit and the three largest files | `--json` → JSON (`next_efforts` is one row per flow; `null` when the efforts could not be read) (`instruction_budget`, `null` when nothing was measured) (`light_tasks`: `{counts, attention}`, `null` when the project has no light task) |
65
95
  | `cckit brief <issue>` | the delegation brief for an issue, from real state: worktree, seed freshness, owned files, the helpers they sit on, standing gotchas | — |
66
- | `cckit wave [--adapter <claude\|codex\|both>]` | read open efforts, propose incoming waves: fan-out brief + captain drive. The wave data (issues, ctx, one runtime-neutral prompt per issue) is the same for every runtime; the dispatch wording is per adapter — Claude Code spawns Task subagents with worktree isolation, Codex is told to launch `cckit orchestrate --agent codex`, because cckit creates the worktrees there. Default: the project's stored `adapters` (`CCKIT_ADAPTER` overrides) | `--llm` → TOON (wave data only, identical for both adapters) |
96
+ | `cckit effort plan --wave [--adapter <claude\|codex\|both>]` | read open efforts, propose incoming waves: fan-out brief + captain drive. The wave data (issues, ctx, one runtime-neutral prompt per issue) is the same for every runtime; the dispatch wording is per adapter — Claude Code spawns Task subagents with worktree isolation, Codex is told to launch `cckit orchestrate --agent codex`, because cckit creates the worktrees there. Default: the project's stored `adapters` (`CCKIT_ADAPTER` overrides) | `--json` → TOON (wave data only, identical for both adapters) |
67
97
  | `cckit watch [--merge] [--loop]` | captain: gate open PRs, squash-merge CLEAN, advance the wave | — |
68
- | `cckit qa <up\|ready\|open\|stop\|verdict\|lanes> [--lane N]` | the QA lane, one review stack per lane (a lane is an issue number: the current branch's, or `--lane`). `up` launches the command declared under `qa` with the project's port env vars set to this lane's block and exits 0 only once every `qa.readiness` probe answers 2xx/3xx (`ready` waits on a launched lane; rc 1 names the failing probes and the launch log, rc 2 refuses a config problem, or a lane port another process already listens on, before launching). `open` prints and opens the changed screen — the PR body's `QA route: /path` line, else `qa.route` — and refuses a lane that is not usable. `stop` exits 0 only when nothing listens on the lane's ports; a listener the lane did not launch is left running (rc 1) unless `--force`. `verdict <pass\|fail>` writes a `qa` receipt bound to the reviewed commit, upserts one PR comment and mails a fail's notes to the builder; with no `pass\|fail` it reads back `pass` · `fail` · `stale` · `none`, exit 0 only for a pass on the current head. `captain.mergePolicy.requireQa` makes `cckit watch` hold a PR without that pass (`QA_MISSING`); a fail on the current head always blocks (`QA_FAILING`). `lanes` takes no argument and prints one row per lane that has a port slot, a launch record or a verdict: branch, ports, `up` · `partial` · `down` · `unknown` by who listens on those ports, the verdict (`pass` · `fail` · `stale` · `none`, or `unknown` when a verdict exists and no local branch does) and the worktree. It is read-only — no launch, no stop, no write, no `gh` or `curl` call — and exits 0 with or without lanes | `--llm` → JSON (`lanes` → a JSON array of `{lane, branch, worktree, ports, up, verdict}`, `[]` with no lane) |
69
- | `cckit start <issue> [slug]` | isolated worktree + branch, bootstrapped: env files copied, per-worktree dev PORT, deps installed at the selected targets. Precedence: **`worktree.installPaths` if set** (those dirs only, installed whether or not each declares dependencies — `[]` installs nothing, and the root/workspace checks are skipped entirely), **else** the root *only when* its manifest declares dependencies or it is a workspace root **with at least one member** (a non-empty `packages:` list, or a non-empty `workspaces` / `workspaces.packages` array), **else nothing** — so a dependency-free root never gets a stray empty `pnpm-lock.yaml`. `installPaths` entries that escape the worktree are refused. `KIT_WT_INSTALL=0` skips the install. **Claim-checked:** `cckit start [--force] <issue>` refuses (rc 1) when another live session already holds the issue's claim in `<git-common-dir>/kit-sessions/` — before the issue read, the fetch and `git worktree add`, so a refusal makes no branch and no worktree. `--force` / `KIT_FORCE=1` starts anyway and takes the claim; a claim whose session pid is dead is reaped; re-running from the same session or from inside the claimed worktree is the usual no-op. A board Status of In Progress or In Review only warns | `--llm` |
70
- | `cckit pr <issue> <summary> [--base <branch>]` | commit + push + open PR. `--base` targets a branch other than the configured base (`.github.baseBranch`) — a release PR `develop` → `main`, or a hotfix to the release branch; labels, milestone, board and `Closes #N` are unchanged. The body's checklist follows `pr.bodyStyle`: `code` (default) is `## Verification`, naming the diff; `content` is `## Review`, for a draft. The push exports the target as `KIT_PR_BASE` (set with or without `--base`), so a git pre-push hook can compare against the branch the PR targets. `--base` with no value exits 2 before the commit and the push | `--llm` |
71
- | `cckit hotfix <pr\|sha> [--base <branch>]` | carry ONE merged change to the release branch (`main` unless `--base` or `KIT_HOTFIX_BASE`): worktree `fix/<N>-hotfix-<base>` from `origin/<base>`, `git cherry-pick -x` (`-m 1` for a merge commit; every commit of a rebase-merged PR, oldest first), push with `KIT_PR_BASE=<base>`, PR titled after the source with `Cherry-pick of #N` in the body and no `Closes`. A digits-only source is a PR number and must be MERGED; anything else is a commit, whose PR number is read from a `(#N)` suffix or `Merge pull request #N`. Re-runnable: a picked commit is not picked twice and an open PR is reported, not re-created. A conflict stops before the push — resolve, `git cherry-pick --continue`, re-run | `--llm` → JSON (`ok`, `url`, `worktree`, `detail`; a refusal is `ok:false` with the reason in `detail`) |
72
- | `cckit close <issue> <summary>` | close issue + mark done | `--llm` |
73
- | `cckit task new "<title>"` · `task list [--all]` · `task next` | light tasks: work tracked in the project, with no GitHub issue. `new` writes `tasks/<id>.md` in the current checkout (flags `--priority p0..p3`, `--kind`, `--body`/`--body-file`) and commits nothing. `list` prints each open task's state, derived from git: `draft` (only this checkout) · `todo` (on the base branch) · `shared` (in a `task share` PR that has not merged) · `doing` (a `light/<id>-…` branch exists) · `review` (that branch's copy says done) · `done` / `dropped` (the base branch's copy says so; shown with `--all`). With `plainLanguage.enabled`, `list` adds one line under the table saying what `draft` means there. `next` is the first `todo`/`draft` by priority, then creation date. Records are read through the task source (`tasks.source`, default `file`; `tasks.dir`, default `tasks`). `cckit task default` prints `light` or `issues`: the project's default list (`tasks.default`, `issues` when unset) | `--llm` → `new` one JSON object, `list` a JSON array, `next` one object or `null` |
74
- | `cckit task start [--force] [--no-push] <id>` (alias `take`) | worktree `.claude/worktrees/light+<id>-<slug>` on branch `light/<id>-<slug>` from `origin/<base>`, bootstrapped like `cckit start`. A draft is committed on the branch and removed from the checkout it was created in; the branch is pushed unless `--no-push`. Re-running reuses the worktree. Refuses a done task, a `shared` task, and a task whose branch is on origin but not local unless `--force`. With no base branch here or on origin it stops and names the fix (`cckit init --yes`, or a `github.baseBranch` that exists). No session claim. `cckit gc` reports the branch `PROTECTED: light task <id> still OPEN` until the task is done on the base branch | `--llm` → JSON (`ok`, `id`, `worktree`, `branch`) |
75
- | `cckit task finish [<id>] "<summary>" [--all]` (alias `done`) | set `status: done` in the task's file on its branch, commit tracked changes (`--all` adds new files), push, open the PR against the base branch: title a Conventional Commit subject ending in `[<id>]`, no `Closes` line. With `pr.bodyStyle: content` the body carries the content review checklist. An open PR is reported, not re-created. The task is done when the PR merges; the verb never merges. Do not run `cckit pr` in a light worktree | `--llm` → JSON (`ok`, `url`, `detail`) |
76
- | `cckit task run <id> [--check "<cmd>"] [--max-iters N] [--max-seconds N] [--agent <cmd>] [--no-finish]` | delegate ONE task end to end: `task start` (the worktree is reused when it exists), one `cckit autopilot run` objective built from the task's title and notes, then `task finish --all` with a generated summary, and the review link on stdout. The gate is `--check`, else `tasks.check` in the project config, else none; it runs after the round, and a failing gate opens no PR. The run has no `--until`, so it is one round; `--max-seconds` also bounds that round; `--agent-arg <arg>` (repeatable) is passed to the agent CLI, and cckit adds no permission flag. A stopped earlier run on the task's branch is discarded, never resumed: the task record is the objective. A task already in `review` starts no agent: its open PR is reported, or opening it is retried. `--no-finish` stops after the run and prints `<worktree>\|<branch>\|<id>`. A **page task** is a task whose kind is `page` (`cckit task new --kind page "<title>"`) or any task in a project whose config sets `tasks.design: true`; nothing is inferred from the title or the notes. For one, the objective tells the agent to load the `page-design` skill and to write the design brief and self-review to `docs/design/<id>.md`, the agent is started so its CLI prints events (`claude -p --output-format stream-json --verbose`; Codex prints them already), and the PR body gains a `## Design` section plus the checklist item `Open the page in a browser and compare it with the design brief`. The section lists the skills the run loaded, read from those events and never from the agent's own text: `Design skills loaded in this run: …`, the design skills not loaded, other skills loaded, or `No design skill was loaded in this run.`; a Claude skill call counts only when its result is not an error, so a skill that is not installed is not listed. With no event in a round's output, or no run on record (`task finish` by hand), it says the list is not known. Exit 0 done · 1 the task could not be started · 2 usage, or the run was refused · 3 agent failed · 4 limit · 5 the round changed nothing · 6 gate failed · 7 the PR could not be opened · 130 interrupted; every non-zero exit opens no PR and its last stderr line names the reason. Never merges | `--llm` → JSON (`ok`, `id`, `url`, `detail`) |
77
- | `cckit task share ["<summary>"]` | one PR from `light/share-<timestamp>` that adds every draft in the current checkout to the base branch; the tasks list as `shared` until it merges. With no new drafts it retries an earlier share of this repository whose push or PR failed (exit 1 on a failed step), and reports an open PR instead of creating one | `--llm` → JSON (`ok`, `url`, `detail`) |
78
- | `cckit claims` | list the live session claims `cckit start` wrote: issue, session pid, start time, branch, worktree. Read-only — a dead session's claim is hidden here and reaped by the next `cckit start` on that issue | `--llm` → JSON array |
79
- | `cckit effort new "<name>" ["sub :: desc" …]` | parent (4-section body + ctx/kind/priority/role/flow labels) + linted native sub-issues — identical to `/kit-effort-new` (one shared core); `start`/`pr`/`close` take `<slug\|N>` | flags: `--flow/--role/--kind/--priority/--goal/--scope/--for-agents/--verification/--depends-on/--milestone`, `--slug`. `--kind` is one of `feat fix task chore security scaffold ci adr spike plan` (default `task`) or a content kind `post campaign brand research`; any other value is refused before anything is created. A content kind is a label only: `cckit start` cuts its branch on `task/` (post, brand), `plan/` (campaign) or `spike/` (research), and `cckit pr` titles it `docs:` |
80
- | `cckit effort chain <a> <b> [<c> …]` | wire 2+ issues into a linear order: `b` `blocked_by` `a`, `c` `blocked_by` `b`, plus a `- Depends on #<predecessor>` line in each successor's `## Relations` section. These are the edges `cckit plan` layers into waves. Idempotent (an edge or line already there is skipped); pre-existing blockers are kept, never replaced. Validates everything first — fewer than two numbers, a non-numeric arg, an issue that does not exist, a repeated number, or an edge that would close a cycle refuses the whole chain and writes nothing | — |
98
+ | `cckit agent receipt <issue> --stage <s> [--no-remote]` · `cckit agent receipt <issue> --report <file> [--dry-run]` | `--stage` records one stage receipt from stdin, locally and as a comment on the issue. `--report` posts a step report's short trail comment on the issue: the `## Status` head, the report's URLs, the `## Waiting for a yes` items and the report's file name (never an absolute path), capped at 1500 characters. It refuses, posting nothing, when the comment would carry a leak-list word or a home path; `--dry-run` prints it; with no forge it says the comment was not posted and prints it | — |
99
+ | `cckit qa <up\|ready\|open\|stop\|verdict\|lanes> [--lane N]` | the QA lane, one review stack per lane (a lane is an issue number: the current branch's, or `--lane`). `up` launches the command declared under `qa` with the project's port env vars set to this lane's block and exits 0 only once every `qa.readiness` probe answers 2xx/3xx (`ready` waits on a launched lane; rc 1 names the failing probes and the launch log, rc 2 refuses a config problem, or a lane port another process already listens on, before launching). `open` prints and opens the changed screen — the PR body's `QA route: /path` line, else `qa.route` — and refuses a lane that is not usable. `stop` exits 0 only when nothing listens on the lane's ports; a listener the lane did not launch is left running (rc 1) unless `--force`. `verdict <pass\|fail>` writes a `qa` receipt bound to the reviewed commit, upserts one PR comment and mails a fail's notes to the builder; with no `pass\|fail` it reads back `pass` · `fail` · `stale` · `none`, exit 0 only for a pass on the current head. `captain.mergePolicy.requireQa` makes `cckit watch` hold a PR without that pass (`QA_MISSING`); a fail on the current head always blocks (`QA_FAILING`). `lanes` takes no argument and prints one row per lane that has a port slot, a launch record or a verdict: branch, ports, `up` · `partial` · `down` · `unknown` by who listens on those ports, the verdict (`pass` · `fail` · `stale` · `none`, or `unknown` when a verdict exists and no local branch does) and the worktree. It is read-only — no launch, no stop, no write, no `gh` or `curl` call — and exits 0 with or without lanes | `--json` → JSON (`lanes` → a JSON array of `{lane, branch, worktree, ports, up, verdict}`, `[]` with no lane) |
100
+ | `cckit start <issue\|E<n>\|E<n>.<step>> [slug]` | isolated worktree + branch, bootstrapped: env files copied, per-worktree dev PORT, deps installed at the selected targets. Precedence: **`worktree.installPaths` if set** (those dirs only, installed whether or not each declares dependencies — `[]` installs nothing, and the root/workspace checks are skipped entirely), **else** the root *only when* its manifest declares dependencies or it is a workspace root **with at least one member** (a non-empty `packages:` list, or a non-empty `workspaces` / `workspaces.packages` array), **else nothing** — so a dependency-free root never gets a stray empty `pnpm-lock.yaml`. `installPaths` entries that escape the worktree are refused. `KIT_WT_INSTALL=0` skips the install. **Claim-checked:** `cckit start [--force] <issue>` refuses (rc 1) when another live session already holds the issue's claim in `<git-common-dir>/kit-sessions/` — before the issue read, the fetch and `git worktree add`, so a refusal makes no branch and no worktree. `--force` / `KIT_FORCE=1` starts anyway and takes the claim; a claim whose session pid is dead is reaped; re-running from the same session or from inside the claimed worktree is the usual no-op. A board Status of In Progress or In Review only warns | `--json` |
101
+ | `cckit pr <issue> <summary> [--base <branch>]` | commit + push + open PR. `--base` targets a branch other than the configured base (`.github.baseBranch`) — a release PR `develop` → `main`, or a hotfix to the release branch; labels, milestone, board and `Closes #N` are unchanged. The body's checklist follows `pr.bodyStyle`: `code` (default) is `## Verification`, naming the diff; `content` is `## Review`, for a draft. The push exports the target as `KIT_PR_BASE` (set with or without `--base`), so a git pre-push hook can compare against the branch the PR targets. `--base` with no value exits 2 before the commit and the push | `--json` |
102
+ | `cckit hotfix <pr\|sha> [--base <branch>]` | carry ONE merged change to the release branch (`main` unless `--base` or `KIT_HOTFIX_BASE`): worktree `fix/<N>-hotfix-<base>` from `origin/<base>`, `git cherry-pick -x` (`-m 1` for a merge commit; every commit of a rebase-merged PR, oldest first), push with `KIT_PR_BASE=<base>`, PR titled after the source with `Cherry-pick of #N` in the body and no `Closes`. A digits-only source is a PR number and must be MERGED; anything else is a commit, whose PR number is read from a `(#N)` suffix or `Merge pull request #N`. Re-runnable: a picked commit is not picked twice and an open PR is reported, not re-created. A conflict stops before the push — resolve, `git cherry-pick --continue`, re-run | `--json` → JSON (`ok`, `url`, `worktree`, `detail`; a refusal is `ok:false` with the reason in `detail`) |
103
+ | `cckit close <issue> <summary>` | close issue + mark done | `--json` |
104
+ | `cckit task new "<title>"` · `task list [--all]` · `task next` | light tasks: work tracked in the project, with no GitHub issue. `new` writes `tasks/<id>.md` in the current checkout (flags `--priority p0..p3`, `--kind`, `--body`/`--body-file`) and commits nothing. `list` prints each open task's state, derived from git: `draft` (only this checkout) · `todo` (on the base branch) · `shared` (in a `task share` PR that has not merged) · `doing` (a `light/<id>-…` branch exists) · `review` (that branch's copy says done) · `done` / `dropped` (the base branch's copy says so; shown with `--all`). With `plainLanguage.enabled`, `list` adds one line under the table saying what `draft` means there. `next` is the first `todo`/`draft` by priority, then creation date. Records are read through the task source (`tasks.source`, default `file`; `tasks.dir`, default `tasks`). `cckit task default` prints `light` or `issues`: the project's default list (`tasks.default`, `issues` when unset) | `--json` → `new` one JSON object, `list` a JSON array, `next` one object or `null` |
105
+ | `cckit task start [--force] [--no-push] <id>` (alias `take`) | worktree `.claude/worktrees/light+<id>-<slug>` on branch `light/<id>-<slug>` from `origin/<base>`, bootstrapped like `cckit start`. A draft is committed on the branch and removed from the checkout it was created in; the branch is pushed unless `--no-push`. Re-running reuses the worktree. Refuses a done task, a `shared` task, and a task whose branch is on origin but not local unless `--force`. With no base branch here or on origin it stops and names the fix (`cckit init --yes`, or a `github.baseBranch` that exists). No session claim. `cckit gc` reports the branch `PROTECTED: light task <id> still OPEN` until the task is done on the base branch | `--json` → JSON (`ok`, `id`, `worktree`, `branch`) |
106
+ | `cckit task finish [<id>] "<summary>" [--all]` (alias `done`) | set `status: done` in the task's file on its branch, commit tracked changes (`--all` adds new files), push, open the PR against the base branch: title a Conventional Commit subject ending in `[<id>]`, no `Closes` line. With `pr.bodyStyle: content` the body carries the content review checklist. An open PR is reported, not re-created. The task is done when the PR merges; the verb never merges. Do not run `cckit pr` in a light worktree | `--json` → JSON (`ok`, `url`, `detail`) |
107
+ | `cckit task run <id> [--check "<cmd>"] [--max-iters N] [--max-seconds N] [--agent <cmd>] [--no-finish]` | delegate ONE task end to end: `task start` (the worktree is reused when it exists), one `cckit autopilot run` objective built from the task's title and notes, then `task finish --all` with a generated summary, and the review link on stdout. The gate is `--check`, else `tasks.check` in the project config, else none; it runs after the round, and a failing gate opens no PR. The run has no `--until`, so it is one round; `--max-seconds` also bounds that round; `--agent-arg <arg>` (repeatable) is passed to the agent CLI, and cckit adds no permission flag. A stopped earlier run on the task's branch is discarded, never resumed: the task record is the objective. A task already in `review` starts no agent: its open PR is reported, or opening it is retried. `--no-finish` stops after the run and prints `<worktree>\|<branch>\|<id>`. A **page task** is a task whose kind is `page` (`cckit task new --kind page "<title>"`) or any task in a project whose config sets `tasks.design: true`; nothing is inferred from the title or the notes. For one, the objective tells the agent to load the `page-design` skill and to write the design brief and self-review to `docs/design/<id>.md`, the agent is started so its CLI prints events (`claude -p --output-format stream-json --verbose`; Codex prints them already), and the PR body gains a `## Design` section plus the checklist item `Open the page in a browser and compare it with the design brief`. The section lists the skills the run loaded, read from those events and never from the agent's own text: `Design skills loaded in this run: …`, the design skills not loaded, other skills loaded, or `No design skill was loaded in this run.`; a Claude skill call counts only when its result is not an error, so a skill that is not installed is not listed. With no event in a round's output, or no run on record (`task finish` by hand), it says the list is not known. Exit 0 done · 1 the task could not be started · 2 usage, or the run was refused · 3 agent failed · 4 limit · 5 the round changed nothing · 6 gate failed · 7 the PR could not be opened · 130 interrupted; every non-zero exit opens no PR and its last stderr line names the reason. Never merges | `--json` → JSON (`ok`, `id`, `url`, `detail`) |
108
+ | `cckit task share ["<summary>"]` | one PR from `light/share-<timestamp>` that adds every draft in the current checkout to the base branch; the tasks list as `shared` until it merges. With no new drafts it retries an earlier share of this repository whose push or PR failed (exit 1 on a failed step), and reports an open PR instead of creating one | `--json` → JSON (`ok`, `url`, `detail`) |
109
+ | `cckit claims` | list the live session claims `cckit start` wrote: issue, session pid, start time, branch, worktree. Read-only — a dead session's claim is hidden here and reaped by the next `cckit start` on that issue | `--json` → JSON array |
110
+ | `cckit effort new --spec T "<name>" ["sub :: desc" …]` | parent (5-section body + ctx/kind/priority/role/flow labels) + linted native sub-issues — identical to `/kit-effort-new` (one shared core); `start`/`pr`/`close` take `<slug\|N>`. The body's `## Spec` (what done means, a list) is required: `--spec` or `--spec-file`, plain lines made `- ` bullets; a missing, empty or TODO/TBD-only Spec is refused before any write. `cckit effort close` re-reads it and refuses the same way; `--no-spec-check` skips that check and says so in one line | flags: `--spec/--spec-file` (required), `--flow/--role/--kind/--priority/--goal/--scope/--for-agents/--verification/--depends-on/--milestone`, `--slug`. `--kind` is one of `feat fix task chore security scaffold ci adr spike plan` (default `task`) or a content kind `post campaign brand research`; any other value is refused before anything is created. A content kind is a label only: `cckit start` cuts its branch on `task/` (post, brand), `plan/` (campaign) or `spike/` (research), and `cckit pr` titles it `docs:` |
111
+ | `cckit effort chain <a> <b> [<c> …]` | wire 2+ issues into a linear order: `b` `blocked_by` `a`, `c` `blocked_by` `b`, plus a `- Depends on #<predecessor>` line in each successor's `## Relations` section. These are the edges `cckit effort plan --issues` layers into waves. Idempotent (an edge or line already there is skipped); pre-existing blockers are kept, never replaced. Validates everything first — fewer than two numbers, a non-numeric arg, an issue that does not exist, a repeated number, or an edge that would close a cycle refuses the whole chain and writes nothing | — |
81
112
  | `cckit effort start [--force] <slug\|N> [slug]` | effort branch + bootstrapped worktree, **WIP-limited**: refuses a NEW effort once `effort.wipLimit` (default 2) are already in progress. In progress = an `effort/<N>-<slug>` branch exists as a local head **or** on origin, read with `git ls-remote` rather than the cached `refs/remotes` (which is wrong both ways: it misses a branch pushed since the last fetch and keeps one deleted on origin until a prune). At the limit refuses; only strictly under it starts. Re-starting an effort that is already in progress is never gated. The check runs before the fetch/branch/worktree/bootstrap, so a refusal makes no branch, no worktree and no board change — it is not read-free (it queries origin, and a `<slug>` arg was resolved first, which can run `gh issue list`). `0` refuses every ordinary start; `--force` still starts. A non-integer value is ignored with a warning and the default 2 is used; `EFFORT_WIP_LIMIT` overrides the config per invocation. `EFFORT_WIP_REMOTE=0` — or an unreachable origin, which warns and proceeds — counts the cached refs instead. With no `[slug]`, a failed read of the issue title warns on stderr and the start continues with the effort's existing branch slug, or `effort`. Does **not** gate `cckit start <issue>`. Creating the branch writes the start time to `<git-common-dir>/effort-metrics/<N>.start`, which `cckit effort close` reads for `build_seconds`; a re-start keeps the stamp already there | `--force`, or `KIT_FORCE=1` |
82
- | `cckit effort pr [<slug\|N>]` | the ONE effort PR, titled as a Conventional Commit subject carrying the effort id: `type(scope): name [#N]` (scope = the `flow:` label, else the title's `[Flow]` tag; type = `--type`, else the `kind:` label, default `feat`). Refuses before any `gh` call when the title lacks `[#N]` or fails `commitlint_check`. `pr.titleStyle: issue-title` gives `[Role] [#N] name` with no commitlint check | flags: `--summary[-file]`, `--for-agents[-file]`, `--title`, `--type` |
83
- | `cckit effort plan` | session-fit effort plan. Rows come from GitHub (one listing + one `blocked_by` call per effort), or from the executable named by `effort.planSource` (`EFFORT_PLAN_SOURCE` overrides), called as `<source> <owner/repo>` from the project root and printing `number<TAB>flow<TAB>ctx<TAB>title[<TAB>blockers]` rows plus an optional `# age: <text>` line. A source that is not executable, exits non-zero or prints no rows falls back to GitHub. The `source:` line under the header names the source used, its age when reported, and any fallback | `--llm` → JSON |
113
+ | `cckit effort pr [<slug\|N>]` | the ONE effort PR, titled as a Conventional Commit subject carrying the effort token: `type(scope): name [E<n>]` (scope = the `flow:` label, else a legacy title's `[Flow]` tag; type = `--type`, else the `kind:` label, default `feat`). Refuses before the commit, the push or any forge call when the title fails `naming_title_lint pr` (`scripts/lib/naming.sh`: `commitlint_check` + a trailing `[E<n>]`, `[E<n>.<step>]` or `[#<n>]`). `pr.titleStyle: issue-title` gives `[Role] [#N] name` with no lint | flags: `--summary[-file]`, `--for-agents[-file]`, `--title`, `--type` |
114
+ | `cckit effort sub <N> "<name>"` | add one sub-issue to effort N, titled `[E<N>.<step>] <name>` (step = the effort's sub-issue count + 1), labelled from the parent (kind, priority, role), linked as a native sub-issue and added to the board. Refuses, before any write, a name that breaks the naming rule or a parent without the `effort` label. `--spec` adds an optional `## Spec` to the sub body, linted when given | `--kind K`, `--body B`, `--spec T` |
115
+ | `cckit effort retitle [<N>]` | list each legacy `[Effort] N · ` effort title and open `[Effort N] M · ` sub title beside its `[E<n>]` / `[E<n>.<step>]` form. A dry run; writes nothing. Without `<N>`, every open effort | `--apply` renames them |
116
+ | `cckit effort plan` | session-fit effort plan. Rows come from GitHub (one listing + one `blocked_by` call per effort), or from the executable named by `effort.planSource` (`EFFORT_PLAN_SOURCE` overrides), called as `<source> <owner/repo>` from the project root and printing `number<TAB>flow<TAB>ctx<TAB>title[<TAB>blockers]` rows plus an optional `# age: <text>` line. A source that is not executable, exits non-zero or prints no rows falls back to GitHub. The `source:` line under the header names the source used, its age when reported, and any fallback | `--json` → JSON |
84
117
  | `cckit orchestrate <a> <b> …` | run N flows in parallel worktrees, in tmux or Herdr. cckit owns the worktree per issue, the `blocked_by` gate, the `--cap` and the result: on tmux each pane runs the agent under `scripts/wave-worker.sh`, which records how the process ended | — (use `--dry-run`) |
85
- | `cckit orchestrate --results [--session=<s>] [--wait <secs>]` | read the wave's collected results: `success` (exit 0), `failure` (exit 1–128), `interrupted` (signal exit, or a `running` record whose pid is gone on the host that wrote it); not finished: `launched`, `running`; `untracked` on Herdr, which owns the agent process. rc 0 all success · 1 any failure/interrupted or no records · 3 none failed, some unfinished. Same for every `--agent` kind | `--llm` → JSON |
118
+ | `cckit orchestrate --results [--session=<s>] [--wait <secs>]` | read the wave's collected results: `success` (exit 0), `failure` (exit 1–128), `interrupted` (signal exit, or a `running` record whose pid is gone on the host that wrote it); not finished: `launched`, `running`; `untracked` on Herdr, which owns the agent process. rc 0 all success · 1 any failure/interrupted or no records · 3 none failed, some unfinished. Same for every `--agent` kind | `--json` → JSON |
86
119
  | `cckit autopilot [<a> …]` | select work, then call `orchestrate --detach` under a cap | — (use `--dry-run`) |
87
120
  | `cckit autopilot run [<issue>] --objective "<text>"` | ONE headless objective on the current branch: `claude -p` or `codex exec`, one round at a time. Code stops it on `--max-iters` (default 5), `--max-seconds` (3600), `--round-seconds` (900), a passing `--until "<cmd>"`, a failing `--check "<cmd>"` gate, or a round that changed neither HEAD nor the tree. An `--until` that already passes before round 1 ends the run with exit 0 and no round, and stderr says that nothing was changed and that `--check` is the flag for a gate. `--max-tokens` is checked between rounds from the runtime's own usage output; a round that prints none stops the run. `--publish --summary "<s>"` opens the PR through `cckit pr` unless the branch already has one. `--record-skills` starts Claude with `--output-format stream-json --verbose` and writes the skills each round loaded to `.skills` in the state file (`loaded`, `complete`, `source`), read from the CLI's events; `complete` is false when a round printed none. `--resume` continues with counters carried over; a round cut short by a signal or a killed runner counts as usage `unknown`, not zero, and a start is refused (exit 2) while the agent an earlier run recorded in `.cckit/autopilot/<branch>.agent.pid` is still alive. Exit 0 done · 2 refused · 3 agent failed · 4 limit · 5 no progress · 6 gate failed · 7 publish failed · 130 interrupted. Refuses the base branch, `--notify`, and an agent other than claude/codex. Never merges | state file `.cckit/autopilot/<branch>.json` (use `--dry-run`) |
88
- | `cckit gc` | report prunable branches + worktrees — SAFE (own PR merged) and LANDED (no PR of its own, work already on base: effort subs, `worktree-agent-*` isolation worktrees) — never one whose issue is still open; aborts if the protection helper is missing. A branch whose PR or issue state could not be read (a failed `gh` call) is reported UNKNOWN ("could not determine") and kept, never "no PR". A worktree with a detached HEAD gets its own row: LANDED when it is clean and its HEAD is on the base branch or `main`, ORPHAN otherwise | `--llm` → JSON counts (`safe`, `landed`, `protected`, `orphan`, `unknown`) |
89
- | `cckit cleanup [--yes]` | the guided destructive sweep over that report: plan first, delete only the SAFE + LANDED rows and prune the listed ZOMBIE metadata (staged work recovered to its branch first); ORPHAN / PROTECTED / UNKNOWN / stashes are never deletable. A LANDED detached worktree is removed; an ORPHAN one, and a detached zombie still holding staged work, are kept | `--llm` → JSON counts + `applied` |
90
- | `cckit page <mode\|open\|poll\|reply\|end\|answer>` | review pages, on by default (`reviewPages.enabled`; off with `cckit add lavish --set enable=no`, or `CCKIT_PAGES=terminal` for one command). `mode` prints `page`, or `terminal: <reason>` when the session has no browser: `CI`, `CCKIT_HEADLESS` (exported by `cckit autopilot run` and the tmux wave worker), a headless Claude Code session (`CLAUDE_CODE_SESSION_ATTENDED=0` or an `sdk*` entrypoint), SSH, no `DISPLAY`/`WAYLAND_DISPLAY` off macOS, no agent session and no TTY, or no `lavish-axi`/`npx` on PATH. `CCKIT_PAGES=page` skips the session checks, never the config switch. `open <html-file> [--fallback <md-file>]` runs `lavish-axi <file>` (`npx -y lavish-axi` without the binary); in terminal mode, or when the tool exits non-zero, it prints the fallback file and exits 0; flags after `--` go to the tool. `poll` / `reply` / `end <html-file> [args…]` pass through to the tool and are no-ops in terminal mode. `answer --kind <plan\|decision\|grill> --title "<t>" [--issue <n>] [--body-file <file\|->]` writes ONE comment on the issue when `github.repo` is set and `--issue` is given, else the file `docs/answers/<date>-<kind>-<slug>.md` (`reviewPages.answersDir`), which the caller commits; `reviewPages.answers: issue\|file` fixes the destination. The same kind, title and body twice writes nothing. Exit 0 · 1 the answer could not be written · 2 usage error. An agent calls `mode` before writing any HTML, and calls `answer` on both paths. A page before `cckit effort start` is recommended; `effort start` checks nothing | `--llm` → JSON (`mode`: `{mode, reason}`; `open`: `{mode, file}`; `answer`: `{ok, where, issue\|file, written}`) |
91
- | `cckit render` | stdin markdown → rich (glow on a TTY; verbatim when piped) | — |
92
- | `cckit version` | the installed cckit version | `--llm` |
121
+ | `cckit gc` | report prunable branches + worktrees — SAFE (own PR merged) and LANDED (no PR of its own, work already on base: effort subs, `worktree-agent-*` isolation worktrees) — never one whose issue is still open; aborts if the protection helper is missing. A branch whose PR or issue state could not be read (a failed `gh` call) is reported UNKNOWN ("could not determine") and kept, never "no PR". A worktree with a detached HEAD gets its own row: LANDED when it is clean and its HEAD is on the base branch or `main`, ORPHAN otherwise | `--json` → JSON counts (`safe`, `landed`, `protected`, `orphan`, `unknown`) |
122
+ | `cckit cleanup [--yes]` | the guided destructive sweep over that report: plan first, delete only the SAFE + LANDED rows and prune the listed ZOMBIE metadata (staged work recovered to its branch first); ORPHAN / PROTECTED / UNKNOWN / stashes are never deletable. A LANDED detached worktree is removed; an ORPHAN one, and a detached zombie still holding staged work, are kept | `--json` → JSON counts + `applied` |
123
+ | `cckit page <mode\|open\|poll\|reply\|end\|answer>` | review pages, on by default (`reviewPages.enabled`; off with `cckit add lavish --set enable=no`, or `CCKIT_PAGES=terminal` for one command). `mode` prints `page`, or `terminal: <reason>` when the session has no browser: `CI`, `CCKIT_HEADLESS` (exported by `cckit autopilot run` and the tmux wave worker), a headless Claude Code session (`CLAUDE_CODE_SESSION_ATTENDED=0` or an `sdk*` entrypoint), SSH, no `DISPLAY`/`WAYLAND_DISPLAY` off macOS, no agent session and no TTY, or no `lavish-axi`/`npx` on PATH. `CCKIT_PAGES=page` skips the session checks, never the config switch. `open <html-file> [--fallback <md-file>]` runs `lavish-axi <file>` (`npx -y lavish-axi` without the binary); in terminal mode, or when the tool exits non-zero, it prints the fallback file and exits 0; flags after `--` go to the tool. `poll` / `reply` / `end <html-file> [args…]` pass through to the tool and are no-ops in terminal mode. `answer --kind <plan\|decision\|grill> --title "<t>" [--issue <n>] [--body-file <file\|->]` writes ONE comment on the issue when `github.repo` is set and `--issue` is given, else the file `docs/answers/<date>-<kind>-<slug>.md` (`reviewPages.answersDir`), which the caller commits; `reviewPages.answers: issue\|file` fixes the destination. The same kind, title and body twice writes nothing. Exit 0 · 1 the answer could not be written · 2 usage error. An agent calls `mode` before writing any HTML, and calls `answer` on both paths. A page before `cckit effort start` is recommended; `effort start` checks nothing | `--json` → JSON (`mode`: `{mode, reason}`; `open`: `{mode, file}`; `answer`: `{ok, where, issue\|file, written}`) |
124
+ | `cckit agent render` | stdin markdown → rich (glow on a TTY; verbatim when piped) | — |
125
+ | `cckit version` | the installed cckit version | `--json` |
93
126
 
94
- Every verb accepts a global `--llm` (alias `--output=json`); verbs that produce a result emit a
127
+ Every verb accepts a global `--json` (older spellings `--llm` and `--output=json` still work); verbs that produce a result emit a
95
128
  single JSON object/array on stdout, with human text on stderr. Interactive/launch verbs
96
129
  (`init`, `orchestrate`, `autopilot`) have no JSON result — use `--dry-run` to inspect their plan.
97
130
  `cckit brief` has no JSON form either, and deliberately: its output IS the prompt you hand a
98
131
  delegated agent, so markdown is the machine-readable form. Read the facts behind it as data with
99
- `cckit lib --llm` and `cckit status --llm`.
132
+ `cckit agent lib --json` and `cckit status --json`.
100
133
 
101
- > **`cckit plan-next` is the one exception to "feed verb output back to the model."** Its forward
134
+ > **`cckit effort plan --next` is the one exception to "feed verb output back to the model."** Its forward
102
135
  > plan is for the human/orchestrator's decision only — never inject it into a monitored model's
103
136
  > prompt or context (context-anxiety rule). Run it, decide, and hand only the chosen, scoped effort
104
- > to an agent. `cckit plan` / `cckit next` (ordering existing work) remain safe to reason over.
137
+ > to an agent. `cckit effort plan --issues` / `cckit next` (ordering existing work) remain safe to reason over.
105
138
 
106
139
  ### Lifecycle ops (so autopilot runs unattended)
107
140
 
@@ -110,8 +143,8 @@ Every operation an unattended run needs is reachable through the one CLI:
110
143
  | Verb | Purpose |
111
144
  | --- | --- |
112
145
  | `cckit scan` | detect the repo's stack + kit state (emits JSON) |
113
- | `cckit doctor [--fix]` | onboarding preflight (deps, gh auth); asks before installing on a TTY, `--fix` skips the prompt. With no TTY and no `--fix` it is report-only: no package install, no `pnpm install`, no seeded or refreshed file, no server start. With `tasks.design: true` it prints one `page-design skill` row per selected adapter: a failing row naming `cckit add page-design` when the skill folder is absent. The row of an integration it has just installed names the files the installer wrote besides the one detected (the descriptor's `alsoWrites`; for `impeccable`, `.claude/agents/impeccable-*.md`). Reports the CLI of each selected adapter (`claude`, `codex`) present or absent; `cckit doctor --agents` prints only those rows, makes no network call, and exits 1 when one is absent. With `codex` selected it also reports whether the hooks are registered in `.codex/hooks.json` (a warning when not; whether Codex trusts them is not readable). One row per `integrations/` descriptor that is on — its config key, or a descriptor with `config.default: true` whose key is absent (`lavish`) — installed by the shared runner; a missing default-on tool the project never set a key for is a skip row: not installed, not a failure; an integration installs only after `--fix` or a yes at the prompt (recorded as `install:<id>` in `.cckit/consent`) — a run with no TTY and no `--fix` reports it missing, installs nothing and exits 1. Also prints the resident instruction-file line `cckit status` prints, and warns when it is over the 150k limit |
114
- | `cckit add [<name>] [--set k=v] [--answers FILE] [--dir DIR]` | no name: list every integration descriptor in `integrations/`, the modules and the kit skills that can be added, exit 0 (`--llm` → one JSON object with `enabled` and `applies` per integration, and `enabled` and `installed` per skill). With an integration: set the one config key its descriptor names, in the config `kit_config_path` resolves — no other key changes, and nothing is installed. For a descriptor that is on by default (`lavish`), `--set enable=no` writes the off value (`reviewPages.enabled: false`) and no rule. The three design skills the `page-design` skill coordinates are integrations too: `impeccable` (`designDirection.provider`), `emil-design-eng` (`designMotion.provider`) and `web-design-guidelines` (`designAudit.provider`); each is detected by its skill file in `.claude/skills/<id>/` or `~/.claude/skills/<id>/`, and installed for Claude Code, into the project, by one `npx` command. A descriptor that lists `rules` (`graft` → `code-retrieval`, `lavish` → `review-pages`) also gets each one copied into `.claude/rules/`; an existing rule file is kept. Declines (exit 0, nothing written) on a repo with no file the integration can work on; exits 1 with no project config or an invalid descriptor. With a module (`software`): write this directory's `.claude/kit.config.json`. With a kit skill (`page-design`, the one that ships an `add.json`): set its config key (`tasks.design: true`) and copy `SKILL.md` and `references/` into the skills folder of each adapter in the config (`.claude/skills/page-design/`, `.agents/skills/page-design/`); it asks nothing, needs no version bump, keeps a copy already there, and a second run changes nothing; exit 1 with no project config. `KIT_DRY_RUN=1` writes nothing, and for an integration prints the install candidates in order plus the wire command. The tools, the consent line and the install order: [Integrations](https://cckit.dev/integrations/) |
146
+ | `cckit doctor [--fix]` | onboarding preflight (deps, the forge: a GitHub token, `gh` optional); asks before installing on a TTY, `--fix` skips the prompt. With no TTY and no `--fix` it is report-only: no package install, no `pnpm install`, no seeded or refreshed file, no server start. With `tasks.design: true` it prints one `page-design skill` row per selected adapter: a failing row naming `cckit add page-design` when the skill folder is absent. The row of an integration it has just installed names the files the installer wrote besides the one detected (the descriptor's `alsoWrites`; for `impeccable`, `.claude/agents/impeccable-*.md`). Reports the CLI of each selected adapter (`claude`, `codex`) present or absent; `cckit doctor --agents` prints only those rows, makes no network call, and exits 1 when one is absent. With `codex` selected it also reports whether the hooks are registered in `.codex/hooks.json` (a warning when not; whether Codex trusts them is not readable). One row per `integrations/` descriptor that is on — its config key, or a descriptor with `config.default: true` whose key is absent (`lavish`) — installed by the shared runner; a missing default-on tool the project never set a key for is a skip row: not installed, not a failure; an integration installs only after `--fix` or a yes at the prompt (recorded as `install:<id>` in `.cckit/consent`) — a run with no TTY and no `--fix` reports it missing, installs nothing and exits 1. Also prints the resident instruction-file line `cckit status` prints, and warns when it is over the 150k limit. Prints one `loose issues` row: the count of open issues that are no effort, no sub-issue and not in Backlog on the board (board off: every standalone issue counts); skipped, and said so, with no forge. `cckit doctor --loose` lists them (`#N title`); `--loose --ratchet [--baseline=FILE]` exits 1 when the count rose above `scripts/loose-issues.baseline`, 2 when it could not be judged. Not part of `scripts/check.sh`, which stays offline |
147
+ | `cckit add [<name>] [--set k=v] [--answers FILE] [--dir DIR]` | no name: list every integration descriptor in `integrations/`, the modules and the kit skills that can be added, exit 0 (`--json` → one JSON object with `enabled` and `applies` per integration, and `enabled` and `installed` per skill). With an integration: set the one config key its descriptor names, in the config `kit_config_path` resolves — no other key changes, and nothing is installed. For a descriptor that is on by default (`lavish`), `--set enable=no` writes the off value (`reviewPages.enabled: false`) and no rule. The three design skills the `page-design` skill coordinates are integrations too: `impeccable` (`designDirection.provider`), `emil-design-eng` (`designMotion.provider`) and `web-design-guidelines` (`designAudit.provider`); each is detected by its skill file in `.claude/skills/<id>/` or `~/.claude/skills/<id>/`, and installed for Claude Code, into the project, by one `npx` command. A descriptor that lists `rules` (`graft` → `code-retrieval`, `lavish` → `review-pages`) also gets each one copied into `.claude/rules/`; an existing rule file is kept. Declines (exit 0, nothing written) on a repo with no file the integration can work on; exits 1 with no project config or an invalid descriptor. With a module (`software`): write this directory's `.claude/kit.config.json`. With a kit skill (`page-design`, the one that ships an `add.json`): set its config key (`tasks.design: true`) and copy `SKILL.md` and `references/` into the skills folder of each adapter in the config (`.claude/skills/page-design/`, `.agents/skills/page-design/`); it asks nothing, needs no version bump, keeps a copy already there, and a second run changes nothing; exit 1 with no project config. `KIT_DRY_RUN=1` writes nothing, and for an integration prints the install candidates in order plus the wire command. The tools, the consent line and the install order: [Integrations](https://cckit.dev/integrations/) |
115
148
  | `cckit update` | report whether the project is behind the installed cckit: `up to date` (exit 0), or `update available · <have> -> <latest>` naming `cckit init --upgrade` (exit 10). Changes nothing |
116
149
  | `cckit migrate [--dry-run]` | reshuffle an old kit layout to the current one; `--dry-run` writes nothing |
117
150
  | `cckit init --upgrade [--dry-run]` | bring a scaffolded project to the installed version: add missing files, keep existing ones and every path under `upgrade.removed` / `upgrade.renamed`, set `kitVersion` (a bump alone edits that one line of the config). Refuses a dirty tree (exit 1). Prints the files it added or modified as `Changed on disk`, measured by checksum before and after; `--dry-run` runs the same upgrade on a temporary copy and prints the same list as `Would change`, writing nothing. A second run answers `already at <version> -- nothing to upgrade`, exit 0. The path end to end: [Update a project](https://cckit.dev/getting-started/update/) |
@@ -145,9 +178,9 @@ a `cckit` run in another project reads its own config.
145
178
 
146
179
  ### Night mode (no verb: `/kit-autopilot` + two scripts)
147
180
 
148
- Night mode has no `cckit` verb. The `kit-autopilot` skill reads the owner's night grant with
149
- `scripts/night-grant.sh read <parent>` and launches the Workflow script `scripts/night-run.mjs`
150
- with the args that prints. In a consuming project both live under `${CLAUDE_PLUGIN_ROOT}/scripts/`.
181
+ The `kit-autopilot` skill reads the owner's night grant with `scripts/night-grant.sh read <parent>`
182
+ and launches the Workflow script `scripts/night-run.mjs` with the args that prints. In a consuming
183
+ project both live under `${CLAUDE_PLUGIN_ROOT}/scripts/`.
151
184
 
152
185
  | Rule | What the scripts enforce |
153
186
  | --- | --- |
@@ -161,30 +194,13 @@ with the args that prints. In a consuming project both live under `${CLAUDE_PLUG
161
194
  Config: `night.floors`, `night.neverWaivable`, `night.gate`, `night.grantors`, `night.refuseLabels`
162
195
  — see [Night mode](https://cckit.dev/config-and-permissions/#night-mode).
163
196
 
164
- ## The agent loop (reference)
165
-
166
- 1. `cckit sync --llm` → pick an unblocked issue.
167
- 2. `cckit start <issue>` → enter the worktree it prints.
168
- 3. Implement; commit early and often.
169
- 4. `cckit pr <issue> "<summary>"` → open the PR; report the URL.
170
- 5. Stop. Merging is a human/captain decision unless an approved plan says otherwise.
171
-
172
197
  ## Model endpoint
173
198
 
174
- cckit shells out to whatever agent invokes it; it does not embed a model. For verbs that synthesize
175
- text (digests, ingest), the model endpoint is configurable via environment — see the docs site,
176
- [cckit.dev](https://cckit.dev).
177
-
178
- `cckit effort close` appends one record per effort to `<git-common-dir>/effort-metrics/records.jsonl`.
179
- `build_seconds` is close time minus the stamp `cckit effort start` wrote when it created the branch
180
- (`build_source: "effort-start"`), or, with no stamp, minus the author time of the oldest commit on
181
- the effort branch (`"first-commit"`). `tokens_real` comes from Claude transcripts of the sessions in
182
- `<git-common-dir>/kit-usage.jsonl` when a project keeps that log (`tokens_source: "transcripts"`;
183
- cckit ships no writer for it), else from the `cckit autopilot run` state files of the effort branch
184
- and its `sub/<N><letter>` branches (`"autopilot-run"`, headless rounds only). With neither it is
185
- `null` and `tokens_null_reason` is `no-usage-source`, `no-session-matched` or
186
- `autopilot-usage-unknown`. No figure is estimated. The field table is in the README under *The
187
- effort metrics record*.
199
+ cckit shells out to whatever agent invokes it; it does not embed a model. The endpoint the verbs
200
+ that synthesize text read is configured by environment variable names, never values:
201
+
202
+ `cckit effort close` appends one record per effort to `<git-common-dir>/effort-metrics/records.jsonl`;
203
+ its fields, their sources and when each is `null` are in the README under *The effort metrics record*.
188
204
 
189
205
  The effort-close judge reads an OpenAI-compatible endpoint from `CCKIT_MODEL_URL` (base URL; it
190
206
  POSTs to `<value>/chat/completions`), `CCKIT_MODEL` (model name) and `CCKIT_MODEL_TOKEN` (bearer
@@ -208,48 +224,49 @@ Marketing; every other page is Software. The track sets the sidebar, the marker
208
224
  current entry of the top-bar switch (`docs-site/src/lib/tracks.ts`, `docs-site/src/routeData.ts`).
209
225
 
210
226
  - **Software pages live under their area.** The areas, in sidebar order: `getting-started/`,
211
- `project-management/`, `design/`, `development/`, `review/`, `ship/`, then the optional
212
- `memory/`. `software.mdx`
213
- is the track's entry page and `philosophy/` holds the team page beside `philosophy.mdx`.
214
- Reference pages (`cli-reference`, `config-and-permissions`, `integrations`, `skills`, `rules`,
215
- `hooks`, …) stay at the root so links to their anchors keep working. Inside an area the order is:
216
- why it exists, who does it, which tools plug in, the verbs, the guides. There is no separate
217
- tutorials section: a step-by-step page is a guide in its area.
218
- - **The look lives in one file.** `docs-site/src/styles/theme.css` holds the palette (the Apple System
219
- Colors terminal scheme, dark and light), the type scale and the measured contrast ratios. Both
220
- tracks share one action colour; a track differs by its marker colour, `--cckit-track`. The
227
+ `project-management/`, `design/`, `development/`, `review/`, `ship/`, then the optional `memory/`.
228
+ `software.mdx` is the track's entry page and `philosophy/` holds the team page beside
229
+ `philosophy.mdx`. Reference pages (`cli-reference`, `config-and-permissions`, `integrations`,
230
+ `skills`, `rules`, `hooks`, …) stay at the root so links to their anchors keep working. Inside an
231
+ area the order is: why it exists, who does it, which tools plug in, the verbs, the guides. There
232
+ is no separate tutorials section: a step-by-step page is a guide in its area.
233
+ - **The look lives in one file.** `docs-site/src/styles/theme.css` holds the palette (the Apple
234
+ System Colors terminal scheme, dark and light), the type scale and the measured contrast ratios.
235
+ Both tracks share one action colour; a track differs by its marker colour, `--cckit-track`. The
221
236
  typeface is Geist and Geist Mono, self-hosted through `@fontsource-variable/geist` and
222
237
  `@fontsource-variable/geist-mono`. A page opens dark when the reader has stored no choice
223
238
  (`docs-site/src/components/ThemeProvider.astro`).
224
- - **The header never moves.** `docs-site/src/components/Header.astro` is a three-column grid: the
225
- wordmark, the search centred on the page, then the right group. Items that exist on one track
226
- only (version, GitHub icon, language picker) come before the theme picker, and the Software /
227
- Marketing switch is last, at the right edge. Search controls take their surface and edge from
228
- `--cckit-field-bg` and `--cckit-field-border`, which hold 3:1 against the page in both themes.
239
+ - **The header is one component and never moves.** `docs-site/src/components/Header.astro` is a
240
+ three-column grid: the wordmark, the search centred on the page, then the right group: version
241
+ text and GitHub icon (Software only, `SocialIcons.astro`), language picker (Marketing only),
242
+ theme picker, and the Software / Marketing switch (`TrackSwitch.astro`) last, at the right edge;
243
+ the switch is not in `SiteTitle`. On a phone the switch, the search icon and the menu button
244
+ share one row. Search controls take their surface and edge from `--cckit-field-bg` and
245
+ `--cckit-field-border`, which hold 3:1 against the page in both themes.
229
246
  - **The guide header is two stacked blocks** (`docs-site/src/components/TutorialMeta.astro`): the
230
247
  "Copy the prompt" banner, then "Before you start". Keep each to one line of text per item.
231
- - **The sidebar is curated.** `sidebar` in `docs-site/astro.config.mjs` lists 43 Software pages:
232
- one "Start here" link, eight area groups and a Reference group, every group collapsed except the
233
- one holding the current page. The Marketing list is 15 pages in six groups (How it works, Get set up,
248
+ - **The sidebar is curated.** `sidebar` in `docs-site/astro.config.mjs` lists 43 Software pages: one
249
+ "Start here" link, eight area groups and a Reference group, every group collapsed except the one
250
+ holding the current page. The Marketing list is 15 pages in six groups (How it works, Get set up,
234
251
  Make a piece, Review and approve, Plan, Look things up) after a "Start here" link, nested in the
235
252
  `Marketing` entry; `src/routeData.ts` unwraps it and opens every group. Each Marketing page ends
236
253
  with a `Next:` link to the following sidebar entry; move a page and its neighbours' links move
237
- with it, in both languages. The sidebar group icons in
238
- `theme.css` apply to Software only. The site has 87 English pages (72 Software, 15 Marketing). A new
239
- Software page is not added to the sidebar by default: link a guide from its area's
240
- `more-guides.mdx` (`development/`, `review/`) and a reference page from `reference.mdx`.
241
- - **A guide step leads with a conversation window.** `<Chat>` (`docs-site/src/components/Chat.astro`)
242
- shows what a person says in the agent's chat, the command it runs (`ran`, Software only), the
243
- real output and the agent's reply, on one running example, the "Bakery site". `<Outcomes>`
244
- (`Outcomes.astro`) is the collapsed block under it for outcome tables and exit codes. The prose
245
- says "your agent" on Software pages and "your assistant" (Spanish "tu asistente") on Marketing
246
- pages, and "in the chat" for the place; it names Claude Code or Codex only where a step is true
247
- for that product alone. Truth rule: `ran` is a real command with real flags, with no literal
248
- issue or task number; `output` is real (a Bakery run, a read-only verb run there, or a string a
249
- test in `scripts/` asserts), trimmed only with a line `…` and `<project>` for a path, and is
250
- omitted when none of those exists; the reply claims nothing the command did not do. A Marketing
251
- window carries no `ran` and no `output` (the build fails if it does). Reference pages stay
252
- command-first. Authoring notes: `docs-site/src/components/README-chat.md`.
254
+ with it, in both languages. The sidebar group icons in `theme.css` apply to Software only. The
255
+ site has 87 English pages (72 Software, 15 Marketing). A new Software page is not added to the
256
+ sidebar by default: link a guide from its area's `more-guides.mdx` (`development/`, `review/`) and
257
+ a reference page from `reference.mdx`.
258
+ - **A guide step leads with a conversation window.** `<Chat>`
259
+ (`docs-site/src/components/Chat.astro`) shows what a person says in the agent's chat, the command
260
+ it runs (`ran`, Software only), the real output and the agent's reply, on one running example, the
261
+ "Bakery site". `<Outcomes>` (`Outcomes.astro`) is the collapsed block under it for outcome tables
262
+ and exit codes. The prose says "your agent" on Software pages and "your assistant" (Spanish "tu
263
+ asistente") on Marketing pages, and "in the chat" for the place; it names Claude Code or Codex
264
+ only where a step is true for that product alone. Truth rule: `ran` is a real command with real
265
+ flags, with no literal issue or task number; `output` is real (a Bakery run, a read-only verb run
266
+ there, or a string a test in `scripts/` asserts), trimmed only with a line `…` and `<project>` for
267
+ a path, and is omitted when none of those exists; the reply claims nothing the command did not do.
268
+ A Marketing window carries no `ran` and no `output` (the build fails if it does). Reference pages
269
+ stay command-first. Authoring notes: `docs-site/src/components/README-chat.md`.
253
270
  - **A Marketing page has a Spanish twin** with the same file name under
254
271
  `src/content/docs/es/marketing/`. Change both in one commit. Links from a Spanish page into a
255
272
  Software page say the target is in English.
@@ -263,11 +280,6 @@ current entry of the top-bar switch (`docs-site/src/lib/tracks.ts`, `docs-site/s
263
280
  heading). Smaller tables stay tables. To keep a grid, wrap the table in
264
281
  `<div data-table="grid">` (`docs-site/src/lib/rehype-record-tables.mjs`, tested by
265
282
  `scripts/docs-record-tables-test.sh`).
266
- - **The header is one component.** `docs-site/src/components/Header.astro` lays out the top bar:
267
- wordmark, centred search, then the Software / Marketing switch (`TrackSwitch.astro`), version text
268
- and GitHub icon (Software only, `SocialIcons.astro`), theme picker, language picker (Marketing
269
- only). The switch lives there, not in `SiteTitle` (no override of that remains). On a phone the
270
- switch, the search icon and the menu button share one row.
271
283
  - **`SearchStart.astro` is the search entry** on the home page and on `software.mdx`,
272
284
  `marketing/index.mdx` and `es/marketing/index.mdx`. Its chips are defined in that file, one list
273
285
  per track and language; every chip is a real link, and a script upgrades the click to open search
@@ -281,24 +293,21 @@ current entry of the top-bar switch (`docs-site/src/lib/tracks.ts`, `docs-site/s
281
293
  ## Paste-ready agent prompt
282
294
 
283
295
  Drop this verbatim into your agent's system prompt (or the first message of a session) to make it
284
- operate the repo through cckit. It is self-contained.
296
+ operate the repo through cckit. It is self-contained and names nothing repo-specific.
285
297
 
286
298
  ```text
287
299
  You operate this repository through cckit, a CLI that runs the full GitHub work lifecycle.
288
300
 
289
301
  Operating rules:
290
- 1. Read state before acting. Run `cckit sync --llm` and decide from the TOON board it returns
302
+ 1. Read state before acting. Run `cckit status --board --json` and decide from the board document it returns
291
303
  (TOON is a compact table format — parse it, don't guess the board).
292
304
  2. One issue = one branch = one worktree = one PR. Begin every task with `cckit start <issue>`,
293
305
  then cd into the worktree path it prints. Never commit on main or develop.
294
- 3. Append `--llm` to any verb for machine-readable JSON output.
295
- 4. Follow this loop: sync -> start <issue> -> implement (commit early and often) ->
306
+ 3. Append `--json` to any verb for machine-readable JSON output.
307
+ 4. Follow this loop: status --board -> start <issue> -> implement (commit early and often) ->
296
308
  `cckit pr <issue> "<one-line summary>"` -> report the PR URL -> stop.
297
309
  5. Merging is a human decision. Do not merge unless an approved plan explicitly says you may.
298
310
  6. Re-running an already-done step is a no-op, not an error. Never invent paths or config:
299
311
  everything resolves from cckit.config.json.
300
312
  7. If a command fails, read its stderr and fix the cause. Do not work around the kit.
301
313
  ```
302
-
303
- Copy the fenced block above. Nothing in it is repo-specific, so it works for any project that has
304
- run `cckit init`.