@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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jeiemgi/cckit",
3
- "version": "0.8.0",
3
+ "version": "0.10.0",
4
4
  "private": false,
5
5
  "license": "MIT OR Apache-2.0",
6
6
  "description": "cckit — a project operating system for coding agents (CLI + Claude Code plugin).",
@@ -20,6 +20,9 @@
20
20
  "skills",
21
21
  "profiles",
22
22
  "templates",
23
+ "integrations",
24
+ "recipes",
25
+ "databases",
23
26
  "docs",
24
27
  "githooks",
25
28
  "cckit.config.json",
@@ -18,7 +18,13 @@
18
18
  "knowledge-base",
19
19
  "mempalace",
20
20
  "plan-output-format",
21
- "task-management"
21
+ "issue-lifecycle",
22
+ "merge-safety",
23
+ "gate-and-review",
24
+ "authoring",
25
+ "shared-checkout",
26
+ "task-management",
27
+ "review-pages"
22
28
  ],
23
29
  "roles": [
24
30
  "PM",
@@ -21,7 +21,13 @@
21
21
  "knowledge-base",
22
22
  "mempalace",
23
23
  "plan-output-format",
24
- "task-management"
24
+ "issue-lifecycle",
25
+ "merge-safety",
26
+ "gate-and-review",
27
+ "authoring",
28
+ "shared-checkout",
29
+ "task-management",
30
+ "review-pages"
25
31
  ],
26
32
  "roles": [
27
33
  "PM",
@@ -37,6 +43,8 @@
37
43
  ],
38
44
  "defaults": {
39
45
  "plans_format": "markdown",
40
- "memory": "off"
46
+ "memory": "off",
47
+ "content_kinds": "on",
48
+ "pr_body": "content"
41
49
  }
42
50
  }
@@ -0,0 +1,57 @@
1
+ {
2
+ "name": "marketing",
3
+ "label": "Marketing team",
4
+ "description": "Campaigns, posts, brand and research for a team that does not use git: work is planned on a task list in the project, drafted, reviewed and approved, in plain language.",
5
+ "agents": [
6
+ "pm",
7
+ "editor",
8
+ "designer",
9
+ "researcher"
10
+ ],
11
+ "skills": [
12
+ "morning-briefing",
13
+ "copywriting",
14
+ "brand-voice",
15
+ "campaign",
16
+ "page-design",
17
+ "karpathy-guidelines",
18
+ "concrete"
19
+ ],
20
+ "rules": [
21
+ "branch-naming",
22
+ "communication-style",
23
+ "plain-language",
24
+ "design-routing",
25
+ "knowledge-base",
26
+ "mempalace",
27
+ "plan-output-format",
28
+ "effort-model",
29
+ "issue-lifecycle",
30
+ "merge-safety",
31
+ "gate-and-review",
32
+ "authoring",
33
+ "shared-checkout",
34
+ "task-management",
35
+ "review-pages"
36
+ ],
37
+ "roles": [
38
+ "PM",
39
+ "Editor",
40
+ "Designer",
41
+ "Researcher"
42
+ ],
43
+ "milestones": [
44
+ "Outline",
45
+ "Draft",
46
+ "Review",
47
+ "Publish"
48
+ ],
49
+ "defaults": {
50
+ "plans_format": "markdown",
51
+ "memory": "off",
52
+ "content_kinds": "on",
53
+ "pr_body": "content",
54
+ "plain_language": "on",
55
+ "tasks": "light"
56
+ }
57
+ }
@@ -12,9 +12,15 @@
12
12
  ],
13
13
  "rules": [
14
14
  "communication-style",
15
+ "issue-lifecycle",
16
+ "merge-safety",
17
+ "gate-and-review",
18
+ "authoring",
19
+ "shared-checkout",
15
20
  "task-management",
16
21
  "mempalace",
17
- "branch-naming"
22
+ "branch-naming",
23
+ "review-pages"
18
24
  ],
19
25
  "roles": [
20
26
  "PM",
@@ -18,7 +18,13 @@
18
18
  "knowledge-base",
19
19
  "mempalace",
20
20
  "plan-output-format",
21
- "task-management"
21
+ "issue-lifecycle",
22
+ "merge-safety",
23
+ "gate-and-review",
24
+ "authoring",
25
+ "shared-checkout",
26
+ "task-management",
27
+ "review-pages"
22
28
  ],
23
29
  "roles": [
24
30
  "PM",
@@ -21,7 +21,13 @@
21
21
  "effort-model",
22
22
  "delegation-brief",
23
23
  "skill-gaps",
24
- "task-management"
24
+ "issue-lifecycle",
25
+ "merge-safety",
26
+ "gate-and-review",
27
+ "authoring",
28
+ "shared-checkout",
29
+ "task-management",
30
+ "review-pages"
25
31
  ],
26
32
  "roles": ["PM", "Tech Lead", "Designer", "DevOps", "Backend", "Frontend", "QA", "Security"],
27
33
  "milestones": ["Foundation", "MVP", "Beta", "GA"],
@@ -0,0 +1,49 @@
1
+ {
2
+ "id": "nextjs-shadcn",
3
+ "label": "Web app — Next.js + shadcn/ui",
4
+ "summary": "A website or web app you can open in the browser right away: pages, a ready-made set of buttons and forms, and one command to run it.",
5
+ "fits": "most new products — a landing page, a dashboard, an online tool, a store front.",
6
+ "recommended": true,
7
+ "profile": "software",
8
+ "stack": "nextjs",
9
+ "packageManager": "pnpm",
10
+ "folderName": "^[a-z0-9][a-z0-9._-]*$",
11
+ "requires": [
12
+ { "command": "node", "why": "Node.js runs the app; install it from https://nodejs.org (version 20.9 or newer)" },
13
+ { "command": "pnpm", "why": "pnpm downloads the app's packages; install it with: npm install -g pnpm" }
14
+ ],
15
+ "steps": [
16
+ {
17
+ "label": "Create the Next.js app",
18
+ "run": "pnpm create next-app@latest . --ts --tailwind --eslint --app --no-src-dir --import-alias \"@/*\" --use-pnpm --disable-git --no-agents-md --no-agent-feedback --yes",
19
+ "note": "Every choice is passed as a flag so a saved create-next-app preference cannot change the result. --disable-git: cckit init makes the repository and the first commit. --no-agents-md: the agent instruction files are the ones cckit writes. --no-agent-feedback: nothing is prepared for sending to a third party without the user asking."
20
+ },
21
+ {
22
+ "label": "Add shadcn/ui (design system) with its default look",
23
+ "run": "pnpm dlx shadcn@latest init --defaults --yes",
24
+ "note": "--defaults is `--template=next --preset=base-nova` in shadcn 4.23.0. It writes components.json, lib/utils.ts, the theme variables in app/globals.css and components/ui/button.tsx."
25
+ },
26
+ {
27
+ "label": "Add the basic components: card, input, label",
28
+ "run": "pnpm dlx shadcn@latest add card input label --yes"
29
+ }
30
+ ],
31
+ "verify": { "run": "pnpm build" },
32
+ "config": { "tasks": { "check": "pnpm build && pnpm lint", "design": true } },
33
+ "start": "pnpm dev",
34
+ "produces": ["package.json", "app/page.tsx", "components.json", "components/ui/button.tsx", "lib/utils.ts"],
35
+ "lastVerified": "2026-11-12",
36
+ "verifiedWith": { "create-next-app": "16.4.6", "shadcn": "4.23.0", "pnpm": "12.3.4", "node": "22.23.2" },
37
+ "sources": [
38
+ "https://nextjs.org/docs/app/api-reference/cli/create-next-app",
39
+ "https://ui.shadcn.com/docs/cli",
40
+ "https://ui.shadcn.com/docs/installation/next"
41
+ ],
42
+ "recheck": {
43
+ "drifts": [
44
+ "the create-next-app flag names (--no-agents-md, --no-agent-feedback, --disable-git, --no-src-dir)",
45
+ "what `shadcn init --defaults` expands to",
46
+ "the component names passed to `shadcn add`"
47
+ ]
48
+ }
49
+ }
@@ -0,0 +1,45 @@
1
+ # agent-skills-external.txt — bare skill names templates/agents/*.md may list that the kit does
2
+ # NOT ship. Read by scripts/agent-skills-lint.sh.
3
+ #
4
+ # A name here is OPTIONAL for the agent that lists it: it comes from a third-party skill pack or
5
+ # from the harness, and an agent scaffolded into a project without it runs without that skill.
6
+ # A bare name that is neither here nor under skills/ or templates/skills/ fails the lint, so a
7
+ # renamed kit skill cannot linger in an agent template (pm.md listed task-sync / task-new /
8
+ # task-close long after they became kit-task-*).
9
+ #
10
+ # `plugin:skill` entries (agent-skills:context7, chrome-devtools-mcp:a11y-debugging) need no line
11
+ # here: the namespace already says another plugin provides them.
12
+ #
13
+ # One name per line; blank lines and #-comments ignored. Remove a name once the kit ships it —
14
+ # the lint fails on a name that is both here and shipped.
15
+
16
+ # harness / first-party
17
+ claude-api
18
+ deep-research
19
+
20
+ # design
21
+ emil-design-eng
22
+ impeccable
23
+ web-design-guidelines
24
+
25
+ # frontend
26
+ opentui
27
+ vercel-composition-patterns
28
+ vercel-react-best-practices
29
+ gsap-core
30
+ gsap-performance
31
+ gsap-plugins
32
+ gsap-scrolltrigger
33
+ gsap-timeline
34
+
35
+ # qa
36
+ playwright-best-practices
37
+
38
+ # n8n
39
+ n8n-code-javascript
40
+ n8n-code-python
41
+ n8n-expression-syntax
42
+ n8n-mcp-tools-expert
43
+ n8n-node-configuration
44
+ n8n-validation-expert
45
+ n8n-workflow-patterns
@@ -0,0 +1,131 @@
1
+ #!/usr/bin/env bash
2
+ # agent-skills-lint-test.sh — behavioral test for the agent `skills:` resolver.
3
+ # Runs the lint against the real tree (it must be green), then against throwaway trees in a temp
4
+ # ROOT to assert each way an entry resolves and the one way it does not.
5
+ set -uo pipefail
6
+
7
+ HERE="$(cd "$(dirname "$0")" && pwd)"
8
+ REPO="$(cd "$HERE/.." && pwd)"
9
+ LINT="$HERE/agent-skills-lint.sh"
10
+ fails=0
11
+ pass() { echo "ok $1"; }
12
+ fail() { echo "FAIL $1"; fails=1; }
13
+
14
+ TMP="$(mktemp -d)"
15
+ trap 'rm -rf "$TMP"' EXIT
16
+
17
+ # A fresh temp ROOT holding the lint, one kit skill, one template skill and a one-name allowlist.
18
+ new_root() {
19
+ rm -rf "$TMP/r"
20
+ mkdir -p "$TMP/r/scripts" "$TMP/r/templates/agents" \
21
+ "$TMP/r/skills/kit-task-sync" "$TMP/r/templates/skills/morning-briefing"
22
+ cp "$LINT" "$TMP/r/scripts/"
23
+ : > "$TMP/r/skills/kit-task-sync/SKILL.md"
24
+ : > "$TMP/r/templates/skills/morning-briefing/SKILL.md"
25
+ printf '# third-party\ndeep-research\n' > "$TMP/r/scripts/agent-skills-external.txt"
26
+ }
27
+
28
+ # mk_agent <name> <frontmatter skills block...> — each remaining arg is one frontmatter line.
29
+ mk_agent() {
30
+ local name="$1"; shift
31
+ {
32
+ echo "---"
33
+ echo "name: $name"
34
+ for l in "$@"; do printf '%s\n' "$l"; done
35
+ echo "---"
36
+ echo
37
+ echo "Body mentions \`task-sync\` in prose and a list:"
38
+ echo " - not-a-skill"
39
+ } > "$TMP/r/templates/agents/$name.md"
40
+ }
41
+
42
+ # Capture rather than pipe: `run | grep -q` lets grep exit early and SIGPIPE the lint, which
43
+ # `pipefail` then reports as a failure even on a match.
44
+ run_out=""; run_rc=0
45
+ capture() { run_out="$( cd "$TMP/r" && bash scripts/agent-skills-lint.sh 2>&1 )"; run_rc=$?; }
46
+
47
+ # --- 1. the real tree is green ----------------------------------------------
48
+ real_out="$(bash "$LINT" 2>&1)"; real_rc=$?
49
+ [ "$real_rc" -eq 0 ] && pass "real templates/agents resolve" \
50
+ || fail "real templates/agents resolve (rc=$real_rc: $real_out)"
51
+
52
+ # --- 2. every resolving form passes -----------------------------------------
53
+ new_root
54
+ mk_agent good "skills:" \
55
+ " - kit-task-sync # shipped under skills/" \
56
+ " - morning-briefing" \
57
+ " - deep-research" \
58
+ " - agent-skills:context7" \
59
+ "tools: [Bash]"
60
+ mk_agent empty "skills: []"
61
+ mk_agent inline "skills: [kit-task-sync, chrome-devtools-mcp:a11y-debugging]"
62
+ mk_agent none "tools: [Read]"
63
+ capture
64
+ [ "$run_rc" -eq 0 ] && pass "kit, template, allowlisted and plugin:skill entries resolve" \
65
+ || fail "kit, template, allowlisted and plugin:skill entries resolve ($run_out)"
66
+
67
+ # --- 3. a bare name nothing ships fails, naming file + entry ----------------
68
+ new_root
69
+ mk_agent pm "skills:" " - task-sync" " - morning-briefing"
70
+ capture
71
+ if [ "$run_rc" -eq 0 ]; then
72
+ fail "dead bare skill is rejected (exited 0)"
73
+ elif grep -q "templates/agents/pm.md:4: task-sync" <<<"$run_out"; then
74
+ pass "dead bare skill is rejected with file:line + entry"
75
+ else
76
+ fail "dead bare skill is rejected (wrong message: $run_out)"
77
+ fi
78
+ grep -q "morning-briefing" <<<"$run_out" \
79
+ && fail "a resolving entry is not reported ($run_out)" \
80
+ || pass "a resolving entry is not reported"
81
+
82
+ # --- 4. the inline list form is checked too ---------------------------------
83
+ new_root
84
+ mk_agent inl "skills: [kit-task-sync, task-new]"
85
+ capture
86
+ if [ "$run_rc" -ne 0 ] && grep -q "templates/agents/inl.md:3: task-new" <<<"$run_out"; then
87
+ pass "dead entry in an inline list is rejected"
88
+ else
89
+ fail "dead entry in an inline list is rejected (rc=$run_rc: $run_out)"
90
+ fi
91
+
92
+ # --- 5. the regression this lint exists for: pm.md with the pre-rename name --
93
+ # Real agents + real skill names + real allowlist, with `task-sync` put back into pm.md.
94
+ new_root
95
+ cp "$REPO"/templates/agents/*.md "$TMP/r/templates/agents/"
96
+ cp "$REPO/scripts/agent-skills-external.txt" "$TMP/r/scripts/"
97
+ for d in "$REPO"/skills/*/ "$REPO"/templates/skills/*/; do
98
+ [ -f "$d/SKILL.md" ] || continue
99
+ case "$d" in
100
+ "$REPO"/skills/*) mkdir -p "$TMP/r/skills/$(basename "$d")"; : > "$TMP/r/skills/$(basename "$d")/SKILL.md" ;;
101
+ *) mkdir -p "$TMP/r/templates/skills/$(basename "$d")"; : > "$TMP/r/templates/skills/$(basename "$d")/SKILL.md" ;;
102
+ esac
103
+ done
104
+ capture
105
+ [ "$run_rc" -eq 0 ] && pass "copied real tree is green before the mutation" \
106
+ || fail "copied real tree is green before the mutation ($run_out)"
107
+ sed 's/^ - kit-task-sync.*$/ - task-sync/' "$REPO/templates/agents/pm.md" > "$TMP/r/templates/agents/pm.md"
108
+ capture
109
+ if [ "$run_rc" -ne 0 ] && grep -qE "templates/agents/pm\.md:[0-9]+: task-sync" <<<"$run_out"; then
110
+ pass "re-adding task-sync to pm.md fails the lint"
111
+ else
112
+ fail "re-adding task-sync to pm.md fails the lint (rc=$run_rc: $run_out)"
113
+ fi
114
+
115
+ # --- 6. an allowlisted name the kit now ships is flagged --------------------
116
+ new_root
117
+ mkdir -p "$TMP/r/skills/deep-research"; : > "$TMP/r/skills/deep-research/SKILL.md"
118
+ mk_agent r "skills:" " - deep-research"
119
+ capture
120
+ if [ "$run_rc" -ne 0 ] && grep -q "agent-skills-external.txt: deep-research" <<<"$run_out"; then
121
+ pass "allowlisted name that the kit ships is rejected"
122
+ else
123
+ fail "allowlisted name that the kit ships is rejected (rc=$run_rc: $run_out)"
124
+ fi
125
+
126
+ # --- 7. no templates/agents: self-disables ----------------------------------
127
+ new_root; rm -rf "$TMP/r/templates/agents"
128
+ capture
129
+ [ "$run_rc" -eq 0 ] && pass "no templates/agents exits 0" || fail "no templates/agents exits 0 ($run_out)"
130
+
131
+ exit "$fails"
@@ -0,0 +1,115 @@
1
+ #!/usr/bin/env bash
2
+ # agent-skills-lint.sh — resolve every `skills:` entry in templates/agents/*.md (kit-owned).
3
+ #
4
+ # WHY: a skill reference that does not resolve fails silently. The agent loads, answers, and has
5
+ # fewer capabilities than its frontmatter lists; nothing warns at init time or later. A rename is
6
+ # how it happens: templates/agents/pm.md kept listing task-sync / task-new / task-close after the
7
+ # kit shipped them as kit-task-*, so all three of the PM agent's lifecycle skills were dead.
8
+ #
9
+ # WHAT: an entry resolves when it is one of
10
+ # - a skill the kit ships: skills/<name>/SKILL.md
11
+ # - a skill the kit scaffolds: templates/skills/<name>/SKILL.md
12
+ # - another plugin's skill: <plugin>:<skill> (the namespace names the provider)
13
+ # - a declared third-party bare name: a line in scripts/agent-skills-external.txt
14
+ # Anything else fails, reported as `<file>:<line>: <entry>`. An allowlisted name that the kit now
15
+ # ships fails too, so the allowlist cannot keep describing a kit skill as third-party.
16
+ #
17
+ # Only the frontmatter `skills:` key is read (block list or inline `[a, b]`); body prose is not.
18
+ # No baseline: every entry resolves or the gate is red. bash 3.2 compatible.
19
+ set -uo pipefail
20
+
21
+ ROOT="$(cd "$(dirname "$0")/.." && pwd)"
22
+ cd "$ROOT"
23
+
24
+ AGENTS_DIR="templates/agents"
25
+ EXTERNAL="scripts/agent-skills-external.txt"
26
+
27
+ FAIL=0
28
+ err() { echo "x $1"; FAIL=1; }
29
+ note() { echo " $1"; }
30
+
31
+ if [ ! -d "$AGENTS_DIR" ]; then
32
+ echo "agent-skills-lint: no $AGENTS_DIR directory — nothing to lint"
33
+ exit 0
34
+ fi
35
+
36
+ # Prints "<line>\t<entry>" for each entry of the frontmatter `skills:` key. Trailing `# comments`
37
+ # and quotes are stripped; an empty inline list prints nothing.
38
+ skills_entries() {
39
+ awk '
40
+ function emit(n, s) {
41
+ sub(/[ \t]+#.*$/, "", s)
42
+ gsub(/^[ \t"\047]+|[ \t"\047]+$/, "", s)
43
+ if (length(s)) printf "%d\t%s\n", n, s
44
+ }
45
+ NR == 1 && $0 == "---" { infm = 1; next }
46
+ !infm { exit }
47
+ $0 == "---" { exit }
48
+ /^skills:/ {
49
+ grab = 1
50
+ rest = $0
51
+ sub(/^skills:[ \t]*/, "", rest)
52
+ if (rest ~ /^\[/) {
53
+ gsub(/^\[|\].*$/, "", rest)
54
+ n = split(rest, parts, ",")
55
+ for (i = 1; i <= n; i++) emit(NR, parts[i])
56
+ grab = 0
57
+ }
58
+ next
59
+ }
60
+ grab && /^[ \t]*-[ \t]*/ { s = $0; sub(/^[ \t]*-[ \t]*/, "", s); emit(NR, s); next }
61
+ grab && /^[^ \t#]/ { grab = 0 }
62
+ ' "$1"
63
+ }
64
+
65
+ shipped() { [ -f "skills/$1/SKILL.md" ] || [ -f "templates/skills/$1/SKILL.md" ]; }
66
+
67
+ external_names() {
68
+ [ -f "$EXTERNAL" ] || return 0
69
+ sed -e 's/#.*$//' -e 's/[[:space:]]*$//' -e 's/^[[:space:]]*//' "$EXTERNAL" | grep -v '^$'
70
+ }
71
+ is_external() { grep -qxF -- "$1" <<<"$(external_names)"; }
72
+
73
+ # The allowlist may not name a skill the kit ships.
74
+ while IFS= read -r name; do
75
+ [ -n "$name" ] || continue
76
+ if shipped "$name"; then
77
+ err "$EXTERNAL: $name is shipped by the kit — remove it from the third-party list"
78
+ fi
79
+ done <<EOF_NAMES
80
+ $(external_names)
81
+ EOF_NAMES
82
+
83
+ agents=0
84
+ entries=0
85
+ dead=0
86
+ for f in "$AGENTS_DIR"/*.md; do
87
+ [ -f "$f" ] || continue
88
+ agents=$(( agents + 1 ))
89
+ while IFS="$(printf '\t')" read -r line entry; do
90
+ [ -n "$entry" ] || continue
91
+ entries=$(( entries + 1 ))
92
+ if grep -qE '^[a-z0-9][a-z0-9-]*:[a-z0-9][a-z0-9-]*$' <<<"$entry"; then
93
+ continue
94
+ fi
95
+ if grep -qE '^[a-z0-9][a-z0-9-]*$' <<<"$entry"; then
96
+ shipped "$entry" && continue
97
+ is_external "$entry" && continue
98
+ fi
99
+ err "$f:$line: $entry"
100
+ dead=$(( dead + 1 ))
101
+ done <<EOF_ENTRIES
102
+ $(skills_entries "$f")
103
+ EOF_ENTRIES
104
+ done
105
+
106
+ if [ "$dead" -gt 0 ]; then
107
+ note "$dead skills: entr$( [ "$dead" -eq 1 ] && echo y || echo ies ) resolve to nothing: not under skills/ or templates/skills/,"
108
+ note "not a plugin:skill reference, and not in $EXTERNAL."
109
+ note "A renamed kit skill takes its new name; a third-party one gets a line in $EXTERNAL."
110
+ fi
111
+
112
+ if [ "$FAIL" -eq 0 ]; then
113
+ echo "ok agent skills resolve ($entries entries across $agents agents)"
114
+ fi
115
+ exit "$FAIL"
@@ -0,0 +1,42 @@
1
+ #!/usr/bin/env bash
2
+ # agent-template-lint-test.sh — the agent-template lint fails on a template whose `name:` is not its
3
+ # file name or whose `description:` is empty (E257.6, #263). Hermetic: every case lints a throwaway
4
+ # tree via --root, plus one run over the repo's own templates, which must be clean. Whether a
5
+ # `skills:` entry resolves is scripts/agent-skills-lint-test.sh's subject, not this file's.
6
+ # Run: bash scripts/agent-template-lint-test.sh
7
+ # errors: strict — a test runner: rc 1 on any failed assertion
8
+ set -u
9
+ ROOT="$(cd "$(dirname "$0")/.." && pwd)"
10
+ LINT="$ROOT/scripts/agent-template-lint.sh"
11
+ fail=0
12
+ t() { if [ "$2" = "$3" ]; then echo "ok: $1"; else echo "FAIL: $1 -> got '[$2]' want '[$3]'"; fail=1; fi; }
13
+ has() { case "$2" in *"$3"*) echo "ok: $1" ;; *) echo "FAIL: $1 (missing '$3' in: $2)"; fail=1 ;; esac; }
14
+
15
+ fx="$(mktemp -d)"; trap 'rm -rf "$fx"' EXIT
16
+ role() { # role <tree> <name>
17
+ mkdir -p "$fx/$1/templates/agents"
18
+ printf -- '---\nname: %s\ndescription: The %s role.\ntools: [Bash]\nskills: []\n---\n\n# body\n' "$2" "$2" > "$fx/$1/templates/agents/$2.md"
19
+ }
20
+ lint() { bash "$LINT" --root "$fx/$1" 2>&1; }
21
+
22
+ # 1. templates with a matching name and a description pass
23
+ role good pm; role good editor
24
+ out="$(lint good)"; t "well-formed templates pass (rc)" "$?" "0"
25
+ has "clean run reports the role count" "$out" "2 role(s)"
26
+
27
+ # 2. name must equal the basename and description must be present (both runtimes key on them)
28
+ role meta pm
29
+ sed -i.bak 's/^name: pm$/name: project-manager/; s/^description: .*$/description:/' "$fx/meta/templates/agents/pm.md" && rm -f "$fx/meta/templates/agents/pm.md.bak"
30
+ out="$(lint meta)"; t "bad name/description fails (rc)" "$?" "1"
31
+ has "name mismatch is named" "$out" "frontmatter name is 'project-manager', expected 'pm'"
32
+ has "empty description is named" "$out" "pm: empty description"
33
+
34
+ # 3. a tree with no templates/agents is a usage error, not a silent pass
35
+ mkdir -p "$fx/none"
36
+ lint none >/dev/null; t "a root with no templates/agents is rc 2" "$?" "2"
37
+
38
+ # 4. the repo's own templates are clean — this is the gate check.sh runs
39
+ out="$(bash "$LINT" 2>&1)"; t "repo templates pass (rc)" "$?" "0"
40
+
41
+ [ "$fail" -eq 0 ] && echo "PASS: agent-template lint" || echo "FAILED"
42
+ exit "$fail"
@@ -0,0 +1,58 @@
1
+ #!/usr/bin/env bash
2
+ # agent-template-lint.sh — every agent template carries the two fields both runtimes key on
3
+ # (E257.6, #263).
4
+ #
5
+ # WHY: templates/agents/<role>.md is the one role source, translated per adapter by
6
+ # scripts/lib/agent-def.sh. Codex refuses a custom agent whose TOML has no `name` or no
7
+ # `description`, and Claude Code addresses an agent by its `name`. A template whose `name:` drifted
8
+ # from its file name installs as `.codex/agents/<basename>.toml` declaring a different agent.
9
+ #
10
+ # WHAT: for each templates/agents/<role>.md, `name:` equals the file's basename and `description:`
11
+ # is not empty.
12
+ #
13
+ # Not here: whether a `skills:` entry resolves. scripts/agent-skills-lint.sh owns that check and its
14
+ # allowlist (scripts/agent-skills-external.txt); a second resolver here would be a second allowlist
15
+ # to keep in step.
16
+ #
17
+ # scripts/agent-template-lint.sh lint this repo (the gate; rc 1 on any finding)
18
+ # scripts/agent-template-lint.sh --root <dir> lint another tree with the same layout (tests)
19
+ #
20
+ # bash 3.2 compatible.
21
+ set -uo pipefail
22
+
23
+ ROOT="$(cd "$(dirname "$0")/.." && pwd)"
24
+ LINT_ROOT="$ROOT"
25
+ while [ "$#" -gt 0 ]; do
26
+ case "$1" in
27
+ --root) LINT_ROOT="$2"; shift 2 ;;
28
+ --root=*) LINT_ROOT="${1#*=}"; shift ;;
29
+ -h|--help) sed -n '2,20p' "$0" | sed 's/^# \{0,1\}//'; exit 0 ;;
30
+ *) echo "agent-template-lint: unknown arg '$1'" >&2; exit 2 ;;
31
+ esac
32
+ done
33
+
34
+ # shellcheck source=/dev/null
35
+ . "$ROOT/scripts/lib/agent-def.sh"
36
+
37
+ AGENTS_DIR="$LINT_ROOT/templates/agents"
38
+ [ -d "$AGENTS_DIR" ] || { echo "agent-template-lint: no $AGENTS_DIR" >&2; exit 2; }
39
+
40
+ FAIL=0
41
+ err() { echo "x $1"; FAIL=1; }
42
+
43
+ count=0
44
+ while IFS= read -r f; do
45
+ [ -n "$f" ] || continue
46
+ count=$((count + 1))
47
+ role="$(basename "$f" .md)"
48
+ name="$(agent_def_field "$f" name)"
49
+ [ "$name" = "$role" ] || err "$role: frontmatter name is '$name', expected '$role' (the file's basename)"
50
+ [ -n "$(agent_def_field "$f" description)" ] || err "$role: empty description"
51
+ done <<EOF2
52
+ $(find "$AGENTS_DIR" -maxdepth 1 -type f -name '*.md' | LC_ALL=C sort)
53
+ EOF2
54
+
55
+ if [ "$FAIL" -eq 0 ]; then
56
+ echo "ok agent templates: $count role(s), each with a name matching its file and a description"
57
+ fi
58
+ exit "$FAIL"
@@ -112,7 +112,7 @@ fi
112
112
  echo "→ Installing agentation (dev dependency, $REACT_PKG_MANAGER)…"
113
113
  ( cd "$TARGET" && eval "$INSTALL_CMD" )
114
114
 
115
- if claude mcp list 2>/dev/null | grep -qi 'agentation'; then
115
+ if grep -qi 'agentation' <<<"$(claude mcp list 2>/dev/null)"; then
116
116
  echo " ✓ agentation MCP already registered for Claude"
117
117
  else
118
118
  echo "→ Registering the agentation MCP for Claude…"