@jeiemgi/cckit 0.11.0 → 0.13.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 (549) hide show
  1. package/.claude-plugin/plugin.json +4 -2
  2. package/AGENTS.md +22 -238
  3. package/README.md +66 -56
  4. package/SECURITY.md +4 -4
  5. package/bin/PROMPTS.md +12 -0
  6. package/bin/cckit +181 -140
  7. package/cckit.config.json +1 -1
  8. package/kit/PROMPTS.md +14 -0
  9. package/{commands → kit/commands}/kit-doctor.md +3 -4
  10. package/{commands → kit/commands}/kit-export-project.md +1 -1
  11. package/{commands → kit/commands}/kit-init.md +8 -20
  12. package/{commands → kit/commands}/kit-routines.md +1 -1
  13. package/{commands → kit/commands}/kit-update.md +3 -3
  14. package/kit/completions/cckit.bash +9 -0
  15. package/{databases → kit/databases}/supabase.json +1 -1
  16. package/{integrations → kit/integrations}/integration.schema.json +3 -3
  17. package/kit/interview/global.json +54 -0
  18. package/kit/interview/project.json +133 -0
  19. package/kit/modules/qa.json +63 -0
  20. package/kit/modules/software.json +48 -0
  21. package/{profiles → kit/profiles}/automation.json +1 -3
  22. package/{profiles → kit/profiles}/content.json +0 -2
  23. package/{profiles → kit/profiles}/marketing.json +0 -2
  24. package/{profiles → kit/profiles}/minimal.json +1 -3
  25. package/{profiles → kit/profiles}/research.json +1 -3
  26. package/{profiles → kit/profiles}/software.json +0 -2
  27. package/kit/routines/catalogue.json +84 -0
  28. package/{skills → kit/skills}/kit-add/SKILL.md +4 -4
  29. package/kit/skills/kit-advisor/SKILL.md +75 -0
  30. package/kit/skills/kit-advisor/references/close.md +53 -0
  31. package/kit/skills/kit-advisor/references/grill.md +69 -0
  32. package/kit/skills/kit-advisor/references/orchestrate.md +56 -0
  33. package/kit/skills/kit-advisor/references/plan.md +64 -0
  34. package/kit/skills/kit-advisor/references/review.md +47 -0
  35. package/kit/skills/kit-advisor/references/step-report.md +61 -0
  36. package/{skills → kit/skills}/kit-annotate/SKILL.md +2 -4
  37. package/{skills → kit/skills}/kit-autopilot/SKILL.md +7 -7
  38. package/{skills → kit/skills}/kit-cleanup/SKILL.md +4 -4
  39. package/{skills → kit/skills}/kit-contribute/SKILL.md +8 -12
  40. package/{skills → kit/skills}/kit-customize/SKILL.md +5 -8
  41. package/{skills → kit/skills}/kit-dev/SKILL.md +1 -1
  42. package/{skills → kit/skills}/kit-digest/SKILL.md +3 -3
  43. package/{skills → kit/skills}/kit-effort-close/SKILL.md +20 -12
  44. package/{skills → kit/skills}/kit-effort-new/SKILL.md +17 -14
  45. package/{skills → kit/skills}/kit-effort-pr/SKILL.md +7 -7
  46. package/{skills → kit/skills}/kit-effort-start/SKILL.md +3 -3
  47. package/{skills → kit/skills}/kit-gc/SKILL.md +3 -3
  48. package/{skills → kit/skills}/kit-next/SKILL.md +7 -7
  49. package/{skills → kit/skills}/kit-page/SKILL.md +1 -1
  50. package/{skills → kit/skills}/kit-plan-next/SKILL.md +10 -11
  51. package/{skills → kit/skills}/kit-status/SKILL.md +6 -6
  52. package/{skills → kit/skills}/kit-task-close/SKILL.md +5 -5
  53. package/{skills → kit/skills}/kit-task-new/SKILL.md +5 -5
  54. package/{skills → kit/skills}/kit-task-pr/SKILL.md +5 -5
  55. package/{skills → kit/skills}/kit-task-pr-auto/SKILL.md +1 -1
  56. package/{skills → kit/skills}/kit-task-pr-merge/SKILL.md +10 -10
  57. package/{skills → kit/skills}/kit-task-start/SKILL.md +1 -1
  58. package/{skills → kit/skills}/kit-task-sync/SKILL.md +5 -3
  59. package/{skills → kit/skills}/kit-ux-audit/SKILL.md +16 -35
  60. package/{skills → kit/skills}/kit-ux-audit/references/graph-model.md +7 -26
  61. package/{skills → kit/skills}/kit-ux-audit/references/report.md +2 -3
  62. package/{skills → kit/skills}/routing.yaml +6 -1
  63. package/kit/statusline/kit-statusline.sh +82 -0
  64. package/{templates → kit/templates}/agents/analyst.md +0 -11
  65. package/{templates → kit/templates}/agents/auto-dev.md +0 -13
  66. package/{templates → kit/templates}/agents/backend.md +0 -11
  67. package/{templates → kit/templates}/agents/designer.md +0 -11
  68. package/{templates → kit/templates}/agents/devops.md +0 -11
  69. package/{templates → kit/templates}/agents/editor.md +0 -11
  70. package/{templates → kit/templates}/agents/frontend.md +0 -11
  71. package/{templates → kit/templates}/agents/generalist.md +0 -11
  72. package/{templates → kit/templates}/agents/local-delegate.md +0 -13
  73. package/{templates → kit/templates}/agents/n8n.md +0 -11
  74. package/{templates → kit/templates}/agents/pm.md +0 -11
  75. package/{templates → kit/templates}/agents/qa.md +0 -11
  76. package/{templates → kit/templates}/agents/researcher.md +0 -11
  77. package/{templates → kit/templates}/agents/security.md +0 -11
  78. package/{templates → kit/templates}/agents/tech-lead.md +0 -11
  79. package/{templates → kit/templates}/agents/ux.md +3 -14
  80. package/{templates → kit/templates}/hooks/kit-mail-check.sh.tmpl +1 -1
  81. package/{templates → kit/templates}/instructions.md.tmpl +4 -21
  82. package/{templates → kit/templates}/kit.config.json.tmpl +0 -6
  83. package/{templates → kit/templates}/rules/authoring.md +7 -3
  84. package/{templates → kit/templates}/rules/branch-naming.md +3 -2
  85. package/{templates → kit/templates}/rules/delegation-brief.md +4 -0
  86. package/{templates → kit/templates}/rules/effort-model.md +34 -31
  87. package/{templates → kit/templates}/rules/gate-and-review.md +1 -1
  88. package/{templates → kit/templates}/rules/merge-safety.md +12 -9
  89. package/{templates → kit/templates}/rules/naming-and-ids.md +20 -24
  90. package/{templates → kit/templates}/rules/plan-next.md +5 -5
  91. package/{templates → kit/templates}/rules/react-annotate.md +0 -8
  92. package/{templates → kit/templates}/skills/campaign/SKILL.md +2 -2
  93. package/kit.config.schema.json +11 -11
  94. package/lib/PROMPTS.md +14 -0
  95. package/{scripts/lib → lib/core}/adapter-select-test.sh +7 -7
  96. package/lib/core/advisor-test.sh +55 -0
  97. package/{scripts/lib → lib/core}/agent-def-test.sh +1 -1
  98. package/{scripts/lib → lib/core}/agent-def.sh +2 -2
  99. package/{scripts/lib → lib/core}/agent-launch-test.sh +3 -3
  100. package/{scripts/lib → lib/core}/agent-profile-test.sh +2 -2
  101. package/{scripts/lib → lib/core}/agent-resolve-test.sh +4 -2
  102. package/{scripts/lib → lib/core}/agent-resolve.sh +5 -4
  103. package/{scripts → lib/core}/agent-skills-external.txt +3 -3
  104. package/{scripts → lib/core}/agent-skills-lint-test.sh +17 -17
  105. package/lib/core/agent-skills-lint.sh +115 -0
  106. package/{scripts → lib/core}/agent-template-lint-test.sh +7 -7
  107. package/lib/core/agent-template-lint.sh +58 -0
  108. package/{scripts/lib → lib/core}/board-view-test.sh +3 -3
  109. package/lib/core/board-view.sh +97 -0
  110. package/{scripts/lib → lib/core}/branch-owner-test.sh +3 -3
  111. package/lib/core/branch-owner.sh +201 -0
  112. package/lib/core/check.sh +125 -0
  113. package/{scripts/lib → lib/core}/codex-hooks-test.sh +3 -3
  114. package/{scripts → lib/core}/commitlint-test.sh +6 -6
  115. package/lib/core/commitlint.sh +54 -0
  116. package/{scripts/config-path-test.sh → lib/core/config-path-scan-test.sh} +2 -2
  117. package/{scripts/lib → lib/core}/config-path-test.sh +3 -3
  118. package/lib/core/config-path.sh +30 -0
  119. package/{scripts → lib/core}/content-skills-test.sh +17 -17
  120. package/{scripts → lib/core}/docs-marketing-words-test.sh +2 -2
  121. package/{scripts → lib/core}/docs-record-tables-test.sh +2 -2
  122. package/{scripts/lib → lib/core}/effort-metrics-test.sh +6 -6
  123. package/lib/core/effort-metrics.sh +591 -0
  124. package/{scripts/lib → lib/core}/effort-slug-test.sh +8 -4
  125. package/{scripts/lib → lib/core}/effort-slug.sh +8 -7
  126. package/lib/core/effort.sh +339 -0
  127. package/{scripts/lib → lib/core}/errors-header-test.sh +19 -9
  128. package/lib/core/errors-header.exempt +49 -0
  129. package/{scripts → lib/core}/exec-targets-test.sh +3 -3
  130. package/lib/core/feature-map.sh +76 -0
  131. package/lib/core/force-push-fence-test.sh +44 -0
  132. package/lib/core/force-push-fence.baseline +1 -0
  133. package/lib/core/force-push-fence.sh +51 -0
  134. package/{scripts → lib/core}/forge-fence-test.sh +13 -13
  135. package/{scripts → lib/core}/forge-fence.sh +14 -14
  136. package/{scripts → lib/core}/forge-report-test.sh +5 -5
  137. package/{scripts → lib/core}/forge-report.sh +18 -14
  138. package/{scripts/lib → lib/core}/git-core-test.sh +7 -7
  139. package/{scripts/lib → lib/core}/git-remote-test.sh +3 -3
  140. package/{scripts → lib/core}/guard-raw-git-ops-test.sh +4 -4
  141. package/{scripts → lib/core}/hook-adapter-test.sh +5 -5
  142. package/{scripts/lib → lib/core}/hook-refresh-test.sh +5 -5
  143. package/{scripts → lib/core}/instruction-budget-baseline.txt +2 -2
  144. package/lib/core/instruction-budget-lint.sh +238 -0
  145. package/{scripts/lib → lib/core}/integration-install-test.sh +12 -12
  146. package/lib/core/integration-install.sh +257 -0
  147. package/{scripts/lib → lib/core}/integrations-test.sh +38 -45
  148. package/lib/core/integrations.sh +244 -0
  149. package/{scripts/lib → lib/core}/kinds-test.sh +5 -5
  150. package/lib/core/kinds.sh +66 -0
  151. package/{scripts/lib → lib/core}/kit-cli-test.sh +1 -1
  152. package/{scripts/lib → lib/core}/kit-cli.sh +1 -1
  153. package/{scripts/lib → lib/core}/kit-config-resolve.sh +2 -2
  154. package/{scripts/lib → lib/core}/kit-config-test.sh +11 -11
  155. package/lib/core/kit-config.sh +164 -0
  156. package/{scripts/lib → lib/core}/kit-engine-test.sh +1 -1
  157. package/lib/core/kit-events.sh +72 -0
  158. package/lib/core/kit-local.sh +87 -0
  159. package/{scripts/lib → lib/core}/kit-manifest.sh +1 -1
  160. package/{scripts/lib → lib/core}/kit-mode-test.sh +1 -1
  161. package/{scripts/lib → lib/core}/kit-mode.sh +3 -3
  162. package/{scripts/lib → lib/core}/kit-operate.sh +1 -1
  163. package/{scripts/lib → lib/core}/kit-profile-test.sh +1 -1
  164. package/{scripts/lib → lib/core}/kit-profile.sh +2 -2
  165. package/{scripts/lib → lib/core}/kit-state-test.sh +1 -1
  166. package/lib/core/knowledge-lint.sh +106 -0
  167. package/lib/core/layout-fence-test.sh +35 -0
  168. package/lib/core/layout-fence.allow +15 -0
  169. package/lib/core/layout-fence.baseline +4 -0
  170. package/lib/core/layout-fence.sh +50 -0
  171. package/{scripts → lib/core}/leak-fence-test.sh +10 -10
  172. package/{scripts/lib → lib/core}/leak-fence.sh +1 -1
  173. package/lib/core/loose-issues-test.sh +102 -0
  174. package/lib/core/loose-issues.baseline +5 -0
  175. package/lib/core/loose-issues.sh +65 -0
  176. package/{scripts → lib/core}/marketing-walkthrough-test.sh +7 -7
  177. package/lib/core/naming-test.sh +112 -0
  178. package/lib/core/naming-verbs-test.sh +126 -0
  179. package/lib/core/naming.sh +172 -0
  180. package/{scripts/lib → lib/core}/orchestration-runtime-test.sh +4 -4
  181. package/{scripts → lib/core}/portable-test.sh +11 -7
  182. package/{scripts/lib → lib/core}/pr-evidence-test.sh +5 -5
  183. package/lib/core/pr-evidence.sh +361 -0
  184. package/{scripts/lib → lib/core}/qa-lane-test.sh +7 -7
  185. package/{scripts/lib → lib/core}/qa-lane.sh +4 -4
  186. package/{scripts/lib → lib/core}/qa-lanes-test.sh +5 -5
  187. package/lib/core/react-detect.sh +79 -0
  188. package/{scripts/lib → lib/core}/render-test.sh +1 -1
  189. package/lib/core/resident-context-test.sh +42 -0
  190. package/lib/core/resident-context.baseline +1 -0
  191. package/lib/core/resident-context.sh +56 -0
  192. package/lib/core/review-lint-baseline.txt +28 -0
  193. package/lib/core/review-lint.sh +266 -0
  194. package/{scripts → lib/core}/review-rules.conf +1 -1
  195. package/{scripts/lib → lib/core}/review-stage-test.sh +2 -2
  196. package/{scripts/lib → lib/core}/role-identity-test.sh +3 -3
  197. package/lib/core/role-identity.sh +71 -0
  198. package/{scripts → lib/core}/rule-recipes-test.sh +5 -5
  199. package/lib/core/secret-guard.sh +116 -0
  200. package/{scripts → lib/core}/self-install-test.sh +15 -16
  201. package/{scripts/lib → lib/core}/session-registry-test.sh +1 -1
  202. package/lib/core/session-registry.sh +233 -0
  203. package/{scripts → lib/core}/skill-frontmatter-baseline.txt +1 -1
  204. package/lib/core/skill-frontmatter-lint.sh +189 -0
  205. package/lib/core/spec-lint-test.sh +63 -0
  206. package/lib/core/spec-lint.sh +95 -0
  207. package/{scripts/lib → lib/core}/stage-receipt-test.sh +136 -4
  208. package/{scripts/lib → lib/core}/stage-receipt.sh +186 -7
  209. package/{scripts → lib/core}/terms-check-test.sh +6 -6
  210. package/lib/core/terms-check.sh +244 -0
  211. package/{scripts/lib → lib/core}/test-env-test.sh +2 -2
  212. package/{scripts/lib → lib/core}/test-env.sh +1 -1
  213. package/{scripts → lib/core}/test-runner-test.sh +11 -11
  214. package/{scripts → lib/core}/test.sh +12 -12
  215. package/{scripts → lib/core}/update-path-test.sh +3 -3
  216. package/{scripts → lib/core}/verbs-gen.sh +9 -9
  217. package/{scripts → lib/core}/verbs-help-test.sh +4 -4
  218. package/{scripts → lib/core}/verbs-ratchet-test.sh +24 -19
  219. package/{scripts → lib/core}/verbs-ratchet.sh +8 -8
  220. package/{scripts → lib/core}/verbs-test.sh +23 -23
  221. package/lib/core/verbs.baseline +5 -0
  222. package/{scripts/lib → lib/core}/verbs.sh +3 -3
  223. package/{scripts/lib → lib/core}/verbs.tsv +22 -20
  224. package/{scripts/lib → lib/core}/version-bump-test.sh +29 -8
  225. package/{scripts/lib → lib/core}/version-bump.sh +15 -2
  226. package/{scripts/lib → lib/core}/wave-result-test.sh +2 -2
  227. package/{scripts/lib → lib/core}/wave-result.sh +1 -1
  228. package/{scripts/lib → lib/core}/worker-brief-test.sh +4 -4
  229. package/{scripts/lib → lib/core}/worker-brief.sh +1 -1
  230. package/{scripts/lib → lib/core}/worktree-bootstrap-test.sh +1 -1
  231. package/{scripts/lib → lib/core}/worktree-issue-test.sh +2 -2
  232. package/lib/core/worktree-issue.sh +172 -0
  233. package/{scripts/lib → lib/core}/worktree-ports-test.sh +1 -1
  234. package/{scripts/lib → lib/core}/worktree-start-test.sh +2 -2
  235. package/lib/core/worktree-start.sh +790 -0
  236. package/{scripts/lib → lib/core}/zsh-safety-test.sh +11 -11
  237. package/{scripts/lib → lib/forge}/forge-github.sh +18 -7
  238. package/{scripts/lib → lib/forge}/forge-test.sh +4 -4
  239. package/{scripts/lib → lib/forge}/forge.sh +1 -1
  240. package/lib/forge/gh-board-add-test.sh +118 -0
  241. package/lib/forge/gh-log.sh +59 -0
  242. package/lib/forge/gh-project-test.sh +251 -0
  243. package/lib/forge/gh-project.sh +379 -0
  244. package/{scripts/lib → lib/forge}/gh-rest-test.sh +17 -13
  245. package/{scripts/lib → lib/forge}/gh-rest.sh +190 -16
  246. package/{scripts/lib → lib/forge}/init-github.sh +18 -8
  247. package/{scripts/lib → lib/forge}/test-forge-shim.sh +2 -1
  248. package/lib/verbs/PROMPTS.md +146 -0
  249. package/lib/verbs/annotate-setup.sh +149 -0
  250. package/{scripts → lib/verbs}/autopilot-run-test.sh +9 -9
  251. package/{scripts → lib/verbs}/autopilot-run.sh +9 -9
  252. package/{scripts → lib/verbs}/autopilot-test.sh +7 -6
  253. package/{scripts → lib/verbs}/autopilot.sh +7 -7
  254. package/{scripts/lib → lib/verbs}/captain-test.sh +1 -1
  255. package/{scripts/lib → lib/verbs}/captain.sh +8 -8
  256. package/lib/verbs/capture-project-ids.sh +99 -0
  257. package/{scripts/lib → lib/verbs}/content-kinds-gc-test.sh +7 -7
  258. package/{scripts/lib → lib/verbs}/contribute-root-test.sh +4 -4
  259. package/{scripts/lib → lib/verbs}/contribute-root.sh +1 -1
  260. package/{scripts → lib/verbs}/contribute.sh +8 -8
  261. package/{scripts → lib/verbs}/copilot-loop-test.sh +12 -12
  262. package/{scripts/lib → lib/verbs}/copilot-test.sh +15 -14
  263. package/{scripts/lib → lib/verbs}/copilot.sh +19 -19
  264. package/{scripts → lib/verbs}/database-supabase-test.sh +6 -6
  265. package/lib/verbs/effort-close-subs-test.sh +96 -0
  266. package/{scripts/lib → lib/verbs}/effort-dispatch-test.sh +5 -5
  267. package/{scripts/lib → lib/verbs}/effort-flows-test.sh +5 -5
  268. package/{scripts/lib → lib/verbs}/effort-ops-test.sh +111 -22
  269. package/lib/verbs/effort-ops.sh +1571 -0
  270. package/{scripts/lib → lib/verbs}/effort-parity-test.sh +47 -41
  271. package/{scripts/lib → lib/verbs}/effort-plan-test.sh +7 -7
  272. package/lib/verbs/effort-plan.sh +289 -0
  273. package/lib/verbs/effort-review-test.sh +107 -0
  274. package/lib/verbs/effort-review.sh +93 -0
  275. package/lib/verbs/grill-record-test.sh +49 -0
  276. package/lib/verbs/grill-record.sh +88 -0
  277. package/{scripts/lib → lib/verbs}/handoff.sh +3 -3
  278. package/{scripts → lib/verbs}/init-content-test.sh +14 -14
  279. package/{scripts/lib → lib/verbs}/init-guide.sh +6 -6
  280. package/{scripts → lib/verbs}/init-guided-test.sh +9 -9
  281. package/{scripts → lib/verbs}/init-recipes-test.sh +7 -7
  282. package/{scripts → lib/verbs}/init-upgrade-test.sh +9 -10
  283. package/lib/verbs/init.sh +1598 -0
  284. package/{scripts → lib/verbs}/install-test.sh +5 -5
  285. package/lib/verbs/install.sh +31 -0
  286. package/{scripts → lib/verbs}/integrations-check-test.sh +9 -9
  287. package/lib/verbs/integrations-check.sh +157 -0
  288. package/{scripts → lib/verbs}/kit-add-test.sh +8 -8
  289. package/lib/verbs/kit-add.sh +415 -0
  290. package/{scripts → lib/verbs}/kit-adopt-test.sh +4 -4
  291. package/{scripts → lib/verbs}/kit-adopt.sh +6 -6
  292. package/{scripts/lib → lib/verbs}/kit-brief-test.sh +44 -15
  293. package/{scripts/lib → lib/verbs}/kit-brief.sh +101 -16
  294. package/lib/verbs/kit-bump-version.sh +79 -0
  295. package/lib/verbs/kit-digest.sh +126 -0
  296. package/{scripts → lib/verbs}/kit-doctor-test.sh +57 -32
  297. package/lib/verbs/kit-doctor.sh +991 -0
  298. package/{scripts → lib/verbs}/kit-export-project-test.sh +4 -4
  299. package/lib/verbs/kit-export-project.sh +245 -0
  300. package/{scripts → lib/verbs}/kit-export-training-test.sh +3 -3
  301. package/lib/verbs/kit-export-training.sh +175 -0
  302. package/{scripts/lib → lib/verbs}/kit-gc-test.sh +5 -5
  303. package/lib/verbs/kit-gc.sh +804 -0
  304. package/{scripts/lib → lib/verbs}/kit-hotfix.sh +3 -3
  305. package/{scripts/lib → lib/verbs}/kit-interview-test.sh +2 -2
  306. package/lib/verbs/kit-interview.sh +319 -0
  307. package/{scripts/lib → lib/verbs}/kit-lib-test.sh +2 -2
  308. package/{scripts/lib → lib/verbs}/kit-lib.sh +10 -10
  309. package/{scripts → lib/verbs}/kit-migrate-test.sh +4 -4
  310. package/{scripts → lib/verbs}/kit-migrate.sh +5 -5
  311. package/{scripts/lib → lib/verbs}/kit-msg-test.sh +2 -2
  312. package/{scripts/lib → lib/verbs}/kit-msg.sh +5 -5
  313. package/{scripts → lib/verbs}/kit-onboard-test.sh +2 -3
  314. package/lib/verbs/kit-onboard.sh +69 -0
  315. package/{scripts → lib/verbs}/kit-promote-test.sh +4 -4
  316. package/{scripts → lib/verbs}/kit-promote.sh +4 -4
  317. package/{scripts → lib/verbs}/kit-remove-test.sh +4 -4
  318. package/{scripts → lib/verbs}/kit-remove.sh +5 -5
  319. package/lib/verbs/kit-routines.sh +322 -0
  320. package/lib/verbs/kit-self-update.sh +55 -0
  321. package/{scripts/lib → lib/verbs}/kit-status-test.sh +2 -2
  322. package/lib/verbs/kit-status.sh +650 -0
  323. package/{scripts/lib → lib/verbs}/kit-task-ops-test.sh +25 -2
  324. package/lib/verbs/kit-task-ops.sh +793 -0
  325. package/{scripts → lib/verbs}/kit-version-check-test.sh +3 -3
  326. package/lib/verbs/kit-version-check.sh +121 -0
  327. package/{scripts → lib/verbs}/kit-wire-test.sh +6 -6
  328. package/{scripts → lib/verbs}/kit-wire.sh +8 -8
  329. package/{scripts/lib → lib/verbs}/kto-hotfix-test.sh +3 -3
  330. package/{scripts/lib → lib/verbs}/kto-task-close-test.sh +2 -2
  331. package/{scripts/lib → lib/verbs}/kto-task-new-test.sh +20 -2
  332. package/{scripts/lib → lib/verbs}/kto-task-pr-merge-test.sh +46 -2
  333. package/{scripts/lib → lib/verbs}/kto-task-pr-test.sh +6 -6
  334. package/{scripts/lib → lib/verbs}/light-task-run-test.sh +4 -4
  335. package/{scripts/lib → lib/verbs}/light-task-test.sh +9 -9
  336. package/{scripts/lib → lib/verbs}/light-task.sh +26 -11
  337. package/{scripts/lib → lib/verbs}/next-test.sh +3 -3
  338. package/{scripts/lib → lib/verbs}/next.sh +10 -10
  339. package/{scripts → lib/verbs}/night-grant-test.sh +4 -4
  340. package/lib/verbs/night-grant.sh +454 -0
  341. package/{scripts → lib/verbs}/night-run-test.sh +3 -3
  342. package/{scripts → lib/verbs}/night-run.mjs +2 -2
  343. package/{scripts → lib/verbs}/orchestrate-test.sh +5 -5
  344. package/{scripts → lib/verbs}/orchestrate.sh +15 -15
  345. package/{scripts/lib → lib/verbs}/plan-machine-test.sh +1 -1
  346. package/{scripts/lib → lib/verbs}/plan-machine.sh +13 -13
  347. package/{scripts/lib → lib/verbs}/plan-next-test.sh +1 -1
  348. package/lib/verbs/plan-next.sh +213 -0
  349. package/{scripts → lib/verbs}/publish.sh +10 -10
  350. package/{scripts/lib → lib/verbs}/review-page-test.sh +4 -4
  351. package/lib/verbs/review-page.sh +375 -0
  352. package/lib/verbs/setup-labels.sh +96 -0
  353. package/lib/verbs/setup-milestones.sh +34 -0
  354. package/{scripts → lib/verbs}/showcase.sh +2 -2
  355. package/lib/verbs/sprint-test.sh +96 -0
  356. package/lib/verbs/sprint.sh +216 -0
  357. package/{scripts → lib/verbs}/status-test.sh +8 -8
  358. package/{scripts → lib/verbs}/status.sh +16 -16
  359. package/{scripts → lib/verbs}/task-sync-test.sh +40 -6
  360. package/lib/verbs/task-sync.sh +462 -0
  361. package/{scripts/lib → lib/verbs}/upgrade-report-test.sh +4 -4
  362. package/lib/verbs/ux-a11y-scan.sh +96 -0
  363. package/lib/verbs/ux-ds-audit.sh +146 -0
  364. package/lib/verbs/ux-graph-scan.sh +188 -0
  365. package/{scripts → lib/verbs}/wave-worker.sh +2 -2
  366. package/lib/verbs/web-install.sh +22 -0
  367. package/package.json +3 -10
  368. package/scripts/PROMPTS.md +13 -0
  369. package/scripts/agent-skills-lint.sh +12 -113
  370. package/scripts/agent-template-lint.sh +12 -56
  371. package/scripts/annotate-setup.sh +11 -151
  372. package/scripts/benchmark/checkpoint-test.sh +1 -1
  373. package/scripts/benchmark/checkpoint.sh +1 -1
  374. package/scripts/benchmark/gate.sh +2 -2
  375. package/scripts/benchmark/lib/bench-common.sh +1 -1
  376. package/scripts/capture-project-ids.sh +12 -70
  377. package/scripts/check.sh +12 -106
  378. package/scripts/force-push-fence.sh +14 -0
  379. package/scripts/init.sh +13 -1637
  380. package/scripts/install.sh +12 -29
  381. package/scripts/instruction-budget-lint.sh +13 -218
  382. package/scripts/integrations-check.sh +12 -155
  383. package/scripts/kit-add.sh +12 -413
  384. package/scripts/kit-bump-version.sh +13 -78
  385. package/scripts/kit-digest.sh +13 -125
  386. package/scripts/kit-doctor.sh +13 -971
  387. package/scripts/kit-export-project.sh +12 -243
  388. package/scripts/kit-export-training.sh +12 -173
  389. package/scripts/kit-onboard.sh +12 -67
  390. package/scripts/kit-routines.sh +12 -320
  391. package/scripts/kit-self-update.sh +12 -53
  392. package/scripts/kit-version-check.sh +12 -106
  393. package/scripts/knowledge-lint.sh +13 -98
  394. package/scripts/lib/board-view.sh +13 -96
  395. package/scripts/lib/branch-owner.sh +12 -199
  396. package/scripts/lib/commitlint.sh +12 -52
  397. package/scripts/lib/config-path.sh +13 -29
  398. package/scripts/lib/effort-metrics.sh +12 -589
  399. package/scripts/lib/effort-ops.sh +13 -1243
  400. package/scripts/lib/effort-plan.sh +12 -287
  401. package/scripts/lib/effort.sh +13 -365
  402. package/scripts/lib/gh-log.sh +14 -59
  403. package/scripts/lib/gh-project.sh +13 -254
  404. package/scripts/lib/grill-record.sh +14 -0
  405. package/scripts/lib/integration-install.sh +12 -255
  406. package/scripts/lib/integrations.sh +12 -242
  407. package/scripts/lib/kinds.sh +13 -65
  408. package/scripts/lib/kit-config.sh +12 -165
  409. package/scripts/lib/kit-events.sh +13 -71
  410. package/scripts/lib/kit-gc.sh +12 -802
  411. package/scripts/lib/kit-interview.sh +11 -316
  412. package/scripts/lib/kit-local.sh +12 -85
  413. package/scripts/lib/kit-status.sh +12 -648
  414. package/scripts/lib/kit-task-ops.sh +13 -738
  415. package/scripts/lib/naming.sh +14 -0
  416. package/scripts/lib/plan-next.sh +13 -212
  417. package/scripts/lib/pr-evidence.sh +12 -359
  418. package/scripts/lib/react-detect.sh +12 -77
  419. package/scripts/lib/review-page.sh +11 -372
  420. package/scripts/lib/role-identity.sh +13 -70
  421. package/scripts/lib/secret-guard.sh +12 -114
  422. package/scripts/lib/session-registry.sh +13 -232
  423. package/scripts/lib/spec-lint.sh +14 -0
  424. package/scripts/lib/worktree-issue.sh +12 -170
  425. package/scripts/lib/worktree-start.sh +13 -748
  426. package/scripts/night-grant.sh +12 -452
  427. package/scripts/review-lint.sh +13 -258
  428. package/scripts/setup-labels.sh +11 -82
  429. package/scripts/setup-milestones.sh +12 -21
  430. package/scripts/skill-frontmatter-lint.sh +13 -181
  431. package/scripts/task-sync.sh +13 -370
  432. package/scripts/terms-check.sh +13 -241
  433. package/scripts/ux-a11y-scan.sh +13 -95
  434. package/scripts/ux-ds-audit.sh +12 -144
  435. package/scripts/ux-graph-scan.sh +12 -186
  436. package/scripts/web-install.sh +16 -20
  437. package/docs/kit-annotate/01-explainer.html +0 -225
  438. package/docs/kit-annotate/02-implementation-plan.html +0 -196
  439. package/docs/media/.onboarding-capture.cast +0 -5
  440. package/docs/media/README.md +0 -43
  441. package/docs/media/build-demo.sh +0 -63
  442. package/docs/media/build-kit-init.sh +0 -51
  443. package/docs/media/build-onboarding.sh +0 -51
  444. package/docs/media/kit-dry-run.cast +0 -107
  445. package/docs/media/kit-dry-run.gif +0 -0
  446. package/docs/media/kit-init.cast +0 -56
  447. package/docs/media/kit-init.gif +0 -0
  448. package/docs/media/kit-onboarding.cast +0 -148
  449. package/docs/media/kit-onboarding.gif +0 -0
  450. package/integrations/mempalace.json +0 -28
  451. package/scripts/lib/gh-project-test.sh +0 -135
  452. package/scripts/review-lint-baseline.txt +0 -28
  453. package/scripts/verbs.baseline +0 -5
  454. package/templates/hooks/mempal_followup.sh.tmpl +0 -97
  455. package/templates/hooks/mempal_precompact.sh.tmpl +0 -4
  456. package/templates/hooks/mempal_save.sh.tmpl +0 -4
  457. package/templates/hooks/mempal_session_start.sh.tmpl +0 -42
  458. package/templates/rules/mempalace.md +0 -111
  459. /package/{commands → kit/commands}/kit-docs.md +0 -0
  460. /package/{commands → kit/commands}/kit-export-training.md +0 -0
  461. /package/{databases → kit/databases}/supabase/guide.html +0 -0
  462. /package/{databases → kit/databases}/supabase/nextjs/lib/supabase/client.ts +0 -0
  463. /package/{databases → kit/databases}/supabase/nextjs/lib/supabase/server.ts +0 -0
  464. /package/{githooks → kit/githooks}/pre-commit +0 -0
  465. /package/{integrations → kit/integrations}/emil-design-eng.json +0 -0
  466. /package/{integrations → kit/integrations}/graft.json +0 -0
  467. /package/{integrations → kit/integrations}/impeccable.json +0 -0
  468. /package/{integrations → kit/integrations}/lavish.json +0 -0
  469. /package/{integrations → kit/integrations}/mlx-lm.json +0 -0
  470. /package/{integrations → kit/integrations}/web-design-guidelines.json +0 -0
  471. /package/{recipes → kit/recipes}/nextjs-shadcn.json +0 -0
  472. /package/{skills → kit/skills}/kit-docs-writer/SKILL.md +0 -0
  473. /package/{skills → kit/skills}/kit-onboard/SKILL.md +0 -0
  474. /package/{skills → kit/skills}/kit-security-sweep/SKILL.md +0 -0
  475. /package/{skills → kit/skills}/kit-ship/SKILL.md +0 -0
  476. /package/{skills → kit/skills}/kit-ux-audit/references/a11y.md +0 -0
  477. /package/{skills → kit/skills}/kit-ux-audit/references/consistency.md +0 -0
  478. /package/{skills → kit/skills}/kit-ux-audit/references/heuristics.md +0 -0
  479. /package/{templates → kit/templates}/benchmarks/SCHEMA.md +0 -0
  480. /package/{templates → kit/templates}/benchmarks/abstain.jsonl +0 -0
  481. /package/{templates → kit/templates}/benchmarks/adversarial.jsonl +0 -0
  482. /package/{templates → kit/templates}/benchmarks/benchmark.config.json +0 -0
  483. /package/{templates → kit/templates}/benchmarks/quality.jsonl +0 -0
  484. /package/{templates → kit/templates}/benchmarks/retrieval.jsonl +0 -0
  485. /package/{templates → kit/templates}/codex/hooks.json.tmpl +0 -0
  486. /package/{templates → kit/templates}/hooks/guard-base-branch-commit.sh.tmpl +0 -0
  487. /package/{templates → kit/templates}/hooks/guard-raw-git-ops.sh.tmpl +0 -0
  488. /package/{templates → kit/templates}/hooks/kit-local-status.sh.tmpl +0 -0
  489. /package/{templates → kit/templates}/hooks/kit_version_check.sh.tmpl +0 -0
  490. /package/{templates → kit/templates}/hooks/prepush_gate.sh.tmpl +0 -0
  491. /package/{templates → kit/templates}/hooks/repo-hygiene.sh.tmpl +0 -0
  492. /package/{templates → kit/templates}/knowledge-INDEX.md.tmpl +0 -0
  493. /package/{templates → kit/templates}/lib/kit-sigil.sh.tmpl +0 -0
  494. /package/{templates → kit/templates}/rules/code-retrieval.md +0 -0
  495. /package/{templates → kit/templates}/rules/communication-style.md +0 -0
  496. /package/{templates → kit/templates}/rules/design-routing.md +0 -0
  497. /package/{templates → kit/templates}/rules/issue-lifecycle.md +0 -0
  498. /package/{templates → kit/templates}/rules/knowledge-base.md +0 -0
  499. /package/{templates → kit/templates}/rules/plain-language.md +0 -0
  500. /package/{templates → kit/templates}/rules/plan-output-format.md +0 -0
  501. /package/{templates → kit/templates}/rules/review-pages.md +0 -0
  502. /package/{templates → kit/templates}/rules/risk-tiered-review.md +0 -0
  503. /package/{templates → kit/templates}/rules/shared-checkout.md +0 -0
  504. /package/{templates → kit/templates}/rules/skill-gaps.md +0 -0
  505. /package/{templates → kit/templates}/rules/task-management.md +0 -0
  506. /package/{templates → kit/templates}/settings/settings.json.tmpl +0 -0
  507. /package/{templates → kit/templates}/settings/settings.local.json.tmpl +0 -0
  508. /package/{templates → kit/templates}/skills/NAMESPACED +0 -0
  509. /package/{templates → kit/templates}/skills/brand-voice/SKILL.md +0 -0
  510. /package/{templates → kit/templates}/skills/brand-voice/references/voice-template.md +0 -0
  511. /package/{templates → kit/templates}/skills/campaign/references/plan-template.md +0 -0
  512. /package/{templates → kit/templates}/skills/concrete/SKILL.md +0 -0
  513. /package/{templates → kit/templates}/skills/copywriting/SKILL.md +0 -0
  514. /package/{templates → kit/templates}/skills/copywriting/references/copy-frameworks.md +0 -0
  515. /package/{templates → kit/templates}/skills/copywriting/references/natural-transitions.md +0 -0
  516. /package/{templates → kit/templates}/skills/feature-build-refine/SKILL.md +0 -0
  517. /package/{templates → kit/templates}/skills/karpathy-guidelines/SKILL.md +0 -0
  518. /package/{templates → kit/templates}/skills/morning-briefing/SKILL.md +0 -0
  519. /package/{templates → kit/templates}/skills/page-design/SKILL.md +0 -0
  520. /package/{templates → kit/templates}/skills/page-design/add.json +0 -0
  521. /package/{templates → kit/templates}/skills/page-design/references/design-file-template.md +0 -0
  522. /package/{templates → kit/templates}/skills/page-design/references/generic-page-patterns.md +0 -0
  523. /package/{templates → kit/templates}/skills/page-design/references/minimum-rules.md +0 -0
  524. /package/{templates → kit/templates}/skills/speckit/SKILL.md +0 -0
  525. /package/{templates → kit/templates}/skills/supabase-patterns/SKILL.md +0 -0
  526. /package/{scripts/lib → lib/core}/adapter-select.sh +0 -0
  527. /package/{scripts/lib → lib/core}/agent-launch.sh +0 -0
  528. /package/{scripts/lib → lib/core}/agent-profile.sh +0 -0
  529. /package/{scripts/lib → lib/core}/cckit-output.sh +0 -0
  530. /package/{scripts/lib → lib/core}/codex-hooks.sh +0 -0
  531. /package/{scripts → lib/core}/forge-fence.baseline +0 -0
  532. /package/{scripts/lib → lib/core}/git-remote.sh +0 -0
  533. /package/{scripts/lib → lib/core}/hook-refresh.sh +0 -0
  534. /package/{scripts → lib/core}/instruction-budget-lint-test.sh +0 -0
  535. /package/{scripts/lib → lib/core}/kit-state.sh +0 -0
  536. /package/{scripts/lib → lib/core}/orchestration-runtime.sh +0 -0
  537. /package/{scripts/lib → lib/core}/project-scan.sh +0 -0
  538. /package/{scripts/lib → lib/core}/render.sh +0 -0
  539. /package/{scripts → lib/core}/review-lint-test.sh +0 -0
  540. /package/{scripts/lib → lib/core}/review-stage.sh +0 -0
  541. /package/{scripts → lib/core}/skill-frontmatter-lint-test.sh +0 -0
  542. /package/{scripts/lib → lib/core}/task-source-file.sh +0 -0
  543. /package/{scripts/lib → lib/core}/task-source.sh +0 -0
  544. /package/{scripts/lib → lib/core}/toon.sh +0 -0
  545. /package/{scripts/lib → lib/core}/ui.sh +0 -0
  546. /package/{scripts/lib → lib/forge}/forge-none.sh +0 -0
  547. /package/{scripts → lib/verbs}/debug.sh +0 -0
  548. /package/{scripts → lib/verbs}/night-run.test.mjs +0 -0
  549. /package/{scripts/lib → lib/verbs}/upgrade-report.sh +0 -0
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cckit",
3
- "version": "0.11.0",
3
+ "version": "0.13.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": {
@@ -18,5 +18,7 @@
18
18
  "orchestration",
19
19
  "claude-code",
20
20
  "cli"
21
- ]
21
+ ],
22
+ "skills": "./kit/skills/",
23
+ "commands": "./kit/commands/"
22
24
  }
package/AGENTS.md CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  cckit is agent-agnostic. Claude Code is first-class (skills + slash commands), but any agent that
4
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).
5
+ per-agent adapters are described in [the Adapters page](docs-site/src/content/docs/adapters.mdx).
6
6
 
7
7
  ## Ground rules
8
8
 
9
- - **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.
10
10
  - **One issue = one branch = one worktree = one PR.** `cckit start <issue>` creates the isolated
11
11
  worktree; do all work there; `cckit pr <issue>` opens the PR. Never commit to the base branch.
12
12
  **The effort flow is the one exception, and it is deliberate:** an effort is *1 parent issue = 1
@@ -17,9 +17,9 @@ per-agent adapters are described in [the Adapters page](docs-site/src/content/do
17
17
  `cckit effort close <N>`: `cckit merge` refuses an `effort/*` head, because its squash skips the
18
18
  per-sub trace snapshot (`KIT_FORCE=1` merges anyway, with a warning). Full spec:
19
19
  `.claude/rules/effort-model.md`.
20
- - **Structured output, TOON-first.** Append `--llm` to any verb for machine-readable output. List
21
- reads (sync, next, plan, wave) come back as **TOON** (token-cheap); single-result action verbs
22
- (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`.
23
23
  - **Idempotent + safe.** Re-running a verb on an already-done step is a no-op, not an error.
24
24
  - **Never invent paths or config.** Everything resolves from `cckit.config.json`.
25
25
  - **Hand off when you stop with unfinished work.** `cckit handoff "<what's pending, next step, refs>"`
@@ -34,8 +34,8 @@ per-agent adapters are described in [the Adapters page](docs-site/src/content/do
34
34
 
35
35
  ## Which skill does what
36
36
 
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
37
+ One row per skill; its tasks and terms are its entries in `kit/skills/routing.yaml` (the machine-readable
38
+ copy; `bash lib/core/terms-check.sh` names a drift between the two). A term is a file under
39
39
  `ontology/terms/`; `none` says the skill serves the kit's own setup and no process term yet.
40
40
 
41
41
  | What you want | Skill | Term |
@@ -45,6 +45,7 @@ copy; `bash scripts/terms-check.sh` names a drift between the two). A term is a
45
45
  | pick up the next unblocked issue · fan the unblocked wave out to builders | `kit-next` | Task, Wave |
46
46
  | decide what to build next from what the kit already does | `kit-plan-next` | Effort |
47
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 |
48
49
  | track a new piece of work as an issue | `kit-task-new` | Task |
49
50
  | start work on an issue in its own worktree | `kit-task-start` | Worktree |
50
51
  | open the PR for an issue | `kit-task-pr` | Task |
@@ -70,240 +71,23 @@ copy; `bash scripts/terms-check.sh` names a drift between the two). A term is a
70
71
  | shorten a long input before reading it | `kit-digest` | none |
71
72
  | show a plan, a decision or a grilling round as a page | `kit-page` | none |
72
73
 
73
- `.claude/skills/` and `.claude/rules/` here are the subset of `templates/` cckit applies to its own
74
+ `.claude/skills/` and `.claude/rules/` here are the subset of `kit/templates/` cckit applies to its own
74
75
  work (`concrete`, `karpathy-guidelines`, and the rules). No agents are installed: this file plus
75
- `cckit brief` is the delegation contract. `scripts/self-install-test.sh` holds the manifest and every
76
+ `cckit brief` is the delegation contract. `lib/core/self-install-test.sh` holds the manifest and every
76
77
  skip reason, and fails when an installed copy drifts; edit template and copy in the same commit.
77
78
 
78
- ## Core verbs
79
+ ## Where the rest lives
79
80
 
80
- Every verb, the question it answers, one prompt to paste, its usage and whether it uses the forge
81
- live in one table, `scripts/lib/verbs.tsv`. `cckit help` prints it grouped by question, git
82
- mechanics first; `cckit commands --json` returns it as data, one object per verb. The table below
83
- carries the flags and behaviour of each verb.
81
+ Read the file for the task at hand; none of these loads by itself.
84
82
 
85
- | Verb | Purpose | LLM mode |
86
- | --- | --- | --- |
87
- | `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) | — |
88
- | `cckit sync` | board state / what's unblocked | `--llm` → TOON |
89
- | `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) |
90
- | `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 |
91
- | `cckit plan` | wave plan: deps-ordered, priority-sorted within a wave, file-disjoint, session-fit | `--llm` → TOON |
92
- | `cckit plan-next` | forward plan: inventory current skills/verbs/rules/docs → propose what to build next | `--llm` → TOON |
93
- | `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) |
94
- | `cckit brief <issue>` | the delegation brief for an issue, from real state: worktree, seed freshness, owned files, the helpers they sit on, standing gotchas | — |
95
- | `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 watch [--merge] [--loop]` | captain: gate open PRs, squash-merge CLEAN, advance the wave | — |
97
- | `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) |
98
- | `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` |
99
- | `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` |
100
- | `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`) |
101
- | `cckit close <issue> <summary>` | close issue + mark done | `--llm` |
102
- | `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` |
103
- | `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`) |
104
- | `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`) |
105
- | `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`) |
106
- | `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`) |
107
- | `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 |
108
- | `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:` |
109
- | `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 | — |
110
- | `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` |
111
- | `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` |
112
- | `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 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`) |
114
- | `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 |
115
- | `cckit autopilot [<a> …]` | select work, then call `orchestrate --detach` under a cap | — (use `--dry-run`) |
116
- | `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`) |
117
- | `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`) |
118
- | `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` |
119
- | `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}`) |
120
- | `cckit render` | stdin markdown → rich (glow on a TTY; verbatim when piped) | — |
121
- | `cckit version` | the installed cckit version | `--llm` |
122
-
123
- Every verb accepts a global `--llm` (alias `--output=json`); verbs that produce a result emit a
124
- single JSON object/array on stdout, with human text on stderr. Interactive/launch verbs
125
- (`init`, `orchestrate`, `autopilot`) have no JSON result — use `--dry-run` to inspect their plan.
126
- `cckit brief` has no JSON form either, and deliberately: its output IS the prompt you hand a
127
- delegated agent, so markdown is the machine-readable form. Read the facts behind it as data with
128
- `cckit lib --llm` and `cckit status --llm`.
129
-
130
- > **`cckit plan-next` is the one exception to "feed verb output back to the model."** Its forward
131
- > plan is for the human/orchestrator's decision only — never inject it into a monitored model's
132
- > prompt or context (context-anxiety rule). Run it, decide, and hand only the chosen, scoped effort
133
- > to an agent. `cckit plan` / `cckit next` (ordering existing work) remain safe to reason over.
134
-
135
- ### Lifecycle ops (so autopilot runs unattended)
136
-
137
- Every operation an unattended run needs is reachable through the one CLI:
138
-
139
- | Verb | Purpose |
140
- | --- | --- |
141
- | `cckit scan` | detect the repo's stack + kit state (emits JSON) |
142
- | `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 |
143
- | `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/) |
144
- | `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 |
145
- | `cckit migrate [--dry-run]` | reshuffle an old kit layout to the current one; `--dry-run` writes nothing |
146
- | `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/) |
147
- | `cckit digest <path\|url>` | summarize one file or URL with the local model (exit 2 when the local model server is down) |
148
- | `cckit release <ver>` | cut a release — **dry-run by default**, `--publish` to act. Refuses (exit 1, in a dry run too) when `benchmarks/runs/<ver>.json` has no checkpoint, or its last checkpoint scores lower than the checkpoint recorded before it over the questions both asked; `--skip-bench-check` releases anyway and prints `benchmark check OVERRIDDEN`. The check reads cckit's own `benchmarks/runs/`; `BENCH_DIR` does not move it |
149
- | `cckit bench checkpoint <X.Y.Z> [--passes N] [--from <run.json>] [--verbs <timings.json>]` | run the documentation benchmark and append the result as a checkpoint of release `<X.Y.Z>` in `benchmarks/runs/<X.Y.Z>.json`; `--passes N` asks every question N times and sums the answers; `--from` records a run already made (`cckit bench run --json` output, one flag per pass). Rewrites the page named by `resultsPage` in `benchmarks/benchmark.config.json`. `cckit bench checkpoints [--json]` lists them; `cckit bench check <X.Y.Z>` is the verdict `cckit release` uses (exit 0 pass · 1 missing or lower · 2 usage or an unreadable run file): the last checkpoint is compared with the one before it over the questions both asked (same set file and id), the line names how many were compared, how many are new and how many were removed, and two checkpoints with no question in common are not compared — the newer one passes as a new baseline. `--verbs` attaches the output of `cckit bench verbs --json` as the checkpoint's `verbs`. A run with an empty answer (the model backend failed) or a `--dry` run is refused, exit 2; `cckit bench page [--out <file>] [--check]` prints or verifies the results page |
150
- | `cckit bench verbs [--runs N] [--checkout <dir>] [--verb "<verb>"] [--json]` | time the read-only verbs `status`, `sync`, `next`, `plan`, `gc`, `effort plan`, `claims`, `task list`, `qa lanes` from a checkout (default: the current directory, using its `bin/cckit`): each runs N times (default 3) and gets `min_ms`, `median_ms` and `gh_calls`, the median number of times it ran `gh`. The count comes from a `gh` shim in a temp dir, first on PATH of the measured verb only; it logs one line and execs the real `gh` with the same arguments, and is removed on exit. A verb that exits non-zero keeps its exit code in `exit`. No issue, PR, branch, worktree or tracked file changes; `status`, `gc` and `task list` refresh remote-tracking refs and `sync` appends to `kit-events.jsonl`, as they do outside the measurement. Timings taken while other work runs on the machine are not comparable |
151
-
152
- ### Orchestration flags (`orchestrate` / `autopilot`)
153
-
154
- | Flag | Effect |
155
- | --- | --- |
156
- | `--dry-run` | resolve + print the launch plan; create no worktrees, start nothing |
157
- | `--cap <N>` | concurrency cap (default 4); flows past the cap are queued + reported |
158
- | `--agent <cmd>` | per-pane agent command (default `claude`, or `CCKIT_AGENT=`) — drive any CLI agent |
159
- | `--profile <name>` | run a declared agent profile (or `CCKIT_PROFILE=`): its `kind` becomes the agent and its `args` are passed to the CLI. Unset picks the cheapest-tier profile; `--agent` overrides and skips profiles entirely. A project that declares none is unaffected |
160
- | `--runtime <tmux\|herdr>` | terminal owner (default `tmux`, or `CCKIT_RUNTIME=`); Herdr requires a supported agent kind such as `codex` or `claude` |
161
- | `--force` | launch even if an issue is `blocked_by` an OPEN issue (the gate is on by default) |
162
- | `--no-seed` | start the agent without an auto-prompt |
163
-
164
- **Base branch override.** `KIT_BASE_BRANCH` in the environment wins over `github.baseBranch` in the
165
- config for that invocation: `KIT_BASE_BRANCH=effort/<N>-<slug> cckit orchestrate <sub>` cuts the
166
- sub's worktree from the effort branch instead of the base. `orchestrate` then prints
167
- `base '<branch>' comes from KIT_BASE_BRANCH in the environment (the config says '<base>')`. The
168
- branch must exist on origin (`wt_start` fetches it). Every verb that loads the config reads the same
169
- variable — `cckit start` cuts from it and `cckit pr` targets it — so set it per command, not with a
170
- shell-wide `export`. `orchestrate` passes an override on to each agent pane (tmux: `env KIT_BASE_BRANCH=…`
171
- on the agent's command line; Herdr: `--env`), so `cckit pr` in the pane targets the branch the
172
- worktree was cut from. The base cckit resolved from a config is not an override in a child process:
173
- a `cckit` run in another project reads its own config.
174
-
175
- ### Night mode (no verb: `/kit-autopilot` + two scripts)
176
-
177
- The `kit-autopilot` skill reads the owner's night grant with `scripts/night-grant.sh read <parent>`
178
- and launches the Workflow script `scripts/night-run.mjs` with the args that prints. In a consuming
179
- project both live under `${CLAUDE_PLUGIN_ROOT}/scripts/`.
180
-
181
- | Rule | What the scripts enforce |
83
+ | Task | Read |
182
84
  | --- | --- |
183
- | Who may grant | a `<!-- night-grant -->` comment counts only from an author GitHub reports as `OWNER`, from `github.owner`, or from a login in `night.grantors`; any other author's is ignored |
184
- | Approval | the grant's `waves` list; no label or body section on the effort is required |
185
- | Width | `effort.wipLimit` efforts at once (default 2), never more than 4; executors never pass `--force` |
186
- | Wave order | a wave that did not fully merge ends the run `blocked`; no later wave starts |
187
- | Final check | the gate on the base branch, even when the grant sets a `stopCommand` |
188
- | Waivers | each must equal one floor name; `workflows`, `cost`, `secret` and `night.neverWaivable` are never waivable |
189
-
190
- Config: `night.floors`, `night.neverWaivable`, `night.gate`, `night.grantors`, `night.refuseLabels`
191
- — see [Night mode](https://cckit.dev/config-and-permissions/#night-mode).
192
-
193
- ## Model endpoint
194
-
195
- cckit shells out to whatever agent invokes it; it does not embed a model. The endpoint the verbs
196
- that synthesize text read is configured by environment variable names, never values:
197
-
198
- `cckit effort close` appends one record per effort to `<git-common-dir>/effort-metrics/records.jsonl`;
199
- its fields, their sources and when each is `null` are in the README under *The effort metrics record*.
200
-
201
- The effort-close judge reads an OpenAI-compatible endpoint from `CCKIT_MODEL_URL` (base URL; it
202
- POSTs to `<value>/chat/completions`), `CCKIT_MODEL` (model name) and `CCKIT_MODEL_TOKEN` (bearer
203
- token). A project with its own variables names them in the config instead — `model.urlEnv`,
204
- `model.modelEnv`, `model.tokenEnv` hold env var **names**, never values. See
205
- [Model endpoint for the effort judge](https://cckit.dev/config-and-permissions/#model-endpoint-for-the-effort-judge).
206
-
207
- **Agent profiles** (`agents.profiles` in the config) carry a spend `tier`, a permission policy and
208
- extra CLI argv. **cckit never names a model** — you spell your own flags in `args`, and the
209
- cheapest-tier profile runs when `agents.default` is unset, so the inexpensive path is the default
210
- by construction. A profile also declares the `stages` it may run at and whether it may
211
- `write` to a branch; a profile with no `stages` is allowed nowhere, and `write` defaults to false.
212
- Validation refuses an undeclared profile, a missing `kind`, an unknown stage, or a dangling
213
- `agents.default` **before** a worktree or pane exists. See
214
- [Agent profiles](https://cckit.dev/config-and-permissions/#agent-profiles).
215
-
216
- ## Editing the docs site
217
-
218
- `docs-site/` (Astro + Starlight) has two tracks. A page under `src/content/docs/marketing/` is
219
- Marketing; every other page is Software. The track sets the sidebar, the marker colour and the
220
- current entry of the top-bar switch (`docs-site/src/lib/tracks.ts`, `docs-site/src/routeData.ts`).
221
-
222
- - **Software pages live under their area.** The areas, in sidebar order: `getting-started/`,
223
- `project-management/`, `design/`, `development/`, `review/`, `ship/`, then the optional `memory/`.
224
- `software.mdx` is the track's entry page and `philosophy/` holds the team page beside
225
- `philosophy.mdx`. Reference pages (`cli-reference`, `config-and-permissions`, `integrations`,
226
- `skills`, `rules`, `hooks`, …) stay at the root so links to their anchors keep working. Inside an
227
- area the order is: why it exists, who does it, which tools plug in, the verbs, the guides. There
228
- is no separate tutorials section: a step-by-step page is a guide in its area.
229
- - **The look lives in one file.** `docs-site/src/styles/theme.css` holds the palette (the Apple
230
- System Colors terminal scheme, dark and light), the type scale and the measured contrast ratios.
231
- Both tracks share one action colour; a track differs by its marker colour, `--cckit-track`. The
232
- typeface is Geist and Geist Mono, self-hosted through `@fontsource-variable/geist` and
233
- `@fontsource-variable/geist-mono`. A page opens dark when the reader has stored no choice
234
- (`docs-site/src/components/ThemeProvider.astro`).
235
- - **The header is one component and never moves.** `docs-site/src/components/Header.astro` is a
236
- three-column grid: the wordmark, the search centred on the page, then the right group: version
237
- text and GitHub icon (Software only, `SocialIcons.astro`), language picker (Marketing only),
238
- theme picker, and the Software / Marketing switch (`TrackSwitch.astro`) last, at the right edge;
239
- the switch is not in `SiteTitle`. On a phone the switch, the search icon and the menu button
240
- share one row. Search controls take their surface and edge from `--cckit-field-bg` and
241
- `--cckit-field-border`, which hold 3:1 against the page in both themes.
242
- - **The guide header is two stacked blocks** (`docs-site/src/components/TutorialMeta.astro`): the
243
- "Copy the prompt" banner, then "Before you start". Keep each to one line of text per item.
244
- - **The sidebar is curated.** `sidebar` in `docs-site/astro.config.mjs` lists 43 Software pages: one
245
- "Start here" link, eight area groups and a Reference group, every group collapsed except the one
246
- holding the current page. The Marketing list is 15 pages in six groups (How it works, Get set up,
247
- Make a piece, Review and approve, Plan, Look things up) after a "Start here" link, nested in the
248
- `Marketing` entry; `src/routeData.ts` unwraps it and opens every group. Each Marketing page ends
249
- with a `Next:` link to the following sidebar entry; move a page and its neighbours' links move
250
- with it, in both languages. The sidebar group icons in `theme.css` apply to Software only. The
251
- site has 87 English pages (72 Software, 15 Marketing). A new Software page is not added to the
252
- sidebar by default: link a guide from its area's `more-guides.mdx` (`development/`, `review/`) and
253
- a reference page from `reference.mdx`.
254
- - **A guide step leads with a conversation window.** `<Chat>`
255
- (`docs-site/src/components/Chat.astro`) shows what a person says in the agent's chat, the command
256
- it runs (`ran`, Software only), the real output and the agent's reply, on one running example, the
257
- "Bakery site". `<Outcomes>` (`Outcomes.astro`) is the collapsed block under it for outcome tables
258
- and exit codes. The prose says "your agent" on Software pages and "your assistant" (Spanish "tu
259
- asistente") on Marketing pages, and "in the chat" for the place; it names Claude Code or Codex
260
- only where a step is true for that product alone. Truth rule: `ran` is a real command with real
261
- flags, with no literal issue or task number; `output` is real (a Bakery run, a read-only verb run
262
- there, or a string a test in `scripts/` asserts), trimmed only with a line `…` and `<project>` for
263
- a path, and is omitted when none of those exists; the reply claims nothing the command did not do.
264
- A Marketing window carries no `ran` and no `output` (the build fails if it does). Reference pages
265
- stay command-first. Authoring notes: `docs-site/src/components/README-chat.md`.
266
- - **A Marketing page has a Spanish twin** with the same file name under
267
- `src/content/docs/es/marketing/`. Change both in one commit. Links from a Spanish page into a
268
- Software page say the target is in English.
269
- - **Marketing pages use plain words.** `astro build` fails when a page under `marketing/` or
270
- `es/marketing/` says "worktree", "branch" or "PR"; `words-you-will-hear.mdx` is the one
271
- exemption (`docs-site/src/integrations/marketing-words.mjs`, tested by
272
- `scripts/docs-marketing-words-test.sh`).
273
- - **A wide table renders as record cards.** Write a Markdown table as usual. One with three or
274
- more columns and a cell over 60 characters becomes a list of cards: the first cell is the
275
- heading, every other cell a labelled line (a leading `#` index column is folded into the
276
- heading). Smaller tables stay tables. To keep a grid, wrap the table in
277
- `<div data-table="grid">` (`docs-site/src/lib/rehype-record-tables.mjs`, tested by
278
- `scripts/docs-record-tables-test.sh`).
279
- - **`SearchStart.astro` is the search entry** on the home page and on `software.mdx`,
280
- `marketing/index.mdx` and `es/marketing/index.mdx`. Its chips are defined in that file, one list
281
- per track and language; every chip is a real link, and a script upgrades the click to open search
282
- with the chip's text. Check each chip's target exists when you edit the lists.
283
- - **`tutorial.prerequisites` are full sentences.** An item is a string or `{ text, link, href }`
284
- (`link` is the words inside `text` that become the link; backticks make inline code), rendered as
285
- the checklist in `TutorialMeta.astro`.
286
- - **No page URL changes without a redirect** in `redirects` in `docs-site/astro.config.mjs`, and
287
- the `expect` paths in `benchmarks/*.jsonl` follow a moved file in the same commit.
288
-
289
- ## Paste-ready agent prompt
290
-
291
- Drop this verbatim into your agent's system prompt (or the first message of a session) to make it
292
- operate the repo through cckit. It is self-contained and names nothing repo-specific.
293
-
294
- ```text
295
- You operate this repository through cckit, a CLI that runs the full GitHub work lifecycle.
296
-
297
- Operating rules:
298
- 1. Read state before acting. Run `cckit sync --llm` and decide from the TOON board it returns
299
- (TOON is a compact table format — parse it, don't guess the board).
300
- 2. One issue = one branch = one worktree = one PR. Begin every task with `cckit start <issue>`,
301
- then cd into the worktree path it prints. Never commit on main or develop.
302
- 3. Append `--llm` to any verb for machine-readable JSON output.
303
- 4. Follow this loop: sync -> start <issue> -> implement (commit early and often) ->
304
- `cckit pr <issue> "<one-line summary>"` -> report the PR URL -> stop.
305
- 5. Merging is a human decision. Do not merge unless an approved plan explicitly says you may.
306
- 6. Re-running an already-done step is a no-op, not an error. Never invent paths or config:
307
- everything resolves from cckit.config.json.
308
- 7. If a command fails, read its stderr and fix the cause. Do not work around the kit.
309
- ```
85
+ | Run or change a verb: flags, behaviour, lifecycle ops, orchestration and night mode | `lib/verbs/PROMPTS.md` § Core verbs |
86
+ | The model endpoint and agent profiles | `lib/verbs/PROMPTS.md` § Model endpoint |
87
+ | Edit the docs site: tracks, areas, page frontmatter, redirects | `docs-site/PROMPTS.md` § Editing the docs site |
88
+ | The dispatcher, `bin/cckit` | `bin/PROMPTS.md` |
89
+ | Library layers and their checks | `lib/PROMPTS.md` |
90
+ | The kit payload (`kit/`) | `kit/PROMPTS.md` |
91
+ | The forwarding stubs under `scripts/` | `scripts/PROMPTS.md` |
92
+ | A prompt to paste into an agent that drives cckit | [the Agents page](docs-site/src/content/docs/agents.mdx#paste-ready-agent-prompt) |
93
+ | Effort, branch, merge and close rules | `.claude/rules/` |