@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.
- package/.claude-plugin/plugin.json +1 -1
- package/AGENTS.md +169 -21
- package/README.md +505 -35
- package/SECURITY.md +5 -0
- package/bin/cckit +189 -20
- 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/guard-raw-git-ops-test.sh +8 -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 +188 -35
- package/scripts/lib/effort-ops-test.sh +217 -7
- package/scripts/lib/effort-ops.sh +281 -49
- 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-slug.sh +16 -2
- package/scripts/lib/effort.sh +67 -12
- package/scripts/lib/errors-header-test.sh +1 -1
- package/scripts/lib/gh-project-test.sh +35 -1
- package/scripts/lib/gh-project.sh +37 -16
- package/scripts/lib/gh-rest-test.sh +330 -0
- package/scripts/lib/gh-rest.sh +304 -0
- 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 +244 -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 +362 -89
- package/scripts/lib/kto-hotfix-test.sh +232 -0
- package/scripts/lib/kto-task-close-test.sh +83 -0
- package/scripts/lib/kto-task-new-test.sh +95 -0
- package/scripts/lib/kto-task-pr-merge-test.sh +97 -6
- 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/test-env-test.sh +3 -3
- package/scripts/lib/test-env.sh +7 -4
- 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 +93 -9
- package/scripts/lib/worktree-ports-test.sh +57 -4
- package/scripts/lib/worktree-start-test.sh +197 -0
- package/scripts/lib/worktree-start.sh +169 -32
- 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 +27 -14
- 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
|
@@ -42,11 +42,11 @@ have to be true, the human-facing text carries the token and the machine-readabl
|
|
|
42
42
|
Two concrete cases, both of which a token would break:
|
|
43
43
|
|
|
44
44
|
- **The `## Relations` mirror — `- Depends on #N`.** `_eff_relations_add`
|
|
45
|
-
(`scripts/lib/effort-ops.sh:
|
|
46
|
-
one with `want = "- Depends on #" dep` (line
|
|
47
|
-
`grep -qE "^[[:space:]]*- Depends on #${prev}[[:space:]]*$"` (line
|
|
45
|
+
(`scripts/lib/effort-ops.sh:84`) is the one formatter for that line, and it matches an existing
|
|
46
|
+
one with `want = "- Depends on #" dep` (line 86). `effort_chain` re-checks it with
|
|
47
|
+
`grep -qE "^[[:space:]]*- Depends on #${prev}[[:space:]]*$"` (line 445) before writing through the
|
|
48
48
|
same formatter. That literal match is what makes a re-run idempotent instead of appending a
|
|
49
|
-
duplicate line — a tested behavior (`effort-ops-test.sh:
|
|
49
|
+
duplicate line — a tested behavior (`effort-ops-test.sh:370`, "relations_add is idempotent (same
|
|
50
50
|
line twice)"). The blocker is often an effort, so a chained effort body legitimately contains a
|
|
51
51
|
bare `#N` pointing at one.
|
|
52
52
|
- **GitHub's own syntax — `Closes #N`, `blocked_by`.** GitHub parses these to link and auto-close;
|
|
@@ -61,14 +61,15 @@ parenthetical is GitHub's, not a person's, and it stays as GitHub writes it.
|
|
|
61
61
|
## Why `E241.2` and not the sub's own number
|
|
62
62
|
|
|
63
63
|
`E241.2` is derivable from what you are already looking at. The sub's title says effort 241,
|
|
64
|
-
step 2 — so you can act on it without first resolving `#243`.
|
|
65
|
-
identifier you
|
|
64
|
+
step 2 — so you can act on it without first resolving `#243`. The identifier you read is the
|
|
65
|
+
identifier you type.
|
|
66
66
|
|
|
67
67
|
```shell
|
|
68
68
|
cckit start E241.2 # not: cckit start 243
|
|
69
69
|
```
|
|
70
70
|
|
|
71
|
-
|
|
71
|
+
That is this rule's target, not today's CLI: `wt_start` (`scripts/lib/worktree-start.sh`) passes its
|
|
72
|
+
argument to `gh issue view` as the issue number and parses no token. Until it does, type `243`.
|
|
72
73
|
|
|
73
74
|
## PR titles
|
|
74
75
|
|
|
@@ -91,6 +92,9 @@ chore(security): update docs-site deps to clear Dependabot alerts [#249]
|
|
|
91
92
|
**Enforced now:** `effort_pr_title_check` (`scripts/lib/effort.sh`) requires a `[#<num>]` token —
|
|
92
93
|
the exact `[#num]` when given a number, otherwise any `[#digits]` — and `effort_pr` refuses to open
|
|
93
94
|
a PR without it. That check runs on **effort PRs only**; standalone task PRs are unchecked.
|
|
95
|
+
`effort_pr_title` generates the conventional form above, `type(scope): <name> [#<num>]`, and under
|
|
96
|
+
`pr.titleStyle: conventional` (the default) `effort_pr` also refuses, before calling `gh`, a title
|
|
97
|
+
that `commitlint_check` (`scripts/lib/commitlint.sh`) rejects.
|
|
94
98
|
|
|
95
99
|
**This rule targets** `[E<n>]` / `[E<n>.<step>]` on effort and sub PRs, and the check extended to
|
|
96
100
|
every PR. Until that ships, `[#<num>]` is correct and `effort_pr` will keep generating it.
|
|
@@ -130,8 +134,6 @@ segment before the first `-` is `e241.2`, not digits — and a branch with no is
|
|
|
130
134
|
That regression has happened before in this repo; see the comment block in
|
|
131
135
|
`scripts/lib/worktree-issue.sh` explaining why sub-branch parsing exists at all.
|
|
132
136
|
|
|
133
|
-
The token belongs where humans read. Branch names are where tooling parses safety.
|
|
134
|
-
|
|
135
137
|
## Chains
|
|
136
138
|
|
|
137
139
|
A chain is a linear dependency between steps of one effort, written with `→`:
|
|
@@ -161,22 +163,26 @@ nobody consumes.
|
|
|
161
163
|
| Prefix | Values | Read by | Purpose |
|
|
162
164
|
| --- | --- | --- | --- |
|
|
163
165
|
| `priority:` | `p0` `p1` `p2` `p3` | `pm_prio_sort` (wave ordering) | urgency within a wave |
|
|
164
|
-
| `ctx:` | `S` `M` `L` `XL` | `_ep_weight` (session budget) | how much of a session it costs |
|
|
166
|
+
| `ctx:` | `S` `M` `L` `XL` | `_ep_weight`, `_pm_weight` (session budget) | how much of a session it costs |
|
|
165
167
|
| `flow:` | `core` `docs` … | effort dispatch | which flow owns it |
|
|
166
168
|
| `role:` | `tech-lead` `docs` … | delegation brief | who it is written for |
|
|
167
|
-
| `kind:` |
|
|
169
|
+
| `kind:` | `feat` `fix` `task` `chore` `security` `scaffold` `ci` `adr` `spike` `plan`; content kinds `post` `campaign` `brand` `research` | `wt_start` (branch prefix), `kto_pr_title` (commit type) | what sort of work it is |
|
|
168
170
|
| `agent:` | one per declared profile | `ap_profile_from_labels` | which agent profile runs the work |
|
|
169
171
|
| `slug:` | one per effort | `effort_slug_resolve` | resolve a name to an effort |
|
|
170
172
|
|
|
171
173
|
### Rules
|
|
172
174
|
|
|
173
|
-
- **A label must vary.** `kind:task` on every issue
|
|
174
|
-
|
|
175
|
+
- **A label must vary.** `kind:task` on every issue tells you nothing. `kind:` is a closed set
|
|
176
|
+
(`KIT_KINDS`, `scripts/lib/kinds.sh`), the same one `rules/branch-naming.md` allows as a branch
|
|
177
|
+
prefix, because `cckit start` cuts `<kind>/<N>-<slug>` from the label. Set it with
|
|
178
|
+
`cckit new --kind` or `cckit effort new --kind`; a label outside the set starts on `task/`. A content kind (`KIT_CONTENT_KINDS`) is a label only: it starts on the prefix `kit_kind_branch` maps it to and titles its PR `docs:`.
|
|
175
179
|
- **A label must be read.** If nothing consumes it, delete the label *and* the code that writes
|
|
176
|
-
it. `par:seq|wide|<n>` was written by `effort_new` and read by nothing.
|
|
177
|
-
- **Every value in a scale needs a label.** `
|
|
178
|
-
|
|
179
|
-
|
|
180
|
+
it. `par:seq|wide|<n>` was written by `effort_new` and read by nothing, so both were removed.
|
|
181
|
+
- **Every value in a scale needs a label.** `scripts/setup-labels.sh` provisions all four `ctx:`
|
|
182
|
+
values. A scale the code knows but the board cannot express quietly misreports: `ctx:XL` weighs 8
|
|
183
|
+
and had no label, so an `XL` effort was planned at the fallback weight of 2, the same as an `M`.
|
|
184
|
+
The fallback is still 2, and it is now named: an issue with no `ctx:` label shows `?` in the
|
|
185
|
+
plan, and a value outside the scale warns on stderr.
|
|
180
186
|
- **Do not create per-item labels beyond `slug:`.** They grow without bound and match one issue
|
|
181
187
|
each, which makes them useless as a board axis. `agent:<profile>` is not one of these: it is
|
|
182
188
|
bounded by the profiles the config declares, and `scripts/setup-labels.sh` provisions exactly
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# Plain language — say draft, review and approve
|
|
2
|
+
|
|
3
|
+
The person you work with here writes, plans or approves content and may never have used git. cckit
|
|
4
|
+
still runs the work on worktrees, branches and pull requests. This rule decides what you **say**;
|
|
5
|
+
it changes nothing you **run**.
|
|
6
|
+
|
|
7
|
+
It is installed because `plainLanguage.enabled` is `true` in `{{CONFIG_REL}}`. Set the key to
|
|
8
|
+
`false` and delete this file to turn it off.
|
|
9
|
+
|
|
10
|
+
## The words
|
|
11
|
+
|
|
12
|
+
| What cckit does | What you say |
|
|
13
|
+
| --- | --- |
|
|
14
|
+
| records a task (`cckit task new`) | "I added it to the task list." |
|
|
15
|
+
| creates a worktree and a branch (`cckit task start`, `cckit start`) | "I started the draft." |
|
|
16
|
+
| commits and pushes | "I saved the draft." |
|
|
17
|
+
| opens a pull request (`cckit task finish`, `cckit pr`) | "The draft is ready for review." Then the link. |
|
|
18
|
+
| a reviewer approves the pull request | "It is approved." |
|
|
19
|
+
| the pull request merges into `{{BASE_BRANCH}}` | "It is approved and part of the shared version." |
|
|
20
|
+
| the gate or a check fails | "A check failed." Then what failed, in one sentence. |
|
|
21
|
+
| two branches changed the same lines | "Two drafts changed the same passage." |
|
|
22
|
+
| an effort and its sub-issues | "the campaign and its pieces" |
|
|
23
|
+
| task states `todo` · `doing` · `review` · `done` | "not started" · "in progress" · "waiting for review" · "done" |
|
|
24
|
+
| task state `draft` (`cckit task list` prints it for a task that exists only on this computer) | "not started, and only on this computer so far" |
|
|
25
|
+
| task state `shared` (a task sent to the shared list, not approved yet) | "waiting to be added to the shared list" |
|
|
26
|
+
| task state `dropped` | "dropped" |
|
|
27
|
+
|
|
28
|
+
`draft` has two meanings in cckit's output. In the STATE column of `cckit task list` it describes
|
|
29
|
+
the task record: nobody has started the task and it is not on the shared list. Everywhere else in
|
|
30
|
+
this rule "the draft" is the piece being written. Say "not started" for the first; never tell the
|
|
31
|
+
person a draft exists because a task is in the `draft` state.
|
|
32
|
+
|
|
33
|
+
## Rules
|
|
34
|
+
|
|
35
|
+
1. **Say draft, review, approve.** Do not say worktree, branch, commit, push, rebase, diff, merge
|
|
36
|
+
or pull request on your own.
|
|
37
|
+
2. **Name the mechanics when asked.** If the person uses one of those words, or asks how it works
|
|
38
|
+
or where a file is, answer with the real names, paths and commands. Then return to plain words.
|
|
39
|
+
3. **Give the review link as a link.** The person opens it in a browser and approves there. Say
|
|
40
|
+
what approving does: the piece becomes part of the shared version and its task is marked done.
|
|
41
|
+
4. **A failure stays a failure.** Report a failed step in plain words: what did not happen, what it
|
|
42
|
+
means for the piece, what you will do next. Add the command and its error text on one line at the
|
|
43
|
+
end, so someone technical can act on it. Never report a step as done because the plain wording
|
|
44
|
+
has no word for the error.
|
|
45
|
+
5. **Ask in plain words too.** "Is this ready for review?" — not "Should I open the PR?"
|
|
46
|
+
|
|
47
|
+
## What this rule does not change
|
|
48
|
+
|
|
49
|
+
- **Commands.** You run the same `cckit` verbs with the same arguments.
|
|
50
|
+
- **Durable text.** Commit messages, pull request titles and bodies, and task files follow their
|
|
51
|
+
own rules. A pull request title stays a Conventional Commit subject.
|
|
52
|
+
- **Text a program reads.** Output handed to another agent or a tool, and machine lines such as
|
|
53
|
+
`Closes #N`, are written as those readers expect.
|
|
54
|
+
|
|
55
|
+
## Precedence
|
|
56
|
+
|
|
57
|
+
`communication-style.md` sets format and length. This rule sets vocabulary. Where a rule tells you
|
|
58
|
+
to report a branch name, a worktree path or a pull request number in a summary, give the plain
|
|
59
|
+
sentence first and the identifier after it, so the person can pass it to someone technical.
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
# Plan-next — forward planning from the current state
|
|
2
2
|
|
|
3
3
|
cckit plans **forward from what already ships**. `cckit plan-next` (and the `/kit-plan-next` skill)
|
|
4
|
-
|
|
5
|
-
and propose what to build next, grounded in that inventory.
|
|
6
|
-
manual "given where we are, here is what to build next" triage.
|
|
4
|
+
inventory what the kit CURRENTLY ships at runtime — skills, verbs/commands, rules, docs —
|
|
5
|
+
and propose what to build next, grounded in that inventory.
|
|
7
6
|
|
|
8
7
|
> Two planners coexist, and they answer different questions. `cckit plan` / `/kit-next` order the
|
|
9
8
|
> issues that **already exist** (deps-ordered, file-disjoint waves). `cckit plan-next` proposes the
|
|
10
|
-
> issues that **don't exist yet**, derived from gaps in the current
|
|
9
|
+
> issues that **don't exist yet**, derived from gaps in the current inventory. Use plan-next
|
|
11
10
|
> to decide *what* to create; use plan / next to decide *in what order* to do the created work.
|
|
12
11
|
|
|
13
12
|
## Where it sits in the workflow
|
|
@@ -19,15 +18,14 @@ cckit plan-next → propose next efforts (grounded in current skills/ver
|
|
|
19
18
|
└─ cckit plan / cckit next → order + drive the now-existing work
|
|
20
19
|
```
|
|
21
20
|
|
|
22
|
-
It
|
|
21
|
+
It feeds [`/kit-effort-new`](effort-model.md), which produces the
|
|
23
22
|
unit of work the rest of the lifecycle drives.
|
|
24
23
|
|
|
25
24
|
## The mandatory docs + README step (docs-always)
|
|
26
25
|
|
|
27
|
-
**Every plan plan-next emits carries a docs + README update step as rank 1 —
|
|
26
|
+
**Every plan plan-next emits carries a docs + README update step as rank 1 — never
|
|
28
27
|
dropped, even for a tiny change.** Docs are part of "done," not a follow-up. When you scope a chosen
|
|
29
|
-
proposal into an effort, that effort MUST keep a docs + README sub-issue.
|
|
30
|
-
on every plan precisely so it cannot be forgotten; `/kit-effort-new` must preserve it.
|
|
28
|
+
proposal into an effort, that effort MUST keep a docs + README sub-issue.
|
|
31
29
|
|
|
32
30
|
## Grounded, not generative
|
|
33
31
|
|
|
@@ -39,7 +37,7 @@ The proposals are deterministic and derived from the inventory, not invented:
|
|
|
39
37
|
there is always at least one concrete next effort beyond docs.
|
|
40
38
|
|
|
41
39
|
Run it from the cckit repo for a full inventory, or from a host project where the kit is installed —
|
|
42
|
-
there it degrades
|
|
40
|
+
there it degrades to whatever capability dirs exist (host docs only) and never crashes.
|
|
43
41
|
|
|
44
42
|
## Critical — context-anxiety rule
|
|
45
43
|
|
|
@@ -49,8 +47,8 @@ monitored model's prompt or context, and it is never wired into any agent's cont
|
|
|
49
47
|
The thesis is the opposite of context-stuffing: planning that is *pre-grounded* in the current
|
|
50
48
|
docs/skills/rules means the EXECUTING agent burns fewer tokens rediscovering what the kit can do —
|
|
51
49
|
the plan informs the human/orchestrator's decision, then only the CHOSEN, scoped effort reaches an
|
|
52
|
-
agent. The
|
|
53
|
-
skill states it up front
|
|
50
|
+
agent. The verb states this in its output footer; the
|
|
51
|
+
skill states it up front.
|
|
54
52
|
|
|
55
53
|
## See also
|
|
56
54
|
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# Review pages — plans, decisions and grills open as a page
|
|
2
|
+
|
|
3
|
+
Three kinds of output go to a review page instead of terminal prose, because the reader has to
|
|
4
|
+
compare, annotate and answer:
|
|
5
|
+
|
|
6
|
+
| Kind | When |
|
|
7
|
+
| --- | --- |
|
|
8
|
+
| `plan` | before implementation: an effort's scope, a forward plan, a migration order |
|
|
9
|
+
| `decision` | a choice with two or more options the owner has to pick from |
|
|
10
|
+
| `grill` | a grilling round: the questions that stress-test a plan or an idea |
|
|
11
|
+
|
|
12
|
+
Everything else stays in the terminal: status, a one-line answer, a diff, a question with no
|
|
13
|
+
options to weigh.
|
|
14
|
+
|
|
15
|
+
## How
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
cckit page mode # `page`, or `terminal: <why>`
|
|
19
|
+
cckit page open .lavish/<name>.html --fallback .lavish/<name>.md
|
|
20
|
+
cckit page poll .lavish/<name>.html # waits for the reader's feedback
|
|
21
|
+
cckit page answer --kind decision --title "<what was decided>" --issue <issue> --body-file <file>
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
1. **Ask first.** `cckit page mode` prints `page` when this session can show one. On `terminal`,
|
|
25
|
+
write no HTML: print the plan, the options or the questions in the terminal and take the answer
|
|
26
|
+
in the conversation.
|
|
27
|
+
2. **Write the page** under `.lavish/`, and the same content as markdown beside it. `open` prints
|
|
28
|
+
the markdown when the page tool fails, so the reader is never left with nothing.
|
|
29
|
+
3. **Collect the answer on the page.** Options carry exactly one recommendation. `poll` returns
|
|
30
|
+
what the reader sent; leave it running in the foreground.
|
|
31
|
+
4. **Write the answer back** with `cckit page answer`, in both modes. It comments on the issue when
|
|
32
|
+
the project uses GitHub and an issue is named, and writes a file under `docs/answers/` when not —
|
|
33
|
+
commit that file with the change it belongs to. An answer that lives only in the conversation
|
|
34
|
+
is lost with the session.
|
|
35
|
+
|
|
36
|
+
## Limits
|
|
37
|
+
|
|
38
|
+
- **Never in an unattended run.** Autopilot, night mode, a wave pane and CI have no reader:
|
|
39
|
+
`cckit page mode` answers `terminal` there, and the fallback exits 0. Do not force a page with
|
|
40
|
+
`CCKIT_PAGES=page` in a run nobody is watching.
|
|
41
|
+
- **Other agents.** The check recognises an attended agent session by `CLAUDECODE`. An agent that
|
|
42
|
+
sets no such variable and runs commands with no terminal gets `terminal`; in an attended session
|
|
43
|
+
of that agent, export `CCKIT_PAGES=page`.
|
|
44
|
+
- **A page is recommended, not a gate.** `cckit effort start` checks for no page and no answer.
|
|
45
|
+
- **Off:** `reviewPages.enabled: false` in the project config (`cckit add lavish --set enable=no`),
|
|
46
|
+
or `CCKIT_PAGES=terminal` for one command. With pages off, the three kinds print to the terminal
|
|
47
|
+
and step 4 still applies.
|
|
48
|
+
- The page tool is Lavish (`lavish-axi`), third-party software run through `npx`; cckit is not
|
|
49
|
+
affiliated with its author. Its own guidance for writing a page: `npx -y lavish-axi --help`.
|
|
@@ -25,6 +25,12 @@ These floor to human review regardless of the `risk:*` label, per existing rules
|
|
|
25
25
|
lockfile rule): one in flight at a time, human-reviewed.
|
|
26
26
|
- **`risk:*` floors to the highest concern in a mixed PR** — never bury a risky change among trivial ones.
|
|
27
27
|
|
|
28
|
+
**Night runs** (`kit-autopilot` § _Mode: night_). An approved night run may merge a `security/*`
|
|
29
|
+
PR whose diff is prose only, by standing rule. The lockfile, auth and `security/*` code floors are
|
|
30
|
+
waived only by that night's grant, and a grant counts only when the repository owner (or a login
|
|
31
|
+
in `night.grantors`) wrote it. CI workflow changes, cost and secrets are never waived, whatever the
|
|
32
|
+
grant says, and a project may add its own never-waivable floors.
|
|
33
|
+
|
|
28
34
|
## The gates (what "green" means)
|
|
29
35
|
|
|
30
36
|
The gates are whatever the project runs to prove a change is sound — typically:
|
|
@@ -35,14 +41,17 @@ The gates are whatever the project runs to prove a change is sound — typically
|
|
|
35
41
|
A `risk:low` auto-pass is valid **only** when the project's gates are green. A red gate = not eligible,
|
|
36
42
|
no exceptions.
|
|
37
43
|
|
|
44
|
+
`gate-and-review.md` is the stricter form where it is installed: the gate blocks the push and its
|
|
45
|
+
output is attached to the PR, and an AI reviewer's findings are each fixed or rebutted before any
|
|
46
|
+
merge — an auto-pass included. On those two points it wins over this rule.
|
|
47
|
+
|
|
38
48
|
## Why
|
|
39
49
|
|
|
40
50
|
- An agent-driven swarm produces more PRs than a human can hand-review; uniform review is the bottleneck.
|
|
41
51
|
- The pipeline (build + typecheck + lint) is a deterministic reviewer for mechanical correctness — let
|
|
42
|
-
it own the low-risk tier. Reserve human judgment for
|
|
43
|
-
|
|
44
|
-
- This is the merge-side counterpart to fanning work out across parallel agents
|
|
45
|
-
tier the review out.
|
|
52
|
+
it own the low-risk tier. Reserve human judgment for design decisions, data/graph shape, security,
|
|
53
|
+
blast radius.
|
|
54
|
+
- This is the merge-side counterpart to fanning work out across parallel agents.
|
|
46
55
|
|
|
47
56
|
## Enforcement
|
|
48
57
|
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
# Shared checkout — the primary checkout belongs to every session at once
|
|
2
|
+
|
|
3
|
+
Three conventions about the one directory every session on a machine has in common: the primary
|
|
4
|
+
checkout of the repository. Each was a correction the kit's maintainer repeated across projects
|
|
5
|
+
before it was written down; they were recorded as cckit effort `E231` on 2026-09-07.
|
|
6
|
+
|
|
7
|
+
Complements `branch-naming.md` § *Parallel work — one worktree per agent* (two agents never share a
|
|
8
|
+
directory) and § *Branch lifecycle* (never work on the base branch), and `delegation-brief.md`
|
|
9
|
+
§ *Standing gotchas* (refresh a worktree's base; commit through a literal path). A profile may
|
|
10
|
+
install only some of those; the precedence stated under each convention applies to whichever are
|
|
11
|
+
present.
|
|
12
|
+
|
|
13
|
+
**The primary checkout** is the directory the repository was cloned into — the first entry of
|
|
14
|
+
`git worktree list`. Every worktree under `.claude/worktrees/` hangs off it and shares its refs,
|
|
15
|
+
its stash stack and its `.cckit/` state. To tell which one you are in:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
git worktree list --porcelain | head -1 # the primary checkout's path
|
|
19
|
+
[ "$(git rev-parse --path-format=absolute --git-dir)" = "$(git rev-parse --path-format=absolute --git-common-dir)" ] \
|
|
20
|
+
&& echo "primary checkout" # absolute on both sides: the bare forms differ in a subdirectory
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## 1. Never move the primary checkout by hand
|
|
24
|
+
|
|
25
|
+
**In the primary checkout, do not run a git command that moves `HEAD`, the index or the working
|
|
26
|
+
tree: `checkout`, `switch`, `pull`, `merge`, `rebase`, `reset`, `stash`.** It stays parked on
|
|
27
|
+
`{{BASE_BRANCH}}` with a clean tree, and no session treats it as its own.
|
|
28
|
+
|
|
29
|
+
- **Origin:** an incident, observed 2026-07-03. Several sessions were live on one repository; the
|
|
30
|
+
primary checkout was found parked on a feature branch, then on the base branch, without the
|
|
31
|
+
session reading it having moved it. Git has no lock for this: one session's `checkout` replaces
|
|
32
|
+
the files under every other session that is reading or editing them.
|
|
33
|
+
- **Read without moving.** `git fetch origin {{BASE_BRANCH}}` writes remote-tracking refs only and
|
|
34
|
+
is safe from any directory. Read the base as `origin/{{BASE_BRANCH}}`
|
|
35
|
+
(`git log origin/{{BASE_BRANCH}}`, `git show origin/{{BASE_BRANCH}}:<file>`), never by pulling the
|
|
36
|
+
primary checkout to look at it.
|
|
37
|
+
- **Check before assuming.** `git -C <primary checkout> status -sb` prints the branch it is parked
|
|
38
|
+
on. Do not assume it is `{{BASE_BRANCH}}`, and do not "fix" it when it is not: another session
|
|
39
|
+
may be mid-task there. Report it.
|
|
40
|
+
- **The stash stack is shared too.** `refs/stash` lives in the common git directory, so a bare
|
|
41
|
+
`git stash pop` in any worktree can pop an entry another session pushed. Set work aside with a
|
|
42
|
+
WIP commit on your own branch.
|
|
43
|
+
|
|
44
|
+
**How this squares with the close ops.** The kit's merge and close ops do check out and pull the
|
|
45
|
+
base in the primary checkout — `cckit merge` (`scripts/lib/kit-task-ops.sh:424-425`:
|
|
46
|
+
`git checkout <base>` then `git pull --ff-only origin <base>`) and `cckit effort close`
|
|
47
|
+
(`scripts/lib/effort-ops.sh:1025-1026`: `git checkout <base>` then `git pull origin <base>`). They
|
|
48
|
+
are the one sanctioned mover, and this rule is what makes them safe: with the primary checkout
|
|
49
|
+
already on `{{BASE_BRANCH}}` and clean, the checkout switches nothing and the pull is a
|
|
50
|
+
fast-forward. Both lines end in `|| true`, so when a session has left the primary checkout dirty or
|
|
51
|
+
on another branch the op carries on and the checkout stays stale, silently. The rule therefore
|
|
52
|
+
binds git typed by hand or by an agent; it does not ask you to avoid the verbs.
|
|
53
|
+
|
|
54
|
+
**Precedence — `branch-naming.md` § *Branch lifecycle*.** That section says a merge "switches to
|
|
55
|
+
the base branch and pulls". It describes the close op, which stands. This rule wins for every other
|
|
56
|
+
command: a hand-run `git checkout {{BASE_BRANCH}} && git pull` in the primary checkout is the thing
|
|
57
|
+
it forbids.
|
|
58
|
+
|
|
59
|
+
**Precedence — `delegation-brief.md` § *Standing gotchas*.** Its "refresh the base first"
|
|
60
|
+
(`git fetch` then `git reset --hard origin/<base>`) is an instruction for a fresh branch in an
|
|
61
|
+
isolation worktree. This rule wins on where: that reset is never run in the primary checkout.
|
|
62
|
+
|
|
63
|
+
## 2. Work in a worktree, always
|
|
64
|
+
|
|
65
|
+
**Every change — a one-line fix included — is made in a worktree created for it.**
|
|
66
|
+
`cckit start <issue>` and `cckit effort start <N>` create one from a fresh `{{BASE_BRANCH}}`; an
|
|
67
|
+
agent's isolation worktree counts.
|
|
68
|
+
|
|
69
|
+
- **Origin:** the same incident. The close ops only ever check out the base, so a primary checkout
|
|
70
|
+
parked on a feature branch means a session checked that branch out there instead of in a
|
|
71
|
+
worktree.
|
|
72
|
+
- **What already enforces part of this:** the base-branch commit guard blocks a `git commit` while
|
|
73
|
+
`HEAD` is on the base, and `cckit orchestrate` leases each branch to one writer. Neither stops a
|
|
74
|
+
session from checking out a feature branch in the primary checkout and working there, which is
|
|
75
|
+
the case this convention covers.
|
|
76
|
+
- **Run git against a literal path.** `git -C <worktree path>` or `cd <worktree path> && git …`,
|
|
77
|
+
with the path written out. A path held in a shell variable can resolve to the primary checkout.
|
|
78
|
+
|
|
79
|
+
**Precedence — `branch-naming.md` § *Parallel work*.** That section's "one agent = one git
|
|
80
|
+
worktree" is about two agents colliding. This rule extends it to a single session: one agent alone
|
|
81
|
+
still does not work in the primary checkout, because it cannot know it is alone.
|
|
82
|
+
|
|
83
|
+
## 3. Call a freshly merged verb from a current worktree
|
|
84
|
+
|
|
85
|
+
**When a command on your `PATH` resolves into the primary checkout, it is as old as the branch that
|
|
86
|
+
checkout is parked on.** After a merge, run the new behaviour from a worktree cut from the current
|
|
87
|
+
base — `<worktree>/bin/<tool>` — not from `PATH`.
|
|
88
|
+
|
|
89
|
+
- **Origin:** two incidents on 2026-07-03, both with the CLI symlinked from `PATH` into the primary
|
|
90
|
+
checkout. A verb merged minutes earlier answered "unknown command", because the checkout was
|
|
91
|
+
parked on a branch that predated it. And the version check reported the project as "ahead of
|
|
92
|
+
plugin 0.3.0", reading the version file of that same stale branch.
|
|
93
|
+
- **When it applies:** a symlinked source install, where `PATH` points into a repository that is
|
|
94
|
+
also being developed. Check with `readlink "$(command -v <tool>)"`. An install that lives
|
|
95
|
+
elsewhere — a package manager, a separate clone — is not moved by anyone's branch, and this
|
|
96
|
+
convention does not apply to it.
|
|
97
|
+
- **What to do instead of pulling.** Do not bring the primary checkout current to get the verb
|
|
98
|
+
(convention 1). Create or reuse a worktree on the current base and call its copy. The primary
|
|
99
|
+
checkout catches up at the next close op.
|
|
100
|
+
- **Scaffolded files behave the same way.** A session started in the primary checkout loads the
|
|
101
|
+
rules, skills and hooks of the branch it is parked on. A change to them that merged since is
|
|
102
|
+
read by a session started in a current worktree.
|
|
103
|
+
|
|
104
|
+
**Precedence.** No shipped rule says which copy of a tool to run; this one stands alone. Where
|
|
105
|
+
`delegation-brief.md` is installed, its project-specific section is the place to record the tool
|
|
106
|
+
and the path for your project.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Smart skill-gap detection ({{PROJECT_NAME}})
|
|
2
2
|
|
|
3
|
-
Surface a missing capability **before** starting work — but only when it's
|
|
3
|
+
Surface a missing capability **before** starting work — but only when it's non-obvious, and
|
|
4
4
|
without nagging. Prompt for the **special and new**; stay silent on the **routine**.
|
|
5
5
|
|
|
6
6
|
## When to prompt (all must hold)
|
|
@@ -30,7 +30,7 @@ for one task into a **single** prompt at the start — never drip-feed interrupt
|
|
|
30
30
|
|
|
31
31
|
## Anti-repeat (don't nag)
|
|
32
32
|
|
|
33
|
-
Record outcomes in
|
|
33
|
+
Record outcomes in `{{CONFIG_REL}}` under `skillPrompts`:
|
|
34
34
|
|
|
35
35
|
```json
|
|
36
36
|
"skillPrompts": { "asked": ["<gap-key>"], "declined": ["<gap-key>"], "wired": ["<skill-name>"] }
|
|
@@ -41,8 +41,3 @@ Record outcomes in `.claude/kit.config.json` under `skillPrompts`:
|
|
|
41
41
|
- A `gap-key` is a short, stable slug for the capability (e.g. `gsap-animation`, `stripe-billing`,
|
|
42
42
|
`playwright-e2e`).
|
|
43
43
|
- Ask **at most once per gap per project**. A declined gap stays declined unless the user reopens it.
|
|
44
|
-
|
|
45
|
-
## Principle
|
|
46
|
-
|
|
47
|
-
One good question up front beats five mid-task interruptions. Detecting a real, non-obvious capability
|
|
48
|
-
gap early — and remembering the answer — is the whole point.
|
|
@@ -5,6 +5,16 @@
|
|
|
5
5
|
- **GitHub issues** in `{{GH_REPO}}`<!-- IF:PROJECTS_V2 --> + the Projects v2 board (`https://github.com/users/{{GH_OWNER}}/projects/{{PROJECT_NUMBER}}`)<!-- /IF:PROJECTS_V2 -->
|
|
6
6
|
- **Never** maintain task lists in markdown files. Use `gh issue` + the `task-*` skills so state stays in one place.
|
|
7
7
|
- Always re-fetch from `gh` — never trust a stale session snapshot.
|
|
8
|
+
<!-- IF:LIGHT_TASKS -->
|
|
9
|
+
- **This project's default list is light tasks** (`tasks.default: "light"`). Work is recorded with
|
|
10
|
+
`cckit task new`, listed with `cckit task list`, started with `cckit task start <id>` and sent for
|
|
11
|
+
review with `cckit task finish <id> "<summary>" --all`, which opens the pull request (`--all`
|
|
12
|
+
includes the files created for the task; without it a new draft is left out).
|
|
13
|
+
`cckit task run <id>` does the start, one unattended round behind the project's check
|
|
14
|
+
(`tasks.check`) and the pull request in one step. The issue loop
|
|
15
|
+
below applies only to work {{OWNER_NAME}} asks to track as a GitHub issue. `tasks/` is that list
|
|
16
|
+
and `cckit task` keeps it: the "never maintain task lists in markdown" line does not cover it.
|
|
17
|
+
<!-- /IF:LIGHT_TASKS -->
|
|
8
18
|
|
|
9
19
|
## Roles
|
|
10
20
|
|
|
@@ -15,6 +25,8 @@ The role determines which agent owns the work. Spawn that agent for the actual e
|
|
|
15
25
|
## Kinds
|
|
16
26
|
|
|
17
27
|
`task` · `plan` · `adr` · `scaffold` · `spike` — drives the branch prefix `<kind>/<N>-<slug>`.
|
|
28
|
+
Content kinds `post` · `campaign` · `brand` · `research` are labels only: the branch starts on
|
|
29
|
+
`task/` · `plan/` · `task/` · `spike/`.
|
|
18
30
|
|
|
19
31
|
## Priorities
|
|
20
32
|
|
|
@@ -35,7 +47,7 @@ The role determines which agent owns the work. Spawn that agent for the actual e
|
|
|
35
47
|
|
|
36
48
|
## Rules
|
|
37
49
|
|
|
38
|
-
- One PR per issue — no monster PRs. **Exception: a coupled migration/DDL chain ships as ONE PR (and ideally one issue)** — don't fragment a sequenced migration set into a PR-per-file. Split only for
|
|
50
|
+
- One PR per issue — no monster PRs. **Exception: a coupled migration/DDL chain ships as ONE PR (and ideally one issue)** — don't fragment a sequenced migration set into a PR-per-file. Split only for independent migrations or a step needing its own review gate (data backfill, RLS behavior change). `merge-safety.md` § 2 is the general form: any coupled chain, not only DDL.
|
|
39
51
|
- PR title = issue title · body includes `Closes #N`
|
|
40
52
|
- Labels + milestone inherited from the issue
|
|
41
53
|
- Never file an issue without confirming title + role + priority with {{OWNER_NAME}}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: brand-voice
|
|
3
|
+
description: >
|
|
4
|
+
Record the brand's voice, key messages and banned phrasings in `brand/voice.md`, and check a
|
|
5
|
+
draft against it. The file is what `copywriting` and `campaign` read before they write.
|
|
6
|
+
when_to_use: >
|
|
7
|
+
"what's our voice", "how should we sound", "write down our tone", "our key messages", "words we
|
|
8
|
+
never use", "does this sound like us", "is this on brand". SKIP to write or rewrite a page (use
|
|
9
|
+
copywriting) and for logo, color or visual identity work.
|
|
10
|
+
metadata:
|
|
11
|
+
version: 1.0.0
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
# Brand voice
|
|
15
|
+
|
|
16
|
+
One file holds how this brand sounds: `brand/voice.md`, tracked in the project. This skill writes
|
|
17
|
+
it, keeps it current and checks drafts against it. `copywriting` reads it before writing a page and
|
|
18
|
+
`campaign` reads it before planning one, so a decision made once is not asked again.
|
|
19
|
+
|
|
20
|
+
Three jobs. Pick by what the person asked:
|
|
21
|
+
|
|
22
|
+
| They want to | Do |
|
|
23
|
+
| --- | --- |
|
|
24
|
+
| set down the voice, or `brand/voice.md` does not exist | [Record](#record) |
|
|
25
|
+
| know whether a draft sounds like the brand | [Check](#check) |
|
|
26
|
+
| change a trait, a message or a banned phrase | [Change](#change) |
|
|
27
|
+
|
|
28
|
+
## Record
|
|
29
|
+
|
|
30
|
+
1. **Read what exists before asking.** Look for `brand/voice.md`, then for material that already
|
|
31
|
+
shows the voice: the site's homepage and about page, the three most recent published posts, a
|
|
32
|
+
product-marketing file (`.agents/product-marketing.md`, `.claude/product-marketing.md`). Draft
|
|
33
|
+
from that material.
|
|
34
|
+
2. **Ask only for what the material does not answer**, one question at a time, each with the
|
|
35
|
+
answer you would propose from what you read:
|
|
36
|
+
- Who reads this brand, in their own words?
|
|
37
|
+
- Three to five traits of the voice. For each: what it means here, and what it is not.
|
|
38
|
+
- Up to five key messages. For each: the claim, and the proof behind it (a number, a customer,
|
|
39
|
+
a fact). A message with no proof is recorded as *unproven*, never invented.
|
|
40
|
+
- Phrases the brand never uses, and what to write instead.
|
|
41
|
+
- One passage that sounds exactly right and one that sounds wrong.
|
|
42
|
+
3. **Write `brand/voice.md`** from `references/voice-template.md`. Keep every section heading: the
|
|
43
|
+
other skills find their input by heading. Leave a section's body as `_Not decided yet._` when the
|
|
44
|
+
person has not decided; do not fill it with a guess.
|
|
45
|
+
4. **Send it for review** the way any piece is ([Change](#change), step 2 onward).
|
|
46
|
+
|
|
47
|
+
## Check
|
|
48
|
+
|
|
49
|
+
Input: a draft (a file, or pasted text) and `brand/voice.md`. If the file does not exist, say so
|
|
50
|
+
and offer to record it; do not check against an assumed voice.
|
|
51
|
+
|
|
52
|
+
Report in this order, quoting the draft:
|
|
53
|
+
|
|
54
|
+
1. **Banned phrasings found** — each with its line, the phrase, and the replacement the file gives.
|
|
55
|
+
2. **Claims that contradict or go beyond a key message** — the sentence, the message it conflicts
|
|
56
|
+
with, and whether the file holds proof for it.
|
|
57
|
+
3. **Off-voice passages** — at most five, the worst first, each with the trait it breaks and a
|
|
58
|
+
rewrite.
|
|
59
|
+
4. **Verdict** — `on voice`, `on voice after the fixes above`, or `needs a rewrite`, in one line.
|
|
60
|
+
|
|
61
|
+
A draft with none of the three is reported as `on voice`, in one line. Do not add praise or
|
|
62
|
+
general writing advice: `copywriting` and the Editor own those.
|
|
63
|
+
|
|
64
|
+
## Change
|
|
65
|
+
|
|
66
|
+
The voice file is shared, so a change to it is reviewed like any piece of work.
|
|
67
|
+
|
|
68
|
+
1. Say what changes and why in one sentence, and confirm it with the person.
|
|
69
|
+
2. Record the work and start it:
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
cckit task new --kind brand "Voice: <what changes>"
|
|
73
|
+
cckit task start <id>
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
In a project that tracks work in GitHub issues, use
|
|
77
|
+
`cckit new --role editor --kind brand "<title>"` and `cckit start <issue>` instead.
|
|
78
|
+
3. Edit `brand/voice.md` in the folder `start` printed. Add one line to its `## Changes` section:
|
|
79
|
+
the date, what changed, who decided.
|
|
80
|
+
4. Send it for review: `cckit task finish <id> "<what changed>" --all` (or
|
|
81
|
+
`cckit pr <issue> "<what changed>"`). Give the person the link. The new voice applies once the
|
|
82
|
+
review is approved and merged; until then drafts are checked against the current file.
|
|
83
|
+
|
|
84
|
+
## Rules
|
|
85
|
+
|
|
86
|
+
- **The file wins over memory.** Read `brand/voice.md` every time; do not rely on what an earlier
|
|
87
|
+
conversation said the voice was.
|
|
88
|
+
- **Never invent proof.** A key message records the proof the person gave, or the word *unproven*.
|
|
89
|
+
- **A banned phrase needs a replacement.** "Never say X" with nothing to say instead produces
|
|
90
|
+
drafts that dodge the idea. Ask for the replacement.
|
|
91
|
+
- **Keep it short.** A voice file over two pages is not read. Cut an example before a rule.
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# Brand voice
|
|
2
|
+
|
|
3
|
+
<!-- Written and kept by the brand-voice skill. copywriting and campaign read this file by section
|
|
4
|
+
heading: keep the headings, edit the text under them. -->
|
|
5
|
+
|
|
6
|
+
## Audience
|
|
7
|
+
|
|
8
|
+
_Not decided yet._
|
|
9
|
+
|
|
10
|
+
<!-- Who reads this brand, in their own words. One short paragraph, or one line per audience. -->
|
|
11
|
+
|
|
12
|
+
## Voice
|
|
13
|
+
|
|
14
|
+
_Not decided yet._
|
|
15
|
+
|
|
16
|
+
<!-- Three to five traits. One row each.
|
|
17
|
+
|
|
18
|
+
| Trait | What it means here | What it is not |
|
|
19
|
+
| --- | --- | --- |
|
|
20
|
+
| <one word> | <what a reader would notice in a sentence> | <the neighbouring trait it must not become> |
|
|
21
|
+
-->
|
|
22
|
+
|
|
23
|
+
## Key messages
|
|
24
|
+
|
|
25
|
+
_Not decided yet._
|
|
26
|
+
|
|
27
|
+
<!-- At most five. One row each. Proof is a number, a customer or a fact; write `unproven` when
|
|
28
|
+
there is none.
|
|
29
|
+
|
|
30
|
+
| Message | Proof |
|
|
31
|
+
| --- | --- |
|
|
32
|
+
| <the claim, in one sentence> | <the number, customer or fact behind it — or `unproven`> |
|
|
33
|
+
-->
|
|
34
|
+
|
|
35
|
+
## Banned phrasings
|
|
36
|
+
|
|
37
|
+
_Not decided yet._
|
|
38
|
+
|
|
39
|
+
<!-- One row each. Every banned phrase has a replacement.
|
|
40
|
+
|
|
41
|
+
| Never write | Write instead | Why |
|
|
42
|
+
| --- | --- | --- |
|
|
43
|
+
| <the phrase> | <what to write in its place> | <one line> |
|
|
44
|
+
-->
|
|
45
|
+
|
|
46
|
+
## Words we use
|
|
47
|
+
|
|
48
|
+
_Not decided yet._
|
|
49
|
+
|
|
50
|
+
<!-- The names of the product, its features and its plans, spelled the one way they are spelled.
|
|
51
|
+
One line each: the term, then when to use it. -->
|
|
52
|
+
|
|
53
|
+
## Examples
|
|
54
|
+
|
|
55
|
+
_Not decided yet._
|
|
56
|
+
|
|
57
|
+
<!-- One passage that sounds exactly right, one that sounds wrong, and one line on the difference. -->
|
|
58
|
+
|
|
59
|
+
## Changes
|
|
60
|
+
|
|
61
|
+
<!-- One line per change, newest first: date, what changed, who decided. -->
|