@jeiemgi/cckit 0.9.0 → 0.10.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 (305) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/AGENTS.md +169 -21
  3. package/README.md +491 -35
  4. package/SECURITY.md +5 -0
  5. package/bin/cckit +182 -17
  6. package/cckit.config.json +1 -1
  7. package/commands/kit-doctor.md +13 -5
  8. package/commands/kit-export-project.md +0 -2
  9. package/commands/kit-export-training.md +6 -9
  10. package/commands/kit-init.md +43 -13
  11. package/commands/kit-routines.md +1 -1
  12. package/commands/kit-update.md +11 -6
  13. package/databases/supabase/guide.html +106 -0
  14. package/databases/supabase/nextjs/lib/supabase/client.ts +9 -0
  15. package/databases/supabase/nextjs/lib/supabase/server.ts +29 -0
  16. package/databases/supabase.json +70 -0
  17. package/integrations/emil-design-eng.json +41 -0
  18. package/integrations/graft.json +81 -0
  19. package/integrations/impeccable.json +42 -0
  20. package/integrations/integration.schema.json +215 -0
  21. package/integrations/lavish.json +43 -0
  22. package/integrations/mempalace.json +28 -0
  23. package/integrations/mlx-lm.json +32 -0
  24. package/integrations/web-design-guidelines.json +42 -0
  25. package/kit.config.schema.json +183 -5
  26. package/package.json +4 -1
  27. package/profiles/automation.json +7 -1
  28. package/profiles/content.json +10 -2
  29. package/profiles/marketing.json +57 -0
  30. package/profiles/minimal.json +7 -1
  31. package/profiles/research.json +7 -1
  32. package/profiles/software.json +7 -1
  33. package/recipes/nextjs-shadcn.json +49 -0
  34. package/scripts/agent-skills-external.txt +45 -0
  35. package/scripts/agent-skills-lint-test.sh +131 -0
  36. package/scripts/agent-skills-lint.sh +115 -0
  37. package/scripts/agent-template-lint-test.sh +42 -0
  38. package/scripts/agent-template-lint.sh +58 -0
  39. package/scripts/annotate-setup.sh +1 -1
  40. package/scripts/autopilot-run-test.sh +338 -0
  41. package/scripts/autopilot-run.sh +448 -0
  42. package/scripts/autopilot-test.sh +8 -0
  43. package/scripts/autopilot.sh +10 -1
  44. package/scripts/benchmark/benchmark-test.sh +85 -0
  45. package/scripts/benchmark/checkpoint-test.sh +314 -0
  46. package/scripts/benchmark/checkpoint.sh +408 -0
  47. package/scripts/benchmark/lib/model.sh +31 -6
  48. package/scripts/benchmark/report.sh +17 -2
  49. package/scripts/benchmark/run-quality.sh +36 -10
  50. package/scripts/benchmark/verb-timings-test.sh +124 -0
  51. package/scripts/benchmark/verb-timings.sh +149 -0
  52. package/scripts/check.sh +29 -19
  53. package/scripts/content-skills-test.sh +144 -0
  54. package/scripts/copilot-loop-test.sh +25 -0
  55. package/scripts/database-supabase-test.sh +121 -0
  56. package/scripts/docs-marketing-words-test.sh +73 -0
  57. package/scripts/docs-record-tables-test.sh +72 -0
  58. package/scripts/hook-adapter-test.sh +193 -0
  59. package/scripts/init-content-test.sh +225 -0
  60. package/scripts/init-guided-test.sh +474 -0
  61. package/scripts/init-recipes-test.sh +104 -0
  62. package/scripts/init-upgrade-test.sh +341 -2
  63. package/scripts/init.sh +746 -95
  64. package/scripts/instruction-budget-baseline.txt +8 -0
  65. package/scripts/instruction-budget-lint-test.sh +166 -0
  66. package/scripts/instruction-budget-lint.sh +219 -0
  67. package/scripts/integrations-check-test.sh +200 -0
  68. package/scripts/integrations-check.sh +157 -0
  69. package/scripts/kit-add-test.sh +214 -0
  70. package/scripts/kit-add.sh +305 -5
  71. package/scripts/kit-adopt-test.sh +16 -0
  72. package/scripts/kit-adopt.sh +3 -2
  73. package/scripts/kit-digest.sh +2 -2
  74. package/scripts/kit-doctor-test.sh +293 -0
  75. package/scripts/kit-doctor.sh +272 -140
  76. package/scripts/kit-export-project-test.sh +3 -3
  77. package/scripts/kit-remove-test.sh +19 -0
  78. package/scripts/kit-routines.sh +2 -2
  79. package/scripts/kit-self-update.sh +1 -1
  80. package/scripts/kit-version-check-test.sh +4 -0
  81. package/scripts/kit-version-check.sh +4 -2
  82. package/scripts/knowledge-lint.sh +4 -4
  83. package/scripts/leak-fence-test.sh +89 -0
  84. package/scripts/lib/adapter-select-test.sh +136 -0
  85. package/scripts/lib/adapter-select.sh +158 -0
  86. package/scripts/lib/agent-def-test.sh +69 -0
  87. package/scripts/lib/agent-def.sh +106 -0
  88. package/scripts/lib/agent-launch-test.sh +212 -0
  89. package/scripts/lib/agent-launch.sh +335 -0
  90. package/scripts/lib/board-view-test.sh +11 -0
  91. package/scripts/lib/board-view.sh +42 -26
  92. package/scripts/lib/branch-owner-test.sh +26 -0
  93. package/scripts/lib/branch-owner.sh +16 -9
  94. package/scripts/lib/captain-test.sh +105 -0
  95. package/scripts/lib/captain.sh +87 -8
  96. package/scripts/lib/codex-hooks-test.sh +100 -0
  97. package/scripts/lib/codex-hooks.sh +69 -0
  98. package/scripts/lib/commitlint.sh +1 -1
  99. package/scripts/lib/content-kinds-gc-test.sh +88 -0
  100. package/scripts/lib/copilot-test.sh +70 -4
  101. package/scripts/lib/copilot.sh +66 -14
  102. package/scripts/lib/effort-dispatch-test.sh +3 -3
  103. package/scripts/lib/effort-metrics-test.sh +178 -1
  104. package/scripts/lib/effort-metrics.sh +175 -35
  105. package/scripts/lib/effort-ops-test.sh +205 -7
  106. package/scripts/lib/effort-ops.sh +198 -43
  107. package/scripts/lib/effort-parity-test.sh +49 -13
  108. package/scripts/lib/effort-plan-test.sh +337 -0
  109. package/scripts/lib/effort-plan.sh +200 -23
  110. package/scripts/lib/effort.sh +56 -11
  111. package/scripts/lib/errors-header-test.sh +1 -1
  112. package/scripts/lib/gh-project-test.sh +35 -1
  113. package/scripts/lib/gh-project.sh +23 -16
  114. package/scripts/lib/gh-rest-test.sh +32 -3
  115. package/scripts/lib/gh-rest.sh +17 -2
  116. package/scripts/lib/hook-refresh.sh +1 -1
  117. package/scripts/lib/init-github.sh +412 -0
  118. package/scripts/lib/init-guide.sh +630 -0
  119. package/scripts/lib/integration-install-test.sh +343 -0
  120. package/scripts/lib/integration-install.sh +257 -0
  121. package/scripts/lib/integrations-test.sh +366 -0
  122. package/scripts/lib/integrations.sh +244 -0
  123. package/scripts/lib/kinds-test.sh +125 -0
  124. package/scripts/lib/kinds.sh +66 -0
  125. package/scripts/lib/kit-brief-test.sh +22 -3
  126. package/scripts/lib/kit-brief.sh +45 -5
  127. package/scripts/lib/kit-config-resolve.sh +2 -2
  128. package/scripts/lib/kit-config-test.sh +64 -1
  129. package/scripts/lib/kit-config.sh +37 -1
  130. package/scripts/lib/kit-events.sh +7 -0
  131. package/scripts/lib/kit-gc-test.sh +173 -1
  132. package/scripts/lib/kit-gc.sh +226 -37
  133. package/scripts/lib/kit-hotfix.sh +216 -0
  134. package/scripts/lib/kit-interview-test.sh +93 -0
  135. package/scripts/lib/kit-interview.sh +117 -8
  136. package/scripts/lib/kit-lib-test.sh +1 -1
  137. package/scripts/lib/kit-lib.sh +3 -3
  138. package/scripts/lib/kit-local.sh +2 -2
  139. package/scripts/lib/kit-manifest.sh +33 -1
  140. package/scripts/lib/kit-profile-test.sh +3 -3
  141. package/scripts/lib/kit-status-test.sh +112 -4
  142. package/scripts/lib/kit-status.sh +246 -16
  143. package/scripts/lib/kit-task-ops-test.sh +37 -0
  144. package/scripts/lib/kit-task-ops.sh +175 -31
  145. package/scripts/lib/kto-hotfix-test.sh +232 -0
  146. package/scripts/lib/kto-task-close-test.sh +1 -1
  147. package/scripts/lib/kto-task-new-test.sh +95 -0
  148. package/scripts/lib/kto-task-pr-merge-test.sh +37 -3
  149. package/scripts/lib/kto-task-pr-test.sh +70 -0
  150. package/scripts/lib/leak-fence.sh +89 -0
  151. package/scripts/lib/light-task-run-test.sh +255 -0
  152. package/scripts/lib/light-task-test.sh +309 -0
  153. package/scripts/lib/light-task.sh +706 -0
  154. package/scripts/lib/next-test.sh +99 -0
  155. package/scripts/lib/next.sh +9 -3
  156. package/scripts/lib/orchestration-runtime-test.sh +72 -0
  157. package/scripts/lib/orchestration-runtime.sh +57 -5
  158. package/scripts/lib/plan-machine-test.sh +15 -2
  159. package/scripts/lib/plan-machine.sh +20 -7
  160. package/scripts/lib/plan-next-test.sh +1 -1
  161. package/scripts/lib/plan-next.sh +4 -4
  162. package/scripts/lib/pr-evidence-test.sh +3 -3
  163. package/scripts/lib/pr-evidence.sh +1 -1
  164. package/scripts/lib/qa-lane-test.sh +626 -0
  165. package/scripts/lib/qa-lane.sh +1357 -0
  166. package/scripts/lib/qa-lanes-test.sh +175 -0
  167. package/scripts/lib/react-detect.sh +1 -1
  168. package/scripts/lib/render-test.sh +1 -1
  169. package/scripts/lib/review-page-test.sh +318 -0
  170. package/scripts/lib/review-page.sh +369 -0
  171. package/scripts/lib/review-stage-test.sh +62 -11
  172. package/scripts/lib/review-stage.sh +42 -60
  173. package/scripts/lib/role-identity-test.sh +65 -0
  174. package/scripts/lib/role-identity.sh +25 -2
  175. package/scripts/lib/secret-guard.sh +3 -3
  176. package/scripts/lib/session-registry-test.sh +111 -0
  177. package/scripts/lib/session-registry.sh +233 -0
  178. package/scripts/lib/stage-receipt-test.sh +14 -1
  179. package/scripts/lib/stage-receipt.sh +13 -8
  180. package/scripts/lib/task-source-file.sh +309 -0
  181. package/scripts/lib/task-source.sh +130 -0
  182. package/scripts/lib/upgrade-report-test.sh +120 -0
  183. package/scripts/lib/upgrade-report.sh +138 -0
  184. package/scripts/lib/version-bump.sh +3 -3
  185. package/scripts/lib/wave-result-test.sh +80 -0
  186. package/scripts/lib/wave-result.sh +127 -0
  187. package/scripts/lib/worker-brief-test.sh +5 -0
  188. package/scripts/lib/worker-brief.sh +2 -2
  189. package/scripts/lib/worktree-issue-test.sh +30 -1
  190. package/scripts/lib/worktree-issue.sh +82 -12
  191. package/scripts/lib/worktree-ports-test.sh +57 -4
  192. package/scripts/lib/worktree-start-test.sh +197 -0
  193. package/scripts/lib/worktree-start.sh +153 -31
  194. package/scripts/lib/zsh-safety-test.sh +19 -3
  195. package/scripts/marketing-walkthrough-test.sh +152 -0
  196. package/scripts/night-grant-test.sh +37 -0
  197. package/scripts/night-grant.sh +448 -0
  198. package/scripts/night-run-test.sh +8 -0
  199. package/scripts/night-run.mjs +275 -0
  200. package/scripts/night-run.test.mjs +324 -0
  201. package/scripts/orchestrate-test.sh +190 -0
  202. package/scripts/orchestrate.sh +79 -8
  203. package/scripts/portable-test.sh +11 -2
  204. package/scripts/publish.sh +28 -3
  205. package/scripts/review-lint-test.sh +7 -7
  206. package/scripts/review-lint.sh +2 -2
  207. package/scripts/review-rules.conf +8 -0
  208. package/scripts/rule-recipes-test.sh +96 -0
  209. package/scripts/self-install-test.sh +39 -9
  210. package/scripts/setup-labels.sh +18 -1
  211. package/scripts/setup-milestones.sh +1 -1
  212. package/scripts/showcase.sh +1 -1
  213. package/scripts/skill-frontmatter-lint-test.sh +4 -4
  214. package/scripts/skill-frontmatter-lint.sh +1 -1
  215. package/scripts/status-test.sh +113 -2
  216. package/scripts/status.sh +16 -3
  217. package/scripts/task-sync-test.sh +154 -0
  218. package/scripts/task-sync.sh +243 -32
  219. package/scripts/test-runner-test.sh +158 -0
  220. package/scripts/test.sh +131 -23
  221. package/scripts/update-path-test.sh +279 -0
  222. package/scripts/ux-ds-audit.sh +1 -1
  223. package/scripts/ux-graph-scan.sh +6 -6
  224. package/scripts/wave-worker.sh +54 -0
  225. package/skills/kit-add/SKILL.md +77 -0
  226. package/skills/kit-autopilot/SKILL.md +123 -12
  227. package/skills/kit-cleanup/SKILL.md +5 -2
  228. package/skills/kit-contribute/SKILL.md +4 -4
  229. package/skills/kit-docs-writer/SKILL.md +16 -6
  230. package/skills/kit-effort-close/SKILL.md +17 -8
  231. package/skills/kit-effort-new/SKILL.md +15 -9
  232. package/skills/kit-effort-pr/SKILL.md +15 -7
  233. package/skills/kit-effort-start/SKILL.md +5 -2
  234. package/skills/kit-gc/SKILL.md +5 -2
  235. package/skills/kit-next/SKILL.md +5 -1
  236. package/skills/kit-onboard/SKILL.md +3 -3
  237. package/skills/kit-page/SKILL.md +93 -0
  238. package/skills/kit-plan-next/SKILL.md +8 -4
  239. package/skills/kit-security-sweep/SKILL.md +1 -3
  240. package/skills/kit-ship/SKILL.md +2 -3
  241. package/skills/kit-status/SKILL.md +35 -4
  242. package/skills/kit-task-new/SKILL.md +3 -3
  243. package/skills/kit-task-pr/SKILL.md +7 -2
  244. package/skills/kit-task-pr-merge/SKILL.md +7 -2
  245. package/skills/kit-task-start/SKILL.md +7 -7
  246. package/skills/kit-task-sync/SKILL.md +19 -3
  247. package/skills/kit-ux-audit/SKILL.md +3 -2
  248. package/templates/agents/auto-dev.md +5 -4
  249. package/templates/agents/backend.md +1 -1
  250. package/templates/agents/designer.md +2 -0
  251. package/templates/agents/devops.md +1 -1
  252. package/templates/agents/editor.md +9 -1
  253. package/templates/agents/frontend.md +1 -1
  254. package/templates/agents/local-delegate.md +1 -1
  255. package/templates/agents/pm.md +5 -5
  256. package/templates/agents/tech-lead.md +1 -1
  257. package/templates/benchmarks/SCHEMA.md +9 -3
  258. package/templates/codex/hooks.json.tmpl +89 -0
  259. package/templates/hooks/guard-base-branch-commit.sh.tmpl +13 -7
  260. package/templates/hooks/guard-raw-git-ops.sh.tmpl +12 -12
  261. package/templates/hooks/mempal_followup.sh.tmpl +2 -2
  262. package/templates/hooks/mempal_session_start.sh.tmpl +1 -1
  263. package/templates/hooks/prepush_gate.sh.tmpl +4 -2
  264. package/templates/hooks/repo-hygiene.sh.tmpl +3 -2
  265. package/templates/instructions.md.tmpl +174 -0
  266. package/templates/kit.config.json.tmpl +3 -3
  267. package/templates/knowledge-INDEX.md.tmpl +1 -1
  268. package/templates/lib/kit-sigil.sh.tmpl +1 -1
  269. package/templates/rules/authoring.md +106 -0
  270. package/templates/rules/branch-naming.md +40 -4
  271. package/templates/rules/code-retrieval.md +63 -0
  272. package/templates/rules/delegation-brief.md +0 -3
  273. package/templates/rules/design-routing.md +3 -3
  274. package/templates/rules/effort-model.md +14 -10
  275. package/templates/rules/gate-and-review.md +94 -0
  276. package/templates/rules/issue-lifecycle.md +88 -0
  277. package/templates/rules/knowledge-base.md +1 -1
  278. package/templates/rules/mempalace.md +1 -1
  279. package/templates/rules/merge-safety.md +108 -0
  280. package/templates/rules/naming-and-ids.md +23 -17
  281. package/templates/rules/plain-language.md +59 -0
  282. package/templates/rules/plan-next.md +9 -11
  283. package/templates/rules/react-annotate.md +6 -0
  284. package/templates/rules/review-pages.md +49 -0
  285. package/templates/rules/risk-tiered-review.md +13 -4
  286. package/templates/rules/shared-checkout.md +106 -0
  287. package/templates/rules/skill-gaps.md +2 -7
  288. package/templates/rules/task-management.md +13 -1
  289. package/templates/skills/brand-voice/SKILL.md +91 -0
  290. package/templates/skills/brand-voice/references/voice-template.md +61 -0
  291. package/templates/skills/campaign/SKILL.md +123 -0
  292. package/templates/skills/campaign/references/plan-template.md +55 -0
  293. package/templates/skills/concrete/SKILL.md +2 -2
  294. package/templates/skills/copywriting/SKILL.md +8 -1
  295. package/templates/skills/feature-build-refine/SKILL.md +2 -4
  296. package/templates/skills/morning-briefing/SKILL.md +2 -2
  297. package/templates/skills/page-design/SKILL.md +145 -0
  298. package/templates/skills/page-design/add.json +5 -0
  299. package/templates/skills/page-design/references/design-file-template.md +40 -0
  300. package/templates/skills/page-design/references/generic-page-patterns.md +43 -0
  301. package/templates/skills/page-design/references/minimum-rules.md +42 -0
  302. package/templates/skills/speckit/SKILL.md +4 -5
  303. package/templates/skills/supabase-patterns/SKILL.md +1 -1
  304. package/commands/kit-add.md +0 -42
  305. package/templates/CLAUDE.md.tmpl +0 -106
@@ -0,0 +1,93 @@
1
+ ---
2
+ name: kit-page
3
+ description: >
4
+ Open a plan, a decision with options, or a grilling round as a review page the reader answers
5
+ (`cckit page`); print to the terminal where there is no browser; write the answer back to the
6
+ issue or to a file.
7
+ when_to_use: >
8
+ Before presenting a plan for approval, when the owner picks between options, or when grilling a
9
+ plan — "show me the plan", "what are my options", "grill me". SKIP for status, a one-line
10
+ answer, a diff, or a question with nothing to compare.
11
+ metadata:
12
+ version: 1.0.0
13
+ ---
14
+
15
+ # kit-page — a plan, a decision or a grill as a review page
16
+
17
+ Thin caller of the `cckit page` verb (`scripts/lib/review-page.sh`). The verb decides whether this
18
+ session can show a page; this skill never re-implements that check. The page tool is Lavish
19
+ (`lavish-axi`, third-party, run through `npx`), described by `integrations/lavish.json` and on by
20
+ default (`reviewPages.enabled`).
21
+
22
+ ## 1. Ask whether a page can open
23
+
24
+ ```bash
25
+ cckit page mode
26
+ ```
27
+
28
+ - `page` — continue with step 2.
29
+ - `terminal: <reason>` — write no HTML. Print the plan, the options or the questions in the
30
+ terminal, take the answer in the conversation, then go to step 4. This is the path in CI, an
31
+ unattended run (`CCKIT_HEADLESS`), a headless agent session, SSH, a machine with no display, and
32
+ a project that set `reviewPages.enabled: false`.
33
+
34
+ ## 2. Write the page and open it
35
+
36
+ Read the page tool's own guidance before writing HTML — it names a playbook per kind:
37
+
38
+ ```bash
39
+ npx -y lavish-axi --help
40
+ npx -y lavish-axi playbook plan # a plan
41
+ npx -y lavish-axi playbook comparison # a decision: options side by side
42
+ npx -y lavish-axi playbook input # any page that collects an answer — decisions and grills
43
+ ```
44
+
45
+ Write `.lavish/<name>.html`, and the same content as `.lavish/<name>.md`. Then:
46
+
47
+ ```bash
48
+ cckit page open .lavish/<name>.html --fallback .lavish/<name>.md
49
+ ```
50
+
51
+ `open` exits 0 either way. When the tool cannot open the page it prints the markdown instead, so
52
+ read its output: a page that did not open means the reader is in the terminal.
53
+
54
+ | Kind | What the page holds |
55
+ | --- | --- |
56
+ | `plan` | the goal, the steps in order, what is out of scope, the risks; one approve / change control |
57
+ | `decision` | the options side by side with their costs; exactly one marked recommended; one choice control |
58
+ | `grill` | one question per card, each with 2–4 options and one recommendation, plus free text |
59
+
60
+ ## 3. Wait for the answer
61
+
62
+ ```bash
63
+ cckit page poll .lavish/<name>.html
64
+ ```
65
+
66
+ It stays silent until the reader sends feedback; run it in the foreground and do not kill it. Apply
67
+ what comes back, then poll again with `--agent-reply "<what changed>"` if the page needs another
68
+ round. End the session with `cckit page end .lavish/<name>.html` when the answer is final.
69
+
70
+ ## 4. Write the answer back
71
+
72
+ ```bash
73
+ cckit page answer --kind <plan|decision|grill> --title "<what was decided>" \
74
+ --issue <issue> --body-file <answer.md>
75
+ ```
76
+
77
+ The body states what was asked, what was chosen and why — in the reader's words where they gave
78
+ them. Where it lands:
79
+
80
+ | Project | Destination |
81
+ | --- | --- |
82
+ | uses GitHub (`github.repo` is set) and `--issue` is given | a comment on that issue |
83
+ | no GitHub, or no issue yet | a file `docs/answers/<date>-<kind>-<slug>.md` — commit it with the change |
84
+
85
+ `reviewPages.answers` (`issue` or `file`) fixes the destination; `reviewPages.answersDir` moves the
86
+ directory. Recording the same answer twice writes nothing the second time.
87
+
88
+ ## Rules
89
+
90
+ - **Recommended, not a gate.** `cckit effort start` does not check for a page or an answer.
91
+ - **Never force a page in an unattended run.** `CCKIT_PAGES=page` is for an attended session the
92
+ check misreads, not for autopilot or night mode.
93
+ - **Every answer is written back**, in terminal mode too. The conversation is not the record.
@@ -20,9 +20,8 @@ Answer one question: **given everything the kit can already do, what is the high
20
20
  effort?** This wraps the `cckit plan-next` verb (the engine — never re-author its logic here;
21
21
  kit-engine-boundary) and turns its proposals into a scoped effort via `/kit-effort-new`.
22
22
 
23
- The verb introspects the CURRENT capability surface at runtime, so the plan is always consistent
24
- with what ships today — planning pre-grounded in current docs/skills/rules means the executing agent
25
- burns fewer tokens rediscovering context.
23
+ The verb reads the CURRENT skills, commands, rules and docs at runtime, so the plan reflects what
24
+ ships today.
26
25
 
27
26
  ## CRITICAL — context-anxiety rule
28
27
 
@@ -44,7 +43,7 @@ if you need to reason over the proposals structurally — but keep that output o
44
43
  context.
45
44
 
46
45
  Run it from the cckit repo for a full inventory, or from a host project where the kit is installed —
47
- there it degrades gracefully to whatever capability dirs exist (host docs only) and never crashes.
46
+ there it inventories whatever capability dirs exist (host docs only).
48
47
 
49
48
  ## 2. Choose with the human
50
49
 
@@ -52,6 +51,11 @@ Surface the proposals as a short, visual summary — lead with the human-meaning
52
51
  item (its `proposal`), not the verb noise. Confirm which one to pursue. Do not invent scope beyond
53
52
  what the inventory supports.
54
53
 
54
+ Choosing between proposals is a **decision**: when `cckit page mode` prints `page`, present them as
55
+ a review page with one recommendation and collect the choice there (`/kit-page`). When it prints
56
+ `terminal`, show the same summary in the terminal. Either way, record the choice with
57
+ `cckit page answer --kind decision` once it is made.
58
+
55
59
  ## 3. Hand off to /kit-effort-new
56
60
 
57
61
  Once an item is chosen, scope it into an effort:
@@ -50,6 +50,4 @@ CRITICAL findings block the distribution/release milestone.
50
50
  ## Rules
51
51
 
52
52
  - Never mark a security finding as "won't fix" without explicit owner sign-off
53
- - CRITICAL findings block the distribution/release milestone
54
- - All security issues use label `role:security`
55
- - Prompt injection findings also get label `kind:security`
53
+ - Every security issue carries the labels `role:security` and `kind:security`
@@ -7,8 +7,7 @@ when_to_use: When the user says "fix #N and ship it", "do the full cycle on #N",
7
7
  # kit-ship
8
8
 
9
9
  Takes one issue from **open → implemented → merged on the base branch → closed → kit refreshed**,
10
- chaining the existing kit-task commands. This is the orchestrator that wraps the manual sequence,
11
- with the sharp edges baked in (see **Hard rules**). Plugin-direct — the kit-task skills it chains
10
+ chaining the existing kit-task commands under the **Hard rules** below. Plugin-direct — the kit-task skills it chains
12
11
  resolve from `${CLAUDE_PLUGIN_ROOT}`.
13
12
 
14
13
  ## Inputs
@@ -24,7 +23,7 @@ resolve from `${CLAUDE_PLUGIN_ROOT}`.
24
23
  | - | ---- | ---------------- |
25
24
  | 1 | **Read the issue** | `gh issue view <N>` — understand scope. If ambiguous/large/decision-heavy → stop and ask (don't ship blind). |
26
25
  | 2 | **Start** | `/kit-task-start <N> --worktree` — branch `<kind>/<N>-<slug>` from the fresh base branch, mark **In Progress**. |
27
- | 3 | **Implement** | Do the actual work to the issue's acceptance criteria, following project conventions + the relevant agent's domain. |
26
+ | 3 | **Implement** | Do the work to the issue's acceptance criteria, following project conventions + the relevant agent's domain. |
28
27
  | 4 | **Verify locally** | Run the affected workspace's `build` / `typecheck` / `lint` (e.g. `pnpm -F <pkg> build typecheck`) or `bash -n` for scripts. Don't open a PR on red. |
29
28
  | 5 | **PR** | `/kit-task-pr <N>` — commit, push, open PR to the base branch, mirror labels/milestone, add to board, move issue **In Review**. |
30
29
  | 6 | **Wait for CI** | If the project has a required check, poll until it's not pending (background `until` loop). **Pending ≠ failing — wait; never force-merge.** |
@@ -42,8 +42,9 @@ mistake this skill exists to prevent.
42
42
  ## Execution
43
43
 
44
44
  ```bash
45
- cckit status # the three buckets as markdown
46
- cckit status --llm # the same verdicts as JSON, for an agent
45
+ cckit status # the board, the light tasks, the next effort per flow, the three buckets — as markdown
46
+ cckit status --llm # the same verdicts as JSON, for an agent: local_undone, worktrees, prs,
47
+ # cleanup, next_efforts, light_tasks
47
48
  ```
48
49
 
49
50
  Read-only. It writes nothing, deletes nothing, and pushes nothing.
@@ -52,9 +53,39 @@ Read-only. It writes nothing, deletes nothing, and pushes nothing.
52
53
 
53
54
  | # | Bucket | What it answers |
54
55
  | --- | --- | --- |
55
- | 1 | **Local undone work** | What exists only on this machine: worktrees with uncommitted changes, branches holding commits reachable from **no** remote ref, and effort subs not yet merged into their effort branch. Plus the worktree inventory — a clean worktree on an issue branch is still work in progress. |
56
+ | 1 | **Local undone work** | What exists only on this machine: worktrees with uncommitted changes, branches holding commits reachable from **no** remote ref, and effort subs not yet merged into their effort branch. Plus the worktree inventory — a clean worktree on an issue branch is still work in progress. A detached worktree that `cckit gc` rates LANDED (clean, HEAD on the base branch or `main`) is left out of the **In progress** list and counted in one line under it; `--llm` `worktrees` still carries every worktree. |
56
57
  | 2 | **PRs waiting on a human** | Every open PR with the ONE thing it needs: `conflict`, `checks`, `draft`, `wait`, `threads`, `ai-review`, `review`, or `ready`. |
57
- | 3 | **Cleanup available** | Branches and worktrees that can go — **local and remote** — plus what is deliberately kept (orphan work, open-issue branches). |
58
+ | 3 | **Cleanup available** | Branches and worktrees that can go — **local and remote** — plus what is deliberately kept (orphan work, open-issue branches), and a count of branches that could not be classified because a GitHub read failed. |
59
+
60
+ After the buckets the report prints one **Instruction files** line: the bytes `CLAUDE.md` and the
61
+ rules without a `paths:` frontmatter load into every session, against Claude Code's 150k limit, and
62
+ the three largest files. It is not a fourth bucket — nothing in it is pending work — and it is
63
+ absent when the project has no instruction files. Relay it as printed;
64
+ `scripts/instruction-budget-lint.sh --report` lists every file.
65
+
66
+ ## Light tasks
67
+
68
+ In a project that tracks work with `cckit task`, the report prints a **Light tasks** section after
69
+ the board: one line of counts by state (`review`, `doing`, `todo`, `draft`, `shared`, `done`), then
70
+ a table of the tasks somebody has to act on — `review` (its pull request is waiting), `doing`,
71
+ `draft` (only in this checkout) and `shared`. A `todo` task is counted, not listed. It is read from
72
+ local git, with no `gh` call and no fetch. In `--llm` output it is `light_tasks`
73
+ (`{counts, attention: [{id, state, title, needs}]}`), `null` when the project has no light task.
74
+ Relay the rows before the buckets: in such a project they are the answer to "what is waiting",
75
+ and the board line above them reads `open issues: 0`.
76
+
77
+ ## Next effort per flow
78
+
79
+ Before the buckets the report prints one row per flow that has an open effort (an open issue with
80
+ the `effort` label): the effort that can start now — no open blocker, most urgent `priority:pN`
81
+ first, then the lowest number — and how many of the flow's efforts still wait on an open blocker.
82
+ Any open `blocked_by` issue blocks, in the same flow or another; a closed one does not. A flow where
83
+ nothing can start keeps its row and says so. In `--llm` output these rows are `next_efforts`
84
+ (`{flow, number, ctx, title, waiting}`; `number` is `null` for a blocked flow, and the whole key is
85
+ `null` when the efforts could not be read).
86
+
87
+ The line under the table is the weekly cadence, the same line `cckit next` prints: Monday
88
+ `cckit plan`, daily `cckit next`, Friday `cckit gc`. Relay it when the owner asks what to do next.
58
89
 
59
90
  ## Reading bucket 2
60
91
 
@@ -21,14 +21,14 @@ One flow → creates a GitHub issue **and** (if Projects v2 is enabled) adds it
21
21
  | ---------- | -------- | --------------------------------------------- |
22
22
  | Title | ✓ | Format: `[<role>] <imperative summary>` |
23
23
  | Role | ✓ | One of the project's `roles` (see kit.config) |
24
- | Kind | ✓ | task / plan / adr / scaffold / spike |
24
+ | Kind | ✓ | feat / fix / task / chore / security / scaffold / ci / adr / spike / plan — the closed set; it becomes the branch prefix. Content work: post / campaign / brand / research — labels only, started on task/ plan/ task/ spike/ |
25
25
  | Priority | ✓ | p1 / p2 / p3 |
26
26
  | Milestone | ✓ | One of the project's `milestones` |
27
27
  | Plan link | optional | Path under the project's plans dir |
28
28
  | Blocked by | optional | `#N, #M` |
29
29
  | Body | ✓ | Context + DoD checklist + acceptance |
30
30
 
31
- Validate Kind/Priority/Role against the project's closed sets before dispatching — the op does not invent label families.
31
+ Validate Kind/Priority/Role against the project's closed sets before dispatching — the op does not invent label families. A `kind:` / `priority:` / `role:` label the repo does not have is dropped with a `⚠ label '<name>' not found` warning on stderr and the issue is still created; the op fails only when the issue itself is not created.
32
32
 
33
33
  ## Execution
34
34
 
@@ -46,6 +46,6 @@ The function prints `✓ <issue-URL>` and echoes the new issue number.
46
46
  ## Rules
47
47
 
48
48
  - Never file without confirming title + role + priority with the owner
49
- - Never create new label families on the fly — validate against the project's closed sets; fail loudly if a kind/priority/role is unknown
49
+ - Never create new label families on the fly — validate against the project's closed sets. The op creates no label: one the repo lacks is left off the issue with a warning that names it, so relay that warning to the owner (`scripts/setup-labels.sh` provisions the kit's labels)
50
50
  - If the milestone doesn't exist, ask before creating it
51
51
  - Always assign `@me` — the op does this
@@ -9,7 +9,9 @@ when_to_use: When work on an issue branch is ready for review. Replaces ad-hoc `
9
9
  Plugin-direct skill — thin caller over the ONE canonical home
10
10
  `${CLAUDE_PLUGIN_ROOT}/scripts/lib/kit-task-ops.sh` (`kto_task_pr`). The verb logic lives there,
11
11
  never inline here (kit-engine-boundary #1/#2). The op respects `KIT_BASE_BRANCH` (default `develop`)
12
- and the `KIT_PROJECTS_V2` board toggle, so the same code serves any project.
12
+ and the `KIT_PROJECTS_V2` board toggle, so the same code serves any project. `--base <branch>`
13
+ targets another branch for one PR — a hotfix to `main` — and the push exports the target to a git
14
+ pre-push hook as `KIT_PR_BASE`.
13
15
 
14
16
  ## Inputs
15
17
 
@@ -18,6 +20,7 @@ and the `KIT_PROJECTS_V2` board toggle, so the same code serves any project.
18
20
  | Issue number | ✓ | Derived from branch name `<kind>/<N>-<slug>` if not passed |
19
21
  | Summary | ✓ | 1–3 bullets — the PR body's `## Summary` |
20
22
  | Commit message | optional | Defaults to `<role>: <issue title>` |
23
+ | `--base <branch>` | optional | Open this PR against this branch, not the configured base (`KIT_BASE_BRANCH`) — a release PR `develop` → `main`. To cherry-pick an already-merged PR onto `main`, use `cckit hotfix <pr>` instead |
21
24
 
22
25
  Ask via `AskUserQuestion` when the Summary is missing — never invent it.
23
26
 
@@ -31,6 +34,7 @@ source "${CLAUDE_PLUGIN_ROOT}/scripts/lib/kit-task-ops.sh"
31
34
 
32
35
  kto_task_pr "" "$SUMMARY" # issue # parsed from the branch
33
36
  # kto_task_pr 173 "$SUMMARY" "tech-lead: admin Clerk sign-in" # explicit
37
+ # kto_task_pr 173 "$SUMMARY" --base main # a release PR: base main, not the config's
34
38
  ```
35
39
 
36
40
  The function prints `✓ <PR-URL>`.
@@ -39,7 +43,8 @@ The function prints `✓ <PR-URL>`.
39
43
 
40
44
  - Never open a PR for a branch off the `<kind>/<N>-<slug>` convention — the op aborts with instructions
41
45
  - Never invent a Summary — ask if missing (the op refuses an empty Summary) · never push to the base branch directly
46
+ - `--base <branch>` wins over the configured base; exporting `KIT_BASE_BRANCH` does not (`load_kit_config` re-reads it from the config). `--base` with no value exits 2 before the commit and the push
42
47
  - PR mirrors issue labels · if no milestone, the op omits it (no block)
43
48
  - Commits **tracked** changes only; untracked files are listed and left alone (`git add` them first if they belong), so a copied `.env.local` never reaches a PR
44
- - Title and body follow `pr.titleStyle` and `pr.orchestratorSection` in the config (`config-and-permissions` docs)
49
+ - Title and body follow `pr.titleStyle`, `pr.orchestratorSection` and `pr.bodyStyle` in the config (`config-and-permissions` docs). `pr.bodyStyle: content` gives a `## Review` checklist for a draft in place of `## Verification`
45
50
  - If `gh pr create` fails because the branch hasn't diverged, the op surfaces the error verbatim (likely forgot to commit)
@@ -29,12 +29,16 @@ kto_task_pr_merge # open PR for the current branch
29
29
  # kto_task_pr_merge 845 # an explicit PR number
30
30
  ```
31
31
 
32
- After it returns on the base branch, run the kit-sync drift check (advisory; never blocks):
32
+ After it returns on the base branch, run the kit-sync drift check (advisory; never blocks). The
33
+ pattern is `_EO_KIT_MANAGED_RE` from `effort-ops.sh` — the same one `cckit effort close` uses, so
34
+ the two checks agree. Under `.claude/rules/` it matches only the rule files the kit ships
35
+ (`templates/rules/*.md`); a rule the project wrote itself is not flagged.
33
36
 
34
37
  ```bash
38
+ source "${CLAUDE_PLUGIN_ROOT}/scripts/lib/effort-ops.sh" # _EO_KIT_MANAGED_RE
35
39
  MAIN_WT=$(git worktree list --porcelain | awk '/^worktree /{print $2; exit}')
36
40
  KIT_TOUCHED=$(git -C "$MAIN_WT" show --name-only --pretty=format: HEAD 2>/dev/null \
37
- | grep -E '^(scripts/(lib/|kit$|kit-)|\.claude/(skills|rules|hooks|lib|agents)/)' | sort -u || true)
41
+ | grep -E "$_EO_KIT_MANAGED_RE" | sort -u || true)
38
42
  if [[ -n "$KIT_TOUCHED" ]]; then
39
43
  echo ""
40
44
  echo "⚠ kit-sync: this change touched kit-managed files — review for upstream (/kit-contribute):"
@@ -46,6 +50,7 @@ fi
46
50
  ## Rules
47
51
 
48
52
  - Never merge a DRAFT PR — undraft first
53
+ - An effort's PR (head `effort/*`) is refused: merge it with `cckit effort close <N>`, which snapshots the per-sub diffs before the squash. `KIT_FORCE=1` overrides, with a warning
49
54
  - Never force-push to the base branch
50
55
  - If rebase conflicts can't auto-resolve, the op aborts cleanly and surfaces the conflicting files
51
56
  - If merge fails for a non-conflict reason (failing checks), the op reports verbatim and does not retry
@@ -23,9 +23,13 @@ here (kit-engine-boundary #1/#2 — same single-implementation principle as the
23
23
  workspace root *with at least one member*; **else nothing**. A dependency-free root is skipped so
24
24
  pnpm can't plant an empty `pnpm-lock.yaml` the captain then holds the PR on. `installPaths`
25
25
  entries that point outside the worktree are refused. `KIT_WT_INSTALL=0` opts out entirely
26
- - the **claim precheck** (#124): warns when the issue is already In Progress on the board —
27
- another session may own it
28
- - the live-session **collision guard**: never disturbs a worktree a live session is sitting in
26
+ - the **session claim** (#384): refuses the start (rc 1, nothing created) when another live session
27
+ already claims the issue in `<git-common-dir>/kit-sessions/`. `cckit start --force <N>` or
28
+ `KIT_FORCE=1` starts anyway; `cckit claims` lists the live claims. Re-running from the claiming
29
+ session, or from inside the claimed worktree, is not a collision
30
+ - the **board precheck** (#124): warns — never refuses — when the issue is already In Progress or
31
+ In Review on the board; another session may own it
32
+ - the pool **collision guard**: a pooled worktree a live session claims is never recycled
29
33
  - the board update: issue → In Progress (when Projects v2 is enabled)
30
34
 
31
35
  ## Inputs
@@ -35,10 +39,6 @@ here (kit-engine-boundary #1/#2 — same single-implementation principle as the
35
39
  | Issue number | ✓ | `123` |
36
40
  | Slug | optional | Short kebab suffix; defaults to a slug of the issue title |
37
41
 
38
- **Worktree-first, always.** Every start gets its own isolated worktree — one branch per worktree,
39
- never a shared checkout. This is what makes parallel / sub-agent work safe and keeps a read-only
40
- base checkout untouched.
41
-
42
42
  ## Execution
43
43
 
44
44
  ```bash
@@ -11,15 +11,31 @@ Plugin-direct skill — the script resolves from `${CLAUDE_PLUGIN_ROOT}`.
11
11
  ## What it does
12
12
 
13
13
  Runs `${CLAUDE_PLUGIN_ROOT}/scripts/task-sync.sh` — pure bash over `gh` CLI + jq. Reads
14
- `.claude/kit.config.json` (from the working directory) for the repo and board. Read-only —
15
- never mutates state.
14
+ `.claude/kit.config.json` (from the working directory) for the repo and board. Read-only on
15
+ GitHub — it never mutates the board.
16
16
 
17
17
  ## Execution
18
18
 
19
19
  ```bash
20
- "${CLAUDE_PLUGIN_ROOT}/scripts/task-sync.sh" [--role <Name>] [--milestone <label>]
20
+ "${CLAUDE_PLUGIN_ROOT}/scripts/task-sync.sh" [--role <Name>] [--milestone <label>] [--plan]
21
21
  ```
22
22
 
23
+ `--plan` appends `effort plan` (the session-fit view of open efforts) under the board.
24
+
25
+ ### Dashboard flags
26
+
27
+ For a TUI or statusline that polls the board, not for answering "what's the state of work?":
28
+
29
+ | Flag | Effect |
30
+ | --- | --- |
31
+ | `--json` | one JSON object: `roles`, `unassigned`, `blocked`, `stale`, `mergeQueue` |
32
+ | `--write` | write that object atomically to `<git-common-dir>/kit-sync-cache.json`; a failed or partial fetch leaves the file untouched |
33
+ | `--cached [TTL]` | print the cache with no `gh` call while it is younger than TTL seconds (default 60), else refresh it |
34
+ | `--watch [SECS]` | refresh the cache every SECS seconds (default 30), keeping the last good one when a fetch fails |
35
+
36
+ `--write`, `--cached` and `--watch` refuse `--role` / `--milestone` (exit 2). Writing the cache and
37
+ the `op.start` / `op.done` lines in `kit-events.jsonl` are the only local writes; GitHub is never mutated.
38
+
23
39
  ## Output format
24
40
 
25
41
  Markdown table grouped by Role, sorted by Status (In Progress → Blocked → Todo → In Review → Done within 7 days), followed by:
@@ -9,7 +9,7 @@ allowed-tools: Bash, Read, Write, Glob, Grep, AskUserQuestion, Task, Skill
9
9
  # kit-ux-audit — graph-driven UX/UI audit
10
10
 
11
11
  Analyze how a front-end app's **flows, data-editing surfaces, forms, and design-system usage** hang
12
- together by reasoning over a **graph** of the app — not by opening screen after screen. Two lanes,
12
+ together by reasoning over a **graph** of the app — not by opening screen after screen. Three lanes,
13
13
  one graph, one HTML report. Detection is deterministic (a script / the graph); judgment is the
14
14
  model. Never eyeball a codebase for something a script already finds — run it, read it, then think.
15
15
 
@@ -233,7 +233,8 @@ widths/paddings, anything with a visual value). Label assumed vs decided.
233
233
 
234
234
  ## Optional: seed a graphify graph at install time
235
235
 
236
- Seeding the graph once makes every later run richer and cheaper. Opt-in, outside the default flow:
236
+ A seeded graphify graph is what step 1 uses on every later run, in place of the fallback scan.
237
+ Opt-in, outside the default flow:
237
238
  1. `graphify detect` on the app → report corpus size + a token estimate.
238
239
  2. Recommend by cost: `--directed` always (this skill wants edge direction); `--mode deep` only if
239
240
  the app carries many docs/specs; `--no-viz` if > 5000 nodes; `--neo4j-push` only if the project
@@ -19,12 +19,12 @@ the `agent:auto` label to a GitHub issue. You turn that ticket into a Pull Reque
19
19
  against the integration branch, respecting every project flow — then you stop and let a human review.
20
20
 
21
21
  You are **not** the orchestrator and **not** a specialist role. You borrow the
22
- relevant specialist's conventions (read their `.claude/agents/*/AGENT.md`) but your
22
+ relevant specialist's conventions (read their <!-- IF:ADAPTER_CLAUDE -->`.claude/agents/*/AGENT.md`<!-- /IF:ADAPTER_CLAUDE --><!-- IF:ADAPTER_CODEX -->`.codex/agents/*.toml`<!-- /IF:ADAPTER_CODEX -->) but your
23
23
  job is execution-to-PR, not decision-making.
24
24
 
25
25
  ## Authority
26
26
 
27
- - ✅ Read everything (repo, docs, `.claude/`, app code)
27
+ - ✅ Read everything (repo, docs, `{{ADAPTER_DIR}}/`, app code)
28
28
  - ✅ Create a branch from the integration branch, commit, push, open a PR
29
29
  - ✅ Comment on the triggering issue (progress, or a bail notice)
30
30
  - ❌ Commit directly to the integration or release branch
@@ -46,11 +46,12 @@ job is execution-to-PR, not decision-making.
46
46
 
47
47
  ## The flow (must follow exactly)
48
48
 
49
- 1. **Orient** — Read `CLAUDE.md`, `.claude/rules/`, and the `AGENT.md` for the issue's `role:` label.
49
+ 1. **Orient** — Read `{{ADAPTER_INSTRUCTIONS}}`, `{{ADAPTER_DIR}}/rules/`, and the agent definition for the issue's `role:` label.
50
50
  Then read the AGENT.md of every surface your change will touch — not just the issue's role.
51
51
  If the issue implies touching UI, ALSO read the frontend agent + the UI-convention rules,
52
52
  regardless of the `role:` label.
53
- 2. **Branch** — Derive `kind` from the `kind:` label (default `task`). Then branch from the
53
+ 2. **Branch** — Derive `kind` from the `kind:` label (default `task`; also `task` when the label is
54
+ not one of feat, fix, task, chore, security, scaffold, ci, adr, spike, plan). Then branch from the
54
55
  integration branch: `git checkout -B "<kind>/<issue#>-<slug>" origin/<integration-branch>`
55
56
  (slug = short kebab title, strip `[Role]`, ≤40 chars).
56
57
  3. **Implement** — Only what the issue asks. Match surrounding style, naming, comment density.
@@ -30,7 +30,7 @@ Authority:
30
30
 
31
31
  ## Stack
32
32
 
33
- Read the project's actual backend stack from `CLAUDE.md` and `.claude/kit.config.json` before acting — framework, ORM, database, queue. Don't assume.
33
+ Read the project's actual backend stack from `{{ADAPTER_INSTRUCTIONS}}` and `{{CONFIG_REL}}` before acting — framework, ORM, database, queue. Don't assume.
34
34
 
35
35
  ## Workflow
36
36
 
@@ -4,6 +4,7 @@ description: Designer sub-agent. Owns the design system, brand, screens, motion,
4
4
  when_to_use: Any visual decision (color, spacing, typography, layout, animation), component design, screen design, brand questions, design system updates, UX writing, accessibility for UI surfaces.
5
5
  tools: [Read, Edit, Write, Grep, Glob, Bash]
6
6
  skills:
7
+ - page-design
7
8
  - emil-design-eng
8
9
  - impeccable
9
10
  - web-design-guidelines
@@ -34,6 +35,7 @@ Authority:
34
35
 
35
36
  | Scenario | Skill(s) |
36
37
  | --------------------------------------- | ------------------------------------------- |
38
+ | Build or change a page | `page-design` — it calls the three below |
37
39
  | New component | `emil-design-eng` |
38
40
  | Critique / audit an existing screen | `impeccable` |
39
41
  | Review rendered UI — a11y, focus, UX | `web-design-guidelines` |
@@ -29,7 +29,7 @@ Authority:
29
29
 
30
30
  ## Stack
31
31
 
32
- Read the project's actual infra from `CLAUDE.md`, `.claude/kit.config.json`, and any ops/infra docs before acting. Confirm the cloud provider and services in use — don't assume.
32
+ Read the project's actual infra from `{{ADAPTER_INSTRUCTIONS}}`, `{{CONFIG_REL}}`, and any ops/infra docs before acting. Confirm the cloud provider and services in use — don't assume.
33
33
 
34
34
  ## Workflow
35
35
 
@@ -3,7 +3,8 @@ name: editor
3
3
  description: Editor sub-agent. Owns written content — structure, clarity, voice, line editing, and publishing readiness. Invoked for drafting, revising, or critiquing any prose deliverable.
4
4
  when_to_use: Drafting or revising articles/docs/copy, structural edits, line editing, tone/voice consistency, headline + hook work, publish-readiness review.
5
5
  tools: [Read, Edit, Write, Grep, Glob]
6
- skills: []
6
+ skills:
7
+ - copywriting
7
8
  ---
8
9
 
9
10
  # Editor Sub-Agent — {{PROJECT_NAME}}
@@ -29,6 +30,13 @@ Authority:
29
30
  3. **Line** — concision, active voice, kill filler, vary rhythm.
30
31
  4. **Proof** — grammar, consistency, names, links.
31
32
 
33
+ ## Marketing copy
34
+
35
+ For a page meant to persuade — a homepage, a landing page, a pricing or feature page, a headline,
36
+ a call to action — follow the `copywriting` skill: gather the page purpose, audience and offer
37
+ before writing, then draft from its frameworks. Use the four editing passes above on the result.
38
+ An article, a doc or a report needs no copywriting pass.
39
+
32
40
  ## Voice + style
33
41
 
34
42
  - Edit in diffs or tracked suggestions — show what changed and why in one line
@@ -54,7 +54,7 @@ Authority:
54
54
 
55
55
  ## Stack
56
56
 
57
- Read the project's actual frontend stack from `CLAUDE.md` and `.claude/kit.config.json` — framework, styling, state libs. Don't assume.
57
+ Read the project's actual frontend stack from `{{ADAPTER_INSTRUCTIONS}}` and `{{CONFIG_REL}}` — framework, styling, state libs. Don't assume.
58
58
 
59
59
  ## Architecture rules
60
60
 
@@ -47,7 +47,7 @@ Your authority:
47
47
  - **Fallback always** (hard rule from `kit-local.sh`): any non-zero exit → use the non-local path.
48
48
  - Never paste a full long original into the session when a digest succeeded (kit-digest rule).
49
49
  - Don't "improve" the chore into judgment work — if the task grows a decision, hand it back.
50
- - Config lives in `.claude/kit.config.json` → `.local {enabled, port, model}`; `KIT_LOCAL_*` env wins.
50
+ - Config lives in `{{CONFIG_REL}}` → `.local {enabled, port, model}`; `KIT_LOCAL_*` env wins.
51
51
 
52
52
  ## Voice + style
53
53
 
@@ -4,9 +4,9 @@ description: Project Manager sub-agent. Reads GitHub as source of truth, surface
4
4
  when_to_use: When the orchestrator needs "what's the state of work?", planning the next sprint, identifying blockers, drafting issues for new scope, or healing broken plan↔issue links.
5
5
  tools: [Bash, Read, Edit, Grep, Glob]
6
6
  skills:
7
- - task-sync
8
- - task-new
9
- - task-close
7
+ - kit-task-sync
8
+ - kit-task-new
9
+ - kit-task-close
10
10
  - morning-briefing
11
11
  ---
12
12
 
@@ -34,8 +34,8 @@ Never trust a stale session snapshot — re-fetch from `gh`.
34
34
 
35
35
  ## Capabilities
36
36
 
37
- 1. **State report** — delegate to `task-sync`; add a 3-bullet exec summary (what changed, critical blockers, recommended next action).
38
- 2. **Issue drafting** — draft title + role + kind + priority + body, show it, file via `task-new` only on confirm. **Group coupled work into one issue** — a sequenced migration/DDL chain is ONE issue + ONE PR by default, not one per file; split only for independent steps or a separate review gate (backfill, RLS change).
37
+ 1. **State report** — delegate to `kit-task-sync`; add a 3-bullet exec summary (what changed, critical blockers, recommended next action).
38
+ 2. **Issue drafting** — draft title + role + kind + priority + body, show it, file via `kit-task-new` only on confirm. **Group coupled work into one issue** — a sequenced migration/DDL chain is ONE issue + ONE PR by default, not one per file; split only for independent steps or a separate review gate (backfill, RLS change).
39
39
  3. **Plan↔issue crosslink healing** — find plans missing an `issue:`; propose links.
40
40
  4. **Blocker analysis** — walk each `priority:p1` issue's "Blocked by" refs; flag ready-to-unblock and critical chains.
41
41
  5. **Milestone health** — % complete, stale (>14d) items, items missing acceptance criteria.
@@ -27,7 +27,7 @@ Authority:
27
27
 
28
28
  ## Stack
29
29
 
30
- Read the project's actual stack from `CLAUDE.md` and `.claude/kit.config.json` before acting. Do not assume a framework — confirm what's in the repo.
30
+ Read the project's actual stack from `{{ADAPTER_INSTRUCTIONS}}` and `{{CONFIG_REL}}` before acting. Do not assume a framework — confirm what's in the repo.
31
31
 
32
32
  ## ADR format
33
33
 
@@ -36,13 +36,18 @@ acceptable paths (use an array when the answer is legitimately split across docs
36
36
  {"id": "abs-01", "q": "What is the DB admin password?", "expect": "NONE"}
37
37
  ```
38
38
 
39
- **Quality** — a claim-style prompt plus a `must` rubric (the required points). The judge scores the
40
- answer's coverage of those points, not its tone — the rubric is what de-biases the judge:
39
+ **Quality** — a claim-style prompt plus a `must` rubric (the required points). The model writes a
40
+ full answer from the docs, and the judge scores that answer's coverage of the points, not its tone —
41
+ the rubric is what de-biases the judge:
41
42
 
42
43
  ```json
43
- {"id": "qual-01", "claim": "Summarize our release process.", "must": ["version bumped", "changelog updated", "tag published"]}
44
+ {"id": "qual-01", "claim": "Summarize our release process.", "must": ["version bumped", "changelog updated", "tag published"], "source": "releasing.md"}
44
45
  ```
45
46
 
47
+ `source` is optional and the runner does not read it: it names the doc the rubric was written from,
48
+ so a reviewer can check each point against that page. Write one point per fact, and only facts the
49
+ page states.
50
+
46
51
  ## Path matching
47
52
 
48
53
  Matching is lenient about *where* a path is rooted (a leading `./` or a leading knowledge-dir prefix
@@ -59,6 +64,7 @@ scripts/benchmark/run-quality.sh --dry
59
64
  # live run (uses the configured model backend)
60
65
  scripts/benchmark/run.sh # retrieval + adversarial + abstain
61
66
  scripts/benchmark/run-quality.sh # quality (judged)
67
+ scripts/benchmark/run-quality.sh --answers out/ # also keep each answer (out/<id>.txt) and the judge's reply (out/<id>.judge.txt)
62
68
  scripts/benchmark/report.sh # writes RESULTS.md a non-expert can read
63
69
  ```
64
70