@jeiemgi/cckit 0.10.0 → 0.12.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 +136 -127
- package/README.md +66 -43
- package/bin/cckit +151 -181
- package/cckit.config.json +1 -4
- package/package.json +1 -1
- package/scripts/advisor-test.sh +55 -0
- package/scripts/autopilot-run-test.sh +20 -12
- package/scripts/autopilot-run.sh +9 -1
- package/scripts/autopilot-test.sh +29 -13
- package/scripts/autopilot.sh +4 -4
- package/scripts/benchmark/verb-timings-test.sh +4 -0
- package/scripts/benchmark/verb-timings.sh +16 -5
- package/scripts/capture-project-ids.sh +23 -1
- package/scripts/check.sh +25 -0
- package/scripts/content-skills-test.sh +1 -1
- package/scripts/contribute.sh +8 -3
- package/scripts/copilot-loop-test.sh +66 -81
- package/scripts/exec-targets-test.sh +20 -0
- package/scripts/force-push-fence-test.sh +44 -0
- package/scripts/force-push-fence.baseline +1 -0
- package/scripts/force-push-fence.sh +51 -0
- package/scripts/forge-fence-test.sh +69 -0
- package/scripts/forge-fence.baseline +2 -0
- package/scripts/forge-fence.sh +76 -0
- package/scripts/forge-report-test.sh +100 -0
- package/scripts/forge-report.sh +176 -0
- package/scripts/init-guided-test.sh +94 -82
- package/scripts/init.sh +12 -7
- package/scripts/install-test.sh +26 -0
- package/scripts/install.sh +7 -0
- package/scripts/instruction-budget-baseline.txt +1 -1
- package/scripts/kit-doctor-test.sh +60 -12
- package/scripts/kit-doctor.sh +170 -77
- package/scripts/lib/agent-resolve-test.sh +2 -0
- package/scripts/lib/agent-resolve.sh +15 -8
- package/scripts/lib/board-view.sh +3 -3
- package/scripts/lib/captain.sh +37 -8
- package/scripts/lib/content-kinds-gc-test.sh +22 -21
- package/scripts/lib/copilot-test.sh +20 -11
- package/scripts/lib/copilot.sh +19 -13
- package/scripts/lib/effort-close-subs-test.sh +96 -0
- package/scripts/lib/effort-dispatch-test.sh +5 -3
- package/scripts/lib/effort-metrics-test.sh +7 -12
- package/scripts/lib/effort-metrics.sh +17 -46
- package/scripts/lib/effort-ops-test.sh +261 -167
- package/scripts/lib/effort-ops.sh +449 -171
- package/scripts/lib/effort-parity-test.sh +57 -62
- package/scripts/lib/effort-plan-test.sh +56 -54
- package/scripts/lib/effort-plan.sh +14 -7
- package/scripts/lib/effort-review-test.sh +107 -0
- package/scripts/lib/effort-review.sh +93 -0
- package/scripts/lib/effort-slug-test.sh +34 -14
- package/scripts/lib/effort-slug.sh +13 -13
- package/scripts/lib/effort.sh +58 -80
- package/scripts/lib/forge-github.sh +260 -0
- package/scripts/lib/forge-none.sh +24 -0
- package/scripts/lib/forge-test.sh +186 -0
- package/scripts/lib/forge.sh +133 -0
- package/scripts/lib/gh-board-add-test.sh +118 -0
- package/scripts/lib/gh-project-test.sh +151 -31
- package/scripts/lib/gh-project.sh +139 -11
- package/scripts/lib/gh-rest-test.sh +63 -118
- package/scripts/lib/gh-rest.sh +275 -52
- package/scripts/lib/git-core-test.sh +128 -0
- package/scripts/lib/grill-record-test.sh +49 -0
- package/scripts/lib/grill-record.sh +88 -0
- package/scripts/lib/handoff.sh +1 -1
- package/scripts/lib/init-github.sh +38 -13
- package/scripts/lib/kinds-test.sh +13 -16
- package/scripts/lib/kit-brief-test.sh +51 -10
- package/scripts/lib/kit-brief.sh +103 -18
- package/scripts/lib/kit-gc-test.sh +90 -109
- package/scripts/lib/kit-gc.sh +19 -22
- package/scripts/lib/kit-hotfix.sh +18 -16
- package/scripts/lib/kit-interview.sh +6 -0
- package/scripts/lib/kit-lib-test.sh +1 -1
- package/scripts/lib/kit-lib.sh +7 -7
- package/scripts/lib/kit-msg.sh +3 -3
- package/scripts/lib/kit-status.sh +19 -14
- package/scripts/lib/kit-task-ops-test.sh +20 -1
- package/scripts/lib/kit-task-ops.sh +177 -94
- package/scripts/lib/kto-hotfix-test.sh +53 -58
- package/scripts/lib/kto-task-close-test.sh +28 -27
- package/scripts/lib/kto-task-new-test.sh +55 -48
- package/scripts/lib/kto-task-pr-merge-test.sh +77 -41
- package/scripts/lib/kto-task-pr-test.sh +30 -34
- package/scripts/lib/light-task-run-test.sh +19 -15
- package/scripts/lib/light-task-test.sh +34 -29
- package/scripts/lib/light-task.sh +24 -13
- package/scripts/lib/loose-issues.sh +65 -0
- package/scripts/lib/naming-test.sh +112 -0
- package/scripts/lib/naming-verbs-test.sh +126 -0
- package/scripts/lib/naming.sh +172 -0
- package/scripts/lib/next-test.sh +27 -22
- package/scripts/lib/next.sh +13 -7
- package/scripts/lib/orchestration-runtime-test.sh +11 -8
- package/scripts/lib/plan-machine.sh +22 -16
- package/scripts/lib/plan-next.sh +4 -4
- package/scripts/lib/pr-evidence-test.sh +63 -74
- package/scripts/lib/pr-evidence.sh +15 -12
- package/scripts/lib/qa-lane-test.sh +59 -27
- package/scripts/lib/qa-lane.sh +14 -6
- package/scripts/lib/review-page-test.sh +34 -25
- package/scripts/lib/review-page.sh +10 -4
- package/scripts/lib/spec-lint-test.sh +63 -0
- package/scripts/lib/spec-lint.sh +95 -0
- package/scripts/lib/sprint-test.sh +96 -0
- package/scripts/lib/sprint.sh +216 -0
- package/scripts/lib/stage-receipt-test.sh +169 -19
- package/scripts/lib/stage-receipt.sh +195 -10
- package/scripts/lib/test-forge-shim.sh +115 -0
- package/scripts/lib/verbs.sh +105 -0
- package/scripts/lib/verbs.tsv +92 -0
- package/scripts/lib/version-bump-test.sh +20 -0
- package/scripts/lib/version-bump.sh +4 -2
- package/scripts/lib/worker-brief-test.sh +1 -1
- package/scripts/lib/worker-brief.sh +1 -1
- package/scripts/lib/worktree-issue-test.sh +24 -19
- package/scripts/lib/worktree-issue.sh +10 -10
- package/scripts/lib/worktree-start-test.sh +13 -16
- package/scripts/lib/worktree-start.sh +57 -7
- package/scripts/loose-issues-test.sh +102 -0
- package/scripts/loose-issues.baseline +5 -0
- package/scripts/marketing-walkthrough-test.sh +25 -30
- package/scripts/night-grant.sh +14 -8
- package/scripts/night-run.mjs +1 -1
- package/scripts/orchestrate-test.sh +27 -31
- package/scripts/orchestrate.sh +9 -3
- package/scripts/portable-test.sh +37 -36
- package/scripts/publish.sh +9 -3
- package/scripts/setup-labels.sh +23 -12
- package/scripts/setup-milestones.sh +8 -2
- package/scripts/status-test.sh +39 -33
- package/scripts/status.sh +12 -6
- package/scripts/task-sync-test.sh +75 -32
- package/scripts/task-sync.sh +97 -6
- package/scripts/terms-check-test.sh +191 -0
- package/scripts/terms-check.sh +242 -0
- package/scripts/verbs-gen.sh +43 -0
- package/scripts/verbs-help-test.sh +61 -0
- package/scripts/verbs-ratchet-test.sh +69 -0
- package/scripts/verbs-ratchet.sh +34 -0
- package/scripts/verbs-test.sh +120 -0
- package/scripts/verbs.baseline +5 -0
- package/skills/kit-add/SKILL.md +2 -1
- package/skills/kit-advisor/SKILL.md +75 -0
- package/skills/kit-advisor/references/close.md +53 -0
- package/skills/kit-advisor/references/grill.md +69 -0
- package/skills/kit-advisor/references/orchestrate.md +56 -0
- package/skills/kit-advisor/references/plan.md +64 -0
- package/skills/kit-advisor/references/review.md +47 -0
- package/skills/kit-advisor/references/step-report.md +61 -0
- package/skills/kit-annotate/SKILL.md +1 -0
- package/skills/kit-autopilot/SKILL.md +2 -1
- package/skills/kit-cleanup/SKILL.md +3 -2
- package/skills/kit-contribute/SKILL.md +1 -0
- package/skills/kit-customize/SKILL.md +1 -0
- package/skills/kit-dev/SKILL.md +1 -0
- package/skills/kit-digest/SKILL.md +1 -0
- package/skills/kit-docs-writer/SKILL.md +4 -3
- package/skills/kit-effort-close/SKILL.md +18 -9
- package/skills/kit-effort-new/SKILL.md +12 -8
- package/skills/kit-effort-pr/SKILL.md +8 -7
- package/skills/kit-effort-start/SKILL.md +1 -0
- package/skills/kit-gc/SKILL.md +1 -0
- package/skills/kit-next/SKILL.md +8 -7
- package/skills/kit-onboard/SKILL.md +1 -0
- package/skills/kit-page/SKILL.md +1 -0
- package/skills/kit-plan-next/SKILL.md +11 -11
- package/skills/kit-security-sweep/SKILL.md +1 -0
- package/skills/kit-ship/SKILL.md +1 -0
- package/skills/kit-status/SKILL.md +6 -5
- package/skills/kit-task-close/SKILL.md +1 -0
- package/skills/kit-task-new/SKILL.md +1 -0
- package/skills/kit-task-pr/SKILL.md +1 -0
- package/skills/kit-task-pr-auto/SKILL.md +2 -1
- package/skills/kit-task-pr-merge/SKILL.md +4 -3
- package/skills/kit-task-start/SKILL.md +1 -0
- package/skills/kit-task-sync/SKILL.md +3 -0
- package/skills/kit-ux-audit/SKILL.md +1 -0
- package/skills/routing.yaml +124 -0
- package/templates/hooks/kit-mail-check.sh.tmpl +1 -1
- package/templates/instructions.md.tmpl +3 -3
- package/templates/rules/authoring.md +7 -3
- package/templates/rules/delegation-brief.md +4 -0
- package/templates/rules/effort-model.md +34 -31
- package/templates/rules/gate-and-review.md +1 -1
- package/templates/rules/merge-safety.md +9 -7
- package/templates/rules/naming-and-ids.md +20 -24
- package/templates/rules/plan-next.md +5 -5
- package/templates/skills/campaign/SKILL.md +2 -2
- package/scripts/lib/engine-adapter.sh +0 -93
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: kit-effort-new
|
|
3
|
-
|
|
3
|
+
terms: Effort, SubIssue
|
|
4
|
+
description: Create an effort — a parent GitHub issue using the effort-model template (Goal / Spec / Scope / For agents / Verification) plus N native GitHub sub-issues, all added to the project board. The parent issue IS the plan.
|
|
4
5
|
when_to_use: When starting a new unit of work (a "plan"/effort) that decomposes into several sub-tasks. Replaces ad-hoc `gh issue create` for multi-part work. The effort splits into native sub-issues at scoping time; sequential subs commit on the effort branch, parallel subs use file-disjoint worktrees and merge in. See rules/effort-model.md.
|
|
5
6
|
---
|
|
6
7
|
|
|
@@ -33,6 +34,7 @@ gate: `cckit effort start` checks nothing.
|
|
|
33
34
|
| Role | ✓ | `tech-lead` / `frontend` / … → `role:<role>` label + board Role field |
|
|
34
35
|
| Flow | optional | Controlled-vocab flow (`effort.flows` in the project config; `EFFORT_FLOWS` env overrides) → `[Flow]` title tag + `flow:<flow>` label |
|
|
35
36
|
| Goal | ✓ | 1–2 lines — `## Goal` |
|
|
37
|
+
| Spec | ✓ | What done means, one checkable item per line — `## Spec` (`--spec` or `--spec-file`; plain lines become `- ` bullets). A missing, empty or TODO/TBD-only Spec is refused before anything is created, and `cckit effort close` checks it again |
|
|
36
38
|
| Scope | ✓ | The sub-issue DAG — `## Scope` (mark each parallel \| sequential) |
|
|
37
39
|
| For agents | ✓ | Exact file paths / entry points — `## For agents` |
|
|
38
40
|
| Verification | ✓ | How we know it's done — `## Verification` |
|
|
@@ -58,12 +60,14 @@ source "${CLAUDE_PLUGIN_ROOT}/scripts/lib/effort.sh"
|
|
|
58
60
|
source "${CLAUDE_PLUGIN_ROOT}/scripts/lib/effort-metrics.sh" # effort_ctx_bucket
|
|
59
61
|
source "${CLAUDE_PLUGIN_ROOT}/scripts/lib/effort-ops.sh" # effort_new — the shared creation core
|
|
60
62
|
|
|
61
|
-
# TITLE = the human NAME only (no "[
|
|
62
|
-
# "[
|
|
63
|
-
# every sub title up front (a bad name aborts
|
|
63
|
+
# TITLE = the human NAME only (no "[E<n>]" prefix). The core files the parent under TITLE, renames it
|
|
64
|
+
# "[E<N>] <TITLE>" once it has a number, fills the five sections, applies labels (the flow goes in the
|
|
65
|
+
# flow: label, never the title), and lints the parent + every sub title up front (a bad name aborts
|
|
66
|
+
# before anything is created — no half-effort). Rule: rules/naming-and-ids.md.
|
|
64
67
|
|
|
65
68
|
# SUBS is a newline-delimited list of "name :: one-line description"; pass each line as a positional
|
|
66
|
-
# sub spec. The core numbers them 1..k and composes the "[
|
|
69
|
+
# sub spec. The core numbers them 1..k and composes the "[E<parent>.<M>] <name>" title. Add a sub to
|
|
70
|
+
# an existing effort later with: cckit effort sub <N> "<name>".
|
|
67
71
|
SUB_ARGS=()
|
|
68
72
|
while IFS= read -r line; do [[ -n "$line" ]] && SUB_ARGS+=("$line"); done <<< "$SUBS"
|
|
69
73
|
|
|
@@ -72,7 +76,7 @@ PARENT_NUM=$(effort_new \
|
|
|
72
76
|
${FLOW:+--flow "$FLOW"} \
|
|
73
77
|
--role "$ROLE" \
|
|
74
78
|
--priority "${PRIORITY:-p1}" \
|
|
75
|
-
--goal "$GOAL" --scope "$SCOPE" --for-agents "$FOR_AGENTS" --verification "$VERIFICATION" \
|
|
79
|
+
--goal "$GOAL" --spec "$SPEC" --scope "$SCOPE" --for-agents "$FOR_AGENTS" --verification "$VERIFICATION" \
|
|
76
80
|
${DEPENDS_ON:+--depends-on "$DEPENDS_ON"} \
|
|
77
81
|
${MILESTONE:+--milestone "$MILESTONE"} \
|
|
78
82
|
"$TITLE" "${SUB_ARGS[@]}")
|
|
@@ -105,8 +109,8 @@ echo "✓ effort #$PARENT_NUM created — next: /kit-effort-start $PARENT_NUM"
|
|
|
105
109
|
non-numeric argument, an issue that does not exist, a repeated number, or an edge that would
|
|
106
110
|
close a cycle. Use it when the sub-issues already exist and only their ORDER is missing;
|
|
107
111
|
`--depends-on` covers the dependencies known at creation time.
|
|
108
|
-
- The parent body MUST carry all
|
|
109
|
-
a missing section is a review blocker.
|
|
112
|
+
- The parent body MUST carry all five template sections (Goal / Spec / Scope / For agents /
|
|
113
|
+
Verification) — a missing section is a review blocker; a Spec without a real list item is refused.
|
|
110
114
|
- Sub-issues are **native** GitHub sub-issues (`POST …/issues/{parent}/sub_issues` with the child's
|
|
111
115
|
**database id**, resolved via `gh api repos/$KIT_REPO/issues/$N --jq .id`) — not just a checklist.
|
|
112
116
|
- Sub-issue bodies stay short (one line) — the parent holds the narrative.
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: kit-effort-pr
|
|
3
|
-
|
|
3
|
+
terms: Effort
|
|
4
|
+
description: Open the ONE pull request for an effort — `effort/<N>` → base branch — with a rich human-facing review body plus a `## For agents` section listing the file paths/entry points. Title `type: <name> [E<n>]`. Inherits labels + milestone from the parent issue and moves it to In Review on the board.
|
|
4
5
|
when_to_use: When an effort branch is ready for review (all its sub-issues built + merged into the effort branch). One effort = one PR (effort-model.md) — never open per-sub PRs to the base branch. Mirrors `kit-task-pr` for the effort lifecycle.
|
|
5
6
|
---
|
|
6
7
|
|
|
@@ -13,7 +14,7 @@ body). Never re-implement it here, and never paste it into a shell.
|
|
|
13
14
|
|
|
14
15
|
Opens the **single** PR for an effort. The PR carries the human-facing review write-up + a
|
|
15
16
|
`## For agents` section (retrieval context / the work record). The parent issue holds the plan;
|
|
16
|
-
this PR is where humans review the result. The title carries `[
|
|
17
|
+
this PR is where humans review the result. The title carries `[E<n>]` (the effort token) — mandatory
|
|
17
18
|
(effort-model.md, effort-id taxonomy) — inside a Conventional Commit subject, because the PR is
|
|
18
19
|
squash-merged and its title becomes the commit release-please and the commitlint gate read.
|
|
19
20
|
|
|
@@ -34,15 +35,15 @@ From the effort worktree (branch `effort/<N>-<slug>`):
|
|
|
34
35
|
cckit effort pr <N> --summary-file <summary.md> --for-agents-file <for-agents.md>
|
|
35
36
|
# short form: cckit effort pr <N> --summary "<what + why>" --for-agents "<paths>"
|
|
36
37
|
# the change is not a feat: add --type fix (any Conventional Commit type)
|
|
37
|
-
# replace the composed title: add --title "<conventional subject carrying [
|
|
38
|
+
# replace the composed title: add --title "<conventional subject carrying [E<n>]>"
|
|
38
39
|
```
|
|
39
40
|
|
|
40
41
|
What the verb does, in order: commits pending **tracked** changes (role identity as a
|
|
41
42
|
`Co-authored-by` trailer; untracked files are listed, never swept in) → pushes → reads the parent's
|
|
42
43
|
title, labels and milestone → composes the title with `effort_pr_title` as
|
|
43
|
-
`type(scope): <name> [
|
|
44
|
+
`type(scope): <name> [E<n>]` (scope = the `flow:` label, else a legacy title's `[Flow]` tag; type =
|
|
44
45
|
`--type`, else the `kind:` label, where `kind:task` → `feat` and a `bug` label → `fix`) → refuses,
|
|
45
|
-
before any `gh` call, a title
|
|
46
|
+
before any `gh` call, a title `naming_title_lint pr` rejects (`commitlint_check` + a trailing `[E<n>]`, `[E<n>.<step>]` or `[#<n>]`) → opens the PR with the body below → adds the PR to the board at In Review (+ Role) and moves
|
|
46
47
|
the parent to In Review. A failed board add prints a warning; it is never silent.
|
|
47
48
|
|
|
48
49
|
Body: `## For the orchestrator` (+ `Closes #N`) · `## Summary` · `## For agents` · `## Verification`
|
|
@@ -50,7 +51,7 @@ Body: `## For the orchestrator` (+ `Closes #N`) · `## Summary` · `## For agent
|
|
|
50
51
|
|
|
51
52
|
## Output
|
|
52
53
|
|
|
53
|
-
- The single effort PR URL (title `type(scope): <name> [
|
|
54
|
+
- The single effort PR URL (title `type(scope): <name> [E<n>]`, e.g. `feat(core): adoption hardening [E115]`)
|
|
54
55
|
- PR + parent issue both at In Review on the board (if Projects v2 is on)
|
|
55
56
|
- Suggested next: `/kit-effort-close <N>`
|
|
56
57
|
|
|
@@ -58,7 +59,7 @@ Body: `## For the orchestrator` (+ `Closes #N`) · `## Summary` · `## For agent
|
|
|
58
59
|
|
|
59
60
|
- **ONE PR per effort** — `effort/<N>` → base branch. Never open a PR from a `sub/<N><letter>`
|
|
60
61
|
branch to the base; sub-issues merge into the effort branch first (effort-model.md).
|
|
61
|
-
- The title MUST carry `[
|
|
62
|
+
- The title MUST carry `[E<n>]` (the effort token) — a PR title without it is a review blocker
|
|
62
63
|
(effort-model.md, effort-id taxonomy).
|
|
63
64
|
- The title MUST be a Conventional Commit subject under `pr.titleStyle: conventional` (the default):
|
|
64
65
|
the verb refuses a composed or `--title` value that fails `scripts/lib/commitlint.sh`. A project
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: kit-effort-start
|
|
3
|
+
terms: Effort
|
|
3
4
|
description: Start an effort — thin caller of `cckit effort start <N>`. Creates the `effort/<N>-<slug>` integration branch + isolated bootstrapped worktree from the base branch, then marks the parent issue In Progress on the board. Enforces the effort WIP limit (`effort.wipLimit`, default 2) — a new effort is refused, before anything is written, while that many are already in progress; `--force` starts anyway. Sub-issues later branch from this effort branch or commit directly on it.
|
|
4
5
|
when_to_use: After `/kit-effort-new`, to begin building an effort. The effort branch is the single integration branch for the whole effort — its sub-issues merge into it, and exactly one PR opens from it (`/kit-effort-pr`). See rules/effort-model.md.
|
|
5
6
|
---
|
package/skills/kit-gc/SKILL.md
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: kit-gc
|
|
3
|
+
terms: Worktree
|
|
3
4
|
description: Garbage-collect the repo — prune worktrees whose PR already merged, delete merged local + remote branches, surface orphan/unpushed commits and stale stashes, and flag issues whose PR merged but stayed open. Dry-run by default; destructive steps require explicit confirmation.
|
|
4
5
|
when_to_use: When the repo has accumulated stale branches, orphan worktrees, or stashes (the SessionStart hygiene hook flags this), or on demand to tidy before/after a chapter of work. Replaces the manual cleanup sweep.
|
|
5
6
|
---
|
package/skills/kit-next/SKILL.md
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: kit-next
|
|
3
|
+
terms: Task, Wave
|
|
3
4
|
description: >
|
|
4
|
-
The everyday cckit loop:
|
|
5
|
-
|
|
6
|
-
worktree + branch), `cckit
|
|
5
|
+
The everyday cckit loop: pick up the next unblocked issue, or fan the unblocked wave out to
|
|
6
|
+
subagents. Wraps `cckit next` (what can I work on now?), `cckit start <N>` (isolated
|
|
7
|
+
worktree + branch), `cckit effort plan --wave` (fan-out), and `cckit watch` (gate + merge PRs).
|
|
7
8
|
when_to_use: >
|
|
8
9
|
When you sit down to work and want the next thing to do, when you finish an issue and need the
|
|
9
10
|
next one, or when you want to parallelize the unblocked wave. Not for planning an effort
|
|
@@ -17,7 +18,7 @@ metadata:
|
|
|
17
18
|
Answer one question fast: **what should I work on right now, and how do I start it?**
|
|
18
19
|
|
|
19
20
|
> Planning the work that doesn't exist yet is a different question. For "given where we are, what
|
|
20
|
-
> should we build next?" use `/kit-plan-next` (`cckit plan
|
|
21
|
+
> should we build next?" use `/kit-plan-next` (`cckit effort plan --next`) — it inventories the kit's current
|
|
21
22
|
> capabilities and proposes next efforts. `kit-next` orders the issues that already exist.
|
|
22
23
|
|
|
23
24
|
## Pick up the next issue
|
|
@@ -29,9 +30,9 @@ cckit next
|
|
|
29
30
|
Prints the unblocked set (wave 0 of the plan) and the single recommended next issue with its start
|
|
30
31
|
command. `--effort <N>` scopes it to one effort's sub-issues.
|
|
31
32
|
|
|
32
|
-
The human output ends with the weekly cadence this verb is the daily step of: Monday `cckit plan`
|
|
33
|
+
The human output ends with the weekly cadence this verb is the daily step of: Monday `cckit effort plan --issues`
|
|
33
34
|
orders the week, `cckit next` daily picks up one issue, Friday `cckit gc` reports what can be
|
|
34
|
-
pruned. `cckit next --
|
|
35
|
+
pruned. `cckit next --json` does not carry that line — its TOON rows stay `{number,ctx,title}`.
|
|
35
36
|
|
|
36
37
|
The unblocked set is ordered by the `priority:pN` label — **p0 → p1 → p2 → p3**, unlabeled last —
|
|
37
38
|
so the recommended issue is the most urgent thing that is actually startable. Ties keep their
|
|
@@ -53,7 +54,7 @@ When the unblocked issues are file-disjoint and independent, drive them in paral
|
|
|
53
54
|
at a time:
|
|
54
55
|
|
|
55
56
|
```
|
|
56
|
-
cckit
|
|
57
|
+
cckit effort plan --wave # emits the wave-0 fan-out brief (dispatch wording per adapter)
|
|
57
58
|
cckit watch --merge # gate every open PR; squash-merge the CLEAN ones; advance the next wave
|
|
58
59
|
```
|
|
59
60
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: kit-onboard
|
|
3
|
+
terms: none
|
|
3
4
|
description: Run the claude-kit two-tier onboarding interview — the wide-range GLOBAL profile (asked once in a lifetime, writes ~/.claude/kit.profile.<user>.json) and the per-PROJECT interview (one batched round, pre-filled from your profile + what's detected in this directory). Use AUTOMATICALLY when the user asks to onboard, set up the kit for the first time, "interview me", create my kit profile, configure a new project, or when /kit-init runs against a project with no kit profile yet. Pairs with /kit-add to stack modules (e.g. software) later.
|
|
4
5
|
when_to_use: First contact with the kit on a machine (no global profile yet), or starting a new project. Portable (Tier A) — runs in Claude Code, Cowork, and claude.ai Projects via AskUserQuestion.
|
|
5
6
|
allowed-tools: Bash, Read, AskUserQuestion
|
package/skills/kit-page/SKILL.md
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: kit-plan-next
|
|
3
|
+
terms: Effort
|
|
3
4
|
description: >
|
|
4
|
-
Forward planning from the current state: run `cckit plan
|
|
5
|
-
already
|
|
6
|
-
|
|
7
|
-
mandatory docs + README step.
|
|
5
|
+
Forward planning from the current state: run `cckit effort plan --next` to inventory what the kit
|
|
6
|
+
already does (skills, verbs, rules, docs) and propose what to build next from that inventory,
|
|
7
|
+
then hand a chosen item to `/kit-effort-new`. The plan always carries a docs + README step.
|
|
8
8
|
when_to_use: >
|
|
9
9
|
When you ask "given where we are, what should we build next?" — at the start of a chapter of work,
|
|
10
10
|
after closing an effort, or when triaging a backlog against the kit's current capabilities. Not
|
|
11
|
-
for ordering issues that already exist (
|
|
12
|
-
effort you
|
|
11
|
+
for ordering issues that already exist (`/kit-next`, `cckit effort plan --issues`), nor for
|
|
12
|
+
scoping an effort you already chose (go straight to `/kit-effort-new`).
|
|
13
13
|
metadata:
|
|
14
14
|
version: 1.0.0
|
|
15
15
|
---
|
|
@@ -17,7 +17,7 @@ metadata:
|
|
|
17
17
|
# kit-plan-next — what to build next, grounded in current state
|
|
18
18
|
|
|
19
19
|
Answer one question: **given everything the kit can already do, what is the highest-value next
|
|
20
|
-
effort?** This wraps the `cckit plan
|
|
20
|
+
effort?** This wraps the `cckit effort plan --next` verb (the engine — never re-author its logic here;
|
|
21
21
|
kit-engine-boundary) and turns its proposals into a scoped effort via `/kit-effort-new`.
|
|
22
22
|
|
|
23
23
|
The verb reads the CURRENT skills, commands, rules and docs at runtime, so the plan reflects what
|
|
@@ -25,7 +25,7 @@ ships today.
|
|
|
25
25
|
|
|
26
26
|
## CRITICAL — context-anxiety rule
|
|
27
27
|
|
|
28
|
-
The plan `cckit plan
|
|
28
|
+
The plan `cckit effort plan --next` emits is **human / orchestrator-facing only**. NEVER paste it (or the
|
|
29
29
|
inventory) into a monitored model's prompt or context, and never wire it into an agent's context
|
|
30
30
|
automatically. Read it yourself, decide with the human, and hand only the CHOSEN item to
|
|
31
31
|
`/kit-effort-new`. See `rules/plan-next.md`.
|
|
@@ -33,12 +33,12 @@ automatically. Read it yourself, decide with the human, and hand only the CHOSEN
|
|
|
33
33
|
## 1. Get the forward plan
|
|
34
34
|
|
|
35
35
|
```
|
|
36
|
-
cckit plan
|
|
36
|
+
cckit effort plan --next
|
|
37
37
|
```
|
|
38
38
|
|
|
39
39
|
Prints the current capabilities (skills / commands / rules / docs counts + samples) and a ranked,
|
|
40
40
|
grounded set of proposals. Rank 1 is **always** the mandatory docs + README step (docs-always rule —
|
|
41
|
-
it is never dropped, even for a tiny change). Append `--
|
|
41
|
+
it is never dropped, even for a tiny change). Append `--json` for TOON rows `{rank,area,proposal,next}`
|
|
42
42
|
if you need to reason over the proposals structurally — but keep that output out of any monitored
|
|
43
43
|
context.
|
|
44
44
|
|
|
@@ -81,6 +81,6 @@ Carry the chosen proposal into the effort's **Goal**, decompose it into sub-issu
|
|
|
81
81
|
- **Docs are mandatory** — every plan carries a docs + README step; the effort you scope must keep it.
|
|
82
82
|
- **Context-anxiety** — planner output never enters a monitored model's context; it informs the
|
|
83
83
|
human/orchestrator's decision only.
|
|
84
|
-
- **Don't plan what exists** — for ordering already-created issues use `/kit-next` or `cckit plan`;
|
|
84
|
+
- **Don't plan what exists** — for ordering already-created issues use `/kit-next` or `cckit effort plan --issues`;
|
|
85
85
|
for scoping an item you've already chosen go straight to `/kit-effort-new`.
|
|
86
86
|
- Scrub secrets from anything pasted into the resulting effort body (trace hygiene).
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: kit-security-sweep
|
|
3
|
+
terms: Check
|
|
3
4
|
description: Full security audit of the project's apps. A security expert scans for AI/prompt injection, auth/session weaknesses, CORS/CSP issues, and dependency CVEs; findings are filed as GitHub issues and roadmapped. Named kit-security-sweep (not security-review) so it doesn't shadow the Claude Code builtin /security-review (diff audit).
|
|
4
5
|
when_to_use: When you want a project security sweep with filed issues + roadmap entries — before a release, after a significant feature, or on demand. For a quick diff/code audit without issue filing, use the builtin /security-review instead.
|
|
5
6
|
---
|
package/skills/kit-ship/SKILL.md
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: kit-ship
|
|
3
|
+
terms: Task
|
|
3
4
|
description: End-to-end delivery for a user request — fix the issue, then run the full kit cycle (start → PR → CI → merge → close → update kit) using the kit-task commands. One command takes an open issue from code to merged-on-base with the board kept in sync.
|
|
4
5
|
when_to_use: When the user says "fix #N and ship it", "do the full cycle on #N", "fix this and merge it", or hands you a tracked issue to take all the way to the base branch. For just opening a PR use /kit-task-pr; for PR+merge with no implementation use /kit-task-pr-auto.
|
|
5
6
|
---
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: kit-status
|
|
3
|
+
terms: Report
|
|
3
4
|
description: Answer "where are we?" in three buckets — local undone work (dirty worktrees, commits on no remote, effort subs not merged in), open PRs waiting on a human (no approval, no AI-reviewer pass, unresolved threads, red checks, conflicts), and cleanup available local + remote. Read-only, so it is always safe to run first.
|
|
4
5
|
when_to_use: |
|
|
5
6
|
Whenever the owner asks, in ANY wording, how things stand overall — this is the default answer to
|
|
@@ -43,7 +44,7 @@ mistake this skill exists to prevent.
|
|
|
43
44
|
|
|
44
45
|
```bash
|
|
45
46
|
cckit status # the board, the light tasks, the next effort per flow, the three buckets — as markdown
|
|
46
|
-
cckit status --
|
|
47
|
+
cckit status --json # the same verdicts as JSON, for an agent: local_undone, worktrees, prs,
|
|
47
48
|
# cleanup, next_efforts, light_tasks
|
|
48
49
|
```
|
|
49
50
|
|
|
@@ -53,7 +54,7 @@ Read-only. It writes nothing, deletes nothing, and pushes nothing.
|
|
|
53
54
|
|
|
54
55
|
| # | Bucket | What it answers |
|
|
55
56
|
| --- | --- | --- |
|
|
56
|
-
| 1 | **Local undone work** | What exists only on this machine: worktrees with uncommitted changes, branches holding commits reachable from **no** remote ref, and effort subs not yet merged into their effort branch. Plus the worktree inventory — a clean worktree on an issue branch is still work in progress. A detached worktree that `cckit gc` rates LANDED (clean, HEAD on the base branch or `main`) is left out of the **In progress** list and counted in one line under it; `--
|
|
57
|
+
| 1 | **Local undone work** | What exists only on this machine: worktrees with uncommitted changes, branches holding commits reachable from **no** remote ref, and effort subs not yet merged into their effort branch. Plus the worktree inventory — a clean worktree on an issue branch is still work in progress. A detached worktree that `cckit gc` rates LANDED (clean, HEAD on the base branch or `main`) is left out of the **In progress** list and counted in one line under it; `--json` `worktrees` still carries every worktree. |
|
|
57
58
|
| 2 | **PRs waiting on a human** | Every open PR with the ONE thing it needs: `conflict`, `checks`, `draft`, `wait`, `threads`, `ai-review`, `review`, or `ready`. |
|
|
58
59
|
| 3 | **Cleanup available** | Branches and worktrees that can go — **local and remote** — plus what is deliberately kept (orphan work, open-issue branches), and a count of branches that could not be classified because a GitHub read failed. |
|
|
59
60
|
|
|
@@ -69,7 +70,7 @@ In a project that tracks work with `cckit task`, the report prints a **Light tas
|
|
|
69
70
|
the board: one line of counts by state (`review`, `doing`, `todo`, `draft`, `shared`, `done`), then
|
|
70
71
|
a table of the tasks somebody has to act on — `review` (its pull request is waiting), `doing`,
|
|
71
72
|
`draft` (only in this checkout) and `shared`. A `todo` task is counted, not listed. It is read from
|
|
72
|
-
local git, with no `gh` call and no fetch. In `--
|
|
73
|
+
local git, with no `gh` call and no fetch. In `--json` output it is `light_tasks`
|
|
73
74
|
(`{counts, attention: [{id, state, title, needs}]}`), `null` when the project has no light task.
|
|
74
75
|
Relay the rows before the buckets: in such a project they are the answer to "what is waiting",
|
|
75
76
|
and the board line above them reads `open issues: 0`.
|
|
@@ -80,12 +81,12 @@ Before the buckets the report prints one row per flow that has an open effort (a
|
|
|
80
81
|
the `effort` label): the effort that can start now — no open blocker, most urgent `priority:pN`
|
|
81
82
|
first, then the lowest number — and how many of the flow's efforts still wait on an open blocker.
|
|
82
83
|
Any open `blocked_by` issue blocks, in the same flow or another; a closed one does not. A flow where
|
|
83
|
-
nothing can start keeps its row and says so. In `--
|
|
84
|
+
nothing can start keeps its row and says so. In `--json` output these rows are `next_efforts`
|
|
84
85
|
(`{flow, number, ctx, title, waiting}`; `number` is `null` for a blocked flow, and the whole key is
|
|
85
86
|
`null` when the efforts could not be read).
|
|
86
87
|
|
|
87
88
|
The line under the table is the weekly cadence, the same line `cckit next` prints: Monday
|
|
88
|
-
`cckit plan`, daily `cckit next`, Friday `cckit gc`. Relay it when the owner asks what to do next.
|
|
89
|
+
`cckit effort plan --issues`, daily `cckit next`, Friday `cckit gc`. Relay it when the owner asks what to do next.
|
|
89
90
|
|
|
90
91
|
## Reading bucket 2
|
|
91
92
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: kit-task-close
|
|
3
|
+
terms: Task
|
|
3
4
|
description: Close a GitHub issue after its PR merged. Sets the board Status to Done (if enabled). If the issue is a plan parent, flips the plan status to Complete once all deliverables are merged (no archive folder — completed plans stay visible).
|
|
4
5
|
when_to_use: After a PR merges, to finalize the issue ledger. Most issues auto-close from PR `Closes #N` — use this for issues without a PR or to backfill the plan status.
|
|
5
6
|
---
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: kit-task-new
|
|
3
|
+
terms: Task
|
|
3
4
|
description: Create a new GitHub issue — applies labels, milestone, and (if enabled) Projects v2 fields in one flow. Prefer this over raw `gh issue create` so the board stays in sync.
|
|
4
5
|
when_to_use: When the owner or a sub-agent identifies a new piece of work to track.
|
|
5
6
|
---
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: kit-task-pr
|
|
3
|
+
terms: Task
|
|
3
4
|
description: Commit current changes, push the branch, open a PR with the right template, labels, milestone, and link to the parent issue (+ board if enabled).
|
|
4
5
|
when_to_use: When work on an issue branch is ready for review. Replaces ad-hoc `gh pr create`.
|
|
5
6
|
---
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: kit-task-pr-auto
|
|
3
|
+
terms: Task
|
|
3
4
|
description: Same as kit-task-pr (commit, push, open PR) then immediately attempts to merge via kit-task-pr-merge. One command to land a branch end-to-end.
|
|
4
5
|
when_to_use: When work is ready to ship without a separate review step.
|
|
5
6
|
---
|
|
@@ -23,5 +24,5 @@ If the PR can't be merged immediately (draft, checks pending, conflicts), report
|
|
|
23
24
|
|
|
24
25
|
- Inherits all rules from `kit-task-pr` and `kit-task-pr-merge`
|
|
25
26
|
- If `kit-task-pr` fails, stop — do not attempt merge
|
|
26
|
-
- If merge fails due to conflicts, attempt the
|
|
27
|
+
- If merge fails due to conflicts, attempt the merge-the-base-in fix from `kit-task-pr-merge` before giving up
|
|
27
28
|
- Always end on the base branch with a clean pull on success
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: kit-task-pr-merge
|
|
3
|
-
|
|
3
|
+
terms: Gate
|
|
4
|
+
description: Squash-merge the open PR for the current branch, switch to the base branch, and pull. Merges the base into the branch if conflicts are detected.
|
|
4
5
|
when_to_use: When work on an issue branch is ready to land. Always run after `/kit-task-pr`.
|
|
5
6
|
---
|
|
6
7
|
|
|
@@ -51,8 +52,8 @@ fi
|
|
|
51
52
|
|
|
52
53
|
- Never merge a DRAFT PR — undraft first
|
|
53
54
|
- An effort's PR (head `effort/*`) is refused: merge it with `cckit effort close <N>`, which snapshots the per-sub diffs before the squash. `KIT_FORCE=1` overrides, with a warning
|
|
54
|
-
- Never force-push
|
|
55
|
-
- If
|
|
55
|
+
- Never force-push, anywhere: a pushed branch is updated with `git merge origin/<base>` and a plain push, never a rebase
|
|
56
|
+
- If the merge hits conflicts, the op aborts it cleanly and tells you to resolve with `git merge origin/<base>` from the branch's worktree
|
|
56
57
|
- If merge fails for a non-conflict reason (failing checks), the op reports verbatim and does not retry
|
|
57
58
|
- The op always ends on the base branch with a clean pull on success, and always cleans up the merged branch + worktree
|
|
58
59
|
- Never delete a branch that still has an open PR or unpushed commits not on the base branch's remote
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: kit-task-start
|
|
3
|
+
terms: Worktree
|
|
3
4
|
description: Start work on a GitHub issue — thin caller of `cckit start <N>`. Creates an isolated, bootstrapped worktree + `<kind>/<N>-<slug>` branch from the base branch and marks the issue In Progress on the board (if enabled). Worktree-first — there is no in-place mode.
|
|
4
5
|
when_to_use: When beginning work on a tracked issue. Always run before editing files. Replaces ad-hoc `git checkout -b` and hand-rolled `git worktree add`.
|
|
5
6
|
---
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: kit-task-sync
|
|
3
|
+
terms: Sync
|
|
3
4
|
description: Query GitHub issues (+ Projects v2 if enabled) and print a status table grouped by Role. Flags blocked items and items missing a board entry.
|
|
4
5
|
when_to_use: "What's the state of work?", "what's blocked?", "show me the board", or the start of any chapter that needs current ground truth instead of a stale snapshot.
|
|
5
6
|
---
|
|
@@ -14,6 +15,8 @@ Runs `${CLAUDE_PLUGIN_ROOT}/scripts/task-sync.sh` — pure bash over `gh` CLI +
|
|
|
14
15
|
`.claude/kit.config.json` (from the working directory) for the repo and board. Read-only on
|
|
15
16
|
GitHub — it never mutates the board.
|
|
16
17
|
|
|
18
|
+
From a shell the same view is `cckit status --board`; `cckit sync`, its old name, still works.
|
|
19
|
+
|
|
17
20
|
## Execution
|
|
18
21
|
|
|
19
22
|
```bash
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: kit-ux-audit
|
|
3
|
+
terms: Check
|
|
3
4
|
description: Expert UX/UI audit of a front-end app, driven by a component/screen graph instead of a screen-by-screen walkthrough. Three lanes over one graph and one report — flows (routes ↔ screens ↔ containers ↔ components ↔ data entities ↔ forms; a UX agent runs 12 heuristics to surface confusing or erratic flows: the same data editable from many screens, deep paths to frequent actions, orphan/dead-end screens, heavy forms, structurally inconsistent patterns, overloaded screens, unguarded deletes, nav-away data loss), consistency (deterministic design-system pass: hand-rolled UI, className overrides on shared primitives, sibling-screen layout drift, variants-in-disguise, dead CSS — the model only classifies), and a11y (semantic-HTML + accessibility: non-semantic interactive elements, missing text alternatives, unlabeled controls, heading/landmark gaps, focus and keyboard problems). Emits a self-contained, accessible HTML report. Use AUTOMATICALLY when the user asks for a UX audit / UX review, to analyze app flows or navigation, to find where a piece of data can be edited, to check form usability, to review information architecture, to find confusing / hard-to-fill screens, for a design-system consistency pass / DS audit / "is this page consistent" / "what should be a variant" / "find hand-rolled solutions", OR for an accessibility / semantic-HTML review / "is this markup accessible" / "find non-semantic divs". Optional graphify integration; falls back to a dependency-free deterministic scan. Visual verification (Playwright / Chrome screenshots) is opt-in via --visual.
|
|
4
5
|
when_to_use: Before a redesign, after a feature that added screens or forms, when users report "I can't find where to change X" or "there are too many places to edit this", before scoping a UI refactor effort, or on demand for an IA / flow / consistency / accessibility health check. Targets component front-ends (Next.js, React Router v7, Vite React, Vue). For a purely visual per-screen critique of a running app, use a visual design-critique skill instead — this one reasons over structure. The a11y lane is a source-level check, not a substitute for axe / Lighthouse against the running app.
|
|
5
6
|
argument-hint: "[--lane flows|consistency|a11y|all] [--path <dir>] [--app <name>] [--visual] [--rebuild-graph] [--primitives <index.ts>] [--css <theme.css>] [--css-prefix <p>] [--dry-run]"
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
# skills/routing.yaml — what a person wants → the skill that does it → the term it serves.
|
|
2
|
+
#
|
|
3
|
+
# Read by scripts/terms-check.sh with awk, so this file is a STRICT flat subset of YAML:
|
|
4
|
+
# - one entry is exactly three lines, in this order, no other keys:
|
|
5
|
+
# - task: "<what the person wants, in their words>"
|
|
6
|
+
# skill: <a folder name under skills/>
|
|
7
|
+
# term: <a PascalCase id under ontology/terms/, or none>
|
|
8
|
+
# - `#` comment lines and blank lines anywhere; nothing else.
|
|
9
|
+
# - no nesting, no anchors, no flow sequences, no multi-line strings.
|
|
10
|
+
# A skill may appear in more than one entry (one task each). Every skill under skills/ must appear
|
|
11
|
+
# at least once. `term: none` says the skill serves the kit's own setup and no process term yet;
|
|
12
|
+
# the check counts those as "skills with no term", the candidates for a term or a merge.
|
|
13
|
+
# AGENTS.md carries the same routes under "Which skill does what", one row per skill with its tasks
|
|
14
|
+
# joined by " · " and its terms by ", "; the check compares the two.
|
|
15
|
+
|
|
16
|
+
# ── the loop: where we are, what next ───────────────────────────────────────
|
|
17
|
+
- task: "know where we are: local undone work, PRs waiting, cleanup"
|
|
18
|
+
skill: kit-status
|
|
19
|
+
term: Report
|
|
20
|
+
- task: "read the board by role, see what is blocked"
|
|
21
|
+
skill: kit-task-sync
|
|
22
|
+
term: Sync
|
|
23
|
+
- task: "pick up the next unblocked issue"
|
|
24
|
+
skill: kit-next
|
|
25
|
+
term: Task
|
|
26
|
+
- task: "fan the unblocked wave out to builders"
|
|
27
|
+
skill: kit-next
|
|
28
|
+
term: Wave
|
|
29
|
+
- task: "decide what to build next from what the kit already does"
|
|
30
|
+
skill: kit-plan-next
|
|
31
|
+
term: Effort
|
|
32
|
+
- task: "run an approved plan unattended, waves merged as they go"
|
|
33
|
+
skill: kit-autopilot
|
|
34
|
+
term: Captain
|
|
35
|
+
|
|
36
|
+
# ── the advisor: decide the work, then keep it honest ──────────────────────
|
|
37
|
+
- task: "create or plan an effort: grill, plan, orchestrate, review, close"
|
|
38
|
+
skill: kit-advisor
|
|
39
|
+
term: Advisor
|
|
40
|
+
|
|
41
|
+
# ── one issue ────────────────────────────────────────────────────────────────
|
|
42
|
+
- task: "track a new piece of work as an issue"
|
|
43
|
+
skill: kit-task-new
|
|
44
|
+
term: Task
|
|
45
|
+
- task: "start work on an issue in its own worktree"
|
|
46
|
+
skill: kit-task-start
|
|
47
|
+
term: Worktree
|
|
48
|
+
- task: "open the PR for an issue"
|
|
49
|
+
skill: kit-task-pr
|
|
50
|
+
term: Task
|
|
51
|
+
- task: "land an issue's PR once the gate is green"
|
|
52
|
+
skill: kit-task-pr-merge
|
|
53
|
+
term: Gate
|
|
54
|
+
- task: "open and land the PR in one step"
|
|
55
|
+
skill: kit-task-pr-auto
|
|
56
|
+
term: Task
|
|
57
|
+
- task: "close an issue whose PR merged"
|
|
58
|
+
skill: kit-task-close
|
|
59
|
+
term: Task
|
|
60
|
+
- task: "take one issue from code to merged"
|
|
61
|
+
skill: kit-ship
|
|
62
|
+
term: Task
|
|
63
|
+
|
|
64
|
+
# ── one effort ───────────────────────────────────────────────────────────────
|
|
65
|
+
- task: "scope a goal into an effort"
|
|
66
|
+
skill: kit-effort-new
|
|
67
|
+
term: Effort
|
|
68
|
+
- task: "record the deliverables as sub-issues"
|
|
69
|
+
skill: kit-effort-new
|
|
70
|
+
term: SubIssue
|
|
71
|
+
- task: "start building an effort"
|
|
72
|
+
skill: kit-effort-start
|
|
73
|
+
term: Effort
|
|
74
|
+
- task: "open the one PR of an effort"
|
|
75
|
+
skill: kit-effort-pr
|
|
76
|
+
term: Effort
|
|
77
|
+
- task: "land and close an effort"
|
|
78
|
+
skill: kit-effort-close
|
|
79
|
+
term: Effort
|
|
80
|
+
|
|
81
|
+
# ── keep the repository clean ────────────────────────────────────────────────
|
|
82
|
+
- task: "see which branches and worktrees can go"
|
|
83
|
+
skill: kit-gc
|
|
84
|
+
term: Worktree
|
|
85
|
+
- task: "delete the merged branches and worktrees"
|
|
86
|
+
skill: kit-cleanup
|
|
87
|
+
term: Worktree
|
|
88
|
+
|
|
89
|
+
# ── checks on the product ────────────────────────────────────────────────────
|
|
90
|
+
- task: "audit the project for security findings"
|
|
91
|
+
skill: kit-security-sweep
|
|
92
|
+
term: Check
|
|
93
|
+
- task: "audit the UI's flows, consistency and accessibility"
|
|
94
|
+
skill: kit-ux-audit
|
|
95
|
+
term: Check
|
|
96
|
+
- task: "give visual feedback on a running UI and triage it"
|
|
97
|
+
skill: kit-annotate
|
|
98
|
+
term: Check
|
|
99
|
+
|
|
100
|
+
# ── the kit itself: no process term yet ──────────────────────────────────────
|
|
101
|
+
- task: "set cckit up on a new machine"
|
|
102
|
+
skill: kit-onboard
|
|
103
|
+
term: none
|
|
104
|
+
- task: "add an integration or a module to the project"
|
|
105
|
+
skill: kit-add
|
|
106
|
+
term: none
|
|
107
|
+
- task: "add or edit an agent or a skill in a project"
|
|
108
|
+
skill: kit-customize
|
|
109
|
+
term: none
|
|
110
|
+
- task: "send a change upstream to cckit"
|
|
111
|
+
skill: kit-contribute
|
|
112
|
+
term: none
|
|
113
|
+
- task: "change cckit itself and test it live"
|
|
114
|
+
skill: kit-dev
|
|
115
|
+
term: none
|
|
116
|
+
- task: "write a docs page in the house voice"
|
|
117
|
+
skill: kit-docs-writer
|
|
118
|
+
term: none
|
|
119
|
+
- task: "shorten a long input before reading it"
|
|
120
|
+
skill: kit-digest
|
|
121
|
+
term: none
|
|
122
|
+
- task: "show a plan, a decision or a grilling round as a page"
|
|
123
|
+
skill: kit-page
|
|
124
|
+
term: none
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
# Stop → blocks the stop ONLY for unread `--steer` mail (redirects a finishing
|
|
8
8
|
# session); mail is consumed on delivery so it can never block twice
|
|
9
9
|
# Silent (no output) when there is no mail — zero noise on the hot path.
|
|
10
|
-
# Send with: cckit msg send <branch|project:branch|all> [--steer] "<text>"
|
|
10
|
+
# Send with: cckit agent msg send <branch|project:branch|all> [--steer] "<text>"
|
|
11
11
|
set -u
|
|
12
12
|
input="$(cat 2>/dev/null || true)"
|
|
13
13
|
event="$(printf '%s' "$input" | jq -r '.hook_event_name // empty' 2>/dev/null || true)"
|
|
@@ -25,10 +25,10 @@ Agent definitions: `.claude/agents/<name>/AGENT.md`.
|
|
|
25
25
|
## How this project is driven
|
|
26
26
|
|
|
27
27
|
This project runs on [cckit](https://cckit.dev). Every operation is a `cckit` verb you run in the
|
|
28
|
-
shell — read state with `cckit
|
|
28
|
+
shell — read state with `cckit status --board --json` before acting, and append `--json` to any verb for
|
|
29
29
|
machine-readable output. `cckit init` registers hooks in `.codex/hooks.json`: a guard that blocks a
|
|
30
30
|
commit to the base branch, a guard that blocks raw `gh`/`git` operations a `cckit` verb owns, session
|
|
31
|
-
mail (`cckit msg`), and two session-start checks. Codex runs them only after they are trusted
|
|
31
|
+
mail (`cckit agent msg`), and two session-start checks. Codex runs them only after they are trusted
|
|
32
32
|
(`/hooks`), and a hook is fast feedback, not enforcement — the rules below apply whether or not one
|
|
33
33
|
fires.
|
|
34
34
|
<!-- IF:MEMORY -->
|
|
@@ -128,7 +128,7 @@ Create a GitHub issue only when {{OWNER_NAME}} asks for one.
|
|
|
128
128
|
| 6. Close | `/kit-task-close <N>` | Close issue (auto on `Closes #N`) + archive plan |
|
|
129
129
|
<!-- /IF:ADAPTER_CLAUDE --><!-- IF:ADAPTER_CODEX -->| Step | Command | What it does |
|
|
130
130
|
| ----------------- | ------------------------------- | ------------------------------------------------------- |
|
|
131
|
-
| 1. Pick an issue | `cckit
|
|
131
|
+
| 1. Pick an issue | `cckit status --board --json` | See the open board, choose what's unblocked |
|
|
132
132
|
| 2. Start work | `cckit start <N>` | Isolated worktree + branch `<kind>/<N>-<slug>` from the base |
|
|
133
133
|
| 3. Do the work | — | Work inside the worktree `cckit start` printed |
|
|
134
134
|
| 4. Open PR | `cckit pr <N> "<summary>"` | Commit + push + open PR |
|
|
@@ -53,7 +53,7 @@ number.
|
|
|
53
53
|
`cckit orchestrate 46 47 48`. Those numbers were issues in the author's repository on the day the
|
|
54
54
|
page was written; in the reader's repository they are other issues, closed ones, or nothing.
|
|
55
55
|
- **Write instead:** *sync the board, show me what is ready, and I will pick.* The agent runs
|
|
56
|
-
`cckit
|
|
56
|
+
`cckit status --board`, presents what is unblocked, and the person chooses. Which lane the choice goes to —
|
|
57
57
|
one issue, an effort, a wave, an unattended run — depends on what was picked, so the prompt does
|
|
58
58
|
not fix that either.
|
|
59
59
|
- **In a command line:** a placeholder (`cckit start <issue>`, `cckit orchestrate <issues…>`) or a
|
|
@@ -77,13 +77,13 @@ one. This rule decides that a pasted prompt has none. For a prompt, this rule wi
|
|
|
77
77
|
the name of the work and its outcome.** Two parts:
|
|
78
78
|
|
|
79
79
|
- **No machine-flag decoration.** Do not attach an output-mode variant to a verb you are only
|
|
80
|
-
mentioning: `cckit
|
|
80
|
+
mentioning: `cckit status --board --json`, `--output=json`, `--porcelain`. The flag tells the reader how a
|
|
81
81
|
program would parse the output, which is not something they asked.
|
|
82
82
|
- **Name the work, with its number.** An effort is written `slug #N` — `auth-hardening #42` — the
|
|
83
83
|
form `effort_display` prints in the kit's own listings. A bare `#42` makes the reader look the
|
|
84
84
|
issue up to learn what it is.
|
|
85
85
|
|
|
86
|
-
- **Origin:** a correction. Recaps carried `cckit … --
|
|
86
|
+
- **Origin:** a correction. Recaps carried `cckit … --json` beside each verb they mentioned, and the
|
|
87
87
|
maintainer's response was that the tags said nothing and were not visually useful. The same
|
|
88
88
|
correction asked for efforts to be named `slug #N` and not by number alone.
|
|
89
89
|
- **A command still belongs in a summary when the reader runs it next.** Then it is written
|
|
@@ -91,6 +91,10 @@ the name of the work and its outcome.** Two parts:
|
|
|
91
91
|
line; a command listed to show what the agent ran is decoration.
|
|
92
92
|
- **Scope:** text a person reads. Output an agent parses, a brief handed to a sub-agent, and the
|
|
93
93
|
machine-read lines `naming-and-ids.md` lists (`- Depends on #N`, `Closes #N`) are not summaries.
|
|
94
|
+
- **A step report also goes on its issue.** A report saved under `.cckit/reports/` uses the
|
|
95
|
+
sections Status · Done · Waiting for a yes · Numbers · Failing or risky · Open questions · Next
|
|
96
|
+
step. `cckit agent receipt <issue> --report <file>` posts its short trail comment on the issue, so other
|
|
97
|
+
agents read the trail there; the full report stays local.
|
|
94
98
|
|
|
95
99
|
**Precedence — `naming-and-ids.md`.** That rule writes an effort as `E241`, a pull request as
|
|
96
100
|
`PR 268` and a standalone issue as `#209`, and forbids a bare `#241` for an effort. Where it is
|
|
@@ -32,6 +32,10 @@ when an agent rediscovers something it should have been handed, add it here.
|
|
|
32
32
|
`.github.owner` / `.github.projectNumber` / `.github.baseBranch` out of whatever it prints, or let
|
|
33
33
|
`load_kit_config` (`scripts/lib/kit-config.sh`) export `KIT_REPO` / `KIT_OWNER` /
|
|
34
34
|
`KIT_BASE_BRANCH` / `KIT_PROJECT_NUMBER` for you.
|
|
35
|
+
- **Read the board from the local snapshot.** After `cckit status --board`, grep `.cckit/board.md` (the
|
|
36
|
+
primary checkout's, shared by every worktree; sync prints its absolute path) with
|
|
37
|
+
`rg '#572' <path>`: one line per open issue — status, kind, effort token, labels, title. `.cckit/`
|
|
38
|
+
is gitignored, so give `rg` the path.
|
|
35
39
|
- **Project IDs are worktree-durable.** `source scripts/lib/gh-project.sh; load_project_ids` reads
|
|
36
40
|
the captured IDs from the shared git-common-dir, so worktrees see them too.
|
|
37
41
|
|