@jeiemgi/cckit 0.12.0 → 0.13.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 +4 -2
- package/AGENTS.md +17 -237
- package/README.md +27 -27
- package/SECURITY.md +4 -4
- package/bin/PROMPTS.md +12 -0
- package/bin/cckit +86 -86
- package/cckit.config.json +1 -1
- package/kit/PROMPTS.md +14 -0
- package/{commands → kit/commands}/kit-doctor.md +3 -4
- package/{commands → kit/commands}/kit-export-project.md +1 -1
- package/{commands → kit/commands}/kit-init.md +8 -20
- package/{commands → kit/commands}/kit-routines.md +1 -1
- package/{commands → kit/commands}/kit-update.md +3 -3
- package/kit/completions/cckit.bash +9 -0
- package/{databases → kit/databases}/supabase.json +1 -1
- package/{integrations → kit/integrations}/integration.schema.json +3 -3
- package/kit/interview/global.json +54 -0
- package/kit/interview/project.json +133 -0
- package/kit/modules/qa.json +63 -0
- package/kit/modules/software.json +48 -0
- package/{profiles → kit/profiles}/automation.json +1 -3
- package/{profiles → kit/profiles}/content.json +0 -2
- package/{profiles → kit/profiles}/marketing.json +0 -2
- package/{profiles → kit/profiles}/minimal.json +1 -3
- package/{profiles → kit/profiles}/research.json +1 -3
- package/{profiles → kit/profiles}/software.json +0 -2
- package/kit/routines/catalogue.json +84 -0
- package/{skills → kit/skills}/kit-add/SKILL.md +3 -3
- package/{skills → kit/skills}/kit-annotate/SKILL.md +2 -4
- package/{skills → kit/skills}/kit-autopilot/SKILL.md +6 -6
- package/{skills → kit/skills}/kit-cleanup/SKILL.md +2 -2
- package/{skills → kit/skills}/kit-contribute/SKILL.md +8 -12
- package/{skills → kit/skills}/kit-customize/SKILL.md +5 -8
- package/{skills → kit/skills}/kit-dev/SKILL.md +1 -1
- package/{skills → kit/skills}/kit-digest/SKILL.md +3 -3
- package/{skills → kit/skills}/kit-effort-close/SKILL.md +4 -4
- package/{skills → kit/skills}/kit-effort-new/SKILL.md +6 -6
- package/{skills → kit/skills}/kit-effort-start/SKILL.md +3 -3
- package/{skills → kit/skills}/kit-gc/SKILL.md +3 -3
- package/{skills → kit/skills}/kit-page/SKILL.md +1 -1
- package/{skills → kit/skills}/kit-status/SKILL.md +1 -1
- package/{skills → kit/skills}/kit-task-close/SKILL.md +5 -5
- package/{skills → kit/skills}/kit-task-new/SKILL.md +5 -5
- package/{skills → kit/skills}/kit-task-pr/SKILL.md +5 -5
- package/{skills → kit/skills}/kit-task-pr-merge/SKILL.md +7 -7
- package/{skills → kit/skills}/kit-task-start/SKILL.md +1 -1
- package/{skills → kit/skills}/kit-task-sync/SKILL.md +3 -3
- package/{skills → kit/skills}/kit-ux-audit/SKILL.md +16 -35
- package/{skills → kit/skills}/kit-ux-audit/references/graph-model.md +7 -26
- package/{skills → kit/skills}/kit-ux-audit/references/report.md +2 -3
- package/{skills → kit/skills}/routing.yaml +1 -1
- package/kit/statusline/kit-statusline.sh +82 -0
- package/{templates → kit/templates}/agents/analyst.md +0 -11
- package/{templates → kit/templates}/agents/auto-dev.md +0 -13
- package/{templates → kit/templates}/agents/backend.md +0 -11
- package/{templates → kit/templates}/agents/designer.md +0 -11
- package/{templates → kit/templates}/agents/devops.md +0 -11
- package/{templates → kit/templates}/agents/editor.md +0 -11
- package/{templates → kit/templates}/agents/frontend.md +0 -11
- package/{templates → kit/templates}/agents/generalist.md +0 -11
- package/{templates → kit/templates}/agents/local-delegate.md +0 -13
- package/{templates → kit/templates}/agents/n8n.md +0 -11
- package/{templates → kit/templates}/agents/pm.md +0 -11
- package/{templates → kit/templates}/agents/qa.md +0 -11
- package/{templates → kit/templates}/agents/researcher.md +0 -11
- package/{templates → kit/templates}/agents/security.md +0 -11
- package/{templates → kit/templates}/agents/tech-lead.md +0 -11
- package/{templates → kit/templates}/agents/ux.md +3 -14
- package/{templates → kit/templates}/instructions.md.tmpl +1 -18
- package/{templates → kit/templates}/kit.config.json.tmpl +0 -6
- package/{templates → kit/templates}/rules/branch-naming.md +3 -2
- package/{templates → kit/templates}/rules/merge-safety.md +3 -2
- package/{templates → kit/templates}/rules/react-annotate.md +0 -8
- package/kit.config.schema.json +11 -11
- package/lib/PROMPTS.md +14 -0
- package/{scripts/lib → lib/core}/adapter-select-test.sh +7 -7
- package/{scripts → lib/core}/advisor-test.sh +3 -3
- package/{scripts/lib → lib/core}/agent-def-test.sh +1 -1
- package/{scripts/lib → lib/core}/agent-def.sh +2 -2
- package/{scripts/lib → lib/core}/agent-launch-test.sh +3 -3
- package/{scripts/lib → lib/core}/agent-profile-test.sh +2 -2
- package/{scripts/lib → lib/core}/agent-resolve-test.sh +2 -2
- package/{scripts/lib → lib/core}/agent-resolve.sh +2 -2
- package/{scripts → lib/core}/agent-skills-external.txt +3 -3
- package/{scripts → lib/core}/agent-skills-lint-test.sh +17 -17
- package/lib/core/agent-skills-lint.sh +115 -0
- package/{scripts → lib/core}/agent-template-lint-test.sh +7 -7
- package/lib/core/agent-template-lint.sh +58 -0
- package/{scripts/lib → lib/core}/board-view-test.sh +3 -3
- package/lib/core/board-view.sh +97 -0
- package/{scripts/lib → lib/core}/branch-owner-test.sh +3 -3
- package/lib/core/branch-owner.sh +201 -0
- package/lib/core/check.sh +125 -0
- package/{scripts/lib → lib/core}/codex-hooks-test.sh +3 -3
- package/{scripts → lib/core}/commitlint-test.sh +6 -6
- package/lib/core/commitlint.sh +54 -0
- package/{scripts/config-path-test.sh → lib/core/config-path-scan-test.sh} +2 -2
- package/{scripts/lib → lib/core}/config-path-test.sh +3 -3
- package/lib/core/config-path.sh +30 -0
- package/{scripts → lib/core}/content-skills-test.sh +16 -16
- package/{scripts → lib/core}/docs-marketing-words-test.sh +2 -2
- package/{scripts → lib/core}/docs-record-tables-test.sh +2 -2
- package/{scripts/lib → lib/core}/effort-metrics-test.sh +6 -6
- package/lib/core/effort-metrics.sh +591 -0
- package/{scripts/lib → lib/core}/effort-slug-test.sh +4 -4
- package/{scripts/lib → lib/core}/effort-slug.sh +3 -3
- package/lib/core/effort.sh +339 -0
- package/{scripts/lib → lib/core}/errors-header-test.sh +19 -9
- package/lib/core/errors-header.exempt +49 -0
- package/{scripts → lib/core}/exec-targets-test.sh +3 -3
- package/lib/core/feature-map.sh +76 -0
- package/{scripts → lib/core}/force-push-fence-test.sh +8 -8
- package/lib/core/force-push-fence.sh +51 -0
- package/{scripts → lib/core}/forge-fence-test.sh +13 -13
- package/{scripts → lib/core}/forge-fence.sh +14 -14
- package/{scripts → lib/core}/forge-report-test.sh +5 -5
- package/{scripts → lib/core}/forge-report.sh +18 -14
- package/{scripts/lib → lib/core}/git-core-test.sh +5 -5
- package/{scripts/lib → lib/core}/git-remote-test.sh +3 -3
- package/{scripts → lib/core}/guard-raw-git-ops-test.sh +4 -4
- package/{scripts → lib/core}/hook-adapter-test.sh +5 -5
- package/{scripts/lib → lib/core}/hook-refresh-test.sh +5 -5
- package/{scripts → lib/core}/instruction-budget-baseline.txt +1 -1
- package/lib/core/instruction-budget-lint.sh +238 -0
- package/{scripts/lib → lib/core}/integration-install-test.sh +12 -12
- package/lib/core/integration-install.sh +257 -0
- package/{scripts/lib → lib/core}/integrations-test.sh +38 -45
- package/lib/core/integrations.sh +244 -0
- package/{scripts/lib → lib/core}/kinds-test.sh +5 -5
- package/lib/core/kinds.sh +66 -0
- package/{scripts/lib → lib/core}/kit-cli-test.sh +1 -1
- package/{scripts/lib → lib/core}/kit-cli.sh +1 -1
- package/{scripts/lib → lib/core}/kit-config-resolve.sh +2 -2
- package/{scripts/lib → lib/core}/kit-config-test.sh +11 -11
- package/lib/core/kit-config.sh +164 -0
- package/{scripts/lib → lib/core}/kit-engine-test.sh +1 -1
- package/lib/core/kit-events.sh +72 -0
- package/lib/core/kit-local.sh +87 -0
- package/{scripts/lib → lib/core}/kit-manifest.sh +1 -1
- package/{scripts/lib → lib/core}/kit-mode-test.sh +1 -1
- package/{scripts/lib → lib/core}/kit-mode.sh +3 -3
- package/{scripts/lib → lib/core}/kit-operate.sh +1 -1
- package/{scripts/lib → lib/core}/kit-profile-test.sh +1 -1
- package/{scripts/lib → lib/core}/kit-profile.sh +2 -2
- package/{scripts/lib → lib/core}/kit-state-test.sh +1 -1
- package/lib/core/knowledge-lint.sh +106 -0
- package/lib/core/layout-fence-test.sh +35 -0
- package/lib/core/layout-fence.allow +15 -0
- package/lib/core/layout-fence.baseline +4 -0
- package/lib/core/layout-fence.sh +50 -0
- package/{scripts → lib/core}/leak-fence-test.sh +10 -10
- package/{scripts/lib → lib/core}/leak-fence.sh +1 -1
- package/{scripts → lib/core}/loose-issues-test.sh +8 -8
- package/{scripts → lib/core}/loose-issues.baseline +1 -1
- package/{scripts/lib → lib/core}/loose-issues.sh +2 -2
- package/{scripts → lib/core}/marketing-walkthrough-test.sh +7 -7
- package/{scripts/lib → lib/core}/naming-test.sh +2 -2
- package/{scripts/lib → lib/core}/naming-verbs-test.sh +8 -8
- package/lib/core/naming.sh +172 -0
- package/{scripts/lib → lib/core}/orchestration-runtime-test.sh +4 -4
- package/{scripts → lib/core}/portable-test.sh +10 -6
- package/{scripts/lib → lib/core}/pr-evidence-test.sh +5 -5
- package/lib/core/pr-evidence.sh +361 -0
- package/{scripts/lib → lib/core}/qa-lane-test.sh +7 -7
- package/{scripts/lib → lib/core}/qa-lane.sh +3 -3
- package/{scripts/lib → lib/core}/qa-lanes-test.sh +5 -5
- package/lib/core/react-detect.sh +79 -0
- package/{scripts/lib → lib/core}/render-test.sh +1 -1
- package/lib/core/resident-context-test.sh +42 -0
- package/lib/core/resident-context.baseline +1 -0
- package/lib/core/resident-context.sh +56 -0
- package/lib/core/review-lint-baseline.txt +28 -0
- package/lib/core/review-lint.sh +266 -0
- package/{scripts → lib/core}/review-rules.conf +1 -1
- package/{scripts/lib → lib/core}/review-stage-test.sh +2 -2
- package/{scripts/lib → lib/core}/role-identity-test.sh +3 -3
- package/lib/core/role-identity.sh +71 -0
- package/{scripts → lib/core}/rule-recipes-test.sh +5 -5
- package/lib/core/secret-guard.sh +116 -0
- package/{scripts → lib/core}/self-install-test.sh +15 -16
- package/{scripts/lib → lib/core}/session-registry-test.sh +1 -1
- package/lib/core/session-registry.sh +233 -0
- package/{scripts → lib/core}/skill-frontmatter-baseline.txt +1 -1
- package/lib/core/skill-frontmatter-lint.sh +189 -0
- package/{scripts/lib → lib/core}/spec-lint-test.sh +1 -1
- package/lib/core/spec-lint.sh +95 -0
- package/{scripts/lib → lib/core}/stage-receipt-test.sh +4 -4
- package/{scripts/lib → lib/core}/stage-receipt.sh +3 -3
- package/{scripts → lib/core}/terms-check-test.sh +6 -6
- package/lib/core/terms-check.sh +244 -0
- package/{scripts/lib → lib/core}/test-env-test.sh +2 -2
- package/{scripts/lib → lib/core}/test-env.sh +1 -1
- package/{scripts → lib/core}/test-runner-test.sh +11 -11
- package/{scripts → lib/core}/test.sh +12 -12
- package/{scripts → lib/core}/update-path-test.sh +3 -3
- package/{scripts → lib/core}/verbs-gen.sh +9 -9
- package/{scripts → lib/core}/verbs-help-test.sh +4 -4
- package/{scripts → lib/core}/verbs-ratchet-test.sh +18 -18
- package/{scripts → lib/core}/verbs-ratchet.sh +8 -8
- package/{scripts → lib/core}/verbs-test.sh +19 -19
- package/lib/core/verbs.baseline +5 -0
- package/{scripts/lib → lib/core}/verbs.sh +2 -2
- package/{scripts/lib → lib/core}/verbs.tsv +5 -5
- package/{scripts/lib → lib/core}/version-bump-test.sh +29 -8
- package/{scripts/lib → lib/core}/version-bump.sh +15 -2
- package/{scripts/lib → lib/core}/wave-result-test.sh +2 -2
- package/{scripts/lib → lib/core}/wave-result.sh +1 -1
- package/{scripts/lib → lib/core}/worker-brief-test.sh +3 -3
- package/{scripts/lib → lib/core}/worktree-bootstrap-test.sh +1 -1
- package/{scripts/lib → lib/core}/worktree-issue-test.sh +2 -2
- package/lib/core/worktree-issue.sh +172 -0
- package/{scripts/lib → lib/core}/worktree-ports-test.sh +1 -1
- package/{scripts/lib → lib/core}/worktree-start-test.sh +2 -2
- package/lib/core/worktree-start.sh +790 -0
- package/{scripts/lib → lib/core}/zsh-safety-test.sh +11 -11
- package/{scripts/lib → lib/forge}/forge-test.sh +4 -4
- package/{scripts/lib → lib/forge}/forge.sh +1 -1
- package/{scripts/lib → lib/forge}/gh-board-add-test.sh +3 -3
- package/lib/forge/gh-log.sh +59 -0
- package/{scripts/lib → lib/forge}/gh-project-test.sh +18 -17
- package/lib/forge/gh-project.sh +379 -0
- package/{scripts/lib → lib/forge}/gh-rest-test.sh +5 -5
- package/{scripts/lib → lib/forge}/gh-rest.sh +1 -1
- package/{scripts/lib → lib/forge}/init-github.sh +18 -8
- package/lib/verbs/PROMPTS.md +146 -0
- package/lib/verbs/annotate-setup.sh +149 -0
- package/{scripts → lib/verbs}/autopilot-run-test.sh +9 -9
- package/{scripts → lib/verbs}/autopilot-run.sh +9 -9
- package/{scripts → lib/verbs}/autopilot-test.sh +7 -6
- package/{scripts → lib/verbs}/autopilot.sh +3 -3
- package/{scripts/lib → lib/verbs}/captain-test.sh +1 -1
- package/{scripts/lib → lib/verbs}/captain.sh +7 -7
- package/lib/verbs/capture-project-ids.sh +99 -0
- package/{scripts/lib → lib/verbs}/content-kinds-gc-test.sh +7 -7
- package/{scripts/lib → lib/verbs}/contribute-root-test.sh +4 -4
- package/{scripts/lib → lib/verbs}/contribute-root.sh +1 -1
- package/{scripts → lib/verbs}/contribute.sh +8 -8
- package/{scripts → lib/verbs}/copilot-loop-test.sh +4 -4
- package/{scripts/lib → lib/verbs}/copilot-test.sh +11 -10
- package/{scripts/lib → lib/verbs}/copilot.sh +7 -7
- package/{scripts → lib/verbs}/database-supabase-test.sh +6 -6
- package/{scripts/lib → lib/verbs}/effort-close-subs-test.sh +6 -6
- package/{scripts/lib → lib/verbs}/effort-dispatch-test.sh +3 -3
- package/{scripts/lib → lib/verbs}/effort-flows-test.sh +5 -5
- package/{scripts/lib → lib/verbs}/effort-ops-test.sh +13 -13
- package/lib/verbs/effort-ops.sh +1571 -0
- package/{scripts/lib → lib/verbs}/effort-parity-test.sh +10 -10
- package/{scripts/lib → lib/verbs}/effort-plan-test.sh +7 -7
- package/lib/verbs/effort-plan.sh +289 -0
- package/{scripts/lib → lib/verbs}/effort-review-test.sh +5 -5
- package/{scripts/lib → lib/verbs}/effort-review.sh +2 -2
- package/{scripts/lib → lib/verbs}/grill-record-test.sh +1 -1
- package/lib/verbs/grill-record.sh +88 -0
- package/{scripts/lib → lib/verbs}/handoff.sh +2 -2
- package/{scripts → lib/verbs}/init-content-test.sh +14 -14
- package/{scripts/lib → lib/verbs}/init-guide.sh +6 -6
- package/{scripts → lib/verbs}/init-guided-test.sh +9 -9
- package/{scripts → lib/verbs}/init-recipes-test.sh +7 -7
- package/{scripts → lib/verbs}/init-upgrade-test.sh +9 -10
- package/lib/verbs/init.sh +1598 -0
- package/{scripts → lib/verbs}/install-test.sh +5 -5
- package/lib/verbs/install.sh +31 -0
- package/{scripts → lib/verbs}/integrations-check-test.sh +9 -9
- package/lib/verbs/integrations-check.sh +157 -0
- package/{scripts → lib/verbs}/kit-add-test.sh +8 -8
- package/lib/verbs/kit-add.sh +415 -0
- package/{scripts → lib/verbs}/kit-adopt-test.sh +4 -4
- package/{scripts → lib/verbs}/kit-adopt.sh +6 -6
- package/{scripts/lib → lib/verbs}/kit-brief-test.sh +15 -15
- package/{scripts/lib → lib/verbs}/kit-brief.sh +12 -12
- package/lib/verbs/kit-bump-version.sh +79 -0
- package/lib/verbs/kit-digest.sh +126 -0
- package/{scripts → lib/verbs}/kit-doctor-test.sh +52 -32
- package/lib/verbs/kit-doctor.sh +991 -0
- package/{scripts → lib/verbs}/kit-export-project-test.sh +4 -4
- package/lib/verbs/kit-export-project.sh +245 -0
- package/{scripts → lib/verbs}/kit-export-training-test.sh +3 -3
- package/lib/verbs/kit-export-training.sh +175 -0
- package/{scripts/lib → lib/verbs}/kit-gc-test.sh +5 -5
- package/lib/verbs/kit-gc.sh +804 -0
- package/{scripts/lib → lib/verbs}/kit-hotfix.sh +3 -3
- package/{scripts/lib → lib/verbs}/kit-interview-test.sh +2 -2
- package/lib/verbs/kit-interview.sh +319 -0
- package/{scripts/lib → lib/verbs}/kit-lib-test.sh +1 -1
- package/{scripts/lib → lib/verbs}/kit-lib.sh +3 -3
- package/{scripts → lib/verbs}/kit-migrate-test.sh +4 -4
- package/{scripts → lib/verbs}/kit-migrate.sh +5 -5
- package/{scripts/lib → lib/verbs}/kit-msg-test.sh +2 -2
- package/{scripts/lib → lib/verbs}/kit-msg.sh +2 -2
- package/{scripts → lib/verbs}/kit-onboard-test.sh +2 -3
- package/lib/verbs/kit-onboard.sh +69 -0
- package/{scripts → lib/verbs}/kit-promote-test.sh +4 -4
- package/{scripts → lib/verbs}/kit-promote.sh +4 -4
- package/{scripts → lib/verbs}/kit-remove-test.sh +4 -4
- package/{scripts → lib/verbs}/kit-remove.sh +5 -5
- package/lib/verbs/kit-routines.sh +322 -0
- package/lib/verbs/kit-self-update.sh +55 -0
- package/{scripts/lib → lib/verbs}/kit-status-test.sh +2 -2
- package/lib/verbs/kit-status.sh +650 -0
- package/{scripts/lib → lib/verbs}/kit-task-ops-test.sh +8 -2
- package/lib/verbs/kit-task-ops.sh +793 -0
- package/{scripts → lib/verbs}/kit-version-check-test.sh +3 -3
- package/lib/verbs/kit-version-check.sh +121 -0
- package/{scripts → lib/verbs}/kit-wire-test.sh +6 -6
- package/{scripts → lib/verbs}/kit-wire.sh +8 -8
- package/{scripts/lib → lib/verbs}/kto-hotfix-test.sh +3 -3
- package/{scripts/lib → lib/verbs}/kto-task-close-test.sh +2 -2
- package/{scripts/lib → lib/verbs}/kto-task-new-test.sh +2 -2
- package/{scripts/lib → lib/verbs}/kto-task-pr-merge-test.sh +2 -2
- package/{scripts/lib → lib/verbs}/kto-task-pr-test.sh +3 -3
- package/{scripts/lib → lib/verbs}/light-task-run-test.sh +4 -4
- package/{scripts/lib → lib/verbs}/light-task-test.sh +9 -9
- package/{scripts/lib → lib/verbs}/light-task.sh +11 -11
- package/{scripts/lib → lib/verbs}/next-test.sh +2 -2
- package/{scripts/lib → lib/verbs}/next.sh +4 -4
- package/{scripts → lib/verbs}/night-grant-test.sh +4 -4
- package/lib/verbs/night-grant.sh +454 -0
- package/{scripts → lib/verbs}/night-run-test.sh +3 -3
- package/{scripts → lib/verbs}/night-run.mjs +2 -2
- package/{scripts → lib/verbs}/orchestrate-test.sh +5 -5
- package/{scripts → lib/verbs}/orchestrate.sh +15 -15
- package/{scripts/lib → lib/verbs}/plan-machine-test.sh +1 -1
- package/{scripts/lib → lib/verbs}/plan-machine.sh +4 -4
- package/{scripts/lib → lib/verbs}/plan-next-test.sh +1 -1
- package/lib/verbs/plan-next.sh +213 -0
- package/{scripts → lib/verbs}/publish.sh +10 -10
- package/{scripts/lib → lib/verbs}/review-page-test.sh +4 -4
- package/lib/verbs/review-page.sh +375 -0
- package/lib/verbs/setup-labels.sh +96 -0
- package/lib/verbs/setup-milestones.sh +34 -0
- package/{scripts → lib/verbs}/showcase.sh +2 -2
- package/{scripts/lib → lib/verbs}/sprint-test.sh +5 -5
- package/{scripts/lib → lib/verbs}/sprint.sh +2 -2
- package/{scripts → lib/verbs}/status-test.sh +7 -7
- package/{scripts → lib/verbs}/status.sh +12 -12
- package/{scripts → lib/verbs}/task-sync-test.sh +6 -6
- package/lib/verbs/task-sync.sh +462 -0
- package/{scripts/lib → lib/verbs}/upgrade-report-test.sh +4 -4
- package/lib/verbs/ux-a11y-scan.sh +96 -0
- package/lib/verbs/ux-ds-audit.sh +146 -0
- package/lib/verbs/ux-graph-scan.sh +188 -0
- package/{scripts → lib/verbs}/wave-worker.sh +2 -2
- package/lib/verbs/web-install.sh +22 -0
- package/package.json +3 -10
- package/scripts/PROMPTS.md +13 -0
- package/scripts/agent-skills-lint.sh +12 -113
- package/scripts/agent-template-lint.sh +12 -56
- package/scripts/annotate-setup.sh +11 -151
- package/scripts/benchmark/checkpoint-test.sh +1 -1
- package/scripts/benchmark/checkpoint.sh +1 -1
- package/scripts/benchmark/gate.sh +2 -2
- package/scripts/benchmark/lib/bench-common.sh +1 -1
- package/scripts/capture-project-ids.sh +12 -86
- package/scripts/check.sh +12 -112
- package/scripts/force-push-fence.sh +12 -49
- package/scripts/init.sh +13 -1637
- package/scripts/install.sh +12 -29
- package/scripts/instruction-budget-lint.sh +13 -218
- package/scripts/integrations-check.sh +12 -155
- package/scripts/kit-add.sh +12 -413
- package/scripts/kit-bump-version.sh +13 -78
- package/scripts/kit-digest.sh +13 -125
- package/scripts/kit-doctor.sh +13 -1065
- package/scripts/kit-export-project.sh +12 -243
- package/scripts/kit-export-training.sh +12 -173
- package/scripts/kit-onboard.sh +12 -67
- package/scripts/kit-routines.sh +12 -320
- package/scripts/kit-self-update.sh +12 -53
- package/scripts/kit-version-check.sh +12 -106
- package/scripts/knowledge-lint.sh +13 -98
- package/scripts/lib/board-view.sh +13 -96
- package/scripts/lib/branch-owner.sh +12 -199
- package/scripts/lib/commitlint.sh +12 -52
- package/scripts/lib/config-path.sh +13 -29
- package/scripts/lib/effort-metrics.sh +12 -589
- package/scripts/lib/effort-ops.sh +13 -1570
- package/scripts/lib/effort-plan.sh +12 -287
- package/scripts/lib/effort.sh +13 -338
- package/scripts/lib/gh-log.sh +14 -59
- package/scripts/lib/gh-project.sh +13 -376
- package/scripts/lib/grill-record.sh +13 -87
- package/scripts/lib/integration-install.sh +12 -255
- package/scripts/lib/integrations.sh +12 -242
- package/scripts/lib/kinds.sh +13 -65
- package/scripts/lib/kit-config.sh +12 -165
- package/scripts/lib/kit-events.sh +13 -71
- package/scripts/lib/kit-gc.sh +12 -802
- package/scripts/lib/kit-interview.sh +11 -316
- package/scripts/lib/kit-local.sh +12 -85
- package/scripts/lib/kit-status.sh +12 -648
- package/scripts/lib/kit-task-ops.sh +13 -789
- package/scripts/lib/naming.sh +12 -170
- package/scripts/lib/plan-next.sh +13 -212
- package/scripts/lib/pr-evidence.sh +12 -359
- package/scripts/lib/react-detect.sh +12 -77
- package/scripts/lib/review-page.sh +11 -372
- package/scripts/lib/role-identity.sh +13 -70
- package/scripts/lib/secret-guard.sh +12 -114
- package/scripts/lib/session-registry.sh +13 -232
- package/scripts/lib/spec-lint.sh +13 -94
- package/scripts/lib/worktree-issue.sh +12 -170
- package/scripts/lib/worktree-start.sh +13 -789
- package/scripts/night-grant.sh +12 -452
- package/scripts/review-lint.sh +13 -258
- package/scripts/setup-labels.sh +11 -82
- package/scripts/setup-milestones.sh +12 -21
- package/scripts/skill-frontmatter-lint.sh +13 -181
- package/scripts/task-sync.sh +13 -450
- package/scripts/terms-check.sh +13 -241
- package/scripts/ux-a11y-scan.sh +13 -95
- package/scripts/ux-ds-audit.sh +12 -144
- package/scripts/ux-graph-scan.sh +12 -186
- package/scripts/web-install.sh +16 -20
- package/docs/kit-annotate/01-explainer.html +0 -225
- package/docs/kit-annotate/02-implementation-plan.html +0 -196
- package/docs/media/.onboarding-capture.cast +0 -5
- package/docs/media/README.md +0 -43
- package/docs/media/build-demo.sh +0 -63
- package/docs/media/build-kit-init.sh +0 -51
- package/docs/media/build-onboarding.sh +0 -51
- package/docs/media/kit-dry-run.cast +0 -107
- package/docs/media/kit-dry-run.gif +0 -0
- package/docs/media/kit-init.cast +0 -56
- package/docs/media/kit-init.gif +0 -0
- package/docs/media/kit-onboarding.cast +0 -148
- package/docs/media/kit-onboarding.gif +0 -0
- package/integrations/mempalace.json +0 -28
- package/scripts/review-lint-baseline.txt +0 -28
- package/scripts/verbs.baseline +0 -5
- package/templates/hooks/mempal_followup.sh.tmpl +0 -97
- package/templates/hooks/mempal_precompact.sh.tmpl +0 -4
- package/templates/hooks/mempal_save.sh.tmpl +0 -4
- package/templates/hooks/mempal_session_start.sh.tmpl +0 -42
- package/templates/rules/mempalace.md +0 -111
- /package/{commands → kit/commands}/kit-docs.md +0 -0
- /package/{commands → kit/commands}/kit-export-training.md +0 -0
- /package/{databases → kit/databases}/supabase/guide.html +0 -0
- /package/{databases → kit/databases}/supabase/nextjs/lib/supabase/client.ts +0 -0
- /package/{databases → kit/databases}/supabase/nextjs/lib/supabase/server.ts +0 -0
- /package/{githooks → kit/githooks}/pre-commit +0 -0
- /package/{integrations → kit/integrations}/emil-design-eng.json +0 -0
- /package/{integrations → kit/integrations}/graft.json +0 -0
- /package/{integrations → kit/integrations}/impeccable.json +0 -0
- /package/{integrations → kit/integrations}/lavish.json +0 -0
- /package/{integrations → kit/integrations}/mlx-lm.json +0 -0
- /package/{integrations → kit/integrations}/web-design-guidelines.json +0 -0
- /package/{recipes → kit/recipes}/nextjs-shadcn.json +0 -0
- /package/{skills → kit/skills}/kit-advisor/SKILL.md +0 -0
- /package/{skills → kit/skills}/kit-advisor/references/close.md +0 -0
- /package/{skills → kit/skills}/kit-advisor/references/grill.md +0 -0
- /package/{skills → kit/skills}/kit-advisor/references/orchestrate.md +0 -0
- /package/{skills → kit/skills}/kit-advisor/references/plan.md +0 -0
- /package/{skills → kit/skills}/kit-advisor/references/review.md +0 -0
- /package/{skills → kit/skills}/kit-advisor/references/step-report.md +0 -0
- /package/{skills → kit/skills}/kit-docs-writer/SKILL.md +0 -0
- /package/{skills → kit/skills}/kit-effort-pr/SKILL.md +0 -0
- /package/{skills → kit/skills}/kit-next/SKILL.md +0 -0
- /package/{skills → kit/skills}/kit-onboard/SKILL.md +0 -0
- /package/{skills → kit/skills}/kit-plan-next/SKILL.md +0 -0
- /package/{skills → kit/skills}/kit-security-sweep/SKILL.md +0 -0
- /package/{skills → kit/skills}/kit-ship/SKILL.md +0 -0
- /package/{skills → kit/skills}/kit-task-pr-auto/SKILL.md +0 -0
- /package/{skills → kit/skills}/kit-ux-audit/references/a11y.md +0 -0
- /package/{skills → kit/skills}/kit-ux-audit/references/consistency.md +0 -0
- /package/{skills → kit/skills}/kit-ux-audit/references/heuristics.md +0 -0
- /package/{templates → kit/templates}/benchmarks/SCHEMA.md +0 -0
- /package/{templates → kit/templates}/benchmarks/abstain.jsonl +0 -0
- /package/{templates → kit/templates}/benchmarks/adversarial.jsonl +0 -0
- /package/{templates → kit/templates}/benchmarks/benchmark.config.json +0 -0
- /package/{templates → kit/templates}/benchmarks/quality.jsonl +0 -0
- /package/{templates → kit/templates}/benchmarks/retrieval.jsonl +0 -0
- /package/{templates → kit/templates}/codex/hooks.json.tmpl +0 -0
- /package/{templates → kit/templates}/hooks/guard-base-branch-commit.sh.tmpl +0 -0
- /package/{templates → kit/templates}/hooks/guard-raw-git-ops.sh.tmpl +0 -0
- /package/{templates → kit/templates}/hooks/kit-local-status.sh.tmpl +0 -0
- /package/{templates → kit/templates}/hooks/kit-mail-check.sh.tmpl +0 -0
- /package/{templates → kit/templates}/hooks/kit_version_check.sh.tmpl +0 -0
- /package/{templates → kit/templates}/hooks/prepush_gate.sh.tmpl +0 -0
- /package/{templates → kit/templates}/hooks/repo-hygiene.sh.tmpl +0 -0
- /package/{templates → kit/templates}/knowledge-INDEX.md.tmpl +0 -0
- /package/{templates → kit/templates}/lib/kit-sigil.sh.tmpl +0 -0
- /package/{templates → kit/templates}/rules/authoring.md +0 -0
- /package/{templates → kit/templates}/rules/code-retrieval.md +0 -0
- /package/{templates → kit/templates}/rules/communication-style.md +0 -0
- /package/{templates → kit/templates}/rules/delegation-brief.md +0 -0
- /package/{templates → kit/templates}/rules/design-routing.md +0 -0
- /package/{templates → kit/templates}/rules/effort-model.md +0 -0
- /package/{templates → kit/templates}/rules/gate-and-review.md +0 -0
- /package/{templates → kit/templates}/rules/issue-lifecycle.md +0 -0
- /package/{templates → kit/templates}/rules/knowledge-base.md +0 -0
- /package/{templates → kit/templates}/rules/naming-and-ids.md +0 -0
- /package/{templates → kit/templates}/rules/plain-language.md +0 -0
- /package/{templates → kit/templates}/rules/plan-next.md +0 -0
- /package/{templates → kit/templates}/rules/plan-output-format.md +0 -0
- /package/{templates → kit/templates}/rules/review-pages.md +0 -0
- /package/{templates → kit/templates}/rules/risk-tiered-review.md +0 -0
- /package/{templates → kit/templates}/rules/shared-checkout.md +0 -0
- /package/{templates → kit/templates}/rules/skill-gaps.md +0 -0
- /package/{templates → kit/templates}/rules/task-management.md +0 -0
- /package/{templates → kit/templates}/settings/settings.json.tmpl +0 -0
- /package/{templates → kit/templates}/settings/settings.local.json.tmpl +0 -0
- /package/{templates → kit/templates}/skills/NAMESPACED +0 -0
- /package/{templates → kit/templates}/skills/brand-voice/SKILL.md +0 -0
- /package/{templates → kit/templates}/skills/brand-voice/references/voice-template.md +0 -0
- /package/{templates → kit/templates}/skills/campaign/SKILL.md +0 -0
- /package/{templates → kit/templates}/skills/campaign/references/plan-template.md +0 -0
- /package/{templates → kit/templates}/skills/concrete/SKILL.md +0 -0
- /package/{templates → kit/templates}/skills/copywriting/SKILL.md +0 -0
- /package/{templates → kit/templates}/skills/copywriting/references/copy-frameworks.md +0 -0
- /package/{templates → kit/templates}/skills/copywriting/references/natural-transitions.md +0 -0
- /package/{templates → kit/templates}/skills/feature-build-refine/SKILL.md +0 -0
- /package/{templates → kit/templates}/skills/karpathy-guidelines/SKILL.md +0 -0
- /package/{templates → kit/templates}/skills/morning-briefing/SKILL.md +0 -0
- /package/{templates → kit/templates}/skills/page-design/SKILL.md +0 -0
- /package/{templates → kit/templates}/skills/page-design/add.json +0 -0
- /package/{templates → kit/templates}/skills/page-design/references/design-file-template.md +0 -0
- /package/{templates → kit/templates}/skills/page-design/references/generic-page-patterns.md +0 -0
- /package/{templates → kit/templates}/skills/page-design/references/minimum-rules.md +0 -0
- /package/{templates → kit/templates}/skills/speckit/SKILL.md +0 -0
- /package/{templates → kit/templates}/skills/supabase-patterns/SKILL.md +0 -0
- /package/{scripts/lib → lib/core}/adapter-select.sh +0 -0
- /package/{scripts/lib → lib/core}/agent-launch.sh +0 -0
- /package/{scripts/lib → lib/core}/agent-profile.sh +0 -0
- /package/{scripts/lib → lib/core}/cckit-output.sh +0 -0
- /package/{scripts/lib → lib/core}/codex-hooks.sh +0 -0
- /package/{scripts → lib/core}/force-push-fence.baseline +0 -0
- /package/{scripts → lib/core}/forge-fence.baseline +0 -0
- /package/{scripts/lib → lib/core}/git-remote.sh +0 -0
- /package/{scripts/lib → lib/core}/hook-refresh.sh +0 -0
- /package/{scripts → lib/core}/instruction-budget-lint-test.sh +0 -0
- /package/{scripts/lib → lib/core}/kit-state.sh +0 -0
- /package/{scripts/lib → lib/core}/orchestration-runtime.sh +0 -0
- /package/{scripts/lib → lib/core}/project-scan.sh +0 -0
- /package/{scripts/lib → lib/core}/render.sh +0 -0
- /package/{scripts → lib/core}/review-lint-test.sh +0 -0
- /package/{scripts/lib → lib/core}/review-stage.sh +0 -0
- /package/{scripts → lib/core}/skill-frontmatter-lint-test.sh +0 -0
- /package/{scripts/lib → lib/core}/task-source-file.sh +0 -0
- /package/{scripts/lib → lib/core}/task-source.sh +0 -0
- /package/{scripts/lib → lib/core}/toon.sh +0 -0
- /package/{scripts/lib → lib/core}/ui.sh +0 -0
- /package/{scripts/lib → lib/core}/worker-brief.sh +0 -0
- /package/{scripts/lib → lib/forge}/forge-github.sh +0 -0
- /package/{scripts/lib → lib/forge}/forge-none.sh +0 -0
- /package/{scripts/lib → lib/forge}/test-forge-shim.sh +0 -0
- /package/{scripts → lib/verbs}/debug.sh +0 -0
- /package/{scripts → lib/verbs}/night-run.test.mjs +0 -0
- /package/{scripts/lib → lib/verbs}/upgrade-report.sh +0 -0
package/bin/cckit
CHANGED
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
# Agent-agnostic: every verb runs from a shell; append --json for machine-readable output.
|
|
4
4
|
# Driven entirely from cckit.config.json — no org/repo is hardcoded. See AGENTS.md.
|
|
5
5
|
#
|
|
6
|
-
# Every verb, its question, a prompt to paste and its usage live in ONE table:
|
|
7
|
-
# (read through
|
|
8
|
-
# --json` prints it as data;
|
|
9
|
-
# reference page, skills/routing.yaml or
|
|
6
|
+
# Every verb, its question, a prompt to paste and its usage live in ONE table: lib/core/verbs.tsv
|
|
7
|
+
# (read through lib/core/verbs.sh). `cckit help` prints it grouped by question; `cckit commands
|
|
8
|
+
# --json` prints it as data; lib/core/verbs-test.sh fails when this dispatcher's case labels, the CLI
|
|
9
|
+
# reference page, kit/skills/routing.yaml or lib/core/forge-report.sh drift from it.
|
|
10
10
|
set -eu
|
|
11
11
|
|
|
12
|
-
# Resolve this script through symlinks — Homebrew and
|
|
12
|
+
# Resolve this script through symlinks — Homebrew and lib/verbs/install.sh link bin/cckit onto
|
|
13
13
|
# PATH, so $0 may be a symlink; follow it to find the real repo root (where scripts/lib lives).
|
|
14
14
|
SOURCE="${BASH_SOURCE[0]:-$0}"
|
|
15
15
|
while [ -h "$SOURCE" ]; do
|
|
@@ -19,7 +19,7 @@ while [ -h "$SOURCE" ]; do
|
|
|
19
19
|
done
|
|
20
20
|
BIN="$(cd -P "$(dirname "$SOURCE")" && pwd)"
|
|
21
21
|
ROOT="$(cd "$BIN/.." && pwd)"
|
|
22
|
-
LIB="$ROOT/
|
|
22
|
+
LIB="$ROOT/lib"
|
|
23
23
|
|
|
24
24
|
# Resolve the PROJECT config from the directory cckit was invoked in (walk upward for
|
|
25
25
|
# cckit.config.json, or .claude/kit.config.json), so board/lifecycle verbs act on the project you
|
|
@@ -28,7 +28,7 @@ LIB="$ROOT/scripts/lib"
|
|
|
28
28
|
# An explicit KIT_CONFIG in the environment always wins. The walk lives in the ONE shared resolver
|
|
29
29
|
# (config-path.sh, #69) that every kit entrypoint uses.
|
|
30
30
|
# shellcheck source=/dev/null
|
|
31
|
-
source "$LIB/config-path.sh"
|
|
31
|
+
source "$LIB/core/config-path.sh"
|
|
32
32
|
_KIT_CONFIG_GIVEN="${KIT_CONFIG:+1}" # 1 = the caller named a config; init keeps only that one (#487)
|
|
33
33
|
if [ -z "${KIT_CONFIG:-}" ]; then
|
|
34
34
|
KIT_CONFIG="$(kit_config_find "$PWD" || true)"
|
|
@@ -41,14 +41,14 @@ export KIT_CONFIG
|
|
|
41
41
|
|
|
42
42
|
# Structured-output helpers (cckit_is_json / cckit_json) — wired into every verb below.
|
|
43
43
|
# shellcheck source=/dev/null
|
|
44
|
-
source "$LIB/cckit-output.sh"
|
|
44
|
+
source "$LIB/core/cckit-output.sh"
|
|
45
45
|
# Terminal ergonomics (color/tty gating, optional glow/fzf) — detect-or-fallback, never required.
|
|
46
46
|
# shellcheck source=/dev/null
|
|
47
|
-
source "$LIB/ui.sh"
|
|
47
|
+
source "$LIB/core/ui.sh"
|
|
48
48
|
|
|
49
49
|
# The verb table (#555): help, the command catalog and completions read it.
|
|
50
50
|
# shellcheck source=/dev/null
|
|
51
|
-
source "$LIB/verbs.sh"
|
|
51
|
+
source "$LIB/core/verbs.sh"
|
|
52
52
|
usage() { verbs_help; }
|
|
53
53
|
|
|
54
54
|
# --json → structured output (parsed by agents). Strip it from positional args, export a flag.
|
|
@@ -67,12 +67,12 @@ set -- "${args[@]+"${args[@]}"}"
|
|
|
67
67
|
|
|
68
68
|
# Bare `cckit` (no verb) resumes the last session's handoff (locked behavior).
|
|
69
69
|
cmd="${1:-resume}"; shift || true
|
|
70
|
-
# The verb name, for a forge refusal that names it (
|
|
70
|
+
# The verb name, for a forge refusal that names it (lib/forge/forge.sh forge_need).
|
|
71
71
|
export CCKIT_VERB="$cmd"
|
|
72
72
|
# The first argument as typed, before an alias adds words in front of it: `cckit sync --help` is help.
|
|
73
73
|
_first_arg="${1:-}"
|
|
74
74
|
|
|
75
|
-
# An old verb name (a `kind=alias` row of
|
|
75
|
+
# An old verb name (a `kind=alias` row of lib/core/verbs.tsv) still works (#557): it prints a
|
|
76
76
|
# one-line notice on stderr and runs the verb it was renamed to. A target may carry words after the
|
|
77
77
|
# verb (`status --board`, `agent lib`, #588); they go in front of the typed arguments. CCKIT_VERB
|
|
78
78
|
# keeps the typed name, so a refusal names what the user ran. Aliases are never removed before 1.0.
|
|
@@ -120,13 +120,13 @@ case "$cmd" in
|
|
|
120
120
|
# KIT_PROJECTS_V2 drive repo resolution, the worktree base, and the board guard below —
|
|
121
121
|
# without this, effort start silently branches from origin/main on a non-main-based repo (#151).
|
|
122
122
|
# shellcheck source=/dev/null
|
|
123
|
-
source "$LIB/kit-config.sh" && load_kit_config
|
|
123
|
+
source "$LIB/core/kit-config.sh" && load_kit_config
|
|
124
124
|
# shellcheck source=/dev/null
|
|
125
|
-
source "$LIB/effort.sh"
|
|
125
|
+
source "$LIB/core/effort.sh"
|
|
126
126
|
# shellcheck source=/dev/null
|
|
127
|
-
source "$LIB/effort-ops.sh" # the new|start|pr|close lifecycle ops (compose effort.sh helpers)
|
|
127
|
+
source "$LIB/verbs/effort-ops.sh" # the new|start|pr|close lifecycle ops (compose effort.sh helpers)
|
|
128
128
|
# shellcheck source=/dev/null
|
|
129
|
-
source "$LIB/effort-metrics.sh" # effort_ctx_bucket — sizes the ctx:* label on `effort new`
|
|
129
|
+
source "$LIB/core/effort-metrics.sh" # effort_ctx_bucket — sizes the ctx:* label on `effort new`
|
|
130
130
|
sub="${1:-}"; shift || true
|
|
131
131
|
case "$sub" in
|
|
132
132
|
new)
|
|
@@ -135,15 +135,15 @@ case "$cmd" in
|
|
|
135
135
|
# effort_new, so this is a safe no-op when Projects v2 is off or the IDs aren't captured.
|
|
136
136
|
if [ "${KIT_PROJECTS_V2:-}" = "true" ]; then
|
|
137
137
|
# shellcheck source=/dev/null
|
|
138
|
-
source "$LIB/gh-project.sh"; load_project_ids >/dev/null 2>&1 || true
|
|
138
|
+
source "$LIB/forge/gh-project.sh"; load_project_ids >/dev/null 2>&1 || true
|
|
139
139
|
# shellcheck source=/dev/null
|
|
140
|
-
source "$LIB/role-identity.sh" 2>/dev/null || true
|
|
140
|
+
source "$LIB/core/role-identity.sh" 2>/dev/null || true
|
|
141
141
|
fi
|
|
142
142
|
effort_new "$@" ;;
|
|
143
143
|
sub)
|
|
144
144
|
if [ "${KIT_PROJECTS_V2:-}" = "true" ]; then
|
|
145
145
|
# shellcheck source=/dev/null
|
|
146
|
-
source "$LIB/gh-project.sh"; load_project_ids >/dev/null 2>&1 || true
|
|
146
|
+
source "$LIB/forge/gh-project.sh"; load_project_ids >/dev/null 2>&1 || true
|
|
147
147
|
fi
|
|
148
148
|
effort_sub "$@" ;;
|
|
149
149
|
retitle) effort_retitle "$@" ;;
|
|
@@ -153,7 +153,7 @@ case "$cmd" in
|
|
|
153
153
|
# role-identity gives the PR its role title, commit trailer and signature; the board
|
|
154
154
|
# helpers load lazily inside effort_pr (_eo_source_board).
|
|
155
155
|
# shellcheck source=/dev/null
|
|
156
|
-
source "$LIB/role-identity.sh" 2>/dev/null || true
|
|
156
|
+
source "$LIB/core/role-identity.sh" 2>/dev/null || true
|
|
157
157
|
effort_pr "$@" ;;
|
|
158
158
|
close) effort_close "$@" ;;
|
|
159
159
|
plan)
|
|
@@ -164,26 +164,26 @@ case "$cmd" in
|
|
|
164
164
|
case "${1:-}" in
|
|
165
165
|
--issues) shift
|
|
166
166
|
# shellcheck source=/dev/null
|
|
167
|
-
source "$LIB/plan-machine.sh"; plan_machine "$@" ;;
|
|
167
|
+
source "$LIB/verbs/plan-machine.sh"; plan_machine "$@" ;;
|
|
168
168
|
--wave) shift
|
|
169
169
|
# shellcheck source=/dev/null
|
|
170
|
-
source "$LIB/copilot.sh"; copilot_brief "$@" ;;
|
|
170
|
+
source "$LIB/verbs/copilot.sh"; copilot_brief "$@" ;;
|
|
171
171
|
--next) shift
|
|
172
172
|
# shellcheck source=/dev/null
|
|
173
|
-
source "$LIB/plan-next.sh"; plan_next "$@" ;;
|
|
173
|
+
source "$LIB/verbs/plan-next.sh"; plan_next "$@" ;;
|
|
174
174
|
*)
|
|
175
175
|
# shellcheck source=/dev/null
|
|
176
|
-
source "$LIB/effort-plan.sh"; effort_plan "$@" ;;
|
|
176
|
+
source "$LIB/verbs/effort-plan.sh"; effort_plan "$@" ;;
|
|
177
177
|
esac ;;
|
|
178
178
|
sprint)
|
|
179
179
|
# One week, Monday to Monday, as a forge milestone (#570). A sub-verb, so the top-level verb
|
|
180
180
|
# count does not grow; `name` and `bounds` run on git alone.
|
|
181
181
|
# shellcheck source=/dev/null
|
|
182
|
-
source "$LIB/sprint.sh"; sprint_cli "$@" ;;
|
|
182
|
+
source "$LIB/verbs/sprint.sh"; sprint_cli "$@" ;;
|
|
183
183
|
review)
|
|
184
184
|
# Each sub against its own `## Spec`, one verdict line per sub (#583). A read.
|
|
185
185
|
# shellcheck source=/dev/null
|
|
186
|
-
source "$LIB/effort-review.sh"; effort_review "$@" ;;
|
|
186
|
+
source "$LIB/verbs/effort-review.sh"; effort_review "$@" ;;
|
|
187
187
|
*) echo "cckit effort <new|sub|retitle|chain|start|pr|close|plan|sprint|review>" >&2; exit 2 ;;
|
|
188
188
|
esac
|
|
189
189
|
;;
|
|
@@ -191,9 +191,9 @@ case "$cmd" in
|
|
|
191
191
|
# Isolated worktree + branch for an issue (wt_start drives off cckit.config.json: repo + base
|
|
192
192
|
# branch). Config must be loaded so KIT_REPO / KIT_BASE_BRANCH are set before wt_start runs.
|
|
193
193
|
# shellcheck source=/dev/null
|
|
194
|
-
source "$LIB/kit-config.sh" && load_kit_config
|
|
194
|
+
source "$LIB/core/kit-config.sh" && load_kit_config
|
|
195
195
|
# shellcheck source=/dev/null
|
|
196
|
-
source "$LIB/role-identity.sh"; source "$LIB/worktree-start.sh"
|
|
196
|
+
source "$LIB/core/role-identity.sh"; source "$LIB/core/worktree-start.sh"
|
|
197
197
|
if cckit_is_json; then
|
|
198
198
|
# `&& … ||` keeps `set -e` from exiting on a refused start before the JSON result is printed.
|
|
199
199
|
out="$(wt_start "$@" 2>&1)" && rc=0 || rc=$?
|
|
@@ -209,9 +209,9 @@ case "$cmd" in
|
|
|
209
209
|
if [ "$cmd" = pr ]; then case "${1:-}" in -h|--help)
|
|
210
210
|
echo 'cckit pr <issue> "<summary>" ["<commit-msg>"] [--base <branch>]'; exit 0 ;; esac; fi
|
|
211
211
|
# shellcheck source=/dev/null
|
|
212
|
-
source "$LIB/kit-config.sh" && load_kit_config
|
|
212
|
+
source "$LIB/core/kit-config.sh" && load_kit_config
|
|
213
213
|
# shellcheck source=/dev/null
|
|
214
|
-
source "$LIB/role-identity.sh"; source "$LIB/gh-project.sh"; source "$LIB/kit-task-ops.sh"
|
|
214
|
+
source "$LIB/core/role-identity.sh"; source "$LIB/forge/gh-project.sh"; source "$LIB/verbs/kit-task-ops.sh"
|
|
215
215
|
if [ "$cmd" = close ]; then case "${1:-}" in -h|--help)
|
|
216
216
|
echo 'cckit close <issue> ["<summary>"] [--reason completed|not-planned|duplicate] [--duplicate-of N] [--superseded-by N]'; exit 0 ;; esac; fi
|
|
217
217
|
if cckit_is_json; then
|
|
@@ -239,9 +239,9 @@ case "$cmd" in
|
|
|
239
239
|
# Carry ONE merged change to the release branch (#360): its own PR path, because a cherry-pick
|
|
240
240
|
# has no issue for `cckit pr` to read or close.
|
|
241
241
|
# shellcheck source=/dev/null
|
|
242
|
-
source "$LIB/kit-config.sh" && load_kit_config
|
|
242
|
+
source "$LIB/core/kit-config.sh" && load_kit_config
|
|
243
243
|
# shellcheck source=/dev/null
|
|
244
|
-
source "$LIB/worktree-start.sh"; source "$LIB/kit-hotfix.sh"
|
|
244
|
+
source "$LIB/core/worktree-start.sh"; source "$LIB/verbs/kit-hotfix.sh"
|
|
245
245
|
if cckit_is_json; then
|
|
246
246
|
out="$(kto_hotfix "$@" 2>&1)" && rc=0 || rc=$?
|
|
247
247
|
url="$(printf '%s' "$out" | grep -oE 'https://[^ ]+/pull/[0-9]+' | tail -1)"
|
|
@@ -257,9 +257,9 @@ case "$cmd" in
|
|
|
257
257
|
# an agent never needs raw `gh issue create`, which skips the board (#361). Multi-part work is
|
|
258
258
|
# `cckit effort new`. Defaults: kind task, priority p2; role from --role or KIT_DEFAULT_ROLE.
|
|
259
259
|
# shellcheck source=/dev/null
|
|
260
|
-
source "$LIB/kit-config.sh" && load_kit_config
|
|
260
|
+
source "$LIB/core/kit-config.sh" && load_kit_config
|
|
261
261
|
# shellcheck source=/dev/null
|
|
262
|
-
source "$LIB/role-identity.sh"; source "$LIB/gh-project.sh"; source "$LIB/kit-task-ops.sh"
|
|
262
|
+
source "$LIB/core/role-identity.sh"; source "$LIB/forge/gh-project.sh"; source "$LIB/verbs/kit-task-ops.sh"
|
|
263
263
|
n_role="${KIT_DEFAULT_ROLE:-}"; n_kind="task"; n_prio="p2"; n_ms=""; n_plan=""; n_blocked=""; n_body=""; n_title=""
|
|
264
264
|
while [ $# -gt 0 ]; do
|
|
265
265
|
case "$1" in
|
|
@@ -294,13 +294,13 @@ case "$cmd" in
|
|
|
294
294
|
# kit-task-ops.sh is loaded for kto_pr_title only, so the PR title is built by the same code
|
|
295
295
|
# `cckit pr` uses.
|
|
296
296
|
# shellcheck source=/dev/null
|
|
297
|
-
source "$LIB/kit-config.sh" && load_kit_config
|
|
297
|
+
source "$LIB/core/kit-config.sh" && load_kit_config
|
|
298
298
|
# shellcheck source=/dev/null
|
|
299
|
-
source "$LIB/worktree-issue.sh"; source "$LIB/worktree-start.sh"
|
|
299
|
+
source "$LIB/core/worktree-issue.sh"; source "$LIB/core/worktree-start.sh"
|
|
300
300
|
# shellcheck source=/dev/null
|
|
301
|
-
source "$LIB/commitlint.sh"; source "$LIB/kit-task-ops.sh"
|
|
301
|
+
source "$LIB/core/commitlint.sh"; source "$LIB/verbs/kit-task-ops.sh"
|
|
302
302
|
# shellcheck source=/dev/null
|
|
303
|
-
source "$LIB/light-task.sh"
|
|
303
|
+
source "$LIB/verbs/light-task.sh"
|
|
304
304
|
lt_cli "$@"
|
|
305
305
|
;;
|
|
306
306
|
merge)
|
|
@@ -309,9 +309,9 @@ case "$cmd" in
|
|
|
309
309
|
# every raw `gh pr merge` (#361). An effort's PR merges with `cckit effort close <N>`: an
|
|
310
310
|
# effort/* head is refused here (#379; KIT_FORCE=1 overrides).
|
|
311
311
|
# shellcheck source=/dev/null
|
|
312
|
-
source "$LIB/kit-config.sh" && load_kit_config
|
|
312
|
+
source "$LIB/core/kit-config.sh" && load_kit_config
|
|
313
313
|
# shellcheck source=/dev/null
|
|
314
|
-
source "$LIB/role-identity.sh"; source "$LIB/gh-project.sh"; source "$LIB/kit-task-ops.sh"
|
|
314
|
+
source "$LIB/core/role-identity.sh"; source "$LIB/forge/gh-project.sh"; source "$LIB/verbs/kit-task-ops.sh"
|
|
315
315
|
case "${1:-}" in -h|--help) echo 'cckit merge [<pr>] [--squash|--merge|--rebase] merge (squash by default; rebases on conflict), close linked issues, GC branch + worktree, update the PR base'; exit 0 ;; esac
|
|
316
316
|
kto_task_pr_merge "$@"
|
|
317
317
|
;;
|
|
@@ -319,9 +319,9 @@ case "$cmd" in
|
|
|
319
319
|
# ONE guided destructive sweep over the gc analysis: plan first, delete only the SAFE rows, and
|
|
320
320
|
# only with --yes. Orphans, protected branches and stashes are surfaced and left alone.
|
|
321
321
|
# shellcheck source=/dev/null
|
|
322
|
-
source "$LIB/kit-config.sh" && load_kit_config
|
|
322
|
+
source "$LIB/core/kit-config.sh" && load_kit_config
|
|
323
323
|
# shellcheck source=/dev/null
|
|
324
|
-
source "$LIB/kit-gc.sh"
|
|
324
|
+
source "$LIB/verbs/kit-gc.sh"
|
|
325
325
|
if cckit_is_json; then
|
|
326
326
|
# Keep BOTH the exit status and the diagnostic. `|| true` + `2>/dev/null` would turn a refusal
|
|
327
327
|
# (protection helper missing, analysis failed) or a partial run (a remote delete that failed)
|
|
@@ -351,9 +351,9 @@ case "$cmd" in
|
|
|
351
351
|
;;
|
|
352
352
|
gc)
|
|
353
353
|
# shellcheck source=/dev/null
|
|
354
|
-
source "$LIB/kit-config.sh" && load_kit_config
|
|
354
|
+
source "$LIB/core/kit-config.sh" && load_kit_config
|
|
355
355
|
# shellcheck source=/dev/null
|
|
356
|
-
source "$LIB/kit-gc.sh"
|
|
356
|
+
source "$LIB/verbs/kit-gc.sh"
|
|
357
357
|
case " $* " in
|
|
358
358
|
*" --prune "*|*" prune "*)
|
|
359
359
|
# Remove worktrees + local branches whose PR merged (SAFE) or whose work is already on base
|
|
@@ -375,35 +375,35 @@ case "$cmd" in
|
|
|
375
375
|
;;
|
|
376
376
|
esac
|
|
377
377
|
;;
|
|
378
|
-
orchestrate) exec "$ROOT/
|
|
379
|
-
autopilot) exec "$ROOT/
|
|
378
|
+
orchestrate) exec "$ROOT/lib/verbs/orchestrate.sh" "$@" ;;
|
|
379
|
+
autopilot) exec "$ROOT/lib/verbs/autopilot.sh" "$@" ;;
|
|
380
380
|
next)
|
|
381
381
|
# Everyday-dev helper: surface the unblocked set + the one command to start the top issue.
|
|
382
382
|
# shellcheck source=/dev/null
|
|
383
|
-
source "$LIB/kit-config.sh" && load_kit_config
|
|
383
|
+
source "$LIB/core/kit-config.sh" && load_kit_config
|
|
384
384
|
# tasks.default = light (the marketing profile): a bare `cckit next` answers from the light
|
|
385
385
|
# task list — the same output as `cckit task next`. Any argument (`--effort <N>`, a filter)
|
|
386
386
|
# asks about issues and takes the issue path, as does every project whose default is issues.
|
|
387
387
|
if [ "$#" -eq 0 ]; then
|
|
388
388
|
# shellcheck source=/dev/null
|
|
389
|
-
source "$LIB/task-source.sh"
|
|
389
|
+
source "$LIB/core/task-source.sh"
|
|
390
390
|
if [ "$(task_default_name)" = "light" ]; then
|
|
391
391
|
# shellcheck source=/dev/null
|
|
392
|
-
source "$LIB/worktree-issue.sh"; source "$LIB/light-task.sh"
|
|
392
|
+
source "$LIB/core/worktree-issue.sh"; source "$LIB/verbs/light-task.sh"
|
|
393
393
|
lt_cli next
|
|
394
394
|
exit $?
|
|
395
395
|
fi
|
|
396
396
|
fi
|
|
397
397
|
# shellcheck source=/dev/null
|
|
398
|
-
source "$LIB/next.sh"; next_issue "$@"
|
|
398
|
+
source "$LIB/verbs/next.sh"; next_issue "$@"
|
|
399
399
|
;;
|
|
400
400
|
watch)
|
|
401
401
|
# Captain: gate open PRs, squash-merge the CLEAN ones, advance to the next wave. Runs in the
|
|
402
402
|
# invoking project; needs config so KIT_REPO is set before captain reads it.
|
|
403
403
|
# shellcheck source=/dev/null
|
|
404
|
-
source "$LIB/kit-config.sh" && load_kit_config
|
|
404
|
+
source "$LIB/core/kit-config.sh" && load_kit_config
|
|
405
405
|
# shellcheck source=/dev/null
|
|
406
|
-
source "$LIB/captain.sh"
|
|
406
|
+
source "$LIB/verbs/captain.sh"
|
|
407
407
|
watch_loop=0; watch_args=()
|
|
408
408
|
for a in "$@"; do case "$a" in --loop) watch_loop=1 ;; *) watch_args+=("$a") ;; esac; done
|
|
409
409
|
if [ "$watch_loop" = "1" ]; then
|
|
@@ -418,16 +418,16 @@ case "$cmd" in
|
|
|
418
418
|
cd "$ROOT"
|
|
419
419
|
# `--next` reports the version the conventional commits imply; otherwise cut a release.
|
|
420
420
|
case "${1:-}" in
|
|
421
|
-
--next) exec "$ROOT/
|
|
422
|
-
*) exec "$ROOT/
|
|
421
|
+
--next) exec "$ROOT/lib/core/version-bump.sh" --next ;;
|
|
422
|
+
*) exec "$ROOT/lib/verbs/publish.sh" "$@" ;;
|
|
423
423
|
esac
|
|
424
424
|
;;
|
|
425
|
-
update) exec "$ROOT/
|
|
426
|
-
migrate) exec "$ROOT/
|
|
427
|
-
adopt) exec "$ROOT/
|
|
428
|
-
doctor) exec "$ROOT/
|
|
429
|
-
add) exec "$ROOT/
|
|
430
|
-
digest) exec "$ROOT/
|
|
425
|
+
update) exec "$ROOT/lib/verbs/kit-version-check.sh" "$@" ;;
|
|
426
|
+
migrate) exec "$ROOT/lib/verbs/kit-migrate.sh" "$@" ;;
|
|
427
|
+
adopt) exec "$ROOT/lib/verbs/kit-adopt.sh" "$@" ;;
|
|
428
|
+
doctor) exec "$ROOT/lib/verbs/kit-doctor.sh" "$@" ;;
|
|
429
|
+
add) exec "$ROOT/lib/verbs/kit-add.sh" "$@" ;;
|
|
430
|
+
digest) exec "$ROOT/lib/verbs/kit-digest.sh" "$@" ;;
|
|
431
431
|
bench)
|
|
432
432
|
# Documentation benchmark (#200) — score how well this project finds + uses its OWN canonical
|
|
433
433
|
# docs. Runs the PROJECT's scaffolded harness if present, else cckit's own copy. BENCH_KIT_ROOT
|
|
@@ -462,13 +462,13 @@ cckit bench verbs [--runs N] [--checkout <dir>] [--verb "<verb>"] [--json] (at
|
|
|
462
462
|
*) echo "$BENCH_USAGE" >&2; exit 2 ;;
|
|
463
463
|
esac
|
|
464
464
|
;;
|
|
465
|
-
scan) source "$LIB/project-scan.sh"; project_scan "$@" ;;
|
|
466
|
-
debug) exec "$ROOT/
|
|
465
|
+
scan) source "$LIB/core/project-scan.sh"; project_scan "$@" ;;
|
|
466
|
+
debug) exec "$ROOT/lib/verbs/debug.sh" "$@" ;;
|
|
467
467
|
contribute)
|
|
468
468
|
# The cckit checkout containing cwd (a worktree, per the rules) wins over the installed one, so
|
|
469
469
|
# the gate runs on — and the PR opens from — the branch being worked on (#368).
|
|
470
470
|
# shellcheck source=/dev/null
|
|
471
|
-
source "$LIB/contribute-root.sh"
|
|
471
|
+
source "$LIB/verbs/contribute-root.sh"
|
|
472
472
|
croot="$(contribute_root "$PWD" "$ROOT")"
|
|
473
473
|
[ "$croot" = "$ROOT" ] || echo "contribute: using the checkout at $croot" >&2
|
|
474
474
|
cd "$croot"; exec "$croot/scripts/contribute.sh" "$@" ;;
|
|
@@ -478,14 +478,14 @@ cckit bench verbs [--runs N] [--checkout <dir>] [--verb "<verb>"] [--json] (at
|
|
|
478
478
|
case " $* " in
|
|
479
479
|
*" --board "*)
|
|
480
480
|
board_args=(); for a in "$@"; do [ "$a" = --board ] || board_args+=("$a"); done
|
|
481
|
-
exec "$ROOT/
|
|
481
|
+
exec "$ROOT/lib/verbs/task-sync.sh" "${board_args[@]+"${board_args[@]}"}" ;;
|
|
482
482
|
esac
|
|
483
|
-
exec "$ROOT/
|
|
483
|
+
exec "$ROOT/lib/verbs/status.sh" "$@" ;;
|
|
484
484
|
claims)
|
|
485
485
|
# Live session claims (#384) — which session is working which issue. Read-only: a dead claim is
|
|
486
486
|
# skipped here and reaped by the next `cckit start` on that issue, never by this verb.
|
|
487
487
|
# shellcheck source=/dev/null
|
|
488
|
-
source "$LIB/session-registry.sh"
|
|
488
|
+
source "$LIB/core/session-registry.sh"
|
|
489
489
|
if cckit_is_json; then sreg_list "$PWD" --json; exit 0; fi
|
|
490
490
|
rows="$(sreg_list "$PWD")"
|
|
491
491
|
if [ -z "$rows" ]; then echo "(no live claims)"; exit 0; fi
|
|
@@ -495,18 +495,18 @@ cckit bench verbs [--runs N] [--checkout <dir>] [--verb "<verb>"] [--json] (at
|
|
|
495
495
|
printf '%-7s %-8s %-17s %-42s %s\n' "#$c_issue" "$c_pid" "$c_since" "$c_branch" "$c_wt"
|
|
496
496
|
done
|
|
497
497
|
;;
|
|
498
|
-
resume) source "$LIB/handoff.sh"; handoff_read ;;
|
|
499
|
-
handoff) source "$LIB/handoff.sh"; handoff_write "$@" ;;
|
|
500
|
-
install) exec "$ROOT/
|
|
498
|
+
resume) source "$LIB/verbs/handoff.sh"; handoff_read ;;
|
|
499
|
+
handoff) source "$LIB/verbs/handoff.sh"; handoff_write "$@" ;;
|
|
500
|
+
install) exec "$ROOT/lib/verbs/install.sh" "$@" ;;
|
|
501
501
|
init)
|
|
502
502
|
# init resolves the config from the folder it sets up. The KIT_CONFIG this dispatcher worked out
|
|
503
503
|
# is the invoking directory's project or, outside any project, cckit's OWN config: read as the
|
|
504
504
|
# new project's, that one gave every fresh project cckit's base branch and label set (#487).
|
|
505
505
|
# A KIT_CONFIG the caller exported is kept.
|
|
506
506
|
[ -n "$_KIT_CONFIG_GIVEN" ] || unset KIT_CONFIG
|
|
507
|
-
exec "$ROOT/
|
|
507
|
+
exec "$ROOT/lib/verbs/init.sh" "$@" ;;
|
|
508
508
|
commands)
|
|
509
|
-
# The command catalog, read from
|
|
509
|
+
# The command catalog, read from lib/core/verbs.tsv. `--json`: every verb, default and alias
|
|
510
510
|
# as an object (name, kind, target, group, needs, skill, question, prompt, usage). `--llm` keeps
|
|
511
511
|
# its old shape, a JSON array of names. Human: the names, space-separated (completions read it).
|
|
512
512
|
case " $* " in *" --json "*) verbs_json; exit 0 ;; esac
|
|
@@ -519,19 +519,19 @@ cckit bench verbs [--runs N] [--checkout <dir>] [--verb "<verb>"] [--json] (at
|
|
|
519
519
|
# work happens, and whether the branch's seed is stale. Reads the issue via gh; every other
|
|
520
520
|
# section degrades to an explicit line rather than going quietly missing.
|
|
521
521
|
# shellcheck source=/dev/null
|
|
522
|
-
source "$LIB/kit-config.sh" && load_kit_config 2>/dev/null || true
|
|
522
|
+
source "$LIB/core/kit-config.sh" && load_kit_config 2>/dev/null || true
|
|
523
523
|
# shellcheck source=/dev/null
|
|
524
|
-
source "$LIB/worktree-issue.sh" 2>/dev/null || true
|
|
524
|
+
source "$LIB/core/worktree-issue.sh" 2>/dev/null || true
|
|
525
525
|
# shellcheck source=/dev/null
|
|
526
|
-
source "$LIB/kit-lib.sh"
|
|
526
|
+
source "$LIB/verbs/kit-lib.sh"
|
|
527
527
|
# shellcheck source=/dev/null
|
|
528
|
-
source "$LIB/kit-brief.sh"
|
|
528
|
+
source "$LIB/verbs/kit-brief.sh"
|
|
529
529
|
CCKIT_ROOT="$ROOT" kit_brief "$@"
|
|
530
530
|
;;
|
|
531
531
|
|
|
532
532
|
agent)
|
|
533
533
|
# The plumbing agents call and people rarely type (#588): each was a top-level verb and keeps
|
|
534
|
-
# its old name as an alias row of
|
|
534
|
+
# its old name as an alias row of lib/core/verbs.tsv.
|
|
535
535
|
sub="${1:-}"; shift || true
|
|
536
536
|
case "$sub" in
|
|
537
537
|
lib)
|
|
@@ -540,9 +540,9 @@ cckit bench verbs [--runs N] [--checkout <dir>] [--verb "<verb>"] [--json] (at
|
|
|
540
540
|
# without an `ls`. Filesystem-only; config is loaded purely for the project-root inference
|
|
541
541
|
# (KIT_CONFIG), then it catalogs that project's scripts/lib, else cckit's own.
|
|
542
542
|
# shellcheck source=/dev/null
|
|
543
|
-
source "$LIB/kit-config.sh" && load_kit_config 2>/dev/null || true
|
|
543
|
+
source "$LIB/core/kit-config.sh" && load_kit_config 2>/dev/null || true
|
|
544
544
|
# shellcheck source=/dev/null
|
|
545
|
-
source "$LIB/kit-lib.sh"; kit_lib "$@"
|
|
545
|
+
source "$LIB/verbs/kit-lib.sh"; kit_lib "$@"
|
|
546
546
|
;;
|
|
547
547
|
receipt)
|
|
548
548
|
# One durable record per stage attempt (#322). The WORKER calls this itself: cckit never
|
|
@@ -550,12 +550,12 @@ cckit bench verbs [--runs N] [--checkout <dir>] [--verb "<verb>"] [--json] (at
|
|
|
550
550
|
# hold secrets — is never a dependency. The report arrives on stdin in the shape `cckit
|
|
551
551
|
# brief`'s receipt contract asked for, so the prompt and this parser cannot drift apart.
|
|
552
552
|
# shellcheck source=/dev/null
|
|
553
|
-
source "$LIB/stage-receipt.sh"
|
|
553
|
+
source "$LIB/core/stage-receipt.sh"
|
|
554
554
|
sr_cli "$@"
|
|
555
555
|
;;
|
|
556
556
|
msg)
|
|
557
557
|
# Session mail (#175) — pure git-local state (.cckit/mail at the root worktree), no config.
|
|
558
|
-
source "$LIB/kit-msg.sh"
|
|
558
|
+
source "$LIB/verbs/kit-msg.sh"
|
|
559
559
|
msub="${1:-}"; shift || true
|
|
560
560
|
case "$msub" in
|
|
561
561
|
send) msg_send "$@" ;;
|
|
@@ -565,8 +565,8 @@ cckit bench verbs [--runs N] [--checkout <dir>] [--verb "<verb>"] [--json] (at
|
|
|
565
565
|
*) echo 'cckit agent msg <send|read|list|hook-check>' >&2; exit 2 ;;
|
|
566
566
|
esac
|
|
567
567
|
;;
|
|
568
|
-
encode-context) source "$LIB/toon.sh"; toon_encode ;;
|
|
569
|
-
render) source "$LIB/render.sh"; cckit_render ;;
|
|
568
|
+
encode-context) source "$LIB/core/toon.sh"; toon_encode ;;
|
|
569
|
+
render) source "$LIB/core/render.sh"; cckit_render ;;
|
|
570
570
|
*) echo 'cckit agent <lib|receipt|msg|encode-context|render>' >&2; exit 2 ;;
|
|
571
571
|
esac
|
|
572
572
|
;;
|
|
@@ -575,20 +575,20 @@ cckit bench verbs [--runs N] [--checkout <dir>] [--verb "<verb>"] [--json] (at
|
|
|
575
575
|
# port block, and report USABLE only when every readiness probe answers. One dispatcher in the
|
|
576
576
|
# lib, as `receipt` does with sr_cli, so later subcommands land there and not here.
|
|
577
577
|
# shellcheck source=/dev/null
|
|
578
|
-
source "$LIB/qa-lane.sh"
|
|
578
|
+
source "$LIB/core/qa-lane.sh"
|
|
579
579
|
qa_cli "$@"
|
|
580
580
|
;;
|
|
581
581
|
page)
|
|
582
582
|
# Review pages (#451): a plan, a decision or a grilling round opens as a page when this session
|
|
583
583
|
# has a browser, and prints to the terminal when it does not. One dispatcher in the lib.
|
|
584
584
|
# shellcheck source=/dev/null
|
|
585
|
-
source "$LIB/review-page.sh"
|
|
585
|
+
source "$LIB/verbs/review-page.sh"
|
|
586
586
|
rp_cli "$@"
|
|
587
587
|
;;
|
|
588
588
|
completions)
|
|
589
589
|
case "${1:-bash}" in
|
|
590
|
-
bash) cat "$ROOT/completions/cckit.bash" ;;
|
|
591
|
-
zsh) echo "autoload -Uz bashcompinit && bashcompinit"; cat "$ROOT/completions/cckit.bash" ;;
|
|
590
|
+
bash) cat "$ROOT/kit/completions/cckit.bash" ;;
|
|
591
|
+
zsh) echo "autoload -Uz bashcompinit && bashcompinit"; cat "$ROOT/kit/completions/cckit.bash" ;;
|
|
592
592
|
*) echo "cckit completions [bash|zsh]" >&2; exit 2 ;;
|
|
593
593
|
esac
|
|
594
594
|
;;
|
package/cckit.config.json
CHANGED
package/kit/PROMPTS.md
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# kit/ — what `cckit init` installs
|
|
2
|
+
|
|
3
|
+
Templates, skills, profiles, integrations, commands, modules, recipes, routines, interview
|
|
4
|
+
questions, database descriptors, the status line, completions and git hooks. A file here is
|
|
5
|
+
copied into, or read on behalf of, someone else's project.
|
|
6
|
+
|
|
7
|
+
| Rule | Check |
|
|
8
|
+
| --- | --- |
|
|
9
|
+
| The plugin manifest names `./kit/skills/` and `./kit/commands/` and both resolve | `lib/core/self-install-test.sh`; the plugin fence in the PR |
|
|
10
|
+
| Skill frontmatter stays inside the listing budget | `lib/core/skill-frontmatter-lint.sh` |
|
|
11
|
+
| Agent templates carry `name` and `description`, and their skills resolve | `lib/core/agent-template-lint.sh`, `lib/core/agent-skills-lint.sh` |
|
|
12
|
+
| Nothing private ships | the leak fence and the secret guard in `lib/core/check.sh` |
|
|
13
|
+
| The npm tarball ships `kit/` | `lib/core/integrations-test.sh`, `lib/core/adapter-select-test.sh` |
|
|
14
|
+
| No new payload root at the top level | `lib/core/layout-fence.sh` (retired roots must stay empty) |
|
|
@@ -16,9 +16,8 @@ Run the kit-doctor script to check all dependencies and authentication required
|
|
|
16
16
|
| Tier 1 | `git`, `gh` (≥2.29 for Projects v2), `jq`, `perl` — auto-installs via brew |
|
|
17
17
|
| Tier 2 | `node`, `pnpm`, `vercel` (if .vercel/ exists), `turbo`/`playwright` (dev deps only) |
|
|
18
18
|
| Agents | The CLI of each adapter the project selected (`adapters` in the config; absent means `claude`): `claude` and/or `codex`, present with its version or absent. Absent is a warning and a manual action — the doctor never installs an agent CLI |
|
|
19
|
-
| Integrations | One row per descriptor in `integrations/` whose config key is on: `
|
|
19
|
+
| Integrations | One row per descriptor in `kit/integrations/` whose config key is on: `mlx-lm` (`.local.enabled`, Apple silicon only). `Lavish` (review pages) is on by default: with `.reviewPages.enabled` unset and neither `lavish-axi` nor `npx` on PATH its row is a skip — not installed, not a failure; with the key set to `true` it is a row like the others. A missing tool is installed by the shared runner (`scripts/lib/integration-install.sh`) from the descriptor's ordered candidates — never plain `pip`. Installs need consent recorded in `.cckit/consent`: `--fix` or a yes at the prompt records it; a run with neither (no terminal, no `--fix`) reports the tool missing and installs nothing; `--dry-run`/`--no-install` only report |
|
|
20
20
|
| Local | Only when `.local.enabled` — starts `mlx_lm.server` in background with a port health check (first run downloads ~4.5 GB) |
|
|
21
|
-
| Memory | Only when `.memory.enabled` — seeds the per-wing wake-up header (`.claude/mempal-identity.<wing>.txt`) and refreshes a stale session-start hook. Seed + refresh obey the consent guard: `--fix` applies them, `--dry-run`/`--no-install` only report |
|
|
22
21
|
| Auth | `gh auth status`, scope `project`, `git config user.name/email` |
|
|
23
22
|
| Repo | `github.baseBranch` vs the repo's GitHub default branch — a mismatch means `Closes #N` won't auto-close issues on GitHub-UI merges (report-only; `cckit merge` already closes them explicitly) |
|
|
24
23
|
| Instruction files | The bytes `CLAUDE.md` + every `.claude/rules/*.md` without a `paths:` frontmatter load into every session, against Claude Code's 150k limit, and the three largest files. Warns over the limit (report-only; `scripts/instruction-budget-lint.sh --report` lists every file) |
|
|
@@ -37,12 +36,12 @@ Run the kit-doctor script to check all dependencies and authentication required
|
|
|
37
36
|
|
|
38
37
|
## Steps
|
|
39
38
|
|
|
40
|
-
1. Resolve the doctor script path: `${CLAUDE_PLUGIN_ROOT}/
|
|
39
|
+
1. Resolve the doctor script path: `${CLAUDE_PLUGIN_ROOT}/lib/verbs/kit-doctor.sh`
|
|
41
40
|
|
|
42
41
|
2. Pass through any `$ARGUMENTS` (e.g. `--dry-run` or `--no-install`):
|
|
43
42
|
|
|
44
43
|
```bash
|
|
45
|
-
bash "${CLAUDE_PLUGIN_ROOT}/
|
|
44
|
+
bash "${CLAUDE_PLUGIN_ROOT}/lib/verbs/kit-doctor.sh" $ARGUMENTS
|
|
46
45
|
```
|
|
47
46
|
|
|
48
47
|
3. If the script exits non-zero (Tier 1 failures remain):
|
|
@@ -38,7 +38,7 @@ two artifacts, and checks the project is portable.
|
|
|
38
38
|
1. Run the export (pass through `$ARGUMENTS`):
|
|
39
39
|
|
|
40
40
|
```bash
|
|
41
|
-
bash "${CLAUDE_PLUGIN_ROOT}/
|
|
41
|
+
bash "${CLAUDE_PLUGIN_ROOT}/lib/verbs/kit-export-project.sh" $ARGUMENTS
|
|
42
42
|
```
|
|
43
43
|
|
|
44
44
|
2. For a full export, tell the user the two manual steps claude.ai needs:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: Scaffold a tailored .claude/ (agents + skills + rules + workflow) into the current project from a claude-kit role profile.
|
|
3
|
-
argument-hint: "[profile] [--name ...] [--repo owner/repo] [--project-number N]
|
|
3
|
+
argument-hint: "[profile] [--name ...] [--repo owner/repo] [--project-number N]"
|
|
4
4
|
allowed-tools: Bash, Read, AskUserQuestion, Edit
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -8,7 +8,7 @@ allowed-tools: Bash, Read, AskUserQuestion, Edit
|
|
|
8
8
|
|
|
9
9
|
You are initializing the current project with the **claude-kit** setup. The kit lives at
|
|
10
10
|
`${CLAUDE_PLUGIN_ROOT}` (the installed plugin root). The engine is
|
|
11
|
-
`${CLAUDE_PLUGIN_ROOT}/
|
|
11
|
+
`${CLAUDE_PLUGIN_ROOT}/lib/verbs/init.sh`.
|
|
12
12
|
|
|
13
13
|
## Steps
|
|
14
14
|
|
|
@@ -18,9 +18,9 @@ You are initializing the current project with the **claude-kit** setup. The kit
|
|
|
18
18
|
- Inspect the target. If it looks like a **parent/workspace** holding several projects (multiple
|
|
19
19
|
subdirectories with their own `.git` / `package.json` / `pyproject.toml` / `Cargo.toml` / `go.mod`),
|
|
20
20
|
**recommend running `/kit-init` inside each project separately** — one `.claude/` per project —
|
|
21
|
-
instead of once at the workspace root. Explain the payoff:
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
instead of once at the workspace root. Explain the payoff: the kit keeps **traceability and
|
|
22
|
+
history per project** (decisions, plans and config never bleed across projects). List the
|
|
23
|
+
projects you detected and let the user pick.
|
|
24
24
|
- If it's a single project (a `.git` here, or one app), continue here.
|
|
25
25
|
- Suggest a layout that favors the kit — `CLAUDE.md` + `.claude/` at the project root, plans under
|
|
26
26
|
`docs/plans/`, the kit's `scripts/` alongside; **one repo = one kit setup**. See
|
|
@@ -32,7 +32,6 @@ You are initializing the current project with the **claude-kit** setup. The kit
|
|
|
32
32
|
(read `${CLAUDE_PLUGIN_ROOT}/profiles/*.json` to describe each)
|
|
33
33
|
- **GitHub repo** — `owner/repo` (offer `gh api user --jq .login` as the default owner)
|
|
34
34
|
- **Projects v2 board** — board number if they use one, else "off"
|
|
35
|
-
- **MemPalace memory** — on/off (off unless they actively use MemPalace)
|
|
36
35
|
- **Spec Kit (SDD)** — on/off; pass `--speckit on` to enable the spec-driven workflow section
|
|
37
36
|
- **Pre-push gate** — optional. If they want a check to run before every `git push` (e.g.
|
|
38
37
|
`pnpm build`, `pnpm typecheck`, `pnpm -w lint`), pass `--prepush "<command>"`. Omit for none —
|
|
@@ -49,13 +48,12 @@ You are initializing the current project with the **claude-kit** setup. The kit
|
|
|
49
48
|
2. **Run the engine** from the project root:
|
|
50
49
|
|
|
51
50
|
```bash
|
|
52
|
-
"${CLAUDE_PLUGIN_ROOT}/
|
|
51
|
+
"${CLAUDE_PLUGIN_ROOT}/lib/verbs/init.sh" \
|
|
53
52
|
--profile <profile> \
|
|
54
53
|
--target "$PWD" \
|
|
55
54
|
--name "<Project Name>" \
|
|
56
55
|
--repo "<owner/repo>" \
|
|
57
56
|
[--project-number <N>] \
|
|
58
|
-
[--memory on] \
|
|
59
57
|
[--lang "<language>"] \
|
|
60
58
|
[--adapter <claude|codex|both>]
|
|
61
59
|
```
|
|
@@ -80,16 +78,6 @@ You are initializing the current project with the **claude-kit** setup. The kit
|
|
|
80
78
|
- Detect: `gh auth status`. If not authenticated, explain every `task-*` skill needs it and,
|
|
81
79
|
with consent, run `gh auth login`. Re-check with `gh auth status`.
|
|
82
80
|
|
|
83
|
-
**MemPalace** (only when memory was enabled) — the persistent-memory backend: an MCP server
|
|
84
|
-
exposing the `mempalace_*` tools plus the `mempalace-mcp` binary, which the `Stop`/`PreCompact`
|
|
85
|
-
hooks and every agent's diary protocol depend on. Absent = dormant, never errors.
|
|
86
|
-
- Detect: `command -v mempalace-mcp` and `claude mcp list | grep -i mempalace`.
|
|
87
|
-
- Binary present but unregistered → with consent run `claude mcp add mempalace mempalace-mcp`;
|
|
88
|
-
verify with `claude mcp list`. Then confirm with a `mempalace_status` call.
|
|
89
|
-
- Binary missing → explain it and ask the user for their install method; `mempalace-mcp` is a
|
|
90
|
-
user-provided tool, so **do not guess a package name or fabricate an installer**. Re-check
|
|
91
|
-
`command -v mempalace-mcp`.
|
|
92
|
-
|
|
93
81
|
**Google Workspace CLI (`gws`)** — opt-in; offer only if the user works with Google Docs / Sheets /
|
|
94
82
|
Slides / Drive / Gmail / Calendar (e.g. the `gws-slides` skill drives it).
|
|
95
83
|
- Detect: `command -v gws`, then `gws auth status`.
|
|
@@ -112,8 +100,8 @@ You are initializing the current project with the **claude-kit** setup. The kit
|
|
|
112
100
|
the user the plan first, then run it on their go-ahead:
|
|
113
101
|
|
|
114
102
|
```bash
|
|
115
|
-
"${CLAUDE_PLUGIN_ROOT}/
|
|
116
|
-
"${CLAUDE_PLUGIN_ROOT}/
|
|
103
|
+
"${CLAUDE_PLUGIN_ROOT}/lib/verbs/init.sh" --target "$PWD" --dry-run # the steps, nothing written
|
|
104
|
+
"${CLAUDE_PLUGIN_ROOT}/lib/verbs/init.sh" --target "$PWD" --yes # run them; finished steps are skipped
|
|
117
105
|
```
|
|
118
106
|
|
|
119
107
|
Each step prints `done`, `skipped` or `failed`; relay the failed ones with their reason. Pass
|
|
@@ -6,7 +6,7 @@ allowed-tools: Bash, Read, AskUserQuestion
|
|
|
6
6
|
|
|
7
7
|
# /kit-routines — suggested routine catalogue
|
|
8
8
|
|
|
9
|
-
Plugin-direct command. Engine at `${CLAUDE_PLUGIN_ROOT}/
|
|
9
|
+
Plugin-direct command. Engine at `${CLAUDE_PLUGIN_ROOT}/lib/verbs/kit-routines.sh`.
|
|
10
10
|
|
|
11
11
|
The kit ships a set of **suggested routines** (briefing, board sweep, GC, knowledge-lint,
|
|
12
12
|
kit-wire-check, security-sweep). Each is an OS cron job scoped to this project. Nothing is
|