bigpowers 2.83.3 → 2.84.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/.codebuddy/skills/align-grid/SKILL.md +110 -0
- package/.codebuddy/skills/assess-impact/SKILL.md +91 -0
- package/.codebuddy/skills/audit-code/SKILL.md +187 -0
- package/.codebuddy/skills/audit-plan/SKILL.md +89 -0
- package/.codebuddy/skills/build-epic/SKILL.md +105 -0
- package/.codebuddy/skills/change-request/SKILL.md +121 -0
- package/.codebuddy/skills/commit-message/SKILL.md +140 -0
- package/.codebuddy/skills/compose-workflow/SKILL.md +82 -0
- package/.codebuddy/skills/context7-mcp/SKILL.md +55 -0
- package/.codebuddy/skills/craft-skill/SKILL.md +179 -0
- package/.codebuddy/skills/deepen-architecture/SKILL.md +260 -0
- package/.codebuddy/skills/define-language/SKILL.md +80 -0
- package/.codebuddy/skills/define-success/SKILL.md +65 -0
- package/.codebuddy/skills/delegate-task/SKILL.md +91 -0
- package/.codebuddy/skills/deploy/SKILL.md +198 -0
- package/.codebuddy/skills/design-interface/SKILL.md +97 -0
- package/.codebuddy/skills/develop-tdd/SKILL.md +406 -0
- package/.codebuddy/skills/diagnose-root/SKILL.md +24 -0
- package/.codebuddy/skills/diagnose-stall/SKILL.md +54 -0
- package/.codebuddy/skills/dispatch-agents/SKILL.md +118 -0
- package/.codebuddy/skills/edit-document/SKILL.md +23 -0
- package/.codebuddy/skills/elaborate-spec/SKILL.md +101 -0
- package/.codebuddy/skills/enforce-first/SKILL.md +32 -0
- package/.codebuddy/skills/evolve-skill/SKILL.md +55 -0
- package/.codebuddy/skills/execute-plan/SKILL.md +61 -0
- package/.codebuddy/skills/extract-design/SKILL.md +132 -0
- package/.codebuddy/skills/find-way/SKILL.md +191 -0
- package/.codebuddy/skills/fix-bug/SKILL.md +67 -0
- package/.codebuddy/skills/gate-trace/SKILL.md +88 -0
- package/.codebuddy/skills/generate-allure-report/SKILL.md +285 -0
- package/.codebuddy/skills/grill-me/SKILL.md +96 -0
- package/.codebuddy/skills/grill-with-docs/SKILL.md +41 -0
- package/.codebuddy/skills/guard-git/SKILL.md +231 -0
- package/.codebuddy/skills/harden-vps/SKILL.md +288 -0
- package/.codebuddy/skills/hook-commits/SKILL.md +94 -0
- package/.codebuddy/skills/inspect-quality/SKILL.md +106 -0
- package/.codebuddy/skills/investigate-bug/SKILL.md +127 -0
- package/.codebuddy/skills/kickoff-branch/SKILL.md +143 -0
- package/.codebuddy/skills/maintain-wiki/SKILL.md +64 -0
- package/.codebuddy/skills/map-codebase/SKILL.md +71 -0
- package/.codebuddy/skills/migrate-spec/SKILL.md +862 -0
- package/.codebuddy/skills/model-domain/SKILL.md +232 -0
- package/.codebuddy/skills/orchestrate-project/SKILL.md +174 -0
- package/.codebuddy/skills/organize-workspace/SKILL.md +164 -0
- package/.codebuddy/skills/plan-refactor/SKILL.md +87 -0
- package/.codebuddy/skills/plan-release/SKILL.md +145 -0
- package/.codebuddy/skills/plan-tests/SKILL.md +75 -0
- package/.codebuddy/skills/plan-work/SKILL.md +260 -0
- package/.codebuddy/skills/publish-package/SKILL.md +328 -0
- package/.codebuddy/skills/quick-fix/SKILL.md +114 -0
- package/.codebuddy/skills/release-branch/SKILL.md +298 -0
- package/.codebuddy/skills/request-review/SKILL.md +112 -0
- package/.codebuddy/skills/research-first/SKILL.md +87 -0
- package/.codebuddy/skills/reset-baseline/SKILL.md +21 -0
- package/.codebuddy/skills/respond-review/SKILL.md +71 -0
- package/.codebuddy/skills/run-benchmark/SKILL.md +85 -0
- package/.codebuddy/skills/run-evals/SKILL.md +80 -0
- package/.codebuddy/skills/run-planning/SKILL.md +101 -0
- package/.codebuddy/skills/scope-work/SKILL.md +63 -0
- package/.codebuddy/skills/search-skills/SKILL.md +73 -0
- package/.codebuddy/skills/security-review/SKILL.md +384 -0
- package/.codebuddy/skills/seed-conventions/SKILL.md +285 -0
- package/.codebuddy/skills/session-state/SKILL.md +146 -0
- package/.codebuddy/skills/setup-environment/SKILL.md +39 -0
- package/.codebuddy/skills/simulate-agents/SKILL.md +26 -0
- package/.codebuddy/skills/slice-tasks/SKILL.md +68 -0
- package/.codebuddy/skills/smoke-test/SKILL.md +242 -0
- package/.codebuddy/skills/spike-prototype/SKILL.md +95 -0
- package/.codebuddy/skills/stocktake-skills/SKILL.md +72 -0
- package/.codebuddy/skills/survey-context/SKILL.md +135 -0
- package/.codebuddy/skills/terse-mode/SKILL.md +42 -0
- package/.codebuddy/skills/trace-requirement/SKILL.md +69 -0
- package/.codebuddy/skills/using-bigpowers/SKILL.md +111 -0
- package/.codebuddy/skills/validate-contracts/SKILL.md +309 -0
- package/.codebuddy/skills/validate-fix/SKILL.md +106 -0
- package/.codebuddy/skills/verify-work/SKILL.md +191 -0
- package/.codebuddy/skills/visual-dashboard/SKILL.md +50 -0
- package/.codebuddy/skills/wire-ci/SKILL.md +375 -0
- package/.codebuddy/skills/wire-observability/SKILL.md +97 -0
- package/.codebuddy/skills/write-document/SKILL.md +255 -0
- package/.codex/skills/align-grid/SKILL.md +110 -0
- package/.codex/skills/assess-impact/SKILL.md +91 -0
- package/.codex/skills/audit-code/SKILL.md +187 -0
- package/.codex/skills/audit-plan/SKILL.md +89 -0
- package/.codex/skills/build-epic/SKILL.md +105 -0
- package/.codex/skills/change-request/SKILL.md +121 -0
- package/.codex/skills/commit-message/SKILL.md +140 -0
- package/.codex/skills/compose-workflow/SKILL.md +82 -0
- package/.codex/skills/context7-mcp/SKILL.md +55 -0
- package/.codex/skills/craft-skill/SKILL.md +179 -0
- package/.codex/skills/deepen-architecture/SKILL.md +260 -0
- package/.codex/skills/define-language/SKILL.md +80 -0
- package/.codex/skills/define-success/SKILL.md +65 -0
- package/.codex/skills/delegate-task/SKILL.md +91 -0
- package/.codex/skills/deploy/SKILL.md +198 -0
- package/.codex/skills/design-interface/SKILL.md +97 -0
- package/.codex/skills/develop-tdd/SKILL.md +406 -0
- package/.codex/skills/diagnose-root/SKILL.md +24 -0
- package/.codex/skills/diagnose-stall/SKILL.md +54 -0
- package/.codex/skills/dispatch-agents/SKILL.md +118 -0
- package/.codex/skills/edit-document/SKILL.md +23 -0
- package/.codex/skills/elaborate-spec/SKILL.md +101 -0
- package/.codex/skills/enforce-first/SKILL.md +32 -0
- package/.codex/skills/evolve-skill/SKILL.md +55 -0
- package/.codex/skills/execute-plan/SKILL.md +61 -0
- package/.codex/skills/extract-design/SKILL.md +132 -0
- package/.codex/skills/find-way/SKILL.md +191 -0
- package/.codex/skills/fix-bug/SKILL.md +67 -0
- package/.codex/skills/gate-trace/SKILL.md +88 -0
- package/.codex/skills/generate-allure-report/SKILL.md +285 -0
- package/.codex/skills/grill-me/SKILL.md +96 -0
- package/.codex/skills/grill-with-docs/SKILL.md +41 -0
- package/.codex/skills/guard-git/SKILL.md +231 -0
- package/.codex/skills/harden-vps/SKILL.md +288 -0
- package/.codex/skills/hook-commits/SKILL.md +94 -0
- package/.codex/skills/inspect-quality/SKILL.md +106 -0
- package/.codex/skills/investigate-bug/SKILL.md +127 -0
- package/.codex/skills/kickoff-branch/SKILL.md +143 -0
- package/.codex/skills/maintain-wiki/SKILL.md +64 -0
- package/.codex/skills/map-codebase/SKILL.md +71 -0
- package/.codex/skills/migrate-spec/SKILL.md +862 -0
- package/.codex/skills/model-domain/SKILL.md +232 -0
- package/.codex/skills/orchestrate-project/SKILL.md +174 -0
- package/.codex/skills/organize-workspace/SKILL.md +164 -0
- package/.codex/skills/plan-refactor/SKILL.md +87 -0
- package/.codex/skills/plan-release/SKILL.md +145 -0
- package/.codex/skills/plan-tests/SKILL.md +75 -0
- package/.codex/skills/plan-work/SKILL.md +260 -0
- package/.codex/skills/publish-package/SKILL.md +328 -0
- package/.codex/skills/quick-fix/SKILL.md +114 -0
- package/.codex/skills/release-branch/SKILL.md +298 -0
- package/.codex/skills/request-review/SKILL.md +112 -0
- package/.codex/skills/research-first/SKILL.md +87 -0
- package/.codex/skills/reset-baseline/SKILL.md +21 -0
- package/.codex/skills/respond-review/SKILL.md +71 -0
- package/.codex/skills/run-benchmark/SKILL.md +85 -0
- package/.codex/skills/run-evals/SKILL.md +80 -0
- package/.codex/skills/run-planning/SKILL.md +101 -0
- package/.codex/skills/scope-work/SKILL.md +63 -0
- package/.codex/skills/search-skills/SKILL.md +73 -0
- package/.codex/skills/security-review/SKILL.md +384 -0
- package/.codex/skills/seed-conventions/SKILL.md +285 -0
- package/.codex/skills/session-state/SKILL.md +146 -0
- package/.codex/skills/setup-environment/SKILL.md +39 -0
- package/.codex/skills/simulate-agents/SKILL.md +26 -0
- package/.codex/skills/slice-tasks/SKILL.md +68 -0
- package/.codex/skills/smoke-test/SKILL.md +242 -0
- package/.codex/skills/spike-prototype/SKILL.md +95 -0
- package/.codex/skills/stocktake-skills/SKILL.md +72 -0
- package/.codex/skills/survey-context/SKILL.md +135 -0
- package/.codex/skills/terse-mode/SKILL.md +42 -0
- package/.codex/skills/trace-requirement/SKILL.md +69 -0
- package/.codex/skills/using-bigpowers/SKILL.md +111 -0
- package/.codex/skills/validate-contracts/SKILL.md +309 -0
- package/.codex/skills/validate-fix/SKILL.md +106 -0
- package/.codex/skills/verify-work/SKILL.md +191 -0
- package/.codex/skills/visual-dashboard/SKILL.md +50 -0
- package/.codex/skills/wire-ci/SKILL.md +375 -0
- package/.codex/skills/wire-observability/SKILL.md +97 -0
- package/.codex/skills/write-document/SKILL.md +255 -0
- package/.kilocode/rules/align-grid.md +110 -0
- package/.kilocode/rules/assess-impact.md +91 -0
- package/.kilocode/rules/audit-code.md +187 -0
- package/.kilocode/rules/audit-plan.md +89 -0
- package/.kilocode/rules/build-epic.md +105 -0
- package/.kilocode/rules/change-request.md +121 -0
- package/.kilocode/rules/commit-message.md +140 -0
- package/.kilocode/rules/compose-workflow.md +82 -0
- package/.kilocode/rules/context7-mcp.md +55 -0
- package/.kilocode/rules/craft-skill.md +179 -0
- package/.kilocode/rules/deepen-architecture.md +260 -0
- package/.kilocode/rules/define-language.md +80 -0
- package/.kilocode/rules/define-success.md +65 -0
- package/.kilocode/rules/delegate-task.md +91 -0
- package/.kilocode/rules/deploy.md +198 -0
- package/.kilocode/rules/design-interface.md +97 -0
- package/.kilocode/rules/develop-tdd.md +406 -0
- package/.kilocode/rules/diagnose-root.md +24 -0
- package/.kilocode/rules/diagnose-stall.md +54 -0
- package/.kilocode/rules/dispatch-agents.md +118 -0
- package/.kilocode/rules/edit-document.md +23 -0
- package/.kilocode/rules/elaborate-spec.md +101 -0
- package/.kilocode/rules/enforce-first.md +32 -0
- package/.kilocode/rules/evolve-skill.md +55 -0
- package/.kilocode/rules/execute-plan.md +61 -0
- package/.kilocode/rules/extract-design.md +132 -0
- package/.kilocode/rules/find-way.md +191 -0
- package/.kilocode/rules/fix-bug.md +67 -0
- package/.kilocode/rules/gate-trace.md +88 -0
- package/.kilocode/rules/generate-allure-report.md +285 -0
- package/.kilocode/rules/grill-me.md +96 -0
- package/.kilocode/rules/grill-with-docs.md +41 -0
- package/.kilocode/rules/guard-git.md +231 -0
- package/.kilocode/rules/harden-vps.md +288 -0
- package/.kilocode/rules/hook-commits.md +94 -0
- package/.kilocode/rules/inspect-quality.md +106 -0
- package/.kilocode/rules/investigate-bug.md +127 -0
- package/.kilocode/rules/kickoff-branch.md +143 -0
- package/.kilocode/rules/maintain-wiki.md +64 -0
- package/.kilocode/rules/map-codebase.md +71 -0
- package/.kilocode/rules/migrate-spec.md +862 -0
- package/.kilocode/rules/model-domain.md +232 -0
- package/.kilocode/rules/orchestrate-project.md +174 -0
- package/.kilocode/rules/organize-workspace.md +164 -0
- package/.kilocode/rules/plan-refactor.md +87 -0
- package/.kilocode/rules/plan-release.md +145 -0
- package/.kilocode/rules/plan-tests.md +75 -0
- package/.kilocode/rules/plan-work.md +260 -0
- package/.kilocode/rules/publish-package.md +328 -0
- package/.kilocode/rules/quick-fix.md +114 -0
- package/.kilocode/rules/release-branch.md +298 -0
- package/.kilocode/rules/request-review.md +112 -0
- package/.kilocode/rules/research-first.md +87 -0
- package/.kilocode/rules/reset-baseline.md +21 -0
- package/.kilocode/rules/respond-review.md +71 -0
- package/.kilocode/rules/run-benchmark.md +85 -0
- package/.kilocode/rules/run-evals.md +80 -0
- package/.kilocode/rules/run-planning.md +101 -0
- package/.kilocode/rules/scope-work.md +63 -0
- package/.kilocode/rules/search-skills.md +73 -0
- package/.kilocode/rules/security-review.md +384 -0
- package/.kilocode/rules/seed-conventions.md +285 -0
- package/.kilocode/rules/session-state.md +146 -0
- package/.kilocode/rules/setup-environment.md +39 -0
- package/.kilocode/rules/simulate-agents.md +26 -0
- package/.kilocode/rules/slice-tasks.md +68 -0
- package/.kilocode/rules/smoke-test.md +242 -0
- package/.kilocode/rules/spike-prototype.md +95 -0
- package/.kilocode/rules/stocktake-skills.md +72 -0
- package/.kilocode/rules/survey-context.md +135 -0
- package/.kilocode/rules/terse-mode.md +42 -0
- package/.kilocode/rules/trace-requirement.md +69 -0
- package/.kilocode/rules/using-bigpowers.md +111 -0
- package/.kilocode/rules/validate-contracts.md +309 -0
- package/.kilocode/rules/validate-fix.md +106 -0
- package/.kilocode/rules/verify-work.md +191 -0
- package/.kilocode/rules/visual-dashboard.md +50 -0
- package/.kilocode/rules/wire-ci.md +375 -0
- package/.kilocode/rules/wire-observability.md +97 -0
- package/.kilocode/rules/write-document.md +255 -0
- package/.pi/package.json +1 -1
- package/.trae/skills/align-grid/SKILL.md +110 -0
- package/.trae/skills/assess-impact/SKILL.md +91 -0
- package/.trae/skills/audit-code/SKILL.md +187 -0
- package/.trae/skills/audit-plan/SKILL.md +89 -0
- package/.trae/skills/build-epic/SKILL.md +105 -0
- package/.trae/skills/change-request/SKILL.md +121 -0
- package/.trae/skills/commit-message/SKILL.md +140 -0
- package/.trae/skills/compose-workflow/SKILL.md +82 -0
- package/.trae/skills/context7-mcp/SKILL.md +55 -0
- package/.trae/skills/craft-skill/SKILL.md +179 -0
- package/.trae/skills/deepen-architecture/SKILL.md +260 -0
- package/.trae/skills/define-language/SKILL.md +80 -0
- package/.trae/skills/define-success/SKILL.md +65 -0
- package/.trae/skills/delegate-task/SKILL.md +91 -0
- package/.trae/skills/deploy/SKILL.md +198 -0
- package/.trae/skills/design-interface/SKILL.md +97 -0
- package/.trae/skills/develop-tdd/SKILL.md +406 -0
- package/.trae/skills/diagnose-root/SKILL.md +24 -0
- package/.trae/skills/diagnose-stall/SKILL.md +54 -0
- package/.trae/skills/dispatch-agents/SKILL.md +118 -0
- package/.trae/skills/edit-document/SKILL.md +23 -0
- package/.trae/skills/elaborate-spec/SKILL.md +101 -0
- package/.trae/skills/enforce-first/SKILL.md +32 -0
- package/.trae/skills/evolve-skill/SKILL.md +55 -0
- package/.trae/skills/execute-plan/SKILL.md +61 -0
- package/.trae/skills/extract-design/SKILL.md +132 -0
- package/.trae/skills/find-way/SKILL.md +191 -0
- package/.trae/skills/fix-bug/SKILL.md +67 -0
- package/.trae/skills/gate-trace/SKILL.md +88 -0
- package/.trae/skills/generate-allure-report/SKILL.md +285 -0
- package/.trae/skills/grill-me/SKILL.md +96 -0
- package/.trae/skills/grill-with-docs/SKILL.md +41 -0
- package/.trae/skills/guard-git/SKILL.md +231 -0
- package/.trae/skills/harden-vps/SKILL.md +288 -0
- package/.trae/skills/hook-commits/SKILL.md +94 -0
- package/.trae/skills/inspect-quality/SKILL.md +106 -0
- package/.trae/skills/investigate-bug/SKILL.md +127 -0
- package/.trae/skills/kickoff-branch/SKILL.md +143 -0
- package/.trae/skills/maintain-wiki/SKILL.md +64 -0
- package/.trae/skills/map-codebase/SKILL.md +71 -0
- package/.trae/skills/migrate-spec/SKILL.md +862 -0
- package/.trae/skills/model-domain/SKILL.md +232 -0
- package/.trae/skills/orchestrate-project/SKILL.md +174 -0
- package/.trae/skills/organize-workspace/SKILL.md +164 -0
- package/.trae/skills/plan-refactor/SKILL.md +87 -0
- package/.trae/skills/plan-release/SKILL.md +145 -0
- package/.trae/skills/plan-tests/SKILL.md +75 -0
- package/.trae/skills/plan-work/SKILL.md +260 -0
- package/.trae/skills/publish-package/SKILL.md +328 -0
- package/.trae/skills/quick-fix/SKILL.md +114 -0
- package/.trae/skills/release-branch/SKILL.md +298 -0
- package/.trae/skills/request-review/SKILL.md +112 -0
- package/.trae/skills/research-first/SKILL.md +87 -0
- package/.trae/skills/reset-baseline/SKILL.md +21 -0
- package/.trae/skills/respond-review/SKILL.md +71 -0
- package/.trae/skills/run-benchmark/SKILL.md +85 -0
- package/.trae/skills/run-evals/SKILL.md +80 -0
- package/.trae/skills/run-planning/SKILL.md +101 -0
- package/.trae/skills/scope-work/SKILL.md +63 -0
- package/.trae/skills/search-skills/SKILL.md +73 -0
- package/.trae/skills/security-review/SKILL.md +384 -0
- package/.trae/skills/seed-conventions/SKILL.md +285 -0
- package/.trae/skills/session-state/SKILL.md +146 -0
- package/.trae/skills/setup-environment/SKILL.md +39 -0
- package/.trae/skills/simulate-agents/SKILL.md +26 -0
- package/.trae/skills/slice-tasks/SKILL.md +68 -0
- package/.trae/skills/smoke-test/SKILL.md +242 -0
- package/.trae/skills/spike-prototype/SKILL.md +95 -0
- package/.trae/skills/stocktake-skills/SKILL.md +72 -0
- package/.trae/skills/survey-context/SKILL.md +135 -0
- package/.trae/skills/terse-mode/SKILL.md +42 -0
- package/.trae/skills/trace-requirement/SKILL.md +69 -0
- package/.trae/skills/using-bigpowers/SKILL.md +111 -0
- package/.trae/skills/validate-contracts/SKILL.md +309 -0
- package/.trae/skills/validate-fix/SKILL.md +106 -0
- package/.trae/skills/verify-work/SKILL.md +191 -0
- package/.trae/skills/visual-dashboard/SKILL.md +50 -0
- package/.trae/skills/wire-ci/SKILL.md +375 -0
- package/.trae/skills/wire-observability/SKILL.md +97 -0
- package/.trae/skills/write-document/SKILL.md +255 -0
- package/.windsurf/rules/align-grid.md +110 -0
- package/.windsurf/rules/assess-impact.md +91 -0
- package/.windsurf/rules/audit-code.md +187 -0
- package/.windsurf/rules/audit-plan.md +89 -0
- package/.windsurf/rules/build-epic.md +105 -0
- package/.windsurf/rules/change-request.md +121 -0
- package/.windsurf/rules/commit-message.md +140 -0
- package/.windsurf/rules/compose-workflow.md +82 -0
- package/.windsurf/rules/context7-mcp.md +55 -0
- package/.windsurf/rules/craft-skill.md +179 -0
- package/.windsurf/rules/deepen-architecture.md +260 -0
- package/.windsurf/rules/define-language.md +80 -0
- package/.windsurf/rules/define-success.md +65 -0
- package/.windsurf/rules/delegate-task.md +91 -0
- package/.windsurf/rules/deploy.md +198 -0
- package/.windsurf/rules/design-interface.md +97 -0
- package/.windsurf/rules/develop-tdd.md +406 -0
- package/.windsurf/rules/diagnose-root.md +24 -0
- package/.windsurf/rules/diagnose-stall.md +54 -0
- package/.windsurf/rules/dispatch-agents.md +118 -0
- package/.windsurf/rules/edit-document.md +23 -0
- package/.windsurf/rules/elaborate-spec.md +101 -0
- package/.windsurf/rules/enforce-first.md +32 -0
- package/.windsurf/rules/evolve-skill.md +55 -0
- package/.windsurf/rules/execute-plan.md +61 -0
- package/.windsurf/rules/extract-design.md +132 -0
- package/.windsurf/rules/find-way.md +191 -0
- package/.windsurf/rules/fix-bug.md +67 -0
- package/.windsurf/rules/gate-trace.md +88 -0
- package/.windsurf/rules/generate-allure-report.md +285 -0
- package/.windsurf/rules/grill-me.md +96 -0
- package/.windsurf/rules/grill-with-docs.md +41 -0
- package/.windsurf/rules/guard-git.md +231 -0
- package/.windsurf/rules/harden-vps.md +288 -0
- package/.windsurf/rules/hook-commits.md +94 -0
- package/.windsurf/rules/inspect-quality.md +106 -0
- package/.windsurf/rules/investigate-bug.md +127 -0
- package/.windsurf/rules/kickoff-branch.md +143 -0
- package/.windsurf/rules/maintain-wiki.md +64 -0
- package/.windsurf/rules/map-codebase.md +71 -0
- package/.windsurf/rules/migrate-spec.md +862 -0
- package/.windsurf/rules/model-domain.md +232 -0
- package/.windsurf/rules/orchestrate-project.md +174 -0
- package/.windsurf/rules/organize-workspace.md +164 -0
- package/.windsurf/rules/plan-refactor.md +87 -0
- package/.windsurf/rules/plan-release.md +145 -0
- package/.windsurf/rules/plan-tests.md +75 -0
- package/.windsurf/rules/plan-work.md +260 -0
- package/.windsurf/rules/publish-package.md +328 -0
- package/.windsurf/rules/quick-fix.md +114 -0
- package/.windsurf/rules/release-branch.md +298 -0
- package/.windsurf/rules/request-review.md +112 -0
- package/.windsurf/rules/research-first.md +87 -0
- package/.windsurf/rules/reset-baseline.md +21 -0
- package/.windsurf/rules/respond-review.md +71 -0
- package/.windsurf/rules/run-benchmark.md +85 -0
- package/.windsurf/rules/run-evals.md +80 -0
- package/.windsurf/rules/run-planning.md +101 -0
- package/.windsurf/rules/scope-work.md +63 -0
- package/.windsurf/rules/search-skills.md +73 -0
- package/.windsurf/rules/security-review.md +384 -0
- package/.windsurf/rules/seed-conventions.md +285 -0
- package/.windsurf/rules/session-state.md +146 -0
- package/.windsurf/rules/setup-environment.md +39 -0
- package/.windsurf/rules/simulate-agents.md +26 -0
- package/.windsurf/rules/slice-tasks.md +68 -0
- package/.windsurf/rules/smoke-test.md +242 -0
- package/.windsurf/rules/spike-prototype.md +95 -0
- package/.windsurf/rules/stocktake-skills.md +72 -0
- package/.windsurf/rules/survey-context.md +135 -0
- package/.windsurf/rules/terse-mode.md +42 -0
- package/.windsurf/rules/trace-requirement.md +69 -0
- package/.windsurf/rules/using-bigpowers.md +111 -0
- package/.windsurf/rules/validate-contracts.md +309 -0
- package/.windsurf/rules/validate-fix.md +106 -0
- package/.windsurf/rules/verify-work.md +191 -0
- package/.windsurf/rules/visual-dashboard.md +50 -0
- package/.windsurf/rules/wire-ci.md +375 -0
- package/.windsurf/rules/wire-observability.md +97 -0
- package/.windsurf/rules/write-document.md +255 -0
- package/CHANGELOG.md +37 -0
- package/CONVENTIONS.md +22 -0
- package/bin/setup.js +35 -7
- package/instructions +1 -0
- package/package.json +1 -1
- package/scripts/adapters/cline.sh +53 -3
- package/scripts/adapters/codebuddy.sh +58 -0
- package/scripts/adapters/codex.sh +58 -0
- package/scripts/adapters/copilot.sh +58 -0
- package/scripts/adapters/kilocode.sh +44 -3
- package/scripts/adapters/opencode.sh +58 -0
- package/scripts/adapters/qwen.sh +53 -1
- package/scripts/adapters/trae.sh +58 -0
- package/scripts/adapters/windsurf.sh +52 -0
- package/scripts/bp-yaml-set.sh +2 -0
- package/scripts/generate-wave-b-hub.py +31 -0
- package/scripts/hooks/cline/HOOKS.md +16 -0
- package/scripts/hooks/cline/hooks-manifest.json +12 -0
- package/scripts/hooks/cline/plugin/guard-git-plugin.ts +16 -0
- package/scripts/hooks/codebuddy/HOOKS.md +24 -0
- package/scripts/hooks/codebuddy/hooks-manifest.json +20 -0
- package/scripts/hooks/codebuddy/pre-tool-git-guard.sh +22 -0
- package/scripts/hooks/codebuddy/settings.example.json +16 -0
- package/scripts/hooks/codex/HOOKS.md +21 -0
- package/scripts/hooks/codex/hooks-manifest.json +17 -0
- package/scripts/hooks/codex/pre-tool-git-guard.sh +22 -0
- package/scripts/hooks/codex/settings.example.json +16 -0
- package/scripts/hooks/kilocode/HOOKS.md +16 -0
- package/scripts/hooks/kilocode/hooks-manifest.json +12 -0
- package/scripts/hooks/kilocode/plugin/guard-git-plugin.ts +16 -0
- package/scripts/hooks/qwen/HOOKS.md +27 -0
- package/scripts/hooks/qwen/hooks-manifest.json +23 -0
- package/scripts/hooks/qwen/pre-tool-git-guard.sh +22 -0
- package/scripts/hooks/qwen/settings.example.json +16 -0
- package/scripts/hooks/trae/HOOKS.md +17 -0
- package/scripts/hooks/trae/hooks-manifest.json +13 -0
- package/scripts/hooks/trae/pre-tool-git-guard.sh +22 -0
- package/scripts/hooks/trae/settings.example.json +16 -0
- package/scripts/hooks/windsurf/HOOKS.md +23 -0
- package/scripts/hooks/windsurf/hooks-manifest.json +19 -0
- package/scripts/hooks/windsurf/pre-tool-git-guard.sh +22 -0
- package/scripts/hooks/windsurf/settings.example.json +16 -0
- package/scripts/install.sh +33 -373
- package/scripts/lib/__pycache__/link_utils.cpython-312.pyc +0 -0
- package/scripts/lib/__pycache__/srp_engine_links.cpython-312.pyc +0 -0
- package/scripts/lib/context-wire.sh +5 -0
- package/scripts/lib/install-grep.sh +18 -0
- package/scripts/lib/install-helpers.js +139 -2
- package/scripts/lib/install-targets-a.sh +227 -0
- package/scripts/lib/install-targets-b.sh +226 -0
- package/scripts/lib/install-targets-c.sh +128 -0
- package/scripts/lib/install-targets-d.sh +179 -0
- package/scripts/lib/srp-engine.py +2 -70
- package/scripts/lib/srp_engine_links.py +59 -0
- package/scripts/lib/wave_b_hub_codegen_helpers.py +273 -0
- package/scripts/lib/wave_b_hub_codegen_install.py +134 -0
- package/scripts/lib/wave_b_hub_config.py +130 -0
- package/scripts/lib/wave_b_hub_patch.py +213 -0
- package/scripts/record-cycle-time.sh +3 -14
- package/scripts/targets.yaml +75 -2
- package/scripts/test-agy-hub.sh +11 -10
- package/scripts/test-cline-adapter.sh +55 -0
- package/scripts/test-cline-hub.sh +48 -0
- package/scripts/test-codebuddy-adapter.sh +63 -0
- package/scripts/test-codebuddy-hub.sh +49 -0
- package/scripts/test-codex-adapter.sh +63 -0
- package/scripts/test-codex-hub.sh +49 -0
- package/scripts/test-copilot-adapter.sh +47 -0
- package/scripts/test-copilot-hub.sh +43 -0
- package/scripts/test-gemini-hub.sh +10 -9
- package/scripts/test-hermes-hub.sh +7 -6
- package/scripts/test-install-distribute-only.sh +3 -0
- package/scripts/test-install-helpers.js +9 -3
- package/scripts/test-kilocode-adapter.sh +55 -0
- package/scripts/test-kilocode-hub.sh +48 -0
- package/scripts/test-mimo-hub.sh +7 -6
- package/scripts/test-opencode-adapter.sh +47 -0
- package/scripts/test-opencode-hub.sh +43 -0
- package/scripts/test-qwen-adapter.sh +63 -0
- package/scripts/test-qwen-hub.sh +49 -0
- package/scripts/test-trae-adapter.sh +63 -0
- package/scripts/test-trae-hub.sh +49 -0
- package/scripts/test-windsurf-adapter.sh +63 -0
- package/scripts/test-windsurf-hub.sh +49 -0
- package/scripts/test-zcode-hub.sh +7 -6
- package/scripts/verify-install.sh +83 -29
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: align-grid
|
|
3
|
+
model: sonnet
|
|
4
|
+
description: "Build editorial/magazine/report webpages on a GENUINE Müller-Brockmann modular grid (International Typographic Style) — not a decorative one. Encodes the discipline (columns + modules + baseline, grotesque type, flush-left, restrained black/white/red palette) AND the hard-won front-end engineering to make the grid real, visible, and verified: one CSS-variable source of truth, an interactive grid-toggle overlay that lives in the SAME content box as the content, subgrid \"bands\" so every element snaps to a column line, an 8px baseline lock, and runtime OPTICAL ALIGNMENT that puts display type's ink (not its box) on the line. Ships with a scaffold generator and a Puppeteer verification harness that proves 0px adherence."
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Müller-Brockmann Grid Systems — built real, visible, and verified
|
|
8
|
+
|
|
9
|
+
Josef Müller-Brockmann (1914–1996), Zurich; *Grid Systems in Graphic Design* (1981) is the corpus. The grid is treated as an ethic, not decoration: **"The grid system is an aid, not a guarantee. It permits a number of possible uses and each designer can look for a solution appropriate to his personal style. But one must learn how to use the grid; it is an art that requires practice."** This skill encodes that discipline AND — the part most attempts get wrong — the front-end engineering to make the grid genuinely load-bearing on the web, plus a harness that PROVES it.
|
|
10
|
+
|
|
11
|
+
> **HARD GATE** — Do NOT ship a grid page without running `verify_grid.js` first. A visually plausible layout is not evidence of grid adherence — the harness is. Zero failing assertions is the only passing bar.
|
|
12
|
+
|
|
13
|
+
> Two real review notes this skill exists to prevent:
|
|
14
|
+
> 1. *"the grid is just slapped on top and misaligned"* → the overlay wasn't in the same content box as the content (see §2.2).
|
|
15
|
+
> 2. *"the H in the headline is off the grid"* → the headline's BOX was on the grid but its INK wasn't; large glyphs carry a side-bearing (see §2.6). **Box-on-grid ≠ ink-on-grid.**
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## PART 1 — THE DISCIPLINE (decide before drawing)
|
|
20
|
+
- **Objective order.** The grid brings "constructive thought," legibility, and "objective and functional" design. Restraint is the point; the system, not the ego, organizes the page.
|
|
21
|
+
- **Modular grid.** Divide the type area into a field of **modules** — columns AND rows — separated by consistent **gutters**, inside defined **margins**. Text and images occupy whole modules. Müller-Brockmann specimens common field counts (8 / 20 / 32 fields). For the web, a **12-column grid + 8px baseline** is a robust general default; a **6×6 or 4×8 modular field grid** when you want visible rows too.
|
|
22
|
+
- **Baseline grid.** Vertical rhythm is sacred: **leading = a whole multiple of the baseline unit**, and every element snaps to it. This is what makes facing columns and images line up across the page.
|
|
23
|
+
- **Typography.** A **grotesque sans** (Akzidenz-Grotesk / Helvetica; on the web Inter, Helvetica Now, Archivo). **Flush-left, ragged-right.** Few sizes, large jumps in **scale** for hierarchy; objective, not expressive. Big **numerals/data set large** is a signature move.
|
|
24
|
+
- **Palette.** Pure white paper, near-black ink, **one accent — red is canonical**. Avoid the warm-cream "Claude look"; **never blue/purple gradients** (hard house rule).
|
|
25
|
+
- **White space + asymmetry.** Generous margins; asymmetric compositions held in tension by the grid.
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## PART 2 — MAKE THE GRID REAL ON THE WEB (the load-bearing engineering)
|
|
30
|
+
`grid_tokens.py` emits this whole scaffold correctly; the rules below are why it's built the way it is.
|
|
31
|
+
|
|
32
|
+
### 2.1 One source of truth
|
|
33
|
+
Put every grid parameter in `:root` CSS variables — `--cols, --gutter, --margin, --bl (baseline), --lh (leading=3×bl), --maxw`. **Content and the overlay both read these same variables.** Never hand-author the overlay separately or it will drift.
|
|
34
|
+
|
|
35
|
+
### 2.2 The overlay MUST live in the SAME content box as the content ← #1 bug
|
|
36
|
+
Failure mode: content sits in a centered `max-width` container while the overlay is a **full-width sibling** of the section. On any viewport wider than `--maxw`, the centered content and the full-width overlay no longer share column positions → "slapped on top / misaligned."
|
|
37
|
+
**Fix:** put `.guides` *inside* the same `.wrap`, and draw the column guides with `left/right = var(--margin)` and the **same** `repeat(var(--cols),1fr)` + `column-gap:var(--gutter)`. Then the overlay columns **are** the content columns at every width. Add left/right margin lines at `var(--margin)`.
|
|
38
|
+
|
|
39
|
+
### 2.3 Place every element by column LINE via subgrid bands
|
|
40
|
+
Don't eyeball spans. Each horizontal **band** spans all columns and re-exposes them:
|
|
41
|
+
```css
|
|
42
|
+
.band{grid-column:1 / -1; display:grid; grid-template-columns:subgrid; column-gap:var(--gutter); align-items:start;}
|
|
43
|
+
@supports not (grid-template-columns:subgrid){ .band{grid-template-columns:repeat(var(--cols),1fr);} }
|
|
44
|
+
```
|
|
45
|
+
Children place with `grid-column: <startline> / <endline>` (e.g. `1 / 6`, `6 / 13`). Every headline, paragraph, photo, caption now snaps to identical lines.
|
|
46
|
+
|
|
47
|
+
### 2.4 Lock vertical rhythm to the baseline
|
|
48
|
+
- Leading = `--lh` (e.g. 24px = 3×8). **Every line-height a multiple of the baseline, in px (not unitless) for display type** — unitless line-heights on large type push the box off the grid.
|
|
49
|
+
- Every margin/padding a multiple of the baseline. Spread top/bottom padding a multiple too, so content starts on a line.
|
|
50
|
+
- **Media heights = multiples of the leading** (e.g. 240/360/432/480px) so a photo's top AND bottom both land on lines.
|
|
51
|
+
- Hairline rules sit inside a baseline-height band, not free-floating.
|
|
52
|
+
|
|
53
|
+
### 2.5 The toggle (sizzle within the sizzle)
|
|
54
|
+
A control (button **+ `G` key**) toggles `body.grid-on`; overlay fades 0→1. Overlay draws: translucent **numbered column fields**, the **baseline** (major line every `--lh`, faint minor every `--bl`), and **margin lines**. Showing the real grid the page is built on IS the demo.
|
|
55
|
+
|
|
56
|
+
### 2.6 OPTICAL ALIGNMENT — display ink, not its box ← the subtle bug
|
|
57
|
+
A 180px headline whose layout box is exactly on line 1 still looks misaligned against body text, because the letterform's **ink** is inset by its **left side-bearing**. Cure at runtime:
|
|
58
|
+
```js
|
|
59
|
+
// after document.fonts.ready and on resize:
|
|
60
|
+
var cvs=document.createElement('canvas'),ctx=cvs.getContext('2d');
|
|
61
|
+
document.querySelectorAll('.masthead,.numeral,.shead h2,.h2b').forEach(function(el){
|
|
62
|
+
el.style.marginLeft='0px';
|
|
63
|
+
var cs=getComputedStyle(el),ch=(el.textContent||'').trim()[0]; if(!ch) return;
|
|
64
|
+
if(cs.textTransform==='uppercase') ch=ch.toUpperCase();
|
|
65
|
+
ctx.font=cs.fontStyle+' '+cs.fontWeight+' '+cs.fontSize+' '+cs.fontFamily; ctx.textAlign='left';
|
|
66
|
+
var abl=ctx.measureText(ch).actualBoundingBoxLeft; // +ve = ink overhangs left of box
|
|
67
|
+
if(isFinite(abl)) el.style.marginLeft=abl.toFixed(2)+'px'; // shift box so INK lands on the line
|
|
68
|
+
});
|
|
69
|
+
```
|
|
70
|
+
Apply to the masthead, big numerals, and section headlines. It scales with fluid type (re-runs on resize) and uses the **actually-loaded** font, so it's correct in the user's browser.
|
|
71
|
+
**CRITICAL measurement caveat:** side-bearing is **font-specific**. If you measure with the wrong font you get the wrong nudge. Headless/sandbox Chrome usually lacks the webfont, so canvas falls back to a different grotesque (measured **−16px on the fallback vs −7px on real Inter** for the same `H`). To verify optics offline you must **embed the real webfont** via `@font-face` (local TTF). In production the runtime JS measures the loaded font and is correct.
|
|
72
|
+
|
|
73
|
+
---
|
|
74
|
+
|
|
75
|
+
## PART 3 — VERIFY (don't trust, measure) → `verify_grid.js`
|
|
76
|
+
Render with headless Chrome (Puppeteer) and assert, at **several widths including > and < `--maxw`** (to catch centered-container drift, e.g. 1440 / 1180 / 900):
|
|
77
|
+
1. **Column adherence** — every placed `.band > *` left snaps to a column START and right to a column END (~0px). **Exclude the optically-aligned display elements** from this box check (their box is intentionally side-bearing-offset; they're validated in step 4). **Gotcha:** build BOTH the column-start set and the column-end set — a grid item spanning "to line N" ends at the *far* side of the gutter, so single-edge math falsely reports a one-gutter error.
|
|
78
|
+
2. **Overlay match** — each `.guides .col` rect equals the computed column rect (~0px).
|
|
79
|
+
3. **Baseline** — text tops modulo the baseline ≈ 0 (tolerance ≈ half a baseline; the box-top is a proxy — the leading does the real work).
|
|
80
|
+
4. **Optical ink** — each display element's ink-left (box − `actualBoundingBoxLeft`, real font) equals **its own** column line (nearest column-start to its box), not always line 1.
|
|
81
|
+
|
|
82
|
+
Sandbox Chrome flags that work: `--headless=new --no-sandbox --disable-gpu --disable-dbus --use-gl=angle --use-angle=swiftshader`. `file://` works for non-ES-module pages; the CLI `--screenshot` can hang on tall pages — drive via Puppeteer and screenshot per viewport. Read PNGs back with the image-capable Read tool to eyeball a **zoom crop of the top-left corner** (masthead vs body vs column line) — the fastest human check.
|
|
83
|
+
|
|
84
|
+
A clean run looks like: `col=0px overlay=0px baseline≤4px ink=0px` → `GRID VERIFY: PASS`.
|
|
85
|
+
|
|
86
|
+
---
|
|
87
|
+
|
|
88
|
+
## PART 4 — CRAFT DEFAULTS (so it looks excellent, not just aligned)
|
|
89
|
+
- **Palette:** white `#fff`, ink `#111`, one accent (Swiss red `#e4002b`). No warm-cream Claude look; no blue/purple gradients.
|
|
90
|
+
- **Type:** a real grotesque webfont (Inter / Helvetica Now / Archivo) for display + body; a **mono** (Space Mono / IBM Plex Mono) for folios, captions, grid annotations — reinforces the technical register. Non-Latin via Noto Sans JP etc.
|
|
91
|
+
- **Hierarchy** through scale + weight + white space, not color. Treat key data as **large numerals**. Kicker labels in mono caps. Per-spread folios.
|
|
92
|
+
- **Real photography.** Ground real subjects in real photos (`SearchImages`). **Host each image via `PublishFilePublicly` and embed the `pub.hyperagent.com` URL** — a `PublishWebpage` artifact runs in a sandboxed iframe that can't authenticate thread-scoped `/api/files/...` URLs (broken-image trap).
|
|
93
|
+
- **Type fidelity if you ever rasterize art** (cairosvg / headless screenshots / image-gen reference): a `Helvetica`/`Arial` CSS stack silently falls back to **Noto Sans** (reads like Calibri). Render in **Liberation Sans** or an embedded Helvetica/Arimo TTF before trusting it. (Same trap as the optical-measurement caveat: wrong font in → wrong result out.)
|
|
94
|
+
- **Spread model:** full-width sections, each its own per-spread `.grid` + `.guides`, consistent margins/folios.
|
|
95
|
+
|
|
96
|
+
---
|
|
97
|
+
|
|
98
|
+
## PART 5 — WORKFLOW
|
|
99
|
+
1. Pick the subject; gather real photos; host them publicly.
|
|
100
|
+
2. Generate the scaffold: `python3 grid_tokens.py` (or `--scaffold` for a full page; `--cols/--baseline/--gutter/--margin/--maxw/--accent` to taste; it warns if gutter/margin aren't baseline multiples).
|
|
101
|
+
3. Build spreads as **subgrid bands**; place everything by **column line**; lock spacing/line-heights/media heights to the **baseline**.
|
|
102
|
+
4. Add the overlay (same content box) + toggle + optical-alignment JS (already in the scaffold; point its selector list at your display elements).
|
|
103
|
+
5. Publish, then **verify**: `CHROME=… PUP=… node verify_grid.js <file-or-url> --widths=1440,1180,900`. Eyeball a top-left zoom crop. Fix, republish.
|
|
104
|
+
|
|
105
|
+
## SCRIPTS
|
|
106
|
+
- **`grid_tokens.py`** — deterministic scaffold generator. Emits the `:root` tokens, `.grid`/`.band` (subgrid) scaffold, `.guides` overlay CSS, toggle JS, and the optical-alignment JS — all wired to one source of truth. `--scaffold` emits a full minimal HTML page. No network/credentials.
|
|
107
|
+
- **`verify_grid.js`** — Puppeteer harness implementing all four checks above with the corrected both-edges column math, the optical-exclusion, per-element column-line ink targeting, and PASS/FAIL output at multiple widths. Env: `CHROME` (chrome binary), `PUP` (puppeteer-core module path).
|
|
108
|
+
|
|
109
|
+
## CREED
|
|
110
|
+
A grid you can't toggle on and measure is a mood board, not a system. Build it from one source of truth, prove it at 0px, and align the **ink**.
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: assess-impact
|
|
3
|
+
model: sonnet
|
|
4
|
+
description: "Analyze the blast radius of a proposed change before any code is written. Maps dependents, affected stories, and test coverage. Produces specs/IMPACT_LATEST.md. Use before plan-work on any non-trivial change, when touching a shared module, or when the user asks \"what does this break?\"."
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Assess Impact
|
|
8
|
+
|
|
9
|
+
> **HARD GATE** — Run this skill before `plan-work` whenever a change touches an existing module, symbol, or file used by more than one caller. Skip only for net-new code with no existing dependents.
|
|
10
|
+
|
|
11
|
+
Find the blast radius of the proposed change before a single line is written.
|
|
12
|
+
|
|
13
|
+
## Modes
|
|
14
|
+
|
|
15
|
+
- Default: full impact analysis (dependents + affected stories + test coverage mapping)
|
|
16
|
+
- --lightweight: Fast fan-in/fan-out only (<10s). Maps callers and imports without test coverage mapping. Used by build-epic step 2 as a pre-plan gate. Risk score > 7 triggers a mandatory grill-me session before proceeding.
|
|
17
|
+
|
|
18
|
+
## Process
|
|
19
|
+
|
|
20
|
+
### 1. Identify the target
|
|
21
|
+
|
|
22
|
+
Name the symbol, module, or file being changed. If the user hasn't specified, ask one question: "What exactly are you changing?"
|
|
23
|
+
|
|
24
|
+
### 2. Find dependents
|
|
25
|
+
|
|
26
|
+
```
|
|
27
|
+
grep -rn "[symbol-name]" . --include="*.ts" | grep -v node_modules
|
|
28
|
+
git log --oneline -10 -- [file-path]
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
→ verify: `grep -rn "[target]" . | wc -l`
|
|
32
|
+
|
|
33
|
+
### 3. Map to release plan stories
|
|
34
|
+
|
|
35
|
+
Read `specs/release-plan.yaml + epic capsule directories` (if it exists). For each dependent found in Step 2, identify which story owns that module. List stories that will be affected by the change.
|
|
36
|
+
|
|
37
|
+
→ verify: `grep -c "Story" specs/release-plan.yaml + epic capsule directories 2>/dev/null || echo "no release plan"`
|
|
38
|
+
|
|
39
|
+
### 4. List test coverage
|
|
40
|
+
|
|
41
|
+
Find tests that exercise the target:
|
|
42
|
+
|
|
43
|
+
```
|
|
44
|
+
grep -rn "[symbol-name]" . --include="*.test.*" --include="*.spec.*"
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
→ verify: `grep -rn "[target]" . --include="*.test.*" | wc -l`
|
|
48
|
+
|
|
49
|
+
### 5. Classify risk
|
|
50
|
+
|
|
51
|
+
| Level | Condition |
|
|
52
|
+
|-------|-----------|
|
|
53
|
+
| Low | ≤ 2 callers, all covered by tests |
|
|
54
|
+
| Medium | 3–10 callers, partial test coverage |
|
|
55
|
+
| High | > 10 callers, or shared API/interface, or no tests |
|
|
56
|
+
|
|
57
|
+
### 6. Write specs/IMPACT_LATEST.md
|
|
58
|
+
|
|
59
|
+
```
|
|
60
|
+
## Target
|
|
61
|
+
[symbol or file being changed]
|
|
62
|
+
|
|
63
|
+
## Dependents ([count])
|
|
64
|
+
- [file]: [caller or usage]
|
|
65
|
+
|
|
66
|
+
## Affected Stories
|
|
67
|
+
- Story [X.Y]: [title]
|
|
68
|
+
|
|
69
|
+
## Test Coverage
|
|
70
|
+
- [test file]: covers [scenario]
|
|
71
|
+
- Gap: [untested behavior]
|
|
72
|
+
|
|
73
|
+
## Risk: Low / Medium / High
|
|
74
|
+
[One-sentence rationale]
|
|
75
|
+
|
|
76
|
+
## Recommended action
|
|
77
|
+
[Proceed / Add tests first / Discuss design]
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
→ verify: `grep "Risk:" specs/IMPACT_LATEST.md`
|
|
81
|
+
|
|
82
|
+
Suggest `plan-work` once risk is understood and any test gaps are noted.
|
|
83
|
+
|
|
84
|
+
## Risk score gating
|
|
85
|
+
|
|
86
|
+
In `--lightweight` mode (used by build-epic step 2), assign a numeric risk score (1–10):
|
|
87
|
+
- Fan-in (how many callers): 0–4 points
|
|
88
|
+
- Fan-out (how many dependencies the module itself uses): 0–3 points
|
|
89
|
+
- Recent churn (git log --oneline -5 count): 0–3 points
|
|
90
|
+
|
|
91
|
+
**Risk score > 7**: Gate — require a `grill-me` session before proceeding to implementation. Document the grill-me result in the impact report at `specs/IMPACT-<epic>-<story>.md`.
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: audit-code
|
|
3
|
+
model: haiku
|
|
4
|
+
description: "Self-review checklist for the coding agent to run before dispatching a reviewer. Checks CONVENTIONS.md compliance, Boy Scout Rule, test coverage, types, and SOLID. Produces a pass/fail checklist. Use before request-review, before committing, or when user asks for a code quality check."
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Audit Code
|
|
8
|
+
> **HARD GATE** — **HARD GATE** — Audit must check for: bugs (correctness), security, performance, and clarity. Do NOT skip security review if the code touches user data, auth, or external APIs.
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
Run this self-review before asking anyone else to look at the code. The goal is to catch everything that is clearly wrong or missing — so the reviewer can focus on design and architecture, not hygiene.
|
|
12
|
+
|
|
13
|
+
**Distinct from `request-review`:** This is the coding agent checking its own work. No second agent is involved. Run this first; run `request-review` after this passes.
|
|
14
|
+
|
|
15
|
+
## Look-here-first (churn heuristic)
|
|
16
|
+
|
|
17
|
+
Before the checklist, rank changed files by git churn and review **high-churn hotspots first** — they carry the most latent risk regardless of diff size.
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
bash scripts/bp-churn-rank.sh --since 90.days --limit 15
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Apply the full checklist to churn-ranked files in descending order. Files with zero recent commits but large diffs still get reviewed; churn only sets priority, not scope.
|
|
24
|
+
|
|
25
|
+
## Modes
|
|
26
|
+
|
|
27
|
+
- Default: full checklist
|
|
28
|
+
- --quick: Run only Supply Chain and Test Coverage. Use for changes under 50 LOC.
|
|
29
|
+
- --gate: Non-interactive mode for automated CI gating (used by build-epic step 6). Exit with non-zero status code (`exit 1`) on ANY checklist failure; `exit 0` only if ALL items pass. Produces a compact pass/fail summary to stderr. On failure, list every ✗ item with reason.
|
|
30
|
+
- --parallel: Run checklist sections in **isolated git worktrees** (e45s18) so concurrent checks cannot corrupt each other's working tree:
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
bash scripts/lib/parallel-review-worktrees.sh audit-code
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
## Checklist
|
|
38
|
+
|
|
39
|
+
### Supply Chain & Security
|
|
40
|
+
|
|
41
|
+
- [ ] slopcheck run for new dependencies; packages tagged in plan-work: `[OK]`, `[SUS]`, or `[SLOP]`
|
|
42
|
+
- [ ] No `[SLOP]` packages without documented human approval
|
|
43
|
+
- [ ] No secrets in diff (`sk-`, `ghp_`, `AKIA`, `.env` values) — see `guard-git` patterns
|
|
44
|
+
- [ ] OWASP Top 10 spot-check: injection, broken auth, sensitive data exposure, misconfiguration (see `docs/references/security-threats.md`)
|
|
45
|
+
- [ ] Security: diff scanned — no unaddressed HIGH findings (or deviations documented in `specs/security/EXCEPTIONS.md`)
|
|
46
|
+
|
|
47
|
+
### Provenance & Metadata
|
|
48
|
+
|
|
49
|
+
- [ ] New plan artefacts include `type:` and `context:` metadata
|
|
50
|
+
- [ ] Implementation steps reference ADR or commit SHA where decisions were made
|
|
51
|
+
|
|
52
|
+
### Law of Demeter
|
|
53
|
+
|
|
54
|
+
- [ ] No method chains through unrelated objects (e.g. `a.getB().getC().doX()`)
|
|
55
|
+
- [ ] Collaborators talk to immediate neighbors only; law violations need explicit justification
|
|
56
|
+
|
|
57
|
+
### CONVENTIONS.md Compliance
|
|
58
|
+
|
|
59
|
+
- [ ] All output files are in `specs/` (no docs written to project root)
|
|
60
|
+
- [ ] No `gh issue create` calls anywhere in new/modified skills or scripts
|
|
61
|
+
- [ ] `gh` used only for PRs and repo clone operations
|
|
62
|
+
- [ ] No GitHub REST API called directly (no curl/fetch to api.github.com)
|
|
63
|
+
|
|
64
|
+
### Scope
|
|
65
|
+
|
|
66
|
+
- [ ] Changes are limited to what was asked — nothing extra refactored or reorganized
|
|
67
|
+
- [ ] No speculative features added
|
|
68
|
+
- [ ] No files touched outside the stated scope
|
|
69
|
+
- [ ] **Discovered defects:** Reproducible gate failures (Preflight, CI, golden suite) require fix-or-log — `quick-fix` or `fix-bug` — even when "outside" the story scope. Scope-minimization does not waive Always Green.
|
|
70
|
+
- [ ] Boy Scout Rule applies to files opened to fix a gate failure; it does not excuse skipping red Preflight
|
|
71
|
+
|
|
72
|
+
### Boy Scout Rule
|
|
73
|
+
|
|
74
|
+
- [ ] Every file I touched is cleaner than when I found it
|
|
75
|
+
- [ ] No dead code left behind
|
|
76
|
+
- [ ] No commented-out code blocks
|
|
77
|
+
|
|
78
|
+
### Types and Safety
|
|
79
|
+
|
|
80
|
+
- [ ] No `any` types introduced (TypeScript) or untyped public functions (Python/Go/etc.)
|
|
81
|
+
- [ ] No `@ts-ignore` or `// eslint-disable` added
|
|
82
|
+
- [ ] No `as unknown as X` casts that bypass type safety
|
|
83
|
+
|
|
84
|
+
### Test Coverage
|
|
85
|
+
|
|
86
|
+
- [ ] Every new function has at least one test
|
|
87
|
+
- [ ] Every bug fix has a regression test
|
|
88
|
+
- [ ] Tests verify behavior through public interfaces (not implementation details)
|
|
89
|
+
- [ ] Tests are F.I.R.S.T compliant (per CONVENTIONS.md §Tests; use `enforce-first` if unsure)
|
|
90
|
+
|
|
91
|
+
### SOLID and Heuristics
|
|
92
|
+
|
|
93
|
+
- [ ] Single Responsibility: no function or module doing two unrelated things
|
|
94
|
+
- [ ] Open/Closed: extended through interfaces, not by modifying stable code
|
|
95
|
+
- [ ] Dependency Inversion: dependencies injected, not imported globally where avoidable
|
|
96
|
+
- [ ] **Chapter 17 Heuristics**: Code is free of smells documented in `audit-code/HEURISTICS.md` (G, N, C, T)
|
|
97
|
+
|
|
98
|
+
### Code Style (CONVENTIONS.md)
|
|
99
|
+
|
|
100
|
+
- [ ] Functions: 4–20 lines; split if longer
|
|
101
|
+
- [ ] Functions: descend exactly one level of abstraction (The Stepdown Rule / G34)
|
|
102
|
+
- [ ] Files: under 300 lines (ideally 200–300)
|
|
103
|
+
- [ ] Names: specific and unique (grep returns < 5 hits for each name)
|
|
104
|
+
- [ ] No duplication — shared logic extracted (DRY / G5)
|
|
105
|
+
- [ ] Early returns over nested ifs; max 2 levels of indentation
|
|
106
|
+
- [ ] Conditionals: expressed as positives (G29)
|
|
107
|
+
- [ ] Comments explain WHY, not WHAT
|
|
108
|
+
|
|
109
|
+
### Agent Readability (Akita's Lens)
|
|
110
|
+
|
|
111
|
+
- [ ] Functions are small enough to fit in a standard context window (4–20 lines)
|
|
112
|
+
- [ ] Names are unique and specific enough to be `grep`-able (grep returns < 5 hits)
|
|
113
|
+
- [ ] Types are explicit (no `any`, no inferred return types for public APIs)
|
|
114
|
+
- [ ] Code avoids deep nesting (max 2 levels) and uses early returns
|
|
115
|
+
|
|
116
|
+
### Red Flags
|
|
117
|
+
|
|
118
|
+
Before reporting, name any rationalization you caught yourself making for skipping a checklist item. Silence is not acceptable — if you skipped an item, state the reason explicitly.
|
|
119
|
+
|
|
120
|
+
## Output
|
|
121
|
+
|
|
122
|
+
Report the checklist with ✓ / ✗ per item. For each ✗, describe what needs to be fixed.
|
|
123
|
+
|
|
124
|
+
If all items pass: suggest running `request-review` for an independent second opinion.
|
|
125
|
+
If any items fail: fix them before proceeding.
|
|
126
|
+
|
|
127
|
+
In `--gate` mode, print one summary line per checklist section (`PASS Supply Chain` / `FAIL Provenance (2 items)`). Exit `0` only if all PASS. Write full report to `specs/verifications/AUDIT-<epic>-<story>.md`.
|
|
128
|
+
|
|
129
|
+
## Verify
|
|
130
|
+
|
|
131
|
+
→ verify: `test -f CONVENTIONS.md && test -d skills/enforce-first && test -d skills/request-review && echo "OK: audit-code dependencies present" || echo "FAIL"`
|
|
132
|
+
|
|
133
|
+
## Handoff
|
|
134
|
+
|
|
135
|
+
Gate: READY -> next: commit-message
|
|
136
|
+
Writes: state.yaml handoff.next_skill = commit-message
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
<!-- story: e01s02 -->
|
|
140
|
+
<!-- story: e06s03 -->
|
|
141
|
+
<!-- story: e07s01 -->
|
|
142
|
+
|
|
143
|
+
---
|
|
144
|
+
|
|
145
|
+
# Clean Code Heuristics (Chapter 17)
|
|
146
|
+
|
|
147
|
+
A summary of Robert C. Martin's catalogue of code smells and heuristics, used as the technical benchmark for `audit-code`.
|
|
148
|
+
|
|
149
|
+
## Comments (C)
|
|
150
|
+
- **C1: Inappropriate Information**: Comments should only hold technical notes. Metadata (author, change history) belongs in Git.
|
|
151
|
+
- **C2: Obsolete Comment**: Update or delete comments that are no longer accurate.
|
|
152
|
+
- **C3: Redundant Comment**: Don't describe code that adequately describes itself (e.g., `i++; // increment i`).
|
|
153
|
+
- **C4: Poorly Written Comment**: If you write a comment, spend time making it the best it can be.
|
|
154
|
+
- **C5: Commented-Out Code**: Delete it. Git remembers it.
|
|
155
|
+
|
|
156
|
+
## Environment (E)
|
|
157
|
+
- **E1: Build Requires More Than One Step**: Building should be a single trivial operation (e.g., `bash install.sh`).
|
|
158
|
+
- **E2: Tests Require More Than One Step**: Running all tests should be one simple command (e.g., `npm test`).
|
|
159
|
+
|
|
160
|
+
## Functions (F)
|
|
161
|
+
- **F1: Too Many Arguments**: 0 is ideal, 1-2 is fine, 3 requires special justification. Never > 3.
|
|
162
|
+
- **F2: Output Arguments**: Avoid them. If a function changes state, it should change the state of its owning object.
|
|
163
|
+
- **F3: Flag Arguments**: Boolean arguments are a smell that the function does > 1 thing.
|
|
164
|
+
- **F4: Dead Function**: Discard methods that are never called.
|
|
165
|
+
|
|
166
|
+
## General (G)
|
|
167
|
+
- **G1: Multiple Languages in One Source File**: Try to minimize the mixing of languages (e.g., HTML inside Java).
|
|
168
|
+
- **G5: Duplication (DRY)**: **The root of all evil.** Every time you see duplication, it's a missed opportunity for abstraction.
|
|
169
|
+
- **G6: Code at Wrong Level of Abstraction**: High-level concepts in base classes; low-level details in derivatives.
|
|
170
|
+
- **G25: Replace Magic Numbers with Named Constants**: No "naked" numbers or strings.
|
|
171
|
+
- **G28: Encapsulate Conditionals**: Prefer `if (shouldBePublished())` over complex boolean logic.
|
|
172
|
+
- **G29: Avoid Negative Conditionals**: Prefer `if (buffer.shouldCompact())` over `if (!buffer.shouldNotCompact())`.
|
|
173
|
+
- **G30: Functions Should Do One Thing**: If a function can be split into sections, it's doing too much.
|
|
174
|
+
- **G31: Hidden Temporal Couplings**: If execution order matters, make the dependency explicit via arguments.
|
|
175
|
+
- **G34: Functions Should Descend Only One Level of Abstraction**: The Stepdown Rule.
|
|
176
|
+
|
|
177
|
+
## Naming (N)
|
|
178
|
+
- **N1: Choose Descriptive Names**: Names should reveal intent and be updated as code evolves.
|
|
179
|
+
- **N4: Unambiguous Names**: Names should make the working of a function/variable clear.
|
|
180
|
+
- **N7: Names Should Describe Side-Effects**: Describe everything the function is or does.
|
|
181
|
+
|
|
182
|
+
## Tests (T)
|
|
183
|
+
- **T1: Insufficient Tests**: A test suite should test everything that could possibly break.
|
|
184
|
+
- **T4: An Ignored Test Is a Question about an Ambiguity**: Document the reason for `@Ignore`.
|
|
185
|
+
- **T5: Test Boundary Conditions**: Most bugs happen at the boundaries; test them exhaustively.
|
|
186
|
+
- **T8: Test Coverage Patterns Can Be Revealing**: Analyze what code is *not* executed to find gaps.
|
|
187
|
+
- **T9: Tests Should Be Fast**: Slow tests don't get run.
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: audit-plan
|
|
3
|
+
model: sonnet
|
|
4
|
+
description: "Evaluate an incoming project plan against bigpowers principles and conventions, surface gaps, and produce a READY/NOT READY verdict before engagement begins. Use when a new project arrives, when adapting a foreign plan, or before running seed-conventions on an unfamiliar codebase."
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Audit Plan
|
|
8
|
+
|
|
9
|
+
> **HARD GATE** — Do NOT start build skills (kickoff-branch, develop-tdd) until audit-plan returns a READY verdict. A plan missing test commands, scope boundaries, or success criteria will produce drift and rework downstream.
|
|
10
|
+
|
|
11
|
+
Assess an incoming project plan for alignment with bigpowers principles, identify what's missing, and produce a structured readiness report before any skill execution begins.
|
|
12
|
+
|
|
13
|
+
## Three lenses
|
|
14
|
+
|
|
15
|
+
### 1. Principles alignment
|
|
16
|
+
- Are stories vertical slices (not horizontal layers)?
|
|
17
|
+
- Is scope bounded — explicit in_scope + out_of_scope?
|
|
18
|
+
- Are success criteria defined (how do we know we're done)?
|
|
19
|
+
- Are HARD GATE candidates identifiable (critical decision points)?
|
|
20
|
+
- Is there a domain language / ubiquitous terminology?
|
|
21
|
+
|
|
22
|
+
### 2. Conventions completeness
|
|
23
|
+
- Does `CLAUDE.md` or `AGENTS.md` exist?
|
|
24
|
+
- Does `CONVENTIONS.md` exist?
|
|
25
|
+
- Is the `specs/` directory layout in place?
|
|
26
|
+
- Are commit conventions documented (Conventional Commits)?
|
|
27
|
+
- Is the git workflow mode identified (`solo-git` | `team-pr`)?
|
|
28
|
+
|
|
29
|
+
### 3. Bigpowers pre-flight (must all be answered before build)
|
|
30
|
+
| Question | Why |
|
|
31
|
+
|----------|-----|
|
|
32
|
+
| What is the **test command**? | `develop-tdd` verify steps require it |
|
|
33
|
+
| What is the **build command**? | `verify-work` mechanical gate |
|
|
34
|
+
| What is the **lint command**? | `audit-code` lint gate |
|
|
35
|
+
| What is the **typecheck command**? | `verify-work` typecheck gate |
|
|
36
|
+
| What **CI platform** is in use? | `wire-ci` configuration |
|
|
37
|
+
| **Solo or team**? | `release-branch` integration mode |
|
|
38
|
+
| Primary **language + framework**? | model routing + conventions |
|
|
39
|
+
| **Greenfield or existing** codebase? | determines whether to run `seed-conventions` or `migrate-spec` first |
|
|
40
|
+
|
|
41
|
+
## Process
|
|
42
|
+
|
|
43
|
+
1. **Ingest the plan** — accept a file path, pasted PRD text, or existing `specs/` artifacts. Read `CLAUDE.md` and `CONVENTIONS.md` if present.
|
|
44
|
+
|
|
45
|
+
2. **Score each lens** — for every item above, mark:
|
|
46
|
+
- ✅ Present and adequate
|
|
47
|
+
- ⚠️ Present but incomplete — note what's missing
|
|
48
|
+
- ❌ Absent
|
|
49
|
+
|
|
50
|
+
3. **Close gaps conversationally** — for each ❌ or ⚠️, ask one question at a time. Record each answer before moving to the next.
|
|
51
|
+
|
|
52
|
+
4. **Write `specs/PLAN-AUDIT_LATEST.md`**:
|
|
53
|
+
|
|
54
|
+
```markdown
|
|
55
|
+
# Plan Audit — <project>
|
|
56
|
+
**Date:** YYYY-MM-DD · **Verdict:** READY | NOT READY
|
|
57
|
+
|
|
58
|
+
## Principles Alignment
|
|
59
|
+
| Check | Status | Note |
|
|
60
|
+
| Vertical slices | ✅ | 4 stories, each shippable |
|
|
61
|
+
| Scope bounded | ⚠️ | in_scope present; out_of_scope missing |
|
|
62
|
+
|
|
63
|
+
## Conventions Completeness
|
|
64
|
+
| Check | Status | Note |
|
|
65
|
+
|
|
66
|
+
## Pre-flight Answers
|
|
67
|
+
| Command | Value |
|
|
68
|
+
| test | `npm test` |
|
|
69
|
+
| build | `npm run build` |
|
|
70
|
+
|
|
71
|
+
## Open Gaps
|
|
72
|
+
- [ ] Add out_of_scope to scope definition (run scope-work)
|
|
73
|
+
- [ ] Create CLAUDE.md (run seed-conventions)
|
|
74
|
+
|
|
75
|
+
## Verdict
|
|
76
|
+
READY — proceed with survey-context
|
|
77
|
+
NOT READY — N gaps remain; close before proceeding
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
5. **Recommend next skill**:
|
|
81
|
+
- READY → `survey-context`
|
|
82
|
+
- Needs bootstrapping → `seed-conventions`
|
|
83
|
+
- Needs spec elaboration → `elaborate-spec`
|
|
84
|
+
- Has foreign spec format → `migrate-spec`
|
|
85
|
+
- Plan assumptions need challenging → `grill-me`
|
|
86
|
+
|
|
87
|
+
## Verify
|
|
88
|
+
|
|
89
|
+
→ verify: `test -f specs/PLAN-AUDIT_LATEST.md && grep -q 'Verdict' specs/PLAN-AUDIT_LATEST.md && echo OK || echo FAIL`
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: build-epic
|
|
3
|
+
model: sonnet
|
|
4
|
+
description: "Eight-step epic build cycle — reads state.yaml, execution-status.yaml, and one epic capsule; updates status via bp-yaml-set or direct edit. Resume mode runs one step per invocation. Use instead of ad-hoc execute-plan for release work."
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# story: e20s05
|
|
8
|
+
|
|
9
|
+
# Build Epic
|
|
10
|
+
|
|
11
|
+
Scope: one story. Called by orchestrate-project Phase 4. Not a replacement for orchestrate-project.
|
|
12
|
+
|
|
13
|
+
Orchestrates the **build** flow for a single epic: survey → plan tasks → kickoff → TDD → verify → audit → commit → release.
|
|
14
|
+
|
|
15
|
+
> **HARD GATE** — Set `specs/state.yaml` `active_flow: build_epic` and `active_epic: eNN` before starting.
|
|
16
|
+
>
|
|
17
|
+
> **HARD GATE** — Not on `main`/`master` before step 3 (kickoff-branch).
|
|
18
|
+
|
|
19
|
+
## Nine steps (`epic_cycle` in state.yaml)
|
|
20
|
+
|
|
21
|
+
| Step | Skill / action |
|
|
22
|
+
|------|----------------|
|
|
23
|
+
| 0 | `security-review` — threat-model epic scope → `specs/security/epics/<id>/THREAT_MODEL.md` |
|
|
24
|
+
| 1 | `survey-context` — confirm epic + story |
|
|
25
|
+
| 2 | `plan-work` — flesh out story `tasks[]` in `specs/epics/eNN-slug/epic.yaml` |
|
|
26
|
+
| 3 | `kickoff-branch` — feature branch + clean baseline |
|
|
27
|
+
| 4 | `develop-tdd` — red-green per task |
|
|
28
|
+
| 5 | `verify-work` — UAT + mechanical gates |
|
|
29
|
+
| 6 | `audit-code` — **non-optional gate** (pass/fail; fail → loop back to step 4) |
|
|
30
|
+
| 7 | `commit-message` — Conventional Commits draft |
|
|
31
|
+
| 8 | `release-branch` — PR or solo land (supports `--squash-state`) | |
|
|
32
|
+
|
|
33
|
+
## Process
|
|
34
|
+
|
|
35
|
+
1. Read `specs/state.yaml`, `specs/execution-status.yaml`, `specs/release-plan.yaml`, active `specs/epics/eNN-slug/epic.yaml`.
|
|
36
|
+
- **On story start (step 1):** Write `started_at` ISO 8601 timestamp to `execution-status.yaml` under the story's key in the `stories:` section. The `bp-timing.sh` script already tracks skill-level timings — this is story-level.
|
|
37
|
+
2. **Step 0 — Threat Model:** Run `security-review` against the epic's scope (read from the epic capsule). Output `specs/security/epics/<epic-id>/THREAT_MODEL.md` with surface area, vulnerability categories, risk level, and mitigation guidance.
|
|
38
|
+
3. **Assess Impact (Step 2):** Before writing tasks, run `assess-impact --lightweight` on the proposed change. If the risk score exceeds 7, gate — require a `grill-me` session. Write the impact report to `specs/IMPACT-<epic>-<story>.md`. For net-new code with no existing dependents, skip.
|
|
39
|
+
4. **BCP Tracking (Step 2):** After `plan-work` completes, read the `bcps:` count (Business Complexity Points story size) from the epic capsule and carry it into `state.yaml` as `epic_cycle.story_bcps = N`.
|
|
40
|
+
5. **BCP Plus (Step 2, optional):** When the epic capsule carries a `bcp_plus_breakdown` (13-dimension sizing), also carry it into `state.yaml` as `epic_cycle.bcp_plus`. The breakdown maps each of the 13 dimensions to an integer count. NFR dimensions (11–13) that are N/A per the NFR Gate may be set to 0.
|
|
41
|
+
6. If `epic_cycle.step` missing, set to `1`.
|
|
42
|
+
6. Run **only the current step** (resume mode) unless user asked for full auto-run.
|
|
43
|
+
7. After step verify passes, increment `epic_cycle.step` in `state.yaml` (or `bash scripts/bp-yaml-set.sh` if available).
|
|
44
|
+
8. On story complete, set `execution-status.yaml` story key to `done`; run `bash scripts/sync-status-from-epics.sh`.
|
|
45
|
+
- **On story complete (step 8):** Write `completed_at` ISO 8601 timestamp to `execution-status.yaml` under the same story key. Format:
|
|
46
|
+
|
|
47
|
+
```yaml
|
|
48
|
+
stories:
|
|
49
|
+
e01s01:
|
|
50
|
+
status: done
|
|
51
|
+
started_at: "2026-07-12T16:00:00-03:00"
|
|
52
|
+
completed_at: "2026-07-12T18:45:00-03:00"
|
|
53
|
+
```
|
|
54
|
+
9. **Traceability refresh:** Before step 8 (release-branch), run `bash scripts/trace-stories.sh` to regenerate `specs/traceability-matrix.json`, `specs/TRACEABILITY_LATEST.md`, and the `specs/codebase-wiki/` OKF bundle. Surface dark/orphan/stale findings for the just-built epic in your verify summary. If `scripts/trace-stories.sh` is missing or fails, note "trace skipped" and continue — trace failure must be visible, not silent (blocking is gate-trace's job, e38s06).
|
|
55
|
+
|
|
56
|
+
9b. **OKF wiki refresh (e39s08):** Before step 8, run maintain-wiki INGEST to refresh the OKF wiki bundle:
|
|
57
|
+
```bash
|
|
58
|
+
bash scripts/decompose-conventions.sh
|
|
59
|
+
bash scripts/generate-agent-guide.sh
|
|
60
|
+
```
|
|
61
|
+
If any script is missing or fails, note "OKF wiki refresh skipped" and continue.
|
|
62
|
+
This is non-blocking — stale concepts are caught by LINT in verify-work Phase 3.
|
|
63
|
+
|
|
64
|
+
### Step 6 — audit-code gate (non-optional)
|
|
65
|
+
|
|
66
|
+
After step 5 (verify-work) completes successfully, step 6 runs `audit-code` automatically in `--gate` mode:
|
|
67
|
+
|
|
68
|
+
1. **Run audit:** Invoke `audit-code --gate` on the complete diff for this story.
|
|
69
|
+
2. **Pass (exit 0):** All checklist sections pass → advance to step 7 (commit-message). Record `epic_cycle.audit_result: pass` in `state.yaml`.
|
|
70
|
+
3. **Fail (exit 1):** One or more checklist sections fail → **reset `epic_cycle.current_step` to `4`** (develop-tdd) and add the failing section IDs to `completed_steps` as `"1,2,3,4,5,6(fail: ...)"`. Record `epic_cycle.audit_result: fail` in `state.yaml`. Do NOT advance past step 6 until audit passes.
|
|
71
|
+
4. **Audit artifact:** Full audit report saved to `specs/verifications/AUDIT-<epic>-<story>.md` regardless of pass/fail, for reviewer traceability.
|
|
72
|
+
5. **Enforce F.I.R.S.T:** After audit-code passes, run `enforce-first --quick` on new/modified tests. Append F.I.R.S.T violations (if any) to the audit report. Failing F.I.R.S.T criteria trigger the same loop-back to step 4.
|
|
73
|
+
|
|
74
|
+
## --fast mode
|
|
75
|
+
|
|
76
|
+
Coalesces read-and-report steps to reduce token overhead. Activate with `build-epic --fast`.
|
|
77
|
+
|
|
78
|
+
| Normal | --fast | Change |
|
|
79
|
+
|--------|--------|--------|
|
|
80
|
+
| Step 1 (survey-context) | 1+2 together | survey + plan in one invocation |
|
|
81
|
+
| Step 2 (plan-work) | (absorbed into 1) | — |
|
|
82
|
+
| Step 3 (kickoff-branch) | Step 2 | unchanged, sequential |
|
|
83
|
+
| Step 4 (develop-tdd) | Step 3 | unchanged, sequential |
|
|
84
|
+
| Step 5 (verify-work) | Step 4 | unchanged, sequential |
|
|
85
|
+
| Step 6 (audit-code) | 5+6 together | audit + commit-message in one invocation |
|
|
86
|
+
| Step 7 (commit-message) | (absorbed into 6) | — |
|
|
87
|
+
| Step 8 (release-branch) | Step 7 | unchanged, sequential |
|
|
88
|
+
|
|
89
|
+
**Total invocations:** 8 → 6 per story.
|
|
90
|
+
|
|
91
|
+
**Rules:**
|
|
92
|
+
- Steps 3/4/5/8 (kickoff, develop, verify, release) still run sequentially — they require user interaction or branch state.
|
|
93
|
+
- `--fast` does NOT skip any checklist items; it only coalesces steps that are pure read-and-report.
|
|
94
|
+
- Record `epic_cycle.fast_mode: true` in `state.yaml` when this flag is active.
|
|
95
|
+
|
|
96
|
+
## Handoff
|
|
97
|
+
|
|
98
|
+
Write `handoff.next_skill` and `handoff.context` in `state.yaml` when pausing mid-epic.
|
|
99
|
+
|
|
100
|
+
## Verify
|
|
101
|
+
|
|
102
|
+
→ verify: `test -f specs/state.yaml && test -f specs/execution-status.yaml && test -f specs/release-plan.yaml && test -d skills/assess-impact && test -d skills/audit-code && test -d skills/security-review && echo "OK: build-epic dependencies present" || echo "FAIL"`
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
<!-- story: e38s02 -->
|