codebyplan 1.13.45 → 1.13.48

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (125) hide show
  1. package/dist/cli.js +33 -13
  2. package/package.json +1 -1
  3. package/templates/agents/cbp-cc-executor.md +0 -1
  4. package/templates/agents/cbp-database-agent.md +0 -1
  5. package/templates/agents/cbp-e2e-maestro.md +0 -1
  6. package/templates/agents/cbp-e2e-playwright.md +0 -1
  7. package/templates/agents/cbp-e2e-tauri.md +0 -1
  8. package/templates/agents/cbp-e2e-vscode.md +0 -1
  9. package/templates/agents/cbp-e2e-xcuitest.md +0 -1
  10. package/templates/agents/cbp-improve-claude.md +0 -1
  11. package/templates/agents/cbp-improve-round.md +0 -1
  12. package/templates/agents/cbp-map-architecture.md +0 -1
  13. package/templates/agents/cbp-mechanical-edits.md +0 -1
  14. package/templates/agents/cbp-research.md +0 -1
  15. package/templates/agents/cbp-round-executor.md +0 -1
  16. package/templates/agents/cbp-security-agent.md +0 -1
  17. package/templates/agents/cbp-task-check.md +0 -1
  18. package/templates/agents/cbp-task-planner.md +0 -1
  19. package/templates/agents/cbp-testing-qa-agent.md +0 -1
  20. package/templates/github-workflows/publish.yml +3 -5
  21. package/templates/hooks/cbp-auto-test-hooks.sh +0 -1
  22. package/templates/hooks/cbp-canonical-templates-nudge.sh +0 -1
  23. package/templates/hooks/cbp-context-window-notify.sh +0 -1
  24. package/templates/hooks/cbp-e2e-spec-patterns.sh +0 -1
  25. package/templates/hooks/cbp-lint-format-on-edit.sh +0 -1
  26. package/templates/hooks/cbp-maestro-yaml-validate.sh +0 -1
  27. package/templates/hooks/cbp-mcp-caller-worktree-inject.sh +0 -1
  28. package/templates/hooks/cbp-mcp-migration-guard.sh +0 -1
  29. package/templates/hooks/cbp-mcp-round-sync.sh +0 -1
  30. package/templates/hooks/cbp-plugin-dispatch.sh +0 -1
  31. package/templates/hooks/cbp-pre-commit-quality-gate.sh +0 -1
  32. package/templates/hooks/cbp-session-start-hook.sh +0 -1
  33. package/templates/hooks/cbp-statusline.mjs +0 -1
  34. package/templates/hooks/cbp-statusline.py +0 -1
  35. package/templates/hooks/cbp-statusline.sh +0 -1
  36. package/templates/hooks/cbp-subagent-statusline.mjs +0 -1
  37. package/templates/hooks/cbp-subagent-statusline.py +0 -1
  38. package/templates/hooks/cbp-subagent-statusline.sh +0 -1
  39. package/templates/hooks/cbp-test-coverage-gate.sh +0 -1
  40. package/templates/hooks/cbp-test-hooks.sh +0 -1
  41. package/templates/hooks/validate-context-usage.sh +0 -1
  42. package/templates/hooks/validate-git-commit.sh +57 -9
  43. package/templates/hooks/validate-git-stash-deny.sh +0 -1
  44. package/templates/hooks/validate-structure-lengths.sh +0 -1
  45. package/templates/hooks/validate-structure-lib.sh +17 -1
  46. package/templates/hooks/validate-structure-patterns.sh +0 -1
  47. package/templates/hooks/validate-structure-scope.sh +43 -11
  48. package/templates/hooks/validate-structure-smoke.sh +0 -1
  49. package/templates/hooks/validate-structure-templates.sh +0 -1
  50. package/templates/hooks/validate-structure.sh +0 -1
  51. package/templates/hooks/verify-parity.sh +0 -1
  52. package/templates/rules/agent-claim-verification.md +0 -1
  53. package/templates/rules/architecture-map.md +0 -4
  54. package/templates/rules/cbp-operating-gotchas.md +0 -4
  55. package/templates/rules/context-file-loading.md +0 -1
  56. package/templates/rules/e2e-mandatory.md +0 -4
  57. package/templates/rules/parallel-waves.md +0 -1
  58. package/templates/rules/scope-vocabulary.md +14 -10
  59. package/templates/rules/supabase-branch-lifecycle.md +0 -1
  60. package/templates/rules/todo-backend.md +0 -1
  61. package/templates/skills/cbp-build-cc-agent/SKILL.md +2 -3
  62. package/templates/skills/cbp-build-cc-agent/reference/cbp-quality.md +6 -8
  63. package/templates/skills/cbp-build-cc-agent/scripts/validate-agent.sh +10 -1
  64. package/templates/skills/cbp-build-cc-claude-file/SKILL.md +0 -1
  65. package/templates/skills/cbp-build-cc-claude-file/scripts/validate-claude-file.sh +0 -1
  66. package/templates/skills/cbp-build-cc-mode/SKILL.md +0 -1
  67. package/templates/skills/cbp-build-cc-rule/SKILL.md +18 -8
  68. package/templates/skills/cbp-build-cc-rule/scripts/validate-rule.sh +4 -5
  69. package/templates/skills/cbp-build-cc-settings/SKILL.md +0 -1
  70. package/templates/skills/cbp-build-cc-settings/reference/cbp-conventions.md +0 -4
  71. package/templates/skills/cbp-build-cc-settings/scripts/validate-settings.sh +0 -1
  72. package/templates/skills/cbp-build-cc-skill/SKILL.md +0 -1
  73. package/templates/skills/cbp-build-cc-skill/reference/cbp-quality.md +6 -8
  74. package/templates/skills/cbp-build-cc-skill/scripts/validate-skill.sh +10 -2
  75. package/templates/skills/cbp-checkpoint-check/SKILL.md +0 -1
  76. package/templates/skills/cbp-checkpoint-complete/SKILL.md +0 -1
  77. package/templates/skills/cbp-checkpoint-create/SKILL.md +10 -11
  78. package/templates/skills/cbp-checkpoint-end/SKILL.md +0 -1
  79. package/templates/skills/cbp-checkpoint-plan/SKILL.md +0 -1
  80. package/templates/skills/cbp-checkpoint-plan/reference/alternative-comparison-template.md +0 -4
  81. package/templates/skills/cbp-checkpoint-plan/reference/dep-decision-rubric.md +0 -4
  82. package/templates/skills/cbp-checkpoint-plan/reference/e2e-discovery-probe.md +0 -4
  83. package/templates/skills/cbp-checkpoint-plan/reference/gap-analysis-playbook.md +0 -4
  84. package/templates/skills/cbp-checkpoint-start/SKILL.md +0 -1
  85. package/templates/skills/cbp-checkpoint-update/SKILL.md +0 -1
  86. package/templates/skills/cbp-frontend-a11y/SKILL.md +0 -1
  87. package/templates/skills/cbp-frontend-design/SKILL.md +0 -1
  88. package/templates/skills/cbp-frontend-ui/SKILL.md +0 -1
  89. package/templates/skills/cbp-frontend-ux/SKILL.md +0 -1
  90. package/templates/skills/cbp-git-branch-feat-create/SKILL.md +0 -1
  91. package/templates/skills/cbp-git-commit/SKILL.md +0 -1
  92. package/templates/skills/cbp-git-worktree-create/SKILL.md +0 -1
  93. package/templates/skills/cbp-git-worktree-remove/SKILL.md +0 -1
  94. package/templates/skills/cbp-map-architecture/SKILL.md +0 -1
  95. package/templates/skills/cbp-merge-main/SKILL.md +0 -1
  96. package/templates/skills/cbp-refresh-arch-map/SKILL.md +0 -1
  97. package/templates/skills/cbp-round-check/SKILL.md +0 -1
  98. package/templates/skills/cbp-round-complete/SKILL.md +0 -1
  99. package/templates/skills/cbp-round-end/SKILL.md +0 -1
  100. package/templates/skills/cbp-round-execute/SKILL.md +0 -1
  101. package/templates/skills/cbp-round-execute/reference/inline-fallback.md +0 -4
  102. package/templates/skills/cbp-round-input/SKILL.md +0 -1
  103. package/templates/skills/cbp-round-start/SKILL.md +0 -1
  104. package/templates/skills/cbp-round-update/SKILL.md +0 -1
  105. package/templates/skills/cbp-session-end/SKILL.md +0 -1
  106. package/templates/skills/cbp-session-start/SKILL.md +0 -1
  107. package/templates/skills/cbp-session-start/qa-regression.md +0 -1
  108. package/templates/skills/cbp-setup-e2e/SKILL.md +0 -1
  109. package/templates/skills/cbp-setup-eslint/SKILL.md +0 -1
  110. package/templates/skills/cbp-ship/SKILL.md +0 -1
  111. package/templates/skills/cbp-ship-configure/SKILL.md +0 -1
  112. package/templates/skills/cbp-ship-main/SKILL.md +0 -1
  113. package/templates/skills/cbp-supabase-branch-check/SKILL.md +0 -1
  114. package/templates/skills/cbp-supabase-branch-check/reference/dag-steps.md +0 -4
  115. package/templates/skills/cbp-supabase-migrate/SKILL.md +0 -1
  116. package/templates/skills/cbp-supabase-setup/SKILL.md +0 -1
  117. package/templates/skills/cbp-task-check/SKILL.md +0 -1
  118. package/templates/skills/cbp-task-complete/SKILL.md +0 -1
  119. package/templates/skills/cbp-task-create/SKILL.md +0 -1
  120. package/templates/skills/cbp-task-start/SKILL.md +0 -1
  121. package/templates/skills/cbp-task-testing/SKILL.md +0 -1
  122. package/templates/skills/cbp-todo/SKILL.md +0 -1
  123. package/templates/skills/cbp-todo/qa-regression.md +0 -1
  124. package/templates/skills/supabase/SKILL.md +0 -1
  125. package/templates/skills/supabase-postgres-best-practices/SKILL.md +0 -1
@@ -1,5 +1,4 @@
1
1
  ---
2
- scope: org-shared
3
2
  name: cbp-frontend-a11y
4
3
  description: Pre-implementation accessibility playbook loaded BEFORE writing UI / styling code. Produces a per-component checklist of WCAG 2.1 AA obligations from semantic HTML, ARIA roles/states, keyboard patterns, and contrast requirements.
5
4
  effort: xhigh
@@ -1,5 +1,4 @@
1
1
  ---
2
- scope: org-shared
3
2
  name: cbp-frontend-design
4
3
  description: Up-front design playbook loaded BEFORE writing UI / styling code. Detects the stack, loads the matching reference file, commits to an aesthetic direction, and prevents generic AI-slop output. Modelled on Anthropic's frontend-design skill, adapted for CBP repos with existing design systems.
5
4
  effort: xhigh
@@ -1,5 +1,4 @@
1
1
  ---
2
- scope: org-shared
3
2
  name: cbp-frontend-ui
4
3
  description: Visual quality self-review pass invoked twice per round — once by round-executor Step 3.8 (phase 'style_only', no screenshots) for token/spacing/typography/color/cohesion, once by /cbp-round-execute Step 5b (phase 'screenshot_review', with e2e screenshots) for rendered-output review and baseline regressions. Default phase 'full' runs everything for back-compat.
5
4
  effort: xhigh
@@ -1,5 +1,4 @@
1
1
  ---
2
- scope: org-shared
3
2
  name: cbp-frontend-ux
4
3
  description: Interaction-quality self-review pass loaded by round-executor AFTER UI code is written. Catches navigation flow issues, missing feedback states, cognitive-load problems, form usability gaps, and accessibility violations. Auto-applies in-scope mechanical UX fixes within the round's files_changed. Replaces the post-implementation ux-agent spawn with an inline skill invocation.
5
4
  effort: xhigh
@@ -1,5 +1,4 @@
1
1
  ---
2
- scope: org-shared
3
2
  name: cbp-git-branch-feat-create
4
3
  description: Create feature branch from the production branch (main, config-driven)
5
4
  argument-hint: "[name] e.g. add-user-auth"
@@ -1,5 +1,4 @@
1
1
  ---
2
- scope: org-shared
3
2
  name: cbp-git-commit
4
3
  description: Create scoped commit with conventional format
5
4
  argument-hint: "[--task|--all] [type]: [description]"
@@ -1,5 +1,4 @@
1
1
  ---
2
- scope: org-shared
3
2
  name: cbp-git-worktree-create
4
3
  description: Create git worktree with clean command setup and register in CodeByPlan
5
4
  argument-hint: <branch-name> e.g. codebyplan-app
@@ -1,5 +1,4 @@
1
1
  ---
2
- scope: org-shared
3
2
  name: cbp-git-worktree-remove
4
3
  description: Remove git worktree and deregister from CodeByPlan
5
4
  argument-hint: <name> e.g. codebyplan-app
@@ -1,5 +1,4 @@
1
1
  ---
2
- scope: org-shared
3
2
  name: cbp-map-architecture
4
3
  effort: xhigh
5
4
  description: Orchestrate architecture map generation for one or all modules. Spawns the cbp-map-architecture agent per module, writes per-module .md files to .claude/architecture/, regenerates INDEX.md and graph.md, and stamps each module via the CLI. Idempotent — safe to re-run.
@@ -1,5 +1,4 @@
1
1
  ---
2
- scope: org-shared
3
2
  name: cbp-merge-main
4
3
  description: Merge main into the current feat branch with interactive per-conflict resolution and inline QA re-run
5
4
  effort: high
@@ -1,5 +1,4 @@
1
1
  ---
2
- scope: org-shared
3
2
  name: cbp-refresh-arch-map
4
3
  effort: high
5
4
  description: Drift-scoped refresh of the .claude/architecture/ map — re-runs the cbp-map-architecture agent for ONLY the modules whose stamped git SHA has changed, regenerates INDEX.md + graph.md, and re-stamps. Idempotent; no-op when no module has drifted.
@@ -1,5 +1,4 @@
1
1
  ---
2
- scope: org-shared
3
2
  name: cbp-round-check
4
3
  description: Run automated checks standalone for the current round
5
4
  effort: low
@@ -1,5 +1,4 @@
1
1
  ---
2
- scope: org-shared
3
2
  name: cbp-round-complete
4
3
  description: Reconcile user git-add approvals, complete the round, and route to the next step
5
4
  argument-hint: [chk-task-round | task-round]
@@ -1,5 +1,4 @@
1
1
  ---
2
- scope: org-shared
3
2
  name: cbp-round-end
4
3
  description: Summary wrap-up after testing phase completes
5
4
  effort: high
@@ -1,5 +1,4 @@
1
1
  ---
2
- scope: org-shared
3
2
  name: cbp-round-execute
4
3
  description: Execute the approved plan from /cbp-round-start — runs per-wave executors, inline testing-qa per wave, and routes to /cbp-round-end
5
4
  effort: xhigh
@@ -1,7 +1,3 @@
1
- ---
2
- scope: org-shared
3
- ---
4
-
5
1
  # Inline-fallback procedures
6
2
 
7
3
  When `round-executor` or `testing-qa-agent` cannot be spawned (env limits, monthly cap, 5xx, rate limit, context overflow), the orchestrator falls through to an inline procedure that walks the agent's Phase checklist using its own tools.
@@ -1,5 +1,4 @@
1
1
  ---
2
- scope: org-shared
3
2
  name: cbp-round-input
4
3
  description: Gather input for a new round with deep analysis of unapproved work
5
4
  argument-hint: [chk-task-round | task-round | requirements-text]
@@ -1,5 +1,4 @@
1
1
  ---
2
- scope: org-shared
3
2
  name: cbp-round-start
4
3
  description: Start a round — planning phase only
5
4
  triggers: [cbp-round-execute]
@@ -1,5 +1,4 @@
1
1
  ---
2
- scope: org-shared
3
2
  name: cbp-round-update
4
3
  description: Triage a finished round (Claude-only); direct user to run round-complete on a clean round, or trigger round-input when more work is needed
5
4
  argument-hint: [chk-task-round | task-round]
@@ -1,5 +1,4 @@
1
1
  ---
2
- scope: org-shared
3
2
  name: cbp-session-end
4
3
  description: End a development session
5
4
  effort: xhigh
@@ -1,5 +1,4 @@
1
1
  ---
2
- scope: org-shared
3
2
  name: cbp-session-start
4
3
  description: Start a development session
5
4
  triggers: [cbp-todo]
@@ -1,5 +1,4 @@
1
1
  ---
2
- scope: org-shared
3
2
  name: cbp-session-start-qa-regression
4
3
  description: Manual regression procedure for the cbp-session-start worktree-ownership awareness + resolve-worktree distress channel (CHK-137 TASK-3)
5
4
  ---
@@ -1,5 +1,4 @@
1
1
  ---
2
- scope: org-shared
3
2
  name: cbp-setup-e2e
4
3
  description: Detect installed E2E frameworks, ask which to enable, record credentials source (gitignored env-file path + var names only, never secrets), and write/refresh .codebyplan/e2e.json. Interactive, idempotent.
5
4
  argument-hint: "[--force]"
@@ -1,5 +1,4 @@
1
1
  ---
2
- scope: org-shared
3
2
  name: cbp-setup-eslint
4
3
  description: Detect each app's tech stack, resolve matching DB ESLint presets, confirm which to enable per app, run `codebyplan eslint init` to generate eslint.config.mjs, and write/refresh .codebyplan/eslint.json. Interactive, idempotent.
5
4
  argument-hint: "[--force]"
@@ -1,5 +1,4 @@
1
1
  ---
2
- scope: org-shared
3
2
  name: cbp-ship
4
3
  description: Orchestrate runtime deployment for a checkpoint — Vercel web, EAS mobile (Expo Go dev build / TestFlight preview), Tauri desktop, npm package publish, VS Code extension, Railway backend, Supabase migrations. Detects configured surfaces, walks the user through what to deploy, executes per-surface deploy steps, verifies each landed.
5
4
  effort: xhigh
@@ -1,5 +1,4 @@
1
1
  ---
2
- scope: org-shared
3
2
  name: cbp-ship-configure
4
3
  description: Configure shipment for one or more surfaces in the current repo — Vercel link, EAS project + eas.json scaffold, Apple credentials probe, npm publish auth check (including `codebyplan` asset-publish automation via the publish-on-main workflow), Railway project link, Supabase access token verify; Supabase GitHub branching integration via /cbp-supabase-setup. Interactive step-by-step; never stores credentials in the repo.
5
4
  argument-hint: [--surface=<id>]
@@ -1,5 +1,4 @@
1
1
  ---
2
- scope: org-shared
3
2
  name: cbp-ship-main
4
3
  description: Ship feat branch to production branch via PR — thin wrapper around `codebyplan ship`
5
4
  effort: high
@@ -1,5 +1,4 @@
1
1
  ---
2
- scope: org-shared
3
2
  name: cbp-supabase-branch-check
4
3
  description: Gate skill called by /cbp-ship-main (pre-merge) to verify the Supabase preview branch health check is green before allowing a PR to be merged; skips when no DB-path changes are detected.
5
4
  argument-hint: "[--mode pre_pr_create|pre_merge] [--target integration|production]"
@@ -1,7 +1,3 @@
1
- ---
2
- scope: org-shared
3
- ---
4
-
5
1
  # DAG Steps — Supabase Preview Branch
6
2
 
7
3
  Reference for cbp-supabase-branch-check Step 7. Maps each Supabase branching DAG step
@@ -1,5 +1,4 @@
1
1
  ---
2
- scope: org-shared
3
2
  name: cbp-supabase-migrate
4
3
  description: Scaffold or adopt a Supabase migration for the current PR branch, apply to the branch's preview DB, run advisor checks, regenerate TypeScript types. Includes a fresh-branch dry-run pre-flight that uses one persistent dry-run ephemeral branch per feature branch.
5
4
  argument-hint: "[--new <name> | <path-to-sql>]"
@@ -1,5 +1,4 @@
1
1
  ---
2
- scope: org-shared
3
2
  name: cbp-supabase-setup
4
3
  description: Enable Supabase GitHub branching integration — GitHub app authorization, required-status-check enforcement on main + integration branch, persistent branch creation, and idempotency marker in .codebyplan/shipment.json.
5
4
  argument-hint: "[--force]"
@@ -1,5 +1,4 @@
1
1
  ---
2
- scope: org-shared
3
2
  name: cbp-task-check
4
3
  description: AI production review for the current task
5
4
  argument-hint: [chk-task]
@@ -1,5 +1,4 @@
1
1
  ---
2
- scope: org-shared
3
2
  name: cbp-task-complete
4
3
  description: Complete current task
5
4
  argument-hint: [chk-task]
@@ -1,5 +1,4 @@
1
1
  ---
2
- scope: org-shared
3
2
  name: cbp-task-create
4
3
  description: Create a new task within the active checkpoint
5
4
  effort: xhigh
@@ -1,5 +1,4 @@
1
1
  ---
2
- scope: org-shared
3
2
  name: cbp-task-start
4
3
  description: Start a task, load context from DB
5
4
  triggers: [cbp-round-start]
@@ -1,5 +1,4 @@
1
1
  ---
2
- scope: org-shared
3
2
  name: cbp-task-testing
4
3
  description: Run comprehensive task-level testing after /cbp-task-check passes
5
4
  argument-hint: [chk-task]
@@ -1,5 +1,4 @@
1
1
  ---
2
- scope: org-shared
3
2
  name: cbp-todo
4
3
  description: Entry point - what to work on next
5
4
  effort: low
@@ -1,5 +1,4 @@
1
1
  ---
2
- scope: org-shared
3
2
  name: cbp-todo-qa-regression
4
3
  description: Manual regression procedure for the cbp-todo worktree-ownership gate + get_todos switch (CHK-137 TASK-2)
5
4
  ---
@@ -1,5 +1,4 @@
1
1
  ---
2
- scope: org-shared
3
2
  name: supabase
4
3
  description: "Use when doing ANY task involving Supabase. Triggers: Supabase products (Database, Auth, Edge Functions, Realtime, Storage, Vectors, Cron, Queues); client libraries and SSR integrations (supabase-js, @supabase/ssr) in Next.js, React, SvelteKit, Astro, Remix; auth issues (login, logout, sessions, JWT, cookies, getSession, getUser, getClaims, RLS); Supabase CLI or MCP server; schema changes, migrations, security audits, Postgres extensions (pg_graphql, pg_cron, pg_vector)."
5
4
  metadata:
@@ -1,5 +1,4 @@
1
1
  ---
2
- scope: org-shared
3
2
  name: supabase-postgres-best-practices
4
3
  description: Postgres performance optimization and best practices from Supabase. Use this skill when writing, reviewing, or optimizing Postgres queries, schema designs, or database configurations.
5
4
  license: MIT