@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.
- package/.claude-plugin/plugin.json +1 -1
- package/AGENTS.md +169 -21
- package/README.md +491 -35
- package/SECURITY.md +5 -0
- package/bin/cckit +182 -17
- package/cckit.config.json +1 -1
- package/commands/kit-doctor.md +13 -5
- package/commands/kit-export-project.md +0 -2
- package/commands/kit-export-training.md +6 -9
- package/commands/kit-init.md +43 -13
- package/commands/kit-routines.md +1 -1
- package/commands/kit-update.md +11 -6
- package/databases/supabase/guide.html +106 -0
- package/databases/supabase/nextjs/lib/supabase/client.ts +9 -0
- package/databases/supabase/nextjs/lib/supabase/server.ts +29 -0
- package/databases/supabase.json +70 -0
- package/integrations/emil-design-eng.json +41 -0
- package/integrations/graft.json +81 -0
- package/integrations/impeccable.json +42 -0
- package/integrations/integration.schema.json +215 -0
- package/integrations/lavish.json +43 -0
- package/integrations/mempalace.json +28 -0
- package/integrations/mlx-lm.json +32 -0
- package/integrations/web-design-guidelines.json +42 -0
- package/kit.config.schema.json +183 -5
- package/package.json +4 -1
- package/profiles/automation.json +7 -1
- package/profiles/content.json +10 -2
- package/profiles/marketing.json +57 -0
- package/profiles/minimal.json +7 -1
- package/profiles/research.json +7 -1
- package/profiles/software.json +7 -1
- package/recipes/nextjs-shadcn.json +49 -0
- package/scripts/agent-skills-external.txt +45 -0
- package/scripts/agent-skills-lint-test.sh +131 -0
- package/scripts/agent-skills-lint.sh +115 -0
- package/scripts/agent-template-lint-test.sh +42 -0
- package/scripts/agent-template-lint.sh +58 -0
- package/scripts/annotate-setup.sh +1 -1
- package/scripts/autopilot-run-test.sh +338 -0
- package/scripts/autopilot-run.sh +448 -0
- package/scripts/autopilot-test.sh +8 -0
- package/scripts/autopilot.sh +10 -1
- package/scripts/benchmark/benchmark-test.sh +85 -0
- package/scripts/benchmark/checkpoint-test.sh +314 -0
- package/scripts/benchmark/checkpoint.sh +408 -0
- package/scripts/benchmark/lib/model.sh +31 -6
- package/scripts/benchmark/report.sh +17 -2
- package/scripts/benchmark/run-quality.sh +36 -10
- package/scripts/benchmark/verb-timings-test.sh +124 -0
- package/scripts/benchmark/verb-timings.sh +149 -0
- package/scripts/check.sh +29 -19
- package/scripts/content-skills-test.sh +144 -0
- package/scripts/copilot-loop-test.sh +25 -0
- package/scripts/database-supabase-test.sh +121 -0
- package/scripts/docs-marketing-words-test.sh +73 -0
- package/scripts/docs-record-tables-test.sh +72 -0
- package/scripts/hook-adapter-test.sh +193 -0
- package/scripts/init-content-test.sh +225 -0
- package/scripts/init-guided-test.sh +474 -0
- package/scripts/init-recipes-test.sh +104 -0
- package/scripts/init-upgrade-test.sh +341 -2
- package/scripts/init.sh +746 -95
- package/scripts/instruction-budget-baseline.txt +8 -0
- package/scripts/instruction-budget-lint-test.sh +166 -0
- package/scripts/instruction-budget-lint.sh +219 -0
- package/scripts/integrations-check-test.sh +200 -0
- package/scripts/integrations-check.sh +157 -0
- package/scripts/kit-add-test.sh +214 -0
- package/scripts/kit-add.sh +305 -5
- package/scripts/kit-adopt-test.sh +16 -0
- package/scripts/kit-adopt.sh +3 -2
- package/scripts/kit-digest.sh +2 -2
- package/scripts/kit-doctor-test.sh +293 -0
- package/scripts/kit-doctor.sh +272 -140
- package/scripts/kit-export-project-test.sh +3 -3
- package/scripts/kit-remove-test.sh +19 -0
- package/scripts/kit-routines.sh +2 -2
- package/scripts/kit-self-update.sh +1 -1
- package/scripts/kit-version-check-test.sh +4 -0
- package/scripts/kit-version-check.sh +4 -2
- package/scripts/knowledge-lint.sh +4 -4
- package/scripts/leak-fence-test.sh +89 -0
- package/scripts/lib/adapter-select-test.sh +136 -0
- package/scripts/lib/adapter-select.sh +158 -0
- package/scripts/lib/agent-def-test.sh +69 -0
- package/scripts/lib/agent-def.sh +106 -0
- package/scripts/lib/agent-launch-test.sh +212 -0
- package/scripts/lib/agent-launch.sh +335 -0
- package/scripts/lib/board-view-test.sh +11 -0
- package/scripts/lib/board-view.sh +42 -26
- package/scripts/lib/branch-owner-test.sh +26 -0
- package/scripts/lib/branch-owner.sh +16 -9
- package/scripts/lib/captain-test.sh +105 -0
- package/scripts/lib/captain.sh +87 -8
- package/scripts/lib/codex-hooks-test.sh +100 -0
- package/scripts/lib/codex-hooks.sh +69 -0
- package/scripts/lib/commitlint.sh +1 -1
- package/scripts/lib/content-kinds-gc-test.sh +88 -0
- package/scripts/lib/copilot-test.sh +70 -4
- package/scripts/lib/copilot.sh +66 -14
- package/scripts/lib/effort-dispatch-test.sh +3 -3
- package/scripts/lib/effort-metrics-test.sh +178 -1
- package/scripts/lib/effort-metrics.sh +175 -35
- package/scripts/lib/effort-ops-test.sh +205 -7
- package/scripts/lib/effort-ops.sh +198 -43
- package/scripts/lib/effort-parity-test.sh +49 -13
- package/scripts/lib/effort-plan-test.sh +337 -0
- package/scripts/lib/effort-plan.sh +200 -23
- package/scripts/lib/effort.sh +56 -11
- package/scripts/lib/errors-header-test.sh +1 -1
- package/scripts/lib/gh-project-test.sh +35 -1
- package/scripts/lib/gh-project.sh +23 -16
- package/scripts/lib/gh-rest-test.sh +32 -3
- package/scripts/lib/gh-rest.sh +17 -2
- package/scripts/lib/hook-refresh.sh +1 -1
- package/scripts/lib/init-github.sh +412 -0
- package/scripts/lib/init-guide.sh +630 -0
- package/scripts/lib/integration-install-test.sh +343 -0
- package/scripts/lib/integration-install.sh +257 -0
- package/scripts/lib/integrations-test.sh +366 -0
- package/scripts/lib/integrations.sh +244 -0
- package/scripts/lib/kinds-test.sh +125 -0
- package/scripts/lib/kinds.sh +66 -0
- package/scripts/lib/kit-brief-test.sh +22 -3
- package/scripts/lib/kit-brief.sh +45 -5
- package/scripts/lib/kit-config-resolve.sh +2 -2
- package/scripts/lib/kit-config-test.sh +64 -1
- package/scripts/lib/kit-config.sh +37 -1
- package/scripts/lib/kit-events.sh +7 -0
- package/scripts/lib/kit-gc-test.sh +173 -1
- package/scripts/lib/kit-gc.sh +226 -37
- package/scripts/lib/kit-hotfix.sh +216 -0
- package/scripts/lib/kit-interview-test.sh +93 -0
- package/scripts/lib/kit-interview.sh +117 -8
- package/scripts/lib/kit-lib-test.sh +1 -1
- package/scripts/lib/kit-lib.sh +3 -3
- package/scripts/lib/kit-local.sh +2 -2
- package/scripts/lib/kit-manifest.sh +33 -1
- package/scripts/lib/kit-profile-test.sh +3 -3
- package/scripts/lib/kit-status-test.sh +112 -4
- package/scripts/lib/kit-status.sh +246 -16
- package/scripts/lib/kit-task-ops-test.sh +37 -0
- package/scripts/lib/kit-task-ops.sh +175 -31
- package/scripts/lib/kto-hotfix-test.sh +232 -0
- package/scripts/lib/kto-task-close-test.sh +1 -1
- package/scripts/lib/kto-task-new-test.sh +95 -0
- package/scripts/lib/kto-task-pr-merge-test.sh +37 -3
- package/scripts/lib/kto-task-pr-test.sh +70 -0
- package/scripts/lib/leak-fence.sh +89 -0
- package/scripts/lib/light-task-run-test.sh +255 -0
- package/scripts/lib/light-task-test.sh +309 -0
- package/scripts/lib/light-task.sh +706 -0
- package/scripts/lib/next-test.sh +99 -0
- package/scripts/lib/next.sh +9 -3
- package/scripts/lib/orchestration-runtime-test.sh +72 -0
- package/scripts/lib/orchestration-runtime.sh +57 -5
- package/scripts/lib/plan-machine-test.sh +15 -2
- package/scripts/lib/plan-machine.sh +20 -7
- package/scripts/lib/plan-next-test.sh +1 -1
- package/scripts/lib/plan-next.sh +4 -4
- package/scripts/lib/pr-evidence-test.sh +3 -3
- package/scripts/lib/pr-evidence.sh +1 -1
- package/scripts/lib/qa-lane-test.sh +626 -0
- package/scripts/lib/qa-lane.sh +1357 -0
- package/scripts/lib/qa-lanes-test.sh +175 -0
- package/scripts/lib/react-detect.sh +1 -1
- package/scripts/lib/render-test.sh +1 -1
- package/scripts/lib/review-page-test.sh +318 -0
- package/scripts/lib/review-page.sh +369 -0
- package/scripts/lib/review-stage-test.sh +62 -11
- package/scripts/lib/review-stage.sh +42 -60
- package/scripts/lib/role-identity-test.sh +65 -0
- package/scripts/lib/role-identity.sh +25 -2
- package/scripts/lib/secret-guard.sh +3 -3
- package/scripts/lib/session-registry-test.sh +111 -0
- package/scripts/lib/session-registry.sh +233 -0
- package/scripts/lib/stage-receipt-test.sh +14 -1
- package/scripts/lib/stage-receipt.sh +13 -8
- package/scripts/lib/task-source-file.sh +309 -0
- package/scripts/lib/task-source.sh +130 -0
- package/scripts/lib/upgrade-report-test.sh +120 -0
- package/scripts/lib/upgrade-report.sh +138 -0
- package/scripts/lib/version-bump.sh +3 -3
- package/scripts/lib/wave-result-test.sh +80 -0
- package/scripts/lib/wave-result.sh +127 -0
- package/scripts/lib/worker-brief-test.sh +5 -0
- package/scripts/lib/worker-brief.sh +2 -2
- package/scripts/lib/worktree-issue-test.sh +30 -1
- package/scripts/lib/worktree-issue.sh +82 -12
- package/scripts/lib/worktree-ports-test.sh +57 -4
- package/scripts/lib/worktree-start-test.sh +197 -0
- package/scripts/lib/worktree-start.sh +153 -31
- package/scripts/lib/zsh-safety-test.sh +19 -3
- package/scripts/marketing-walkthrough-test.sh +152 -0
- package/scripts/night-grant-test.sh +37 -0
- package/scripts/night-grant.sh +448 -0
- package/scripts/night-run-test.sh +8 -0
- package/scripts/night-run.mjs +275 -0
- package/scripts/night-run.test.mjs +324 -0
- package/scripts/orchestrate-test.sh +190 -0
- package/scripts/orchestrate.sh +79 -8
- package/scripts/portable-test.sh +11 -2
- package/scripts/publish.sh +28 -3
- package/scripts/review-lint-test.sh +7 -7
- package/scripts/review-lint.sh +2 -2
- package/scripts/review-rules.conf +8 -0
- package/scripts/rule-recipes-test.sh +96 -0
- package/scripts/self-install-test.sh +39 -9
- package/scripts/setup-labels.sh +18 -1
- package/scripts/setup-milestones.sh +1 -1
- package/scripts/showcase.sh +1 -1
- package/scripts/skill-frontmatter-lint-test.sh +4 -4
- package/scripts/skill-frontmatter-lint.sh +1 -1
- package/scripts/status-test.sh +113 -2
- package/scripts/status.sh +16 -3
- package/scripts/task-sync-test.sh +154 -0
- package/scripts/task-sync.sh +243 -32
- package/scripts/test-runner-test.sh +158 -0
- package/scripts/test.sh +131 -23
- package/scripts/update-path-test.sh +279 -0
- package/scripts/ux-ds-audit.sh +1 -1
- package/scripts/ux-graph-scan.sh +6 -6
- package/scripts/wave-worker.sh +54 -0
- package/skills/kit-add/SKILL.md +77 -0
- package/skills/kit-autopilot/SKILL.md +123 -12
- package/skills/kit-cleanup/SKILL.md +5 -2
- package/skills/kit-contribute/SKILL.md +4 -4
- package/skills/kit-docs-writer/SKILL.md +16 -6
- package/skills/kit-effort-close/SKILL.md +17 -8
- package/skills/kit-effort-new/SKILL.md +15 -9
- package/skills/kit-effort-pr/SKILL.md +15 -7
- package/skills/kit-effort-start/SKILL.md +5 -2
- package/skills/kit-gc/SKILL.md +5 -2
- package/skills/kit-next/SKILL.md +5 -1
- package/skills/kit-onboard/SKILL.md +3 -3
- package/skills/kit-page/SKILL.md +93 -0
- package/skills/kit-plan-next/SKILL.md +8 -4
- package/skills/kit-security-sweep/SKILL.md +1 -3
- package/skills/kit-ship/SKILL.md +2 -3
- package/skills/kit-status/SKILL.md +35 -4
- package/skills/kit-task-new/SKILL.md +3 -3
- package/skills/kit-task-pr/SKILL.md +7 -2
- package/skills/kit-task-pr-merge/SKILL.md +7 -2
- package/skills/kit-task-start/SKILL.md +7 -7
- package/skills/kit-task-sync/SKILL.md +19 -3
- package/skills/kit-ux-audit/SKILL.md +3 -2
- package/templates/agents/auto-dev.md +5 -4
- package/templates/agents/backend.md +1 -1
- package/templates/agents/designer.md +2 -0
- package/templates/agents/devops.md +1 -1
- package/templates/agents/editor.md +9 -1
- package/templates/agents/frontend.md +1 -1
- package/templates/agents/local-delegate.md +1 -1
- package/templates/agents/pm.md +5 -5
- package/templates/agents/tech-lead.md +1 -1
- package/templates/benchmarks/SCHEMA.md +9 -3
- package/templates/codex/hooks.json.tmpl +89 -0
- package/templates/hooks/guard-base-branch-commit.sh.tmpl +13 -7
- package/templates/hooks/guard-raw-git-ops.sh.tmpl +12 -12
- package/templates/hooks/mempal_followup.sh.tmpl +2 -2
- package/templates/hooks/mempal_session_start.sh.tmpl +1 -1
- package/templates/hooks/prepush_gate.sh.tmpl +4 -2
- package/templates/hooks/repo-hygiene.sh.tmpl +3 -2
- package/templates/instructions.md.tmpl +174 -0
- package/templates/kit.config.json.tmpl +3 -3
- package/templates/knowledge-INDEX.md.tmpl +1 -1
- package/templates/lib/kit-sigil.sh.tmpl +1 -1
- package/templates/rules/authoring.md +106 -0
- package/templates/rules/branch-naming.md +40 -4
- package/templates/rules/code-retrieval.md +63 -0
- package/templates/rules/delegation-brief.md +0 -3
- package/templates/rules/design-routing.md +3 -3
- package/templates/rules/effort-model.md +14 -10
- package/templates/rules/gate-and-review.md +94 -0
- package/templates/rules/issue-lifecycle.md +88 -0
- package/templates/rules/knowledge-base.md +1 -1
- package/templates/rules/mempalace.md +1 -1
- package/templates/rules/merge-safety.md +108 -0
- package/templates/rules/naming-and-ids.md +23 -17
- package/templates/rules/plain-language.md +59 -0
- package/templates/rules/plan-next.md +9 -11
- package/templates/rules/react-annotate.md +6 -0
- package/templates/rules/review-pages.md +49 -0
- package/templates/rules/risk-tiered-review.md +13 -4
- package/templates/rules/shared-checkout.md +106 -0
- package/templates/rules/skill-gaps.md +2 -7
- package/templates/rules/task-management.md +13 -1
- package/templates/skills/brand-voice/SKILL.md +91 -0
- package/templates/skills/brand-voice/references/voice-template.md +61 -0
- package/templates/skills/campaign/SKILL.md +123 -0
- package/templates/skills/campaign/references/plan-template.md +55 -0
- package/templates/skills/concrete/SKILL.md +2 -2
- package/templates/skills/copywriting/SKILL.md +8 -1
- package/templates/skills/feature-build-refine/SKILL.md +2 -4
- package/templates/skills/morning-briefing/SKILL.md +2 -2
- package/templates/skills/page-design/SKILL.md +145 -0
- package/templates/skills/page-design/add.json +5 -0
- package/templates/skills/page-design/references/design-file-template.md +40 -0
- package/templates/skills/page-design/references/generic-page-patterns.md +43 -0
- package/templates/skills/page-design/references/minimum-rules.md +42 -0
- package/templates/skills/speckit/SKILL.md +4 -5
- package/templates/skills/supabase-patterns/SKILL.md +1 -1
- package/commands/kit-add.md +0 -42
- package/templates/CLAUDE.md.tmpl +0 -106
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
|
+
<title>Connect your project to Supabase</title>
|
|
7
|
+
<style>
|
|
8
|
+
:root { --ink:#1c1917; --soft:#57534e; --line:#e7e5e4; --bg:#fafaf9; --card:#fff; --accent:#c97a2c; --ok:#15803d; --warn:#b3261e; }
|
|
9
|
+
* { box-sizing: border-box; }
|
|
10
|
+
body { margin:0; background:var(--bg); color:var(--ink); font:16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
|
|
11
|
+
main { max-width: 760px; margin: 0 auto; padding: 40px 20px 80px; }
|
|
12
|
+
h1 { font-size: 30px; line-height:1.2; margin: 0 0 8px; }
|
|
13
|
+
h2 { font-size: 20px; margin: 40px 0 12px; }
|
|
14
|
+
p.lead { color:var(--soft); margin: 0 0 8px; }
|
|
15
|
+
.meta { color:var(--soft); font-size: 14px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding:10px 0; margin: 20px 0 28px; }
|
|
16
|
+
ol.steps { list-style:none; padding:0; margin:0; counter-reset: step; }
|
|
17
|
+
li.step { counter-increment: step; background:var(--card); border:1px solid var(--line); border-radius:12px; padding:18px 20px 18px 64px; margin:0 0 12px; position:relative; min-width:0; }
|
|
18
|
+
li.step::before { content: counter(step); position:absolute; left:18px; top:18px; width:30px; height:30px; border-radius:50%; background:var(--accent); color:#fff; font-weight:700; display:flex; align-items:center; justify-content:center; }
|
|
19
|
+
li.step h3 { margin:0 0 4px; font-size:17px; }
|
|
20
|
+
li.step p { margin:6px 0 0; color:var(--soft); }
|
|
21
|
+
code, .file { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; background:#f5f5f4; border:1px solid var(--line); border-radius:6px; padding:1px 6px; overflow-wrap:anywhere; }
|
|
22
|
+
pre { background:#1c1917; color:#fafaf9; border-radius:10px; padding:14px 16px; overflow-x:auto; font-size:14px; line-height:1.5; margin:12px 0 0; }
|
|
23
|
+
table { width:100%; border-collapse:collapse; background:var(--card); border:1px solid var(--line); border-radius:12px; overflow:hidden; table-layout:fixed; }
|
|
24
|
+
th, td { text-align:left; vertical-align:top; padding:12px 14px; border-bottom:1px solid var(--line); overflow-wrap:anywhere; }
|
|
25
|
+
th { font-size:13px; text-transform:uppercase; letter-spacing:.04em; color:var(--soft); background:#f5f5f4; }
|
|
26
|
+
tr:last-child td { border-bottom:0; }
|
|
27
|
+
.never { border-left:4px solid var(--warn); background:#fef2f2; border-radius:8px; padding:12px 16px; margin-top:12px; }
|
|
28
|
+
.good { border-left:4px solid var(--ok); background:#f0fdf4; border-radius:8px; padding:12px 16px; margin-top:12px; }
|
|
29
|
+
a { color:#9a5a17; }
|
|
30
|
+
</style>
|
|
31
|
+
</head>
|
|
32
|
+
<body>
|
|
33
|
+
<main>
|
|
34
|
+
<h1>Connect your project to Supabase</h1>
|
|
35
|
+
<p class="lead">Supabase keeps your app's information (accounts, saved items, orders) on its servers. Your project already has the code that talks to it. What is missing is two values that only you can get: the address of your Supabase project, and a key. This page shows where each one is and where it goes.</p>
|
|
36
|
+
<p class="lead">It takes about five minutes. A free account is enough.</p>
|
|
37
|
+
<div class="meta">Last verified: <strong id="last-verified">2026-11-12</strong> against the Supabase documentation (links at the bottom). If the Supabase website looks different from these steps, the documentation link is the current source.</div>
|
|
38
|
+
|
|
39
|
+
<h2>The steps</h2>
|
|
40
|
+
<ol class="steps">
|
|
41
|
+
<li class="step">
|
|
42
|
+
<h3>Open Supabase and sign in</h3>
|
|
43
|
+
<p>Go to <a href="https://supabase.com/dashboard/new/_">https://supabase.com/dashboard/new/_</a>. Sign in, or create a free account first.</p>
|
|
44
|
+
</li>
|
|
45
|
+
<li class="step">
|
|
46
|
+
<h3>Create the project</h3>
|
|
47
|
+
<p>Fill in the new-project form: a project name, a database password, and the region closest to your users. Save the database password in a password manager; it is <em>not</em> one of the two values below. Create the project and wait until it is ready.</p>
|
|
48
|
+
</li>
|
|
49
|
+
<li class="step">
|
|
50
|
+
<h3>Click “Connect”</h3>
|
|
51
|
+
<p>On the project page, click <strong>Connect</strong> at the top. The dialog shows the <strong>Project URL</strong> and the <strong>publishable key</strong> for the framework you select. Choose Next.js.</p>
|
|
52
|
+
</li>
|
|
53
|
+
<li class="step">
|
|
54
|
+
<h3>Copy the Project URL into the file</h3>
|
|
55
|
+
<p>Open the file <span class="file">.env.local</span> in your project folder. Replace the placeholder after <code>NEXT_PUBLIC_SUPABASE_URL=</code> with the Project URL.</p>
|
|
56
|
+
</li>
|
|
57
|
+
<li class="step">
|
|
58
|
+
<h3>Copy the publishable key into the file</h3>
|
|
59
|
+
<p>The publishable key starts with <code>sb_publishable_</code>. Replace the placeholder after <code>NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY=</code> with it. Every key is also listed under <strong>Settings > API Keys</strong>.</p>
|
|
60
|
+
</li>
|
|
61
|
+
<li class="step">
|
|
62
|
+
<h3>Leave the secret keys where they are</h3>
|
|
63
|
+
<p>Do not put a secret key (it starts with <code>sb_secret_</code>) or the legacy <code>service_role</code> key in this file. Those are for servers only and must never reach a browser.</p>
|
|
64
|
+
</li>
|
|
65
|
+
<li class="step">
|
|
66
|
+
<h3>Save, then start the app again</h3>
|
|
67
|
+
<p>Save the file. Stop the app if it is running and start it again with <code>pnpm dev</code>, so it reads the new values.</p>
|
|
68
|
+
</li>
|
|
69
|
+
</ol>
|
|
70
|
+
|
|
71
|
+
<h2>What goes where</h2>
|
|
72
|
+
<table>
|
|
73
|
+
<thead><tr><th>Name in the file</th><th>What it is</th><th>Where to find it</th></tr></thead>
|
|
74
|
+
<tbody>
|
|
75
|
+
<tr><td><code>NEXT_PUBLIC_SUPABASE_URL</code></td><td>The address of your Supabase project (Project URL)</td><td>Your project > Connect</td></tr>
|
|
76
|
+
<tr><td><code>NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY</code></td><td>The publishable key, starting with <code>sb_publishable_</code></td><td>Your project > Connect, or Settings > API Keys</td></tr>
|
|
77
|
+
</tbody>
|
|
78
|
+
</table>
|
|
79
|
+
|
|
80
|
+
<h2>What the file looks like when you are done</h2>
|
|
81
|
+
<p>The file is <span class="file">.env.local</span>, in the top folder of your project. The parts after each <code>=</code> are yours; these are stand-ins.</p>
|
|
82
|
+
<pre>NEXT_PUBLIC_SUPABASE_URL=https://your-project-ref.supabase.co
|
|
83
|
+
NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY=your-publishable-key</pre>
|
|
84
|
+
|
|
85
|
+
<div class="good"><strong>The file stays on your computer.</strong> Git ignores <span class="file">.env.local</span>, so it is never uploaded to GitHub. You type the values in yourself: cckit does not read them, print them or send them anywhere.</div>
|
|
86
|
+
<div class="never"><strong>Never paste a key into a chat, an issue, a commit or a screenshot.</strong> If a secret key leaks, create a new one under Settings > API Keys and delete the old one.</div>
|
|
87
|
+
|
|
88
|
+
<h2>Using it in your code</h2>
|
|
89
|
+
<p>Your project has two small files. Use <span class="file">lib/supabase/client.ts</span> in parts of the app that run in the browser, and <span class="file">lib/supabase/server.ts</span> in parts that run on the server.</p>
|
|
90
|
+
<pre>import { createClient } from "@/lib/supabase/server";
|
|
91
|
+
|
|
92
|
+
export default async function Page() {
|
|
93
|
+
const supabase = await createClient();
|
|
94
|
+
const { data } = await supabase.from("notes").select();
|
|
95
|
+
return <pre>{JSON.stringify(data, null, 2)}</pre>;
|
|
96
|
+
}</pre>
|
|
97
|
+
|
|
98
|
+
<h2>Sources</h2>
|
|
99
|
+
<p>
|
|
100
|
+
<a href="https://supabase.com/docs/guides/getting-started/quickstarts/nextjs">Supabase: Use Supabase with Next.js</a><br>
|
|
101
|
+
<a href="https://supabase.com/docs/guides/auth/server-side/creating-a-client">Supabase: Creating a Supabase client for SSR</a><br>
|
|
102
|
+
<a href="https://supabase.com/docs/guides/api/api-keys">Supabase: Understanding API keys</a>
|
|
103
|
+
</p>
|
|
104
|
+
</main>
|
|
105
|
+
</body>
|
|
106
|
+
</html>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { createBrowserClient } from "@supabase/ssr";
|
|
2
|
+
|
|
3
|
+
// Use this in Client Components ("use client").
|
|
4
|
+
export function createClient() {
|
|
5
|
+
return createBrowserClient(
|
|
6
|
+
process.env.NEXT_PUBLIC_SUPABASE_URL!,
|
|
7
|
+
process.env.NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY!,
|
|
8
|
+
);
|
|
9
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { createServerClient } from "@supabase/ssr";
|
|
2
|
+
import { cookies } from "next/headers";
|
|
3
|
+
|
|
4
|
+
// Use this in Server Components, Server Actions and Route Handlers.
|
|
5
|
+
// Create a new client inside each function that needs one; do not keep it in a global variable.
|
|
6
|
+
export async function createClient() {
|
|
7
|
+
const cookieStore = await cookies();
|
|
8
|
+
|
|
9
|
+
return createServerClient(
|
|
10
|
+
process.env.NEXT_PUBLIC_SUPABASE_URL!,
|
|
11
|
+
process.env.NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY!,
|
|
12
|
+
{
|
|
13
|
+
cookies: {
|
|
14
|
+
getAll() {
|
|
15
|
+
return cookieStore.getAll();
|
|
16
|
+
},
|
|
17
|
+
setAll(cookiesToSet) {
|
|
18
|
+
try {
|
|
19
|
+
cookiesToSet.forEach(({ name, value, options }) =>
|
|
20
|
+
cookieStore.set(name, value, options),
|
|
21
|
+
);
|
|
22
|
+
} catch {
|
|
23
|
+
// Called from a Server Component, which cannot set cookies. Safe to ignore.
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
);
|
|
29
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "supabase",
|
|
3
|
+
"label": "Supabase",
|
|
4
|
+
"summary": "A hosted database with sign-in built in. You create a free account on their website; there is nothing to install or run on your computer.",
|
|
5
|
+
"fits": "an app that needs accounts or saved information and has nobody to look after a server.",
|
|
6
|
+
"recommended": true,
|
|
7
|
+
"envFile": ".env.local",
|
|
8
|
+
"env": [
|
|
9
|
+
{
|
|
10
|
+
"name": "NEXT_PUBLIC_SUPABASE_URL",
|
|
11
|
+
"placeholder": "https://your-project-ref.supabase.co",
|
|
12
|
+
"what": "the address of your Supabase project (Project URL)",
|
|
13
|
+
"where": "Supabase dashboard > your project > Connect"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"name": "NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY",
|
|
17
|
+
"placeholder": "your-publishable-key",
|
|
18
|
+
"what": "the publishable key, which starts with sb_publishable_",
|
|
19
|
+
"where": "Supabase dashboard > your project > Connect, or Settings > API Keys"
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"guide": "supabase/guide.html",
|
|
23
|
+
"test": "../scripts/database-supabase-test.sh",
|
|
24
|
+
"steps": [
|
|
25
|
+
"Open https://supabase.com/dashboard/new/_ in your browser. Sign in, or create a free account first.",
|
|
26
|
+
"Fill in the new-project form: a project name, a database password (save it in a password manager; it is not one of the two values below), and the region closest to your users. Create the project and wait until it is ready.",
|
|
27
|
+
"On the project page, click \"Connect\" at the top. The dialog shows the Project URL and the publishable key for the framework you select; choose Next.js.",
|
|
28
|
+
"Copy the Project URL. In the env file named below, replace the placeholder after NEXT_PUBLIC_SUPABASE_URL= with it.",
|
|
29
|
+
"Copy the publishable key (it starts with sb_publishable_). Replace the placeholder after NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY= with it. Every key is also listed under Settings > API Keys.",
|
|
30
|
+
"Do not put a secret key (it starts with sb_secret_) or the legacy service_role key in this file: those are for servers only and must never reach a browser.",
|
|
31
|
+
"Save the file, then start the app again (pnpm dev) so it reads the new values."
|
|
32
|
+
],
|
|
33
|
+
"stacks": {
|
|
34
|
+
"nextjs": {
|
|
35
|
+
"detect": {
|
|
36
|
+
"packageDependency": "next"
|
|
37
|
+
},
|
|
38
|
+
"install": "pnpm add @supabase/supabase-js @supabase/ssr",
|
|
39
|
+
"packages": [
|
|
40
|
+
"@supabase/supabase-js",
|
|
41
|
+
"@supabase/ssr"
|
|
42
|
+
],
|
|
43
|
+
"files": [
|
|
44
|
+
{
|
|
45
|
+
"from": "supabase/nextjs/lib/supabase/client.ts",
|
|
46
|
+
"to": "lib/supabase/client.ts"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"from": "supabase/nextjs/lib/supabase/server.ts",
|
|
50
|
+
"to": "lib/supabase/server.ts"
|
|
51
|
+
}
|
|
52
|
+
]
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"lastVerified": "2026-11-12",
|
|
56
|
+
"sources": [
|
|
57
|
+
"https://supabase.com/docs/guides/getting-started/quickstarts/nextjs",
|
|
58
|
+
"https://supabase.com/docs/guides/auth/server-side/creating-a-client",
|
|
59
|
+
"https://supabase.com/docs/guides/api/api-keys",
|
|
60
|
+
"https://github.com/vercel/next.js/tree/canary/examples/with-supabase/lib/supabase"
|
|
61
|
+
],
|
|
62
|
+
"recheck": {
|
|
63
|
+
"drifts": [
|
|
64
|
+
"the env variable names (NEXT_PUBLIC_SUPABASE_URL, NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY)",
|
|
65
|
+
"where the dashboard shows the URL and the key (the Connect dialog, Settings > API Keys)",
|
|
66
|
+
"the legacy anon / service_role keys: Supabase states they are deprecated by the end of 2026",
|
|
67
|
+
"the createBrowserClient / createServerClient signatures in @supabase/ssr"
|
|
68
|
+
]
|
|
69
|
+
}
|
|
70
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "emil-design-eng",
|
|
3
|
+
"label": "emil-design-eng",
|
|
4
|
+
"summary": "Interaction and motion craft on a chosen design: which easing, duration and property an animation uses, and which animations a page should not have. The second skill `page-design` applies.",
|
|
5
|
+
"why": "No API key and no paid product. One skill is installed out of a pack of 19 (counted in the repository's skills/ folder on 2026-11-13): loading the whole pack costs context `page-design` does not need. Installing runs the third-party `skills` CLI through npx, which needs Node.js 22.20 or later.",
|
|
6
|
+
"config": { "key": "designMotion.provider", "value": "emil-design-eng" },
|
|
7
|
+
"detect": {
|
|
8
|
+
"run": "test -f .claude/skills/emil-design-eng/SKILL.md || test -f \"$HOME/.claude/skills/emil-design-eng/SKILL.md\"",
|
|
9
|
+
"bin": "npx"
|
|
10
|
+
},
|
|
11
|
+
"install": [
|
|
12
|
+
{
|
|
13
|
+
"manager": "npx",
|
|
14
|
+
"run": "npx -y skills@latest add emilkowalski/skills --skill emil-design-eng -a claude-code -y",
|
|
15
|
+
"note": "The pack's README documents only `npx skills@latest add emilkowalski/skills`, which installs every skill. `--skill`, `-a` and `-y` are options of the `skills` CLI (vercel-labs/skills, docs/commands.md, read 2026-11-13); the skill folder skills/emil-design-eng exists in the pack. One run is on record, on 2026-11-13, through `cckit doctor --fix` in a Next.js project: the skill landed in .claude/skills/emil-design-eng and skills-lock.json was written; whether .agents/skills/ got a copy was not recorded. Per the CLI's docs it installs into the current project (`-g` would make it global): a copy under .agents/skills/, a link at .claude/skills/emil-design-eng, and an entry in skills-lock.json."
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"verify": {
|
|
19
|
+
"run": "test -f .claude/skills/emil-design-eng/SKILL.md || test -f \"$HOME/.claude/skills/emil-design-eng/SKILL.md\"",
|
|
20
|
+
"failsOn": "The skill file is in neither this project nor ~/.claude/skills."
|
|
21
|
+
},
|
|
22
|
+
"afterInstall": "reload the agent session so it lists the skill, and commit .claude/skills/emil-design-eng, skills-lock.json and .agents/skills/emil-design-eng when it exists",
|
|
23
|
+
"alsoWrites": ["skills-lock.json"],
|
|
24
|
+
"uninstall": "npx -y skills@latest remove emil-design-eng -a claude-code -y",
|
|
25
|
+
"recheck": {
|
|
26
|
+
"cadence": "monthly",
|
|
27
|
+
"drifts": [
|
|
28
|
+
"the package name skills on npm and its `add` options --skill, -a, -y",
|
|
29
|
+
"the skill folder name emil-design-eng in emilkowalski/skills",
|
|
30
|
+
"that a project install for claude-code lands in .claude/skills/"
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
"docs": "https://github.com/emilkowalski/skills#readme",
|
|
34
|
+
"attribution": {
|
|
35
|
+
"author": "Emil Kowalski (emilkowalski)",
|
|
36
|
+
"license": "MIT",
|
|
37
|
+
"homepage": "https://github.com/emilkowalski/skills",
|
|
38
|
+
"affiliated": false,
|
|
39
|
+
"notice": "emil-design-eng is a skill by Emil Kowalski, installed from his public repository under its own MIT licence (LICENSE read from the repository on 2026-11-13). cckit is not affiliated with its author and vendors none of its content."
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "graft",
|
|
3
|
+
"label": "Graft",
|
|
4
|
+
"summary": "Code-graph retrieval: agents ask an index where code lives, who calls a symbol and what a diff reaches, instead of grepping the tree.",
|
|
5
|
+
"why": "The retrieval verbs (ask, grep, skeleton, callers, map, blast) parse with tree-sitter: no model, no API key. `graft build --deep` is the one command that calls an LLM, and cckit never runs it.",
|
|
6
|
+
"config": { "key": "codeGraph.provider", "value": "graft" },
|
|
7
|
+
"appliesWhen": {
|
|
8
|
+
"anyExtension": [
|
|
9
|
+
".ts", ".tsx", ".mts", ".cts", ".js", ".jsx", ".mjs", ".cjs",
|
|
10
|
+
".py", ".pyi", ".go", ".java", ".kt", ".kts", ".swift", ".php", ".r", ".R",
|
|
11
|
+
".rs", ".c", ".h", ".cpp", ".cc", ".cxx", ".hpp", ".hh", ".rb", ".cs",
|
|
12
|
+
".scala", ".sc", ".ex", ".exs", ".sol", ".ml", ".mli", ".zig", ".dart",
|
|
13
|
+
".clj", ".cljs", ".cljc", ".bb", ".nix", ".lua"
|
|
14
|
+
],
|
|
15
|
+
"note": "Read from dist/graph/extract.js (depth tier) and dist/graph/generic.js (breadth tier) of @nanonets/graft 0.18.0. A file whose extension is absent is skipped, not indexed. There is no shell grammar, so a repo of only .sh files gets an empty graph and the integration is not offered there."
|
|
16
|
+
},
|
|
17
|
+
"detect": { "run": "graft --version" },
|
|
18
|
+
"install": [
|
|
19
|
+
{
|
|
20
|
+
"manager": "npm",
|
|
21
|
+
"run": "npm install -g @nanonets/graft",
|
|
22
|
+
"note": "The upstream-documented install, and the one that runs here: 0.18.0 on darwin/arm64, Node v22.23.2."
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"manager": "pnpm",
|
|
26
|
+
"run": "pnpm add -g @nanonets/graft",
|
|
27
|
+
"note": "Second on evidence: on darwin/arm64 with Node 22 (abi 127) the pnpm install exits 0 and every invocation, `graft --version` included, then dies with 'No native build was found' loaded from tree-sitter-kotlin. detect fails on that, so the runner reports the tool missing instead of installed."
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
"wire": {
|
|
31
|
+
"run": "graft init --agents claude",
|
|
32
|
+
"dryRun": "graft init --agents claude --no-statusline --no-global --dry-run",
|
|
33
|
+
"writes": [
|
|
34
|
+
".claude/settings.json (hook blocks, four permissions.allow entries, footerLinksRegexes)",
|
|
35
|
+
".claude/helpers/graft-hooks.cjs",
|
|
36
|
+
".claude/helpers/graft-statusline.cjs",
|
|
37
|
+
".claude/skills/graft/SKILL.md",
|
|
38
|
+
".mcp.json (mcpServers.graft)",
|
|
39
|
+
".gitignore (/graft/)",
|
|
40
|
+
".ignore",
|
|
41
|
+
"graft/ (the graph: init also runs `graft build`)"
|
|
42
|
+
],
|
|
43
|
+
"declined": {
|
|
44
|
+
"--no-statusline": "cckit ships its own statusline, and a project-level statusLine hides a user-level one. The shim file .claude/helpers/graft-statusline.cjs is still written; no statusLine key is.",
|
|
45
|
+
"--no-global": "Without it graft init also writes ~/.claude/settings.json, ~/.claude/helpers/graft-hooks.cjs and ~/.claude.json, which change every repo on the machine. A per-project integration stays inside the project."
|
|
46
|
+
},
|
|
47
|
+
"kept": {
|
|
48
|
+
"hooks": "ON. Tested 2026-11-11 with graft 0.18.0: `graft init --agents claude --no-statusline --no-global` in a scratch repo whose .claude/settings.json already held one hook entry on each of SessionStart, UserPromptSubmit, PostToolUse and Stop. All four entries survived byte-identical and stayed first in their event; graft appended its own (one per event, two on PostToolUse). A second init left settings.json identical. Hooks are the push path (graft adds matching locations to a prompt unasked); the MCP server it also registers is the pull path."
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"build": {
|
|
52
|
+
"run": "graft build",
|
|
53
|
+
"cost": "Local tree-sitter parse, no API key.",
|
|
54
|
+
"deep": { "run": "graft build --deep", "cost": "LLM calls under the user's own key.", "auto": false }
|
|
55
|
+
},
|
|
56
|
+
"rules": ["code-retrieval"],
|
|
57
|
+
"afterInstall": "run 'graft init --agents claude --no-statusline --no-global' in the repo to wire it",
|
|
58
|
+
"verify": {
|
|
59
|
+
"run": "graft --version",
|
|
60
|
+
"failsOn": "The binary is missing, or its native tree-sitter build does not load on this Node version. `graft check` is the per-repo freshness check: exit 1 when graft/ is absent or has drifted from the code."
|
|
61
|
+
},
|
|
62
|
+
"uninstall": "graft uninstall -y --no-global",
|
|
63
|
+
"recheck": {
|
|
64
|
+
"cadence": "monthly",
|
|
65
|
+
"drifts": [
|
|
66
|
+
"the package name @nanonets/graft on npm",
|
|
67
|
+
"the graft init flag names (--agents, --no-statusline, --no-global)",
|
|
68
|
+
"the indexed extension list",
|
|
69
|
+
"whether graft init still preserves existing hook entries"
|
|
70
|
+
]
|
|
71
|
+
},
|
|
72
|
+
"docs": "https://github.com/trailhq/Trail-Code#readme",
|
|
73
|
+
"attribution": {
|
|
74
|
+
"author": "NanoNets / Trail",
|
|
75
|
+
"license": "MIT",
|
|
76
|
+
"homepage": "https://github.com/trailhq/Trail-Code",
|
|
77
|
+
"affiliated": false,
|
|
78
|
+
"notice": "Graft is open-source software by NanoNets / Trail, installed from its public npm package under its own MIT license. cckit is not affiliated with either.",
|
|
79
|
+
"telemetry": "Per the vendor README: a daily npm version check and one batched anonymous usage ping, opt-out. `graft telemetry disable` or DO_NOT_TRACK=1 turns the ping off. cckit sets neither."
|
|
80
|
+
}
|
|
81
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "impeccable",
|
|
3
|
+
"label": "Impeccable",
|
|
4
|
+
"summary": "Design direction for a page: commands that plan the page, set type, layout and colour, and rules that flag the look of a generated page. The first skill `page-design` applies.",
|
|
5
|
+
"why": "No API key and no paid product. Installing runs `npx impeccable install`, which writes the skill into this project. The skill runs an engine binary that ships next to it or is downloaded once into ~/.impeccable/bin/. When a new design starts, the skill fetches a set of visual directions from the impeccable.style catalogue. Its installer can add a design hook that runs on every UI file the agent edits; in Claude Code that hook runs outside the model's permission checks. Its live mode can start the agent CLI with permission checks off: `page-design` never uses live mode in an unattended run.",
|
|
6
|
+
"config": { "key": "designDirection.provider", "value": "impeccable" },
|
|
7
|
+
"detect": {
|
|
8
|
+
"run": "test -f .claude/skills/impeccable/SKILL.md || test -f \"$HOME/.claude/skills/impeccable/SKILL.md\"",
|
|
9
|
+
"bin": "npx"
|
|
10
|
+
},
|
|
11
|
+
"install": [
|
|
12
|
+
{
|
|
13
|
+
"manager": "npx",
|
|
14
|
+
"run": "npx -y impeccable install --providers=claude --scope=project",
|
|
15
|
+
"note": "`--providers` and `--scope` are the flags the vendor README gives for scripts (read 2026-11-13, commit c4cd1924c3). One run is on record, on 2026-11-13, through `cckit doctor --fix` in a Next.js project: the install finished with no terminal, wrote .claude/skills/impeccable/ and four .claude/agents/impeccable-*.md files, and left .claude/settings.json unmodified, so no design hook was added. Other versions of the installer are not covered by that run. The runner gives the installer no stdin, so a prompt ends the install as failed, not as accepted. The Claude Code plugin route (`/plugin marketplace add pbakaus/impeccable`) also works, and leaves no file this descriptor's detect can see."
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"verify": {
|
|
19
|
+
"run": "test -f .claude/skills/impeccable/SKILL.md || test -f \"$HOME/.claude/skills/impeccable/SKILL.md\"",
|
|
20
|
+
"failsOn": "The skill file is in neither this project nor ~/.claude/skills. A file check only: it does not start the engine binary."
|
|
21
|
+
},
|
|
22
|
+
"afterInstall": "reload the agent session so it lists the skill, check `git status` for a change to .claude/settings.json (a design hook), and commit .claude/skills/impeccable with the agents files",
|
|
23
|
+
"alsoWrites": [".claude/agents/impeccable-*.md (agent definitions, four in the run of 2026-11-13)"],
|
|
24
|
+
"recheck": {
|
|
25
|
+
"cadence": "monthly",
|
|
26
|
+
"drifts": [
|
|
27
|
+
"the package name impeccable on npm",
|
|
28
|
+
"the installer flags --providers and --scope",
|
|
29
|
+
"that a project install for Claude Code lands in .claude/skills/impeccable/",
|
|
30
|
+
"the command names page-design uses: init, shape, typeset, layout, colorize, live, generate"
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
"docs": "https://impeccable.style/docs",
|
|
34
|
+
"attribution": {
|
|
35
|
+
"author": "pbakaus",
|
|
36
|
+
"license": "Apache-2.0",
|
|
37
|
+
"homepage": "https://github.com/pbakaus/impeccable",
|
|
38
|
+
"affiliated": false,
|
|
39
|
+
"notice": "Impeccable is open-source software published by the GitHub account pbakaus, installed from its public npm package under its own Apache-2.0 licence (LICENSE read from the repository on 2026-11-13). cckit is not affiliated with its author and vendors none of its content.",
|
|
40
|
+
"telemetry": "Per the vendor README: a new design fetches visual directions from the impeccable.style catalogue, and that request is made with telemetry on or off. Telemetry itself is an anonymous record of which directions were shown and picked; `npx impeccable telemetry off`, DO_NOT_TRACK=1 or `\"telemetry\": false` in .impeccable/config.json turns it off. cckit sets none of them."
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://cckit.dev/integration.schema.json",
|
|
4
|
+
"title": "cckit integration descriptor",
|
|
5
|
+
"description": "One optional third-party tool cckit can offer, install and verify. One file per tool: integrations/<id>.json. Checked by integration_validate (scripts/lib/integrations.sh), which implements exactly these keywords: type, required, properties, additionalProperties:false, items, minItems, minLength, pattern, enum. A keyword outside that list is NOT enforced — extend the validator before using one here.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": ["id", "label", "summary", "config", "detect", "install", "verify", "docs", "attribution"],
|
|
9
|
+
"properties": {
|
|
10
|
+
"id": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"pattern": "^[a-z][a-z0-9]*(-[a-z0-9]+)*$",
|
|
13
|
+
"description": "The handle typed after `cckit add`. Must equal the file name without `.json`."
|
|
14
|
+
},
|
|
15
|
+
"label": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"minLength": 1,
|
|
18
|
+
"description": "Human name shown in lists and prompts."
|
|
19
|
+
},
|
|
20
|
+
"summary": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"minLength": 1,
|
|
23
|
+
"description": "One line: what the tool does for the project."
|
|
24
|
+
},
|
|
25
|
+
"why": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"description": "Optional: what it costs and what it replaces."
|
|
28
|
+
},
|
|
29
|
+
"config": {
|
|
30
|
+
"type": "object",
|
|
31
|
+
"additionalProperties": false,
|
|
32
|
+
"required": ["key"],
|
|
33
|
+
"description": "The project-config key that turns the integration on. Naming rule: the key names a CAPABILITY, never the vendor — `<capability>.provider` whose value names the tool (the `deploy.target` / `ci.provider` precedent in modules/software.json), or `<capability>.enabled` for a boolean switch that already exists (`memory.enabled`, `local.enabled`). A key containing the descriptor's own id is refused. Every key used here needs a property in kit.config.schema.json.",
|
|
34
|
+
"properties": {
|
|
35
|
+
"key": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"pattern": "^[A-Za-z][A-Za-z0-9]*(\\.[A-Za-z][A-Za-z0-9]*)+$",
|
|
38
|
+
"description": "Dotted path into the project config, e.g. `codeGraph.provider`."
|
|
39
|
+
},
|
|
40
|
+
"value": {
|
|
41
|
+
"description": "The value at `key` that means ON. Omitted = boolean true."
|
|
42
|
+
},
|
|
43
|
+
"default": {
|
|
44
|
+
"type": "boolean",
|
|
45
|
+
"description": "true = the integration is ON in a project whose config does not hold `key` at all; only an explicit other value turns it off (`false` for a boolean key, `\"none\"` for a named one). Omitted or false = off until `cckit add <id>` writes the key. A default-on tool must have a fallback: `cckit doctor` reports it missing without failing, because the project never asked for it."
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"appliesWhen": {
|
|
50
|
+
"type": "object",
|
|
51
|
+
"additionalProperties": false,
|
|
52
|
+
"description": "Where the tool can work. Omitted = any repo on any machine. Two kinds of condition, and every one present must hold: `anyExtension` judges the repo, `platform` judges the machine. An integration that does not apply is not offered and not installed.",
|
|
53
|
+
"properties": {
|
|
54
|
+
"anyExtension": {
|
|
55
|
+
"type": "array",
|
|
56
|
+
"minItems": 1,
|
|
57
|
+
"items": { "type": "string", "pattern": "^\\.[A-Za-z0-9_+-]+$" },
|
|
58
|
+
"description": "Applies when at least one file in the repo ends in one of these extensions. Case-sensitive, leading dot. The repo's files are git's tracked + unignored list inside a work tree, otherwise every file outside .git/ and node_modules/."
|
|
59
|
+
},
|
|
60
|
+
"platform": {
|
|
61
|
+
"type": "object",
|
|
62
|
+
"additionalProperties": false,
|
|
63
|
+
"description": "The machine the tool needs. Each field present is compared to `uname` output verbatim.",
|
|
64
|
+
"properties": {
|
|
65
|
+
"os": { "type": "string", "enum": ["Darwin", "Linux"], "description": "`uname -s`." },
|
|
66
|
+
"arch": { "type": "string", "enum": ["arm64", "aarch64", "x86_64"], "description": "`uname -m`. Apple silicon reports arm64; 64-bit ARM Linux reports aarch64." }
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"note": {
|
|
70
|
+
"type": "string",
|
|
71
|
+
"description": "Where the list was verified, and what happens to a file outside it."
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"detect": {
|
|
76
|
+
"type": "object",
|
|
77
|
+
"additionalProperties": false,
|
|
78
|
+
"required": ["run"],
|
|
79
|
+
"description": "How to tell the tool is already installed.",
|
|
80
|
+
"properties": {
|
|
81
|
+
"run": { "type": "string", "minLength": 1, "description": "Command that exits 0 when the tool is present." },
|
|
82
|
+
"bin": { "type": "string", "minLength": 1, "description": "The tool's binary name, when it is not the first word of `run` (a `command -v <bin>` probe, for a tool whose own flags are slow to answer)." }
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"install": {
|
|
86
|
+
"type": "array",
|
|
87
|
+
"minItems": 1,
|
|
88
|
+
"description": "Install candidates, tried IN THIS ORDER; the first that works wins.",
|
|
89
|
+
"items": {
|
|
90
|
+
"type": "object",
|
|
91
|
+
"additionalProperties": false,
|
|
92
|
+
"required": ["manager", "run"],
|
|
93
|
+
"properties": {
|
|
94
|
+
"manager": {
|
|
95
|
+
"type": "string",
|
|
96
|
+
"enum": ["brew", "pipx", "uv", "npm", "pnpm", "npx", "curl"],
|
|
97
|
+
"description": "The tool that must be on the machine for this candidate to be tried."
|
|
98
|
+
},
|
|
99
|
+
"run": { "type": "string", "minLength": 1, "description": "The install command." },
|
|
100
|
+
"resident": { "type": "boolean", "description": "false when the candidate leaves no binary behind (npx). Default true." },
|
|
101
|
+
"bootstrap": {
|
|
102
|
+
"type": "object",
|
|
103
|
+
"additionalProperties": false,
|
|
104
|
+
"required": ["manager", "run"],
|
|
105
|
+
"description": "How to get this candidate's `manager` when the machine has none of the descriptor's managers. Run only then: a machine that already holds any listed manager is never bootstrapped.",
|
|
106
|
+
"properties": {
|
|
107
|
+
"manager": { "type": "string", "enum": ["brew", "pipx", "uv", "npm", "pnpm", "npx", "curl"], "description": "The tool that must be on the machine for the bootstrap to be tried." },
|
|
108
|
+
"run": { "type": "string", "minLength": 1, "description": "The command that installs the candidate's manager." }
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"note": { "type": "string" }
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
"wire": {
|
|
116
|
+
"type": "object",
|
|
117
|
+
"additionalProperties": false,
|
|
118
|
+
"required": ["run"],
|
|
119
|
+
"description": "Optional per-repo step after install, for a tool that writes into the project.",
|
|
120
|
+
"properties": {
|
|
121
|
+
"run": { "type": "string", "minLength": 1, "description": "The wire command, without the declined flags." },
|
|
122
|
+
"dryRun": { "type": "string", "description": "A form of the command that prints what it would write." },
|
|
123
|
+
"writes": { "type": "array", "items": { "type": "string" }, "description": "Paths the wire step creates or edits." },
|
|
124
|
+
"declined": {
|
|
125
|
+
"type": "object",
|
|
126
|
+
"description": "Flags cckit passes to turn a tool feature OFF, each mapped to the reason. Keys are the flags, values the reasons."
|
|
127
|
+
},
|
|
128
|
+
"kept": {
|
|
129
|
+
"type": "object",
|
|
130
|
+
"description": "Tool features cckit leaves ON although it could decline them, each mapped to the evidence for that decision. Keys name the feature, values the test that was run. Never reaches the command line."
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
"build": {
|
|
135
|
+
"type": "object",
|
|
136
|
+
"additionalProperties": false,
|
|
137
|
+
"required": ["run"],
|
|
138
|
+
"description": "Optional step that produces the tool's own data (an index, a graph).",
|
|
139
|
+
"properties": {
|
|
140
|
+
"run": { "type": "string", "minLength": 1 },
|
|
141
|
+
"cost": { "type": "string", "description": "What the step spends: time, network, API calls." },
|
|
142
|
+
"deep": {
|
|
143
|
+
"type": "object",
|
|
144
|
+
"additionalProperties": false,
|
|
145
|
+
"required": ["run"],
|
|
146
|
+
"description": "A costlier variant of the build. cckit runs it only when `auto` is true.",
|
|
147
|
+
"properties": {
|
|
148
|
+
"run": { "type": "string", "minLength": 1 },
|
|
149
|
+
"cost": { "type": "string" },
|
|
150
|
+
"auto": { "type": "boolean", "description": "Default false: recorded for the user, never run by cckit." }
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
"verify": {
|
|
156
|
+
"type": "object",
|
|
157
|
+
"additionalProperties": false,
|
|
158
|
+
"required": ["run"],
|
|
159
|
+
"description": "How to tell the installed tool works.",
|
|
160
|
+
"properties": {
|
|
161
|
+
"run": { "type": "string", "minLength": 1, "description": "Command that exits 0 when the tool is healthy." },
|
|
162
|
+
"failsOn": { "type": "string", "description": "What a non-zero exit means." },
|
|
163
|
+
"json": { "type": "string", "description": "A form of the command with machine-readable output." }
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
"rules": {
|
|
167
|
+
"type": "array",
|
|
168
|
+
"items": { "type": "string", "pattern": "^[a-z][a-z0-9]*(-[a-z0-9]+)*$" },
|
|
169
|
+
"description": "Optional: rule templates (templates/rules/<name>.md) that `cckit add <id>` writes into the project's .claude/rules/ when the integration is switched on. A rule file already in the project is kept, never overwritten."
|
|
170
|
+
},
|
|
171
|
+
"afterInstall": {
|
|
172
|
+
"type": "string",
|
|
173
|
+
"minLength": 1,
|
|
174
|
+
"description": "Optional: the one step cckit leaves to the user after a successful install, shown once in the install report."
|
|
175
|
+
},
|
|
176
|
+
"alsoWrites": {
|
|
177
|
+
"type": "array",
|
|
178
|
+
"minItems": 1,
|
|
179
|
+
"items": { "type": "string", "minLength": 1 },
|
|
180
|
+
"description": "Optional: paths the installer was seen to write besides the one `detect` checks, relative to the project. `cckit doctor` names them on the row of a successful install, so files nobody asked for are not found later in `git status`. List only what a real install showed."
|
|
181
|
+
},
|
|
182
|
+
"uninstall": {
|
|
183
|
+
"type": "string",
|
|
184
|
+
"description": "Optional command that removes what install + wire added."
|
|
185
|
+
},
|
|
186
|
+
"recheck": {
|
|
187
|
+
"type": "object",
|
|
188
|
+
"additionalProperties": false,
|
|
189
|
+
"description": "Optional: what the scheduled recipe check should watch.",
|
|
190
|
+
"properties": {
|
|
191
|
+
"cadence": { "type": "string", "enum": ["monthly"] },
|
|
192
|
+
"drifts": { "type": "array", "items": { "type": "string" }, "description": "The parts of the recipe that go stale: package names, flag names, lists." }
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
"docs": {
|
|
196
|
+
"type": "string",
|
|
197
|
+
"pattern": "^https://",
|
|
198
|
+
"description": "The tool's own documentation."
|
|
199
|
+
},
|
|
200
|
+
"attribution": {
|
|
201
|
+
"type": "object",
|
|
202
|
+
"additionalProperties": false,
|
|
203
|
+
"required": ["author", "homepage", "affiliated", "notice"],
|
|
204
|
+
"description": "Credit for a tool cckit did not write. Held as fields so the next integration cannot ship without them.",
|
|
205
|
+
"properties": {
|
|
206
|
+
"author": { "type": "string", "minLength": 1 },
|
|
207
|
+
"license": { "type": "string" },
|
|
208
|
+
"homepage": { "type": "string", "pattern": "^https://" },
|
|
209
|
+
"affiliated": { "type": "boolean", "description": "false when cckit has no relationship with the author." },
|
|
210
|
+
"notice": { "type": "string", "minLength": 1, "description": "The sentence shown to the user: who makes the tool and whether cckit is affiliated." },
|
|
211
|
+
"telemetry": { "type": "string", "description": "What the tool reports home, and what cckit does about it." }
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
}
|