@jeiemgi/cckit 0.8.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 (309) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/AGENTS.md +169 -21
  3. package/README.md +505 -35
  4. package/SECURITY.md +5 -0
  5. package/bin/cckit +189 -20
  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/guard-raw-git-ops-test.sh +8 -0
  59. package/scripts/hook-adapter-test.sh +193 -0
  60. package/scripts/init-content-test.sh +225 -0
  61. package/scripts/init-guided-test.sh +474 -0
  62. package/scripts/init-recipes-test.sh +104 -0
  63. package/scripts/init-upgrade-test.sh +341 -2
  64. package/scripts/init.sh +746 -95
  65. package/scripts/instruction-budget-baseline.txt +8 -0
  66. package/scripts/instruction-budget-lint-test.sh +166 -0
  67. package/scripts/instruction-budget-lint.sh +219 -0
  68. package/scripts/integrations-check-test.sh +200 -0
  69. package/scripts/integrations-check.sh +157 -0
  70. package/scripts/kit-add-test.sh +214 -0
  71. package/scripts/kit-add.sh +305 -5
  72. package/scripts/kit-adopt-test.sh +16 -0
  73. package/scripts/kit-adopt.sh +3 -2
  74. package/scripts/kit-digest.sh +2 -2
  75. package/scripts/kit-doctor-test.sh +293 -0
  76. package/scripts/kit-doctor.sh +272 -140
  77. package/scripts/kit-export-project-test.sh +3 -3
  78. package/scripts/kit-remove-test.sh +19 -0
  79. package/scripts/kit-routines.sh +2 -2
  80. package/scripts/kit-self-update.sh +1 -1
  81. package/scripts/kit-version-check-test.sh +4 -0
  82. package/scripts/kit-version-check.sh +4 -2
  83. package/scripts/knowledge-lint.sh +4 -4
  84. package/scripts/leak-fence-test.sh +89 -0
  85. package/scripts/lib/adapter-select-test.sh +136 -0
  86. package/scripts/lib/adapter-select.sh +158 -0
  87. package/scripts/lib/agent-def-test.sh +69 -0
  88. package/scripts/lib/agent-def.sh +106 -0
  89. package/scripts/lib/agent-launch-test.sh +212 -0
  90. package/scripts/lib/agent-launch.sh +335 -0
  91. package/scripts/lib/board-view-test.sh +11 -0
  92. package/scripts/lib/board-view.sh +42 -26
  93. package/scripts/lib/branch-owner-test.sh +26 -0
  94. package/scripts/lib/branch-owner.sh +16 -9
  95. package/scripts/lib/captain-test.sh +105 -0
  96. package/scripts/lib/captain.sh +87 -8
  97. package/scripts/lib/codex-hooks-test.sh +100 -0
  98. package/scripts/lib/codex-hooks.sh +69 -0
  99. package/scripts/lib/commitlint.sh +1 -1
  100. package/scripts/lib/content-kinds-gc-test.sh +88 -0
  101. package/scripts/lib/copilot-test.sh +70 -4
  102. package/scripts/lib/copilot.sh +66 -14
  103. package/scripts/lib/effort-dispatch-test.sh +3 -3
  104. package/scripts/lib/effort-metrics-test.sh +178 -1
  105. package/scripts/lib/effort-metrics.sh +188 -35
  106. package/scripts/lib/effort-ops-test.sh +217 -7
  107. package/scripts/lib/effort-ops.sh +281 -49
  108. package/scripts/lib/effort-parity-test.sh +49 -13
  109. package/scripts/lib/effort-plan-test.sh +337 -0
  110. package/scripts/lib/effort-plan.sh +200 -23
  111. package/scripts/lib/effort-slug.sh +16 -2
  112. package/scripts/lib/effort.sh +67 -12
  113. package/scripts/lib/errors-header-test.sh +1 -1
  114. package/scripts/lib/gh-project-test.sh +35 -1
  115. package/scripts/lib/gh-project.sh +37 -16
  116. package/scripts/lib/gh-rest-test.sh +330 -0
  117. package/scripts/lib/gh-rest.sh +304 -0
  118. package/scripts/lib/hook-refresh.sh +1 -1
  119. package/scripts/lib/init-github.sh +412 -0
  120. package/scripts/lib/init-guide.sh +630 -0
  121. package/scripts/lib/integration-install-test.sh +343 -0
  122. package/scripts/lib/integration-install.sh +257 -0
  123. package/scripts/lib/integrations-test.sh +366 -0
  124. package/scripts/lib/integrations.sh +244 -0
  125. package/scripts/lib/kinds-test.sh +125 -0
  126. package/scripts/lib/kinds.sh +66 -0
  127. package/scripts/lib/kit-brief-test.sh +22 -3
  128. package/scripts/lib/kit-brief.sh +45 -5
  129. package/scripts/lib/kit-config-resolve.sh +2 -2
  130. package/scripts/lib/kit-config-test.sh +64 -1
  131. package/scripts/lib/kit-config.sh +37 -1
  132. package/scripts/lib/kit-events.sh +7 -0
  133. package/scripts/lib/kit-gc-test.sh +173 -1
  134. package/scripts/lib/kit-gc.sh +244 -37
  135. package/scripts/lib/kit-hotfix.sh +216 -0
  136. package/scripts/lib/kit-interview-test.sh +93 -0
  137. package/scripts/lib/kit-interview.sh +117 -8
  138. package/scripts/lib/kit-lib-test.sh +1 -1
  139. package/scripts/lib/kit-lib.sh +3 -3
  140. package/scripts/lib/kit-local.sh +2 -2
  141. package/scripts/lib/kit-manifest.sh +33 -1
  142. package/scripts/lib/kit-profile-test.sh +3 -3
  143. package/scripts/lib/kit-status-test.sh +112 -4
  144. package/scripts/lib/kit-status.sh +246 -16
  145. package/scripts/lib/kit-task-ops-test.sh +37 -0
  146. package/scripts/lib/kit-task-ops.sh +362 -89
  147. package/scripts/lib/kto-hotfix-test.sh +232 -0
  148. package/scripts/lib/kto-task-close-test.sh +83 -0
  149. package/scripts/lib/kto-task-new-test.sh +95 -0
  150. package/scripts/lib/kto-task-pr-merge-test.sh +97 -6
  151. package/scripts/lib/kto-task-pr-test.sh +70 -0
  152. package/scripts/lib/leak-fence.sh +89 -0
  153. package/scripts/lib/light-task-run-test.sh +255 -0
  154. package/scripts/lib/light-task-test.sh +309 -0
  155. package/scripts/lib/light-task.sh +706 -0
  156. package/scripts/lib/next-test.sh +99 -0
  157. package/scripts/lib/next.sh +9 -3
  158. package/scripts/lib/orchestration-runtime-test.sh +72 -0
  159. package/scripts/lib/orchestration-runtime.sh +57 -5
  160. package/scripts/lib/plan-machine-test.sh +15 -2
  161. package/scripts/lib/plan-machine.sh +20 -7
  162. package/scripts/lib/plan-next-test.sh +1 -1
  163. package/scripts/lib/plan-next.sh +4 -4
  164. package/scripts/lib/pr-evidence-test.sh +3 -3
  165. package/scripts/lib/pr-evidence.sh +1 -1
  166. package/scripts/lib/qa-lane-test.sh +626 -0
  167. package/scripts/lib/qa-lane.sh +1357 -0
  168. package/scripts/lib/qa-lanes-test.sh +175 -0
  169. package/scripts/lib/react-detect.sh +1 -1
  170. package/scripts/lib/render-test.sh +1 -1
  171. package/scripts/lib/review-page-test.sh +318 -0
  172. package/scripts/lib/review-page.sh +369 -0
  173. package/scripts/lib/review-stage-test.sh +62 -11
  174. package/scripts/lib/review-stage.sh +42 -60
  175. package/scripts/lib/role-identity-test.sh +65 -0
  176. package/scripts/lib/role-identity.sh +25 -2
  177. package/scripts/lib/secret-guard.sh +3 -3
  178. package/scripts/lib/session-registry-test.sh +111 -0
  179. package/scripts/lib/session-registry.sh +233 -0
  180. package/scripts/lib/stage-receipt-test.sh +14 -1
  181. package/scripts/lib/stage-receipt.sh +13 -8
  182. package/scripts/lib/task-source-file.sh +309 -0
  183. package/scripts/lib/task-source.sh +130 -0
  184. package/scripts/lib/test-env-test.sh +3 -3
  185. package/scripts/lib/test-env.sh +7 -4
  186. package/scripts/lib/upgrade-report-test.sh +120 -0
  187. package/scripts/lib/upgrade-report.sh +138 -0
  188. package/scripts/lib/version-bump.sh +3 -3
  189. package/scripts/lib/wave-result-test.sh +80 -0
  190. package/scripts/lib/wave-result.sh +127 -0
  191. package/scripts/lib/worker-brief-test.sh +5 -0
  192. package/scripts/lib/worker-brief.sh +2 -2
  193. package/scripts/lib/worktree-issue-test.sh +30 -1
  194. package/scripts/lib/worktree-issue.sh +93 -9
  195. package/scripts/lib/worktree-ports-test.sh +57 -4
  196. package/scripts/lib/worktree-start-test.sh +197 -0
  197. package/scripts/lib/worktree-start.sh +169 -32
  198. package/scripts/lib/zsh-safety-test.sh +19 -3
  199. package/scripts/marketing-walkthrough-test.sh +152 -0
  200. package/scripts/night-grant-test.sh +37 -0
  201. package/scripts/night-grant.sh +448 -0
  202. package/scripts/night-run-test.sh +8 -0
  203. package/scripts/night-run.mjs +275 -0
  204. package/scripts/night-run.test.mjs +324 -0
  205. package/scripts/orchestrate-test.sh +190 -0
  206. package/scripts/orchestrate.sh +79 -8
  207. package/scripts/portable-test.sh +11 -2
  208. package/scripts/publish.sh +28 -3
  209. package/scripts/review-lint-test.sh +7 -7
  210. package/scripts/review-lint.sh +2 -2
  211. package/scripts/review-rules.conf +8 -0
  212. package/scripts/rule-recipes-test.sh +96 -0
  213. package/scripts/self-install-test.sh +39 -9
  214. package/scripts/setup-labels.sh +18 -1
  215. package/scripts/setup-milestones.sh +1 -1
  216. package/scripts/showcase.sh +1 -1
  217. package/scripts/skill-frontmatter-lint-test.sh +4 -4
  218. package/scripts/skill-frontmatter-lint.sh +1 -1
  219. package/scripts/status-test.sh +113 -2
  220. package/scripts/status.sh +16 -3
  221. package/scripts/task-sync-test.sh +154 -0
  222. package/scripts/task-sync.sh +243 -32
  223. package/scripts/test-runner-test.sh +158 -0
  224. package/scripts/test.sh +131 -23
  225. package/scripts/update-path-test.sh +279 -0
  226. package/scripts/ux-ds-audit.sh +1 -1
  227. package/scripts/ux-graph-scan.sh +6 -6
  228. package/scripts/wave-worker.sh +54 -0
  229. package/skills/kit-add/SKILL.md +77 -0
  230. package/skills/kit-autopilot/SKILL.md +123 -12
  231. package/skills/kit-cleanup/SKILL.md +5 -2
  232. package/skills/kit-contribute/SKILL.md +4 -4
  233. package/skills/kit-docs-writer/SKILL.md +16 -6
  234. package/skills/kit-effort-close/SKILL.md +17 -8
  235. package/skills/kit-effort-new/SKILL.md +15 -9
  236. package/skills/kit-effort-pr/SKILL.md +15 -7
  237. package/skills/kit-effort-start/SKILL.md +5 -2
  238. package/skills/kit-gc/SKILL.md +5 -2
  239. package/skills/kit-next/SKILL.md +5 -1
  240. package/skills/kit-onboard/SKILL.md +3 -3
  241. package/skills/kit-page/SKILL.md +93 -0
  242. package/skills/kit-plan-next/SKILL.md +8 -4
  243. package/skills/kit-security-sweep/SKILL.md +1 -3
  244. package/skills/kit-ship/SKILL.md +2 -3
  245. package/skills/kit-status/SKILL.md +35 -4
  246. package/skills/kit-task-new/SKILL.md +3 -3
  247. package/skills/kit-task-pr/SKILL.md +7 -2
  248. package/skills/kit-task-pr-merge/SKILL.md +7 -2
  249. package/skills/kit-task-start/SKILL.md +7 -7
  250. package/skills/kit-task-sync/SKILL.md +19 -3
  251. package/skills/kit-ux-audit/SKILL.md +3 -2
  252. package/templates/agents/auto-dev.md +5 -4
  253. package/templates/agents/backend.md +1 -1
  254. package/templates/agents/designer.md +2 -0
  255. package/templates/agents/devops.md +1 -1
  256. package/templates/agents/editor.md +9 -1
  257. package/templates/agents/frontend.md +1 -1
  258. package/templates/agents/local-delegate.md +1 -1
  259. package/templates/agents/pm.md +5 -5
  260. package/templates/agents/tech-lead.md +1 -1
  261. package/templates/benchmarks/SCHEMA.md +9 -3
  262. package/templates/codex/hooks.json.tmpl +89 -0
  263. package/templates/hooks/guard-base-branch-commit.sh.tmpl +13 -7
  264. package/templates/hooks/guard-raw-git-ops.sh.tmpl +27 -14
  265. package/templates/hooks/mempal_followup.sh.tmpl +2 -2
  266. package/templates/hooks/mempal_session_start.sh.tmpl +1 -1
  267. package/templates/hooks/prepush_gate.sh.tmpl +4 -2
  268. package/templates/hooks/repo-hygiene.sh.tmpl +3 -2
  269. package/templates/instructions.md.tmpl +174 -0
  270. package/templates/kit.config.json.tmpl +3 -3
  271. package/templates/knowledge-INDEX.md.tmpl +1 -1
  272. package/templates/lib/kit-sigil.sh.tmpl +1 -1
  273. package/templates/rules/authoring.md +106 -0
  274. package/templates/rules/branch-naming.md +40 -4
  275. package/templates/rules/code-retrieval.md +63 -0
  276. package/templates/rules/delegation-brief.md +0 -3
  277. package/templates/rules/design-routing.md +3 -3
  278. package/templates/rules/effort-model.md +14 -10
  279. package/templates/rules/gate-and-review.md +94 -0
  280. package/templates/rules/issue-lifecycle.md +88 -0
  281. package/templates/rules/knowledge-base.md +1 -1
  282. package/templates/rules/mempalace.md +1 -1
  283. package/templates/rules/merge-safety.md +108 -0
  284. package/templates/rules/naming-and-ids.md +23 -17
  285. package/templates/rules/plain-language.md +59 -0
  286. package/templates/rules/plan-next.md +9 -11
  287. package/templates/rules/react-annotate.md +6 -0
  288. package/templates/rules/review-pages.md +49 -0
  289. package/templates/rules/risk-tiered-review.md +13 -4
  290. package/templates/rules/shared-checkout.md +106 -0
  291. package/templates/rules/skill-gaps.md +2 -7
  292. package/templates/rules/task-management.md +13 -1
  293. package/templates/skills/brand-voice/SKILL.md +91 -0
  294. package/templates/skills/brand-voice/references/voice-template.md +61 -0
  295. package/templates/skills/campaign/SKILL.md +123 -0
  296. package/templates/skills/campaign/references/plan-template.md +55 -0
  297. package/templates/skills/concrete/SKILL.md +2 -2
  298. package/templates/skills/copywriting/SKILL.md +8 -1
  299. package/templates/skills/feature-build-refine/SKILL.md +2 -4
  300. package/templates/skills/morning-briefing/SKILL.md +2 -2
  301. package/templates/skills/page-design/SKILL.md +145 -0
  302. package/templates/skills/page-design/add.json +5 -0
  303. package/templates/skills/page-design/references/design-file-template.md +40 -0
  304. package/templates/skills/page-design/references/generic-page-patterns.md +43 -0
  305. package/templates/skills/page-design/references/minimum-rules.md +42 -0
  306. package/templates/skills/speckit/SKILL.md +4 -5
  307. package/templates/skills/supabase-patterns/SKILL.md +1 -1
  308. package/commands/kit-add.md +0 -42
  309. package/templates/CLAUDE.md.tmpl +0 -106
@@ -0,0 +1,123 @@
1
+ ---
2
+ name: campaign
3
+ description: >
4
+ Turn one marketing goal into a campaign plan, get it approved, then break it into pieces of work
5
+ the team can take one at a time — light tasks or an effort's sub-issues.
6
+ when_to_use: >
7
+ "plan a campaign", "we're launching X", "we need a launch plan", "what should we publish for",
8
+ "break this campaign into tasks", "content plan for next month". SKIP to write one piece (use
9
+ copywriting), to set the brand voice (use brand-voice), and for a single task with no plan.
10
+ metadata:
11
+ version: 1.0.0
12
+ ---
13
+
14
+ # Campaign
15
+
16
+ A campaign is one goal, one plan, and the pieces that deliver it. This skill writes the plan, gets
17
+ it approved, and records each piece as a unit of work. It does not write the pieces: `copywriting`
18
+ and the Editor do, one piece at a time, after the plan is approved.
19
+
20
+ ## 1 · Read before asking
21
+
22
+ - `brand/voice.md` — the audience, the key messages and the banned phrasings are already decided
23
+ there. If the file does not exist, say so and offer the `brand-voice` skill first; a campaign
24
+ planned without it is planned on a guess.
25
+ - `{{PLANS_DIR}}` — an existing plan for the same goal is continued, not duplicated.
26
+ - The open work: `cckit task list`, and `cckit sync` when the project uses GitHub issues.
27
+
28
+ ## 2 · The brief
29
+
30
+ Ask one question at a time, each with the answer you would propose. Stop asking when the five
31
+ lines below are filled.
32
+
33
+ | Line | Rule |
34
+ | --- | --- |
35
+ | **Goal** | One outcome and one number with a date: "120 trial sign-ups by 30 June". A goal with no number is asked for again. |
36
+ | **Audience** | One audience from `brand/voice.md`. A second audience is a second campaign. |
37
+ | **Message** | One key message from `brand/voice.md`. A message marked `unproven` there needs its proof before the plan is approved. |
38
+ | **Channels** | Where the audience already is. Each channel named here gets at least one piece. |
39
+ | **Approver** | The person who approves the plan and each piece. They need a GitHub account. |
40
+
41
+ ## 3 · The plan file
42
+
43
+ Write `{{PLANS_DIR}}/{{PROJECT_SLUG}}-pm-campaign-<name>.md` from `references/plan-template.md`.
44
+ Keep the headings. The **Pieces** table is the decomposition:
45
+
46
+ - **One row per piece.** A piece is one thing a reader meets: a post, a page, an email, a brief.
47
+ - **Each piece names its one action** — what the reader does next. Two actions are two pieces.
48
+ - **Kind** is one of `post`, `campaign`, `brand`, `research`.
49
+ - **Order** is `p0`–`p3`: what must exist before something else can be written is the higher
50
+ priority. Write the dependency in the row ("after the pricing page").
51
+ - **At most eight pieces.** More than eight is two campaigns, or a second wave planned when the
52
+ first is done.
53
+ - **No date you were not given.** A due date comes from the person or from the goal's date.
54
+
55
+ ## 4 · Approval comes before the pieces
56
+
57
+ Show the plan for approval before recording any piece — as a review page where the session has a
58
+ browser (`cckit page mode` prints `page`), in the conversation where it does not. Record nothing
59
+ until the approver says yes. Changes they ask for go into the plan file first.
60
+
61
+ ## 5 · Record the pieces
62
+
63
+ Ask which list this project uses:
64
+
65
+ ```bash
66
+ cckit task default # prints: light or: issues
67
+ ```
68
+
69
+ ### `light` — the task list in the project
70
+
71
+ The plan and its pieces travel in one review:
72
+
73
+ ```bash
74
+ cckit task new --kind campaign "Campaign plan: <name>"
75
+ cckit task start <id> # prints the folder for this work
76
+ ```
77
+
78
+ In that folder: save the plan file, then record one task per row of the Pieces table, **from
79
+ inside that folder** so the tasks travel with the plan:
80
+
81
+ ```bash
82
+ cckit task new --kind <kind> --priority <p0-p3> --body "<channel · the one action · depends on>" "<piece title>"
83
+ ```
84
+
85
+ Write each task's id into its row of the plan. Then send plan and pieces for review:
86
+
87
+ ```bash
88
+ cckit task finish <id> "<name>: plan and <n> pieces" --all
89
+ ```
90
+
91
+ Give the approver the link. When that review is approved and merged, every piece is on the shared
92
+ list as not started; `cckit task next` names the first one.
93
+
94
+ ### `issues` — GitHub issues
95
+
96
+ One effort, one sub-issue per piece:
97
+
98
+ ```bash
99
+ cckit effort new "<name>" "<piece title> :: <channel · the one action>" "<piece title> :: <…>" --kind campaign --goal "<the goal line>" --scope "<the Pieces table, one line each>" --verification "<the number and its date>"
100
+ cckit effort start <effort>
101
+ ```
102
+
103
+ A title is at most six plain words, with no punctuation clauses; `effort new` refuses the whole
104
+ effort when one title fails, and creates nothing. Commit the plan file on the effort branch.
105
+ `cckit effort pr <effort>` opens the one review when the pieces are done.
106
+
107
+ ## 6 · After
108
+
109
+ - Each piece is taken, drafted and sent for review on its own (`cckit task start <id>` …
110
+ `cckit task finish <id> "<summary>" --all`, or the sub-issue flow). `--all` includes the draft
111
+ file the piece created; without it the review opens without the draft. Fill the plan's
112
+ `## Deliverables` row when a piece's review opens.
113
+ - When the goal's date passes, add the measured number to `## Result`. A campaign with no measured
114
+ result is recorded as *not measured*, never as a success.
115
+
116
+ ## Rules
117
+
118
+ - **One goal per campaign.** A second goal is a second plan.
119
+ - **The plan is a file, the approval is a review.** A plan that exists only in the conversation is
120
+ lost with it.
121
+ - **Never record a piece before the plan is approved.** Unapproved pieces become work nobody asked
122
+ for.
123
+ - **Do not write the pieces here.** This skill ends when the pieces are recorded.
@@ -0,0 +1,55 @@
1
+ ---
2
+ title: '<project> — <campaign name>'
3
+ role: PM
4
+ date: YYYY-MM-DD
5
+ version: '1.0'
6
+ status: Draft
7
+ subtitle: '<the goal, in one sentence>'
8
+ tags: [campaign]
9
+ ---
10
+
11
+ <!-- Written by the campaign skill. Keep the headings: the skill and the reviewer find their place
12
+ by them. -->
13
+
14
+ ## Goal
15
+
16
+ <!-- One outcome and one number with a date. -->
17
+
18
+ ## Audience
19
+
20
+ <!-- One audience, as `brand/voice.md` names it. -->
21
+
22
+ ## Message
23
+
24
+ <!-- One key message from `brand/voice.md`, and its proof. -->
25
+
26
+ ## Channels
27
+
28
+ <!-- One line per channel: the channel, and why this audience is there. -->
29
+
30
+ ## Pieces
31
+
32
+ <!-- One row per piece; at most eight. Kind: post · campaign · brand · research. Order: p0–p3.
33
+ Task: the id `cckit task new` printed, or the sub-issue number.
34
+
35
+ | # | Piece | Kind | Channel | The one action | Order | Depends on | Due | Task |
36
+ | --- | --- | --- | --- | --- | --- | --- | --- | --- |
37
+ | 1 | <title> | post | <channel> | <what the reader does next> | p1 | — | <date or —> | <id> |
38
+ -->
39
+
40
+ ## Timeline
41
+
42
+ <!-- Only dates the person gave or the goal's date implies. -->
43
+
44
+ ## Measure
45
+
46
+ <!-- The number from the goal, where it is read, and who reads it on the goal's date. -->
47
+
48
+ ## Deliverables
49
+
50
+ | PR | Description | Status |
51
+ | --- | ----------- | ------ |
52
+
53
+ ## Result
54
+
55
+ _Not measured yet._
@@ -113,5 +113,5 @@ subject has become the thing it audits.
113
113
  ## Applied to itself
114
114
 
115
115
  This file was written under its own rules: no preamble, no closing summary, no adjective without a
116
- datum. The catalogue's first client is the assistant — commit messages that open with a
117
- self-narrating line (O2) and close by restating their own body (O4) are the most common case.
116
+ datum. The catalogue's first client is the assistant: a commit message that opens with a
117
+ self-narrating line (O2) and closes by restating its own body (O4).
@@ -11,6 +11,12 @@ You are an expert conversion copywriter. Your goal is to write marketing copy th
11
11
 
12
12
  ## Before Writing
13
13
 
14
+ **Read the brand voice first:**
15
+ If `brand/voice.md` exists (the `brand-voice` skill writes it), read it before anything else. Its
16
+ `## Voice`, `## Key messages`, `## Banned phrasings` and `## Words we use` sections are decided:
17
+ write within them and do not ask the person to decide them again. A key message marked `unproven`
18
+ is not stated as fact.
19
+
14
20
  **Check for product marketing context first:**
15
21
  If `.agents/product-marketing.md` exists (or `.claude/product-marketing.md`, or the legacy `product-marketing-context.md` filename, in older setups), read it before asking questions. Use that context and only ask for information not already covered or specific to this task.
16
22
 
@@ -198,7 +204,8 @@ Examples:
198
204
 
199
205
  ## Voice and Tone
200
206
 
201
- Before writing, establish:
207
+ If `brand/voice.md` exists, its `## Voice` section answers the questions below: use it. Otherwise,
208
+ before writing, establish:
202
209
 
203
210
  **Formality level:**
204
211
  - Casual/conversational
@@ -22,8 +22,6 @@ You are building features for a **Next.js 15 (App Router) + React 19 + TypeScrip
22
22
  - **i18n:** i18next — every user-facing string goes through `t()`
23
23
  - **Icons:** lucide-react, always with an explicit `className` for sizing
24
24
 
25
- Follow the conventions below exactly. They are non-negotiable.
26
-
27
25
  ---
28
26
 
29
27
  ## 1. Feature Folder Architecture
@@ -65,7 +63,7 @@ export * from "./constants";
65
63
 
66
64
  - **Inside** the feature boundary, use **relative** imports (`"./types"`, `"../constants"`) — never `@/features/<model>/…`.
67
65
  - **Outside** consumers import from the barrel: `import { ModelForm, FOO_LABELS } from "@/features/<model>"`.
68
- - **No `src/lib/<model>/`** — feature-specific helpers live in the feature's `constants.ts`. `src/lib/` is only for truly generic, feature-agnostic utilities (`date.ts`, `utils.ts`, `supabase/`, `validations.ts`).
66
+ - **No `src/lib/<model>/`** — feature-specific helpers live in the feature's `constants.ts`. `src/lib/` is only for feature-agnostic utilities (`date.ts`, `utils.ts`, `supabase/`, `validations.ts`).
69
67
  - **No shims** — when moving code, rewrite all import paths with `sed` and delete the old files. Never leave a re-export stub behind.
70
68
 
71
69
  ---
@@ -119,7 +117,7 @@ export type ModelFormData = z.infer<ReturnType<typeof makeModelSchema>>;
119
117
 
120
118
  ### Populate edit data via `values` — NEVER `useEffect + reset()`
121
119
 
122
- This is critical. The fetched record arrives asynchronously; feed it through RHF's `values` prop, which re-initializes the form when its reference changes. `values: undefined` while loading keeps the form at `defaultValues`. `useEffect + reset()` is a banned anti-pattern (stale closures, fires after render).
120
+ The fetched record arrives asynchronously; feed it through RHF's `values` prop, which re-initializes the form when its reference changes. `values: undefined` while loading keeps the form at `defaultValues`. `useEffect + reset()` is a banned anti-pattern (stale closures, fires after render).
123
121
 
124
122
  ```typescript
125
123
  const isEdit = !!modelId;
@@ -8,7 +8,7 @@ when_to_use: When the owner starts their day or asks for a morning briefing / da
8
8
 
9
9
  ## What it does
10
10
 
11
- Reads GitHub (source of truth) + active plans, then delivers a concise briefing. Reads repo + plans dir from `.claude/kit.config.json`.
11
+ Reads GitHub (source of truth) + active plans, then delivers a concise briefing. Reads repo + plans dir from `{{CONFIG_REL}}`.
12
12
 
13
13
  ## How to run
14
14
 
@@ -42,5 +42,5 @@ Then produce:
42
42
 
43
43
  - No long intros — straight to the briefing
44
44
  - Bullets only · keep under 30 lines · skip empty sections
45
- - Language: match the owner (see `.claude/rules/communication-style.md`)
45
+ - Language: match the owner (see `{{ADAPTER_DIR}}/rules/communication-style.md`)
46
46
  - Source of truth is GitHub — never invent task state
@@ -0,0 +1,145 @@
1
+ ---
2
+ name: page-design
3
+ description: >
4
+ Build or change a page with three named design skills in a fixed order: impeccable (direction),
5
+ emil-design-eng (motion), web-design-guidelines (audit). A design brief before any code, a
6
+ self-review after.
7
+ when_to_use: >
8
+ "build a landing page", "make a page for", "redo the homepage", "this looks generic", "it looks
9
+ AI-made", a task of kind `page`. SKIP for copy with no layout (use copywriting), one component,
10
+ and logo or brand work.
11
+ metadata:
12
+ version: 1.0.0
13
+ ---
14
+
15
+ # Page design
16
+
17
+ A page built here goes through three third-party design skills in a fixed order, with a written
18
+ brief before the first line of code and a written self-review after the build. This skill holds
19
+ the order, what each skill decides, and what to do when one of them is not installed. It contains
20
+ none of their content.
21
+
22
+ | Step | Skill | Decides | Made by |
23
+ | --- | --- | --- | --- |
24
+ | 1 | `impeccable` | direction: what the page is for, its type, layout and colour, and what it must not look like | pbakaus, Apache-2.0 |
25
+ | 2 | `emil-design-eng` | interaction and motion on the chosen design | Emil Kowalski, MIT |
26
+ | 3 | `web-design-guidelines` | the audit of the finished code: accessibility, focus, reduced motion | Vercel, MIT per its README |
27
+
28
+ All three are optional and installed per project: `cckit add impeccable`,
29
+ `cckit add emil-design-eng`, `cckit add web-design-guidelines`, then `cckit doctor --fix`.
30
+
31
+ ## 0 · Find out what is installed, and where you are running
32
+
33
+ 1. **Which of the three skills are present.** A skill is present when this session lists it, or
34
+ one of these files exists: `.claude/skills/<name>/SKILL.md`, `.agents/skills/<name>/SKILL.md`,
35
+ `~/.claude/skills/<name>/SKILL.md`. Check each of the three by name.
36
+ 2. **Whether anyone is watching.** The run is unattended when `CCKIT_HEADLESS` is set in the
37
+ environment, or when the prompt says so. Nobody answers a question in an unattended run.
38
+ 3. **The design file.** `docs/design/<task-id>.md` when the work is a task with an id, else
39
+ `docs/design/<page-name>.md`. The brief, the list of skills and the self-review all go in this
40
+ one file, from `references/design-file-template.md`. It is committed with the page.
41
+
42
+ Write the `## Skills` section of the design file now: one row per skill, `present` or
43
+ `not installed`. A skill that is not installed is written as `not installed` here and stays that
44
+ way to the end. Never write that a skill was applied when it was not loaded.
45
+
46
+ ## 1 · The brief, before any code
47
+
48
+ Fill the `## Brief` section of the design file. Read what the project already says first: the task
49
+ notes, `brand/voice.md`, an existing `PRODUCT.md` or `DESIGN.md`, the pages already in the project.
50
+
51
+ | Field | What to write |
52
+ | --- | --- |
53
+ | Audience | who opens this page and what they came to do, in one or two sentences |
54
+ | The one visual idea | ONE idea a person could repeat after seeing the page for five seconds. Not a mood ("clean, modern"); a thing ("the menu is the page: a single long price list, set like a printed bill") |
55
+ | Type | the families and what each is used for; why these and not the framework's default |
56
+ | Colour | the palette with values, which colour carries meaning, and what stays neutral |
57
+ | Refuses to look like | at least four concrete patterns this page will not have, picked from `references/generic-page-patterns.md`, plus any the audience would recognise as a template |
58
+
59
+ Two rules for the brief:
60
+
61
+ - **A fact you do not have is written as `not known`.** Do not invent a customer, a number or a
62
+ brand colour. In an attended run, ask one question at a time; in an unattended run, decide from
63
+ what the repository shows and say in the brief what you assumed.
64
+ - **The brief is written before code and not rewritten to match the result.** If the build
65
+ departs from it, the self-review says where and why.
66
+
67
+ Commit the design file with the brief before starting the build.
68
+
69
+ ## 2 · Direction — `impeccable`
70
+
71
+ **Present:** load `impeccable` and use it for direction only, in this order as the page needs
72
+ them: `init` once when the project has no `PRODUCT.md`, `shape` to plan the page before code,
73
+ then `typeset`, `layout` and `colorize` on what was built. Give each command the brief as its
74
+ input: the audience, the one idea and the refusals are already decided.
75
+
76
+ - **Never its live mode in an unattended run.** `live` and `generate` open a browser session and
77
+ can start the agent CLI with permission checks off. With `CCKIT_HEADLESS` set, do not run
78
+ either. In an attended run, run them only when the person asks.
79
+ - **Nobody answers `init` in an unattended run.** Take its answers from the brief. If a command
80
+ cannot go on without a person, write that in the design file and continue with the minimum
81
+ rules below for what it would have decided.
82
+
83
+ **Not installed:** say so in the design file (`impeccable: not installed`), then apply
84
+ `references/minimum-rules.md` § Direction. Those rules are cckit's own and are a floor, not a
85
+ replacement: the file says which skill was missing.
86
+
87
+ ## 3 · Interaction and motion — `emil-design-eng`
88
+
89
+ **Present:** load `emil-design-eng` alone (not the other skills of its pack) and apply it to the
90
+ interactions and animations on the page as built. It may remove an animation step 2 added: an
91
+ animation with no purpose is removed, not tuned. Record each removal in the self-review.
92
+
93
+ **Not installed:** write `emil-design-eng: not installed`, then apply
94
+ `references/minimum-rules.md` § Motion.
95
+
96
+ ## 4 · Audit — `web-design-guidelines`
97
+
98
+ **Present:** load `web-design-guidelines` and run it over the files of the page. It fetches its
99
+ rules from GitHub on every run.
100
+
101
+ - **The fetch failed, or there is no network:** write `audit: not run (the rules could not be
102
+ fetched)` in the design file. Never write that the audit passed, and never audit from memory of
103
+ the rules. Then apply `references/minimum-rules.md` § Audit and label the result as cckit's
104
+ minimum checks.
105
+ - **It ran:** fix what it found. List in the self-review each finding you did not fix, with the
106
+ reason.
107
+
108
+ **Not installed:** write `web-design-guidelines: not installed` and `audit: not run`, then apply
109
+ `references/minimum-rules.md` § Audit.
110
+
111
+ **When the three disagree, the audit wins** on accessibility and reduced motion: a contrast,
112
+ focus or motion finding from step 4 overrides a choice from step 2 or 3. Change the design, and
113
+ say so in the self-review.
114
+
115
+ ## 5 · Self-review against the brief
116
+
117
+ Open the built page (run the project's dev server and load it; in an unattended run with no
118
+ browser, read the rendered markup and say that you did not see it). Then fill `## Self-review`:
119
+
120
+ 1. **The one visual idea** — is it on the page? Quote where. If it was dropped, say so.
121
+ 2. **Each refusal** — one line per pattern from the brief: `absent`, or `present at <file:line>`.
122
+ A pattern that is present is fixed before the work goes to review, or listed as not fixed with
123
+ the reason.
124
+ 3. **Type and colour** — do the families and values in the code match the brief?
125
+ 4. **Skills** — final state of each: `applied`, `not installed`, or `loaded, could not run:
126
+ <why>`; and `audit: ran, N findings, M fixed` or `audit: not run (<why>)`.
127
+ 5. **Not verified** — everything you could not check: not seen in a browser, no small screen
128
+ tried, a state (empty, error, long text) not built.
129
+
130
+ Commit the design file with the page. The review names the file, so the reviewer reads the brief
131
+ beside the page.
132
+
133
+ ## Rules
134
+
135
+ - **Name what was used, and only that.** The words "used", "applied" and "passed" are for a
136
+ skill that was loaded in this session and ran. `cckit task run` reads which skills were loaded
137
+ from the agent's own event output and prints that list in the review; a claim in the design
138
+ file that the list contradicts is a defect in the work.
139
+ - **A missing skill is reported, then worked around.** The page is still built, with the minimum
140
+ rules, and the design file says which skill was missing.
141
+ - **One idea.** A second visual idea is cut, not added.
142
+ - **No third-party content is copied** into the project's files or the design file: refer to a
143
+ skill's rule by name, do not paste it.
144
+ - **To record page work** in a project with a task list: `cckit task new --kind page "<title>"`.
145
+ The kind is what makes `cckit task run` ask for this skill and list the skills in the review.
@@ -0,0 +1,5 @@
1
+ {
2
+ "label": "page-design",
3
+ "summary": "cckit's own skill for a page: a design brief before any code, three named third-party design skills in a fixed order, a self-review after. Also makes every task of the project a page task.",
4
+ "config": { "key": "tasks.design", "value": true }
5
+ }
@@ -0,0 +1,40 @@
1
+ # Design: <page or task title>
2
+
3
+ Task: `<task-id>` · Page: `<path of the page file>` · Date: <YYYY-MM-DD>
4
+
5
+ ## Skills
6
+
7
+ | Skill | At the start | At the end |
8
+ | --- | --- | --- |
9
+ | `impeccable` | present / not installed | applied / not installed / loaded, could not run: <why> |
10
+ | `emil-design-eng` | present / not installed | applied / not installed / loaded, could not run: <why> |
11
+ | `web-design-guidelines` | present / not installed | applied / not installed / loaded, could not run: <why> |
12
+
13
+ Audit: ran, <N> findings, <M> fixed / not run (<why>)
14
+
15
+ ## Brief
16
+
17
+ Written before any code. Not edited after the build.
18
+
19
+ - **Audience:**
20
+ - **The one visual idea:**
21
+ - **Type:**
22
+ - **Colour:**
23
+ - **Refuses to look like:**
24
+ 1.
25
+ 2.
26
+ 3.
27
+ 4.
28
+ - **Assumed, not known:**
29
+
30
+ ## Self-review
31
+
32
+ Written after the build, against the brief above.
33
+
34
+ - **The one visual idea:** on the page at <file:line> / dropped because <why>
35
+ - **Refusals:**
36
+ 1. <pattern> — absent / present at <file:line>
37
+ - **Type and colour match the brief:** yes / no: <what differs>
38
+ - **Animations removed in step 3:**
39
+ - **Audit findings not fixed, with the reason:**
40
+ - **Not verified:**
@@ -0,0 +1,43 @@
1
+ # Patterns of a generic generated page
2
+
3
+ Pick at least four of these for the brief's "Refuses to look like", and check each one in the
4
+ self-review. They are the patterns an agent produces when it is asked for a page and given no
5
+ direction. A pattern is listed by what a person sees, so it can be checked by looking.
6
+
7
+ ## Structure
8
+
9
+ - A centred hero: headline, one line of grey subtext, two buttons side by side.
10
+ - Three cards in a row, each with an icon in a rounded square, a three-word title and two lines.
11
+ - The section order hero → three features → testimonials → pricing → call to action → footer,
12
+ whatever the page is for.
13
+ - Every section the same height, the same padding and the same centred column.
14
+ - Cards nested inside cards.
15
+ - A "Trusted by" row of grey logos for companies that were never named.
16
+
17
+ ## Type
18
+
19
+ - One sans-serif family (Inter, or the framework's default) for every piece of text.
20
+ - A serif headline over a sans-serif body, chosen for "elegance" and not for the content.
21
+ - Headings that differ from body text only in size.
22
+ - Centre-aligned paragraphs longer than three lines.
23
+
24
+ ## Colour
25
+
26
+ - A cream or off-white background with a single muted accent.
27
+ - A purple-to-blue gradient, on the background or on the headline text.
28
+ - Grey text on a coloured background.
29
+ - Every element at the same low contrast, so nothing is first.
30
+
31
+ ## Decoration and motion
32
+
33
+ - Every corner rounded by the same amount; every card with the same soft shadow.
34
+ - An emoji or a generic line icon standing in for each idea.
35
+ - Each section fading in as it scrolls into view.
36
+ - A hover effect on things that are not links.
37
+
38
+ ## Copy
39
+
40
+ - A headline that could sit on any company's page ("Welcome to …", "Built for the way you work").
41
+ - Three feature titles that are one adjective each.
42
+ - Testimonials, numbers or customer names that nobody supplied.
43
+ - Placeholder text left in the page.
@@ -0,0 +1,42 @@
1
+ # Minimum rules, for when a design skill is not installed
2
+
3
+ cckit's own rules. They are a floor: they keep a page from the worst defaults when one of the
4
+ three design skills is missing. They are not that skill, and the design file must still say which
5
+ skill was `not installed`. Apply only the section for the missing skill.
6
+
7
+ ## Direction — when `impeccable` is not installed
8
+
9
+ 1. Build the page around the brief's one visual idea: the first screen shows it without scrolling.
10
+ 2. Sections follow what the audience came to do, in that order. Leave out a section the brief
11
+ gives no content for.
12
+ 3. At most two type families. Headings differ from body text in weight or family, not size alone.
13
+ 4. Body text: 16px or more, lines of 45 to 75 characters, left-aligned.
14
+ 5. One colour carries meaning (the action); the rest of the palette is neutral. Use the values in
15
+ the brief, not the framework's defaults.
16
+ 6. Spacing comes from one scale. Sections do not all get the same height and padding.
17
+ 7. No pattern from the brief's "Refuses to look like" list.
18
+ 8. No invented content: no customer name, quote, logo or number the task did not supply.
19
+
20
+ ## Motion — when `emil-design-eng` is not installed
21
+
22
+ 1. An animation needs a reason a person could state: it shows where something came from, or
23
+ that an action registered. No reason, no animation.
24
+ 2. No fade-in on scroll for whole sections.
25
+ 3. Animate `transform` and `opacity` only.
26
+ 4. Interface transitions last 150 to 300ms. Something that enters eases out; nothing a person
27
+ triggers often is delayed.
28
+ 5. Hover and pressed states exist only on things that can be clicked.
29
+ 6. Under `prefers-reduced-motion: reduce`, movement is removed, not shortened.
30
+
31
+ ## Audit — when `web-design-guidelines` is not installed, or its rules cannot be fetched
32
+
33
+ Report this as "cckit's minimum checks", never as the audit. Check each in the code:
34
+
35
+ 1. Body text contrast is at least 4.5:1 against its background; large text at least 3:1.
36
+ 2. Everything clickable is a link or a button, reachable with the keyboard, with a visible focus
37
+ style.
38
+ 3. Every image has `alt` text, empty for a decorative one. Every form field has a label.
39
+ 4. One `h1`; heading levels are not skipped.
40
+ 5. The page works at a width of 360px with no horizontal scroll; tap targets are 44px or more.
41
+ 6. `prefers-reduced-motion` is honoured.
42
+ 7. The page has a `lang` attribute and a title.
@@ -122,8 +122,7 @@ Invoked as skills/slash commands; the integration sets the separator (`-` → `/
122
122
  `specify → clarify → plan → tasks → analyze → implement`. `analyze` is a cheap safety net before `implement`.
123
123
 
124
124
  **Review gates:** `.specify/workflows/speckit/workflow.yml` chains specify→plan→tasks→implement
125
- with approve/reject gates after spec and after plan. Reject aborts. Keep the human in the loop
126
- at the two highest-leverage moments.
125
+ with approve/reject gates after spec and after plan. Reject aborts.
127
126
 
128
127
  ## 5. Git extension (optional)
129
128
 
@@ -151,7 +150,7 @@ up asserting MUST-rules the code breaks on day one.
151
150
 
152
151
  1. **Map reality.** Inspect the actual structure against the skill's prescriptions — directory
153
152
  layout, module boundaries, the canonical form/component/handler patterns, data-access shape, and
154
- the items from the Stack Interview (§7). Cheap, high-signal probes: `ls src/`, find the feature
153
+ the items from the Stack Interview (§7). Probes: `ls src/`, find the feature
155
154
  or route folders, grep for the patterns the skill mandates (e.g. `"use server"`, the prescribed
156
155
  client paths, shared primitive dirs).
157
156
  2. **Classify drift** per dimension as **conforms / partial / divergent (different architecture)**,
@@ -190,12 +189,12 @@ Concrete, copy-exactly pattern references the plan/tasks/implement steps cite:
190
189
 
191
190
  ### 6c. Pre-fill the plan template
192
191
  Edit `templates/plan-template.md` Technical Context with stack defaults and wire the
193
- Constitution Check checkboxes to the actual Core Principles, so every plan starts correct.
192
+ Constitution Check checkboxes to the actual Core Principles.
194
193
 
195
194
  ## 7. Stack Interview (run before authoring the constitution + overrides)
196
195
 
197
196
  Skip any question answered by inspecting the repo (`package.json`, lockfiles, config, and
198
- `.claude/kit.config.json`). Ask the rest:
197
+ `{{CONFIG_REL}}`). Ask the rest:
199
198
 
200
199
  **A. Runtime & framework** — language+version; framework+rendering model; monorepo/single + package manager.
201
200
  **B. Data & backend** — database + access layer; auth model + role hierarchy; hard domain invariants / common traps.
@@ -79,7 +79,7 @@ export async function createThingAction(input: CreateThingInput): Promise<{ id:
79
79
 
80
80
  - **Local-first.** All DDL lands in `supabase/migrations/`; apply + validate locally. Never push DDL straight to prod.
81
81
  - **Validate the whole chain before a PR:** `supabase db reset` replays every migration + seed from scratch. A green reset is the gate to open the PR.
82
- - **Group a coupled chain into ONE PR/issue.** Don't fragment a sequenced migration set into a PR-per-file. Split only for genuinely independent migrations or a step needing its own review gate (data backfill, RLS behavior change). A single PR also has no siblings to silently revert.
82
+ - **Group a coupled chain into ONE PR/issue.** Don't fragment a sequenced migration set into a PR-per-file. Split only for independent migrations or a step needing its own review gate (data backfill, RLS behavior change). A single PR also has no siblings to silently revert.
83
83
  - **Enum `ADD VALUE` is forward-only** and can't run in the same transaction that uses the new label — isolate it as its own earlier migration.
84
84
  - **Type regen is deliberate, not automatic.** `supabase gen types` may target a *remote* project (check the script) — running it blindly can hit prod or emit types from a stale schema. Regenerate after the chain applies, type-check, then commit the generated file (last / its own PR).
85
85
  - **Human-gate DDL merges** — review the SQL; don't auto-merge agent-authored migrations.
@@ -1,42 +0,0 @@
1
- ---
2
- description: Stack a kit MODULE onto this project (e.g. `kit add software`) — turns a free workspace into a GitHub-managed island via a short wizard, without restructuring anything above it.
3
- argument-hint: "<module> (e.g. software)"
4
- allowed-tools: Bash, Read, AskUserQuestion
5
- ---
6
-
7
- # /kit-add — stack a module onto this project
8
-
9
- Modules are **apilables** (D1): a base project stays a free workspace until a module is added on
10
- demand. Adding `software` is the "build me an app" moment — it writes THIS island's
11
- `.claude/kit.config.json` (modules + wizard answers) and nothing above it (D4/D17). A module is
12
- **identity, not files** (D14): the agents/skills come from the installed plugin singleton; kit-add
13
- only writes config, manifest-tracked so it can be updated or removed cleanly.
14
-
15
- Engine (under `${CLAUDE_PLUGIN_ROOT}`):
16
- - `scripts/lib/kit-interview.sh --catalog <module>` — the module's wizard questions.
17
- - `scripts/kit-add.sh <module> --answers FILE [--dir DIR]` — derive + persist (the four-beat machine).
18
- - `scripts/kit-add.sh <module> --set k=v ... ` — same, answers as flags.
19
-
20
- ## Steps
21
-
22
- 1. **Resolve the module** from `$ARGUMENTS` (default `software` if none given). Confirm a catalog
23
- exists: `scripts/lib/kit-interview.sh --catalog <module>` (non-zero rc = unknown module → tell
24
- the user which modules exist: look in `${CLAUDE_PLUGIN_ROOT}/modules/`).
25
- 2. **Render the wizard** (the catalog already carries each question's recommended `default`).
26
- 3. **Ask with AskUserQuestion** — one batched round. For each question use its `header`,
27
- `question`, and `options`; put the `recommended` option first and label it "(Recommended)".
28
- The kit recommends; the user decides.
29
- 4. **Persist** — build `{ "<key>": "<value>", ... }` to a temp file and run
30
- `scripts/kit-add.sh <module> --answers /tmp/kit-<module>.json` (add `--dir` if not in the
31
- island root). For software the wizard covers **versioning** (GitHub vs local git),
32
- **deploy** (none / Vercel / other), and **CI** (GitHub Actions / none).
33
- 5. **Report** what changed: the island config path, `modules`, and the resolved github/deploy/ci.
34
- Note the workspace above was untouched, and that `/kit-task-start` etc. now apply here.
35
-
36
- ## Rules
37
-
38
- - **Idempotent** — running it again with the same answers is a no-op; `modules` never duplicates.
39
- - **Never hand-edit `kit.config.json`** — always go through `kit-add.sh` so the manifest stays true.
40
- - **Writes only into this island** — never above the project level without an explicit confirm
41
- (that's `kit-promote`'s job, not kit-add).
42
- - Honors `KIT_DRY_RUN` (preview) and `KIT_ASSUME_YES` (accept recommended defaults, for batch/CI).