bigpowers 2.87.4 → 2.87.5
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/.cursor/rules/align-grid.mdc +109 -0
- package/.cursor/rules/assess-impact.mdc +90 -0
- package/.cursor/rules/audit-code.mdc +183 -0
- package/.cursor/rules/audit-plan.mdc +88 -0
- package/.cursor/rules/build-epic.mdc +104 -0
- package/.cursor/rules/change-request.mdc +120 -0
- package/.cursor/rules/commit-message.mdc +139 -0
- package/.cursor/rules/compose-workflow.mdc +81 -0
- package/.cursor/rules/context7-mcp.mdc +54 -0
- package/.cursor/rules/craft-skill.mdc +195 -0
- package/.cursor/rules/deepen-architecture.mdc +259 -0
- package/.cursor/rules/define-language.mdc +79 -0
- package/.cursor/rules/define-success.mdc +11 -0
- package/.cursor/rules/delegate-task.mdc +90 -0
- package/.cursor/rules/deploy.mdc +197 -0
- package/.cursor/rules/design-interface.mdc +96 -0
- package/.cursor/rules/develop-tdd.mdc +415 -0
- package/.cursor/rules/diagnose-root.mdc +23 -0
- package/.cursor/rules/diagnose-stall.mdc +53 -0
- package/.cursor/rules/dispatch-agents.mdc +117 -0
- package/.cursor/rules/edit-document.mdc +22 -0
- package/.cursor/rules/elaborate-spec.mdc +100 -0
- package/.cursor/rules/enforce-first.mdc +44 -0
- package/.cursor/rules/evolve-skill.mdc +54 -0
- package/.cursor/rules/execute-plan.mdc +60 -0
- package/.cursor/rules/extract-design.mdc +131 -0
- package/.cursor/rules/find-way.mdc +190 -0
- package/.cursor/rules/fix-bug.mdc +66 -0
- package/.cursor/rules/gate-trace.mdc +91 -0
- package/.cursor/rules/generate-allure-report.mdc +284 -0
- package/.cursor/rules/grill-me.mdc +107 -0
- package/.cursor/rules/grill-with-docs.mdc +52 -0
- package/.cursor/rules/guard-git.mdc +230 -0
- package/.cursor/rules/harden-vps.mdc +290 -0
- package/.cursor/rules/hook-commits.mdc +93 -0
- package/.cursor/rules/inspect-quality.mdc +105 -0
- package/.cursor/rules/investigate-bug.mdc +126 -0
- package/.cursor/rules/kickoff-branch.mdc +142 -0
- package/.cursor/rules/maintain-wiki.mdc +63 -0
- package/.cursor/rules/map-codebase.mdc +70 -0
- package/.cursor/rules/migrate-spec.mdc +907 -0
- package/.cursor/rules/model-domain.mdc +231 -0
- package/.cursor/rules/orchestrate-project.mdc +173 -0
- package/.cursor/rules/organize-workspace.mdc +163 -0
- package/.cursor/rules/plan-refactor.mdc +86 -0
- package/.cursor/rules/plan-release.mdc +144 -0
- package/.cursor/rules/plan-tests.mdc +74 -0
- package/.cursor/rules/plan-work.mdc +271 -0
- package/.cursor/rules/publish-package.mdc +337 -0
- package/.cursor/rules/quick-fix.mdc +113 -0
- package/.cursor/rules/release-branch.mdc +301 -0
- package/.cursor/rules/request-review.mdc +112 -0
- package/.cursor/rules/research-first.mdc +86 -0
- package/.cursor/rules/reset-baseline.mdc +20 -0
- package/.cursor/rules/respond-review.mdc +70 -0
- package/.cursor/rules/run-benchmark.mdc +84 -0
- package/.cursor/rules/run-evals.mdc +79 -0
- package/.cursor/rules/run-planning.mdc +100 -0
- package/.cursor/rules/scope-work.mdc +62 -0
- package/.cursor/rules/search-skills.mdc +72 -0
- package/.cursor/rules/security-review.mdc +383 -0
- package/.cursor/rules/seed-conventions.mdc +311 -0
- package/.cursor/rules/session-state.mdc +145 -0
- package/.cursor/rules/setup-environment.mdc +38 -0
- package/.cursor/rules/simple-english.mdc +345 -0
- package/.cursor/rules/simulate-agents.mdc +25 -0
- package/.cursor/rules/slice-tasks.mdc +67 -0
- package/.cursor/rules/smoke-test.mdc +260 -0
- package/.cursor/rules/spike-prototype.mdc +94 -0
- package/.cursor/rules/stocktake-skills.mdc +73 -0
- package/.cursor/rules/survey-context.mdc +134 -0
- package/.cursor/rules/terse-mode.mdc +41 -0
- package/.cursor/rules/trace-requirement.mdc +68 -0
- package/.cursor/rules/using-bigpowers.mdc +110 -0
- package/.cursor/rules/validate-contracts.mdc +285 -0
- package/.cursor/rules/validate-fix.mdc +146 -0
- package/.cursor/rules/verify-work.mdc +190 -0
- package/.cursor/rules/visual-dashboard.mdc +49 -0
- package/.cursor/rules/wire-ci.mdc +380 -0
- package/.cursor/rules/wire-observability.mdc +96 -0
- package/.cursor/rules/write-document.mdc +280 -0
- package/.gemini/extensions/bigpowers/commands/prompts/align-grid.md +109 -0
- package/.gemini/extensions/bigpowers/commands/prompts/assess-impact.md +90 -0
- package/.gemini/extensions/bigpowers/commands/prompts/audit-code.md +183 -0
- package/.gemini/extensions/bigpowers/commands/prompts/audit-plan.md +88 -0
- package/.gemini/extensions/bigpowers/commands/prompts/build-epic.md +104 -0
- package/.gemini/extensions/bigpowers/commands/prompts/change-request.md +120 -0
- package/.gemini/extensions/bigpowers/commands/prompts/commit-message.md +139 -0
- package/.gemini/extensions/bigpowers/commands/prompts/compose-workflow.md +81 -0
- package/.gemini/extensions/bigpowers/commands/prompts/context7-mcp.md +54 -0
- package/.gemini/extensions/bigpowers/commands/prompts/craft-skill.md +195 -0
- package/.gemini/extensions/bigpowers/commands/prompts/deepen-architecture.md +259 -0
- package/.gemini/extensions/bigpowers/commands/prompts/define-language.md +79 -0
- package/.gemini/extensions/bigpowers/commands/prompts/define-success.md +11 -0
- package/.gemini/extensions/bigpowers/commands/prompts/delegate-task.md +90 -0
- package/.gemini/extensions/bigpowers/commands/prompts/deploy.md +197 -0
- package/.gemini/extensions/bigpowers/commands/prompts/design-interface.md +96 -0
- package/.gemini/extensions/bigpowers/commands/prompts/develop-tdd.md +415 -0
- package/.gemini/extensions/bigpowers/commands/prompts/diagnose-root.md +23 -0
- package/.gemini/extensions/bigpowers/commands/prompts/diagnose-stall.md +53 -0
- package/.gemini/extensions/bigpowers/commands/prompts/dispatch-agents.md +117 -0
- package/.gemini/extensions/bigpowers/commands/prompts/edit-document.md +22 -0
- package/.gemini/extensions/bigpowers/commands/prompts/elaborate-spec.md +100 -0
- package/.gemini/extensions/bigpowers/commands/prompts/enforce-first.md +44 -0
- package/.gemini/extensions/bigpowers/commands/prompts/evolve-skill.md +54 -0
- package/.gemini/extensions/bigpowers/commands/prompts/execute-plan.md +60 -0
- package/.gemini/extensions/bigpowers/commands/prompts/extract-design.md +131 -0
- package/.gemini/extensions/bigpowers/commands/prompts/find-way.md +190 -0
- package/.gemini/extensions/bigpowers/commands/prompts/fix-bug.md +66 -0
- package/.gemini/extensions/bigpowers/commands/prompts/gate-trace.md +91 -0
- package/.gemini/extensions/bigpowers/commands/prompts/generate-allure-report.md +284 -0
- package/.gemini/extensions/bigpowers/commands/prompts/grill-me.md +107 -0
- package/.gemini/extensions/bigpowers/commands/prompts/grill-with-docs.md +52 -0
- package/.gemini/extensions/bigpowers/commands/prompts/guard-git.md +230 -0
- package/.gemini/extensions/bigpowers/commands/prompts/harden-vps.md +290 -0
- package/.gemini/extensions/bigpowers/commands/prompts/hook-commits.md +93 -0
- package/.gemini/extensions/bigpowers/commands/prompts/inspect-quality.md +105 -0
- package/.gemini/extensions/bigpowers/commands/prompts/investigate-bug.md +126 -0
- package/.gemini/extensions/bigpowers/commands/prompts/kickoff-branch.md +142 -0
- package/.gemini/extensions/bigpowers/commands/prompts/maintain-wiki.md +63 -0
- package/.gemini/extensions/bigpowers/commands/prompts/map-codebase.md +70 -0
- package/.gemini/extensions/bigpowers/commands/prompts/migrate-spec.md +907 -0
- package/.gemini/extensions/bigpowers/commands/prompts/model-domain.md +231 -0
- package/.gemini/extensions/bigpowers/commands/prompts/orchestrate-project.md +173 -0
- package/.gemini/extensions/bigpowers/commands/prompts/organize-workspace.md +163 -0
- package/.gemini/extensions/bigpowers/commands/prompts/plan-refactor.md +86 -0
- package/.gemini/extensions/bigpowers/commands/prompts/plan-release.md +144 -0
- package/.gemini/extensions/bigpowers/commands/prompts/plan-tests.md +74 -0
- package/.gemini/extensions/bigpowers/commands/prompts/plan-work.md +271 -0
- package/.gemini/extensions/bigpowers/commands/prompts/publish-package.md +337 -0
- package/.gemini/extensions/bigpowers/commands/prompts/quick-fix.md +113 -0
- package/.gemini/extensions/bigpowers/commands/prompts/release-branch.md +301 -0
- package/.gemini/extensions/bigpowers/commands/prompts/request-review.md +112 -0
- package/.gemini/extensions/bigpowers/commands/prompts/research-first.md +86 -0
- package/.gemini/extensions/bigpowers/commands/prompts/reset-baseline.md +20 -0
- package/.gemini/extensions/bigpowers/commands/prompts/respond-review.md +70 -0
- package/.gemini/extensions/bigpowers/commands/prompts/run-benchmark.md +84 -0
- package/.gemini/extensions/bigpowers/commands/prompts/run-evals.md +79 -0
- package/.gemini/extensions/bigpowers/commands/prompts/run-planning.md +100 -0
- package/.gemini/extensions/bigpowers/commands/prompts/scope-work.md +62 -0
- package/.gemini/extensions/bigpowers/commands/prompts/search-skills.md +72 -0
- package/.gemini/extensions/bigpowers/commands/prompts/security-review.md +383 -0
- package/.gemini/extensions/bigpowers/commands/prompts/seed-conventions.md +311 -0
- package/.gemini/extensions/bigpowers/commands/prompts/session-state.md +145 -0
- package/.gemini/extensions/bigpowers/commands/prompts/setup-environment.md +38 -0
- package/.gemini/extensions/bigpowers/commands/prompts/simple-english.md +345 -0
- package/.gemini/extensions/bigpowers/commands/prompts/simulate-agents.md +25 -0
- package/.gemini/extensions/bigpowers/commands/prompts/slice-tasks.md +67 -0
- package/.gemini/extensions/bigpowers/commands/prompts/smoke-test.md +260 -0
- package/.gemini/extensions/bigpowers/commands/prompts/spike-prototype.md +94 -0
- package/.gemini/extensions/bigpowers/commands/prompts/stocktake-skills.md +73 -0
- package/.gemini/extensions/bigpowers/commands/prompts/survey-context.md +134 -0
- package/.gemini/extensions/bigpowers/commands/prompts/terse-mode.md +41 -0
- package/.gemini/extensions/bigpowers/commands/prompts/trace-requirement.md +68 -0
- package/.gemini/extensions/bigpowers/commands/prompts/using-bigpowers.md +110 -0
- package/.gemini/extensions/bigpowers/commands/prompts/validate-contracts.md +285 -0
- package/.gemini/extensions/bigpowers/commands/prompts/validate-fix.md +146 -0
- package/.gemini/extensions/bigpowers/commands/prompts/verify-work.md +190 -0
- package/.gemini/extensions/bigpowers/commands/prompts/visual-dashboard.md +49 -0
- package/.gemini/extensions/bigpowers/commands/prompts/wire-ci.md +380 -0
- package/.gemini/extensions/bigpowers/commands/prompts/wire-observability.md +96 -0
- package/.gemini/extensions/bigpowers/commands/prompts/write-document.md +280 -0
- package/.gemini/extensions/bigpowers/gemini-extension.json +16 -0
- package/.gemini/extensions/bigpowers/hooks/HOOKS.md +43 -0
- package/.gemini/extensions/bigpowers/hooks/before-tool-git-guard.sh +26 -0
- package/.gemini/extensions/bigpowers/hooks/before-tool-rtk.sh +14 -0
- package/.gemini/extensions/bigpowers/hooks/before-tool-token-mgmt.sh +19 -0
- package/.gemini/extensions/bigpowers/hooks/hooks-manifest.json +36 -0
- package/.gemini/extensions/bigpowers/hooks/run-hook.cmd +29 -0
- package/.gemini/extensions/bigpowers/hooks/session-start +48 -0
- package/.gemini/extensions/bigpowers/hooks/settings.json.example +41 -0
- package/.gemini/extensions/bigpowers/skills/align-grid/SKILL.md +111 -0
- package/.gemini/extensions/bigpowers/skills/assess-impact/SKILL.md +92 -0
- package/.gemini/extensions/bigpowers/skills/audit-code/SKILL.md +185 -0
- package/.gemini/extensions/bigpowers/skills/audit-plan/SKILL.md +90 -0
- package/.gemini/extensions/bigpowers/skills/build-epic/SKILL.md +106 -0
- package/.gemini/extensions/bigpowers/skills/change-request/SKILL.md +122 -0
- package/.gemini/extensions/bigpowers/skills/commit-message/SKILL.md +141 -0
- package/.gemini/extensions/bigpowers/skills/compose-workflow/SKILL.md +83 -0
- package/.gemini/extensions/bigpowers/skills/context7-mcp/SKILL.md +56 -0
- package/.gemini/extensions/bigpowers/skills/craft-skill/SKILL.md +197 -0
- package/.gemini/extensions/bigpowers/skills/deepen-architecture/SKILL.md +261 -0
- package/.gemini/extensions/bigpowers/skills/define-language/SKILL.md +81 -0
- package/.gemini/extensions/bigpowers/skills/define-success/SKILL.md +13 -0
- package/.gemini/extensions/bigpowers/skills/delegate-task/SKILL.md +92 -0
- package/.gemini/extensions/bigpowers/skills/deploy/SKILL.md +199 -0
- package/.gemini/extensions/bigpowers/skills/design-interface/SKILL.md +98 -0
- package/.gemini/extensions/bigpowers/skills/develop-tdd/SKILL.md +417 -0
- package/.gemini/extensions/bigpowers/skills/diagnose-root/SKILL.md +25 -0
- package/.gemini/extensions/bigpowers/skills/diagnose-stall/SKILL.md +55 -0
- package/.gemini/extensions/bigpowers/skills/dispatch-agents/SKILL.md +119 -0
- package/.gemini/extensions/bigpowers/skills/edit-document/SKILL.md +24 -0
- package/.gemini/extensions/bigpowers/skills/elaborate-spec/SKILL.md +102 -0
- package/.gemini/extensions/bigpowers/skills/enforce-first/SKILL.md +46 -0
- package/.gemini/extensions/bigpowers/skills/evolve-skill/SKILL.md +56 -0
- package/.gemini/extensions/bigpowers/skills/execute-plan/SKILL.md +62 -0
- package/.gemini/extensions/bigpowers/skills/extract-design/SKILL.md +133 -0
- package/.gemini/extensions/bigpowers/skills/find-way/SKILL.md +192 -0
- package/.gemini/extensions/bigpowers/skills/fix-bug/SKILL.md +68 -0
- package/.gemini/extensions/bigpowers/skills/gate-trace/SKILL.md +93 -0
- package/.gemini/extensions/bigpowers/skills/generate-allure-report/SKILL.md +286 -0
- package/.gemini/extensions/bigpowers/skills/grill-me/SKILL.md +109 -0
- package/.gemini/extensions/bigpowers/skills/grill-with-docs/SKILL.md +54 -0
- package/.gemini/extensions/bigpowers/skills/guard-git/SKILL.md +232 -0
- package/.gemini/extensions/bigpowers/skills/harden-vps/SKILL.md +292 -0
- package/.gemini/extensions/bigpowers/skills/hook-commits/SKILL.md +95 -0
- package/.gemini/extensions/bigpowers/skills/inspect-quality/SKILL.md +107 -0
- package/.gemini/extensions/bigpowers/skills/investigate-bug/SKILL.md +128 -0
- package/.gemini/extensions/bigpowers/skills/kickoff-branch/SKILL.md +144 -0
- package/.gemini/extensions/bigpowers/skills/maintain-wiki/SKILL.md +65 -0
- package/.gemini/extensions/bigpowers/skills/map-codebase/SKILL.md +72 -0
- package/.gemini/extensions/bigpowers/skills/migrate-spec/SKILL.md +909 -0
- package/.gemini/extensions/bigpowers/skills/model-domain/SKILL.md +233 -0
- package/.gemini/extensions/bigpowers/skills/orchestrate-project/SKILL.md +175 -0
- package/.gemini/extensions/bigpowers/skills/organize-workspace/SKILL.md +165 -0
- package/.gemini/extensions/bigpowers/skills/plan-refactor/SKILL.md +88 -0
- package/.gemini/extensions/bigpowers/skills/plan-release/SKILL.md +146 -0
- package/.gemini/extensions/bigpowers/skills/plan-tests/SKILL.md +76 -0
- package/.gemini/extensions/bigpowers/skills/plan-work/SKILL.md +273 -0
- package/.gemini/extensions/bigpowers/skills/publish-package/SKILL.md +339 -0
- package/.gemini/extensions/bigpowers/skills/quick-fix/SKILL.md +115 -0
- package/.gemini/extensions/bigpowers/skills/release-branch/SKILL.md +303 -0
- package/.gemini/extensions/bigpowers/skills/request-review/SKILL.md +114 -0
- package/.gemini/extensions/bigpowers/skills/research-first/SKILL.md +88 -0
- package/.gemini/extensions/bigpowers/skills/reset-baseline/SKILL.md +22 -0
- package/.gemini/extensions/bigpowers/skills/respond-review/SKILL.md +72 -0
- package/.gemini/extensions/bigpowers/skills/run-benchmark/SKILL.md +86 -0
- package/.gemini/extensions/bigpowers/skills/run-evals/SKILL.md +81 -0
- package/.gemini/extensions/bigpowers/skills/run-planning/SKILL.md +102 -0
- package/.gemini/extensions/bigpowers/skills/scope-work/SKILL.md +64 -0
- package/.gemini/extensions/bigpowers/skills/search-skills/SKILL.md +74 -0
- package/.gemini/extensions/bigpowers/skills/security-review/SKILL.md +385 -0
- package/.gemini/extensions/bigpowers/skills/seed-conventions/SKILL.md +313 -0
- package/.gemini/extensions/bigpowers/skills/session-state/SKILL.md +147 -0
- package/.gemini/extensions/bigpowers/skills/setup-environment/SKILL.md +40 -0
- package/.gemini/extensions/bigpowers/skills/simple-english/SKILL.md +347 -0
- package/.gemini/extensions/bigpowers/skills/simulate-agents/SKILL.md +27 -0
- package/.gemini/extensions/bigpowers/skills/slice-tasks/SKILL.md +69 -0
- package/.gemini/extensions/bigpowers/skills/smoke-test/SKILL.md +262 -0
- package/.gemini/extensions/bigpowers/skills/spike-prototype/SKILL.md +96 -0
- package/.gemini/extensions/bigpowers/skills/stocktake-skills/SKILL.md +75 -0
- package/.gemini/extensions/bigpowers/skills/survey-context/SKILL.md +136 -0
- package/.gemini/extensions/bigpowers/skills/terse-mode/SKILL.md +43 -0
- package/.gemini/extensions/bigpowers/skills/trace-requirement/SKILL.md +70 -0
- package/.gemini/extensions/bigpowers/skills/using-bigpowers/SKILL.md +112 -0
- package/.gemini/extensions/bigpowers/skills/validate-contracts/SKILL.md +287 -0
- package/.gemini/extensions/bigpowers/skills/validate-fix/SKILL.md +148 -0
- package/.gemini/extensions/bigpowers/skills/verify-work/SKILL.md +192 -0
- package/.gemini/extensions/bigpowers/skills/visual-dashboard/SKILL.md +51 -0
- package/.gemini/extensions/bigpowers/skills/wire-ci/SKILL.md +382 -0
- package/.gemini/extensions/bigpowers/skills/wire-observability/SKILL.md +98 -0
- package/.gemini/extensions/bigpowers/skills/write-document/SKILL.md +282 -0
- package/.pi/package.json +1 -1
- package/CHANGELOG.md +7 -0
- package/package.json +1 -1
- 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/test-install-helpers.js +31 -0
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "Generate CLAUDE.md and CONVENTIONS.md for a brand-new project through a brief interview, and create the specs/ directory with evolved bigpowers structure (product/, tech-architecture/, verifications/, epics/archive/). Entry point for greenfield projects. Use when starting a new project from scratch, when user asks to set up AI agent conventions, or when there is no CLAUDE.md yet."
|
|
3
|
+
alwaysApply: false
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# story: e10s01
|
|
7
|
+
# story: e47s02
|
|
8
|
+
# story: e10s02
|
|
9
|
+
# story: e51s02
|
|
10
|
+
# story: e45s21
|
|
11
|
+
# story: e79s03
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# Seed Conventions
|
|
15
|
+
> **HARD GATE** — Before any new code lands, confirm the project conventions are understood. Ask: 'What does a good commit message look like in this project?'
|
|
16
|
+
|
|
17
|
+
Bootstrap a new project with the AI agent conventions it needs. Run this once at the start of a greenfield project.
|
|
18
|
+
|
|
19
|
+
## What this creates
|
|
20
|
+
|
|
21
|
+
- `CLAUDE.md` — Claude Code session config (project-specific)
|
|
22
|
+
- `CONVENTIONS.md` — shared rules for all AI agents
|
|
23
|
+
- `specs/` — the specs directory where all planning output will live
|
|
24
|
+
- `AGENTS.md` — for OpenCode and other agents (optional)
|
|
25
|
+
- `GEMINI.md` — for Gemini CLI (optional)
|
|
26
|
+
|
|
27
|
+
## Interview
|
|
28
|
+
|
|
29
|
+
Ask the user these questions (one at a time, wait for each answer):
|
|
30
|
+
|
|
31
|
+
1. **Project name and one-sentence description** — "What is this project? One sentence."
|
|
32
|
+
2. **Stack** — "What language, framework, and runtime? (e.g. TypeScript / Next.js / Node 22)"
|
|
33
|
+
2b. **Stack profile (optional)** — Offer: `swift`, `typescript-vue`, `node-service`, or none. If chosen, merge the matching fragment from `profiles/<name>.md` into generated `CONVENTIONS.md`.
|
|
34
|
+
3. **Commands** — "What commands do you use for: run, test, build, lint?"
|
|
35
|
+
3b. **Preflight (optional)** — "What command runs test, lint, and build together? If none, chain Test + Lint + Build into one **Preflight** row."
|
|
36
|
+
4. **Architecture** — "Key modules and relationships in 1–2 sentences."
|
|
37
|
+
5. **Conventions** — "Any naming, file organization, or patterns all agents must follow?"
|
|
38
|
+
6. **Never-do list** — "What are the hard stops? Things an agent must never touch?"
|
|
39
|
+
7. **Defensive code categories** — "Which apply? (Rate limit / Retry / Circuit breaker / Timeout / Graceful degradation)"
|
|
40
|
+
8. **Local tool wiring (optional)** — "Wire bigpowers for project-local tools? (Cursor, OpenCode, Cline, Aider, Codex CLI)" If yes, generate AGENTS.md spine artifacts per [REFERENCE.md](REFERENCE.md) §Local tool wiring and §AGENTS.md spine. If no, skip — standard seed output unchanged (no AGENTS.md spine unless opted in).
|
|
41
|
+
|
|
42
|
+
## Agentic STE for generated prose (e79s03)
|
|
43
|
+
|
|
44
|
+
When writing instructional lines in `CLAUDE.md`, `AGENTS.md`, or `CONVENTIONS.md`, follow [AGENTIC-STE.md](../../docs/AGENTIC-STE.md):
|
|
45
|
+
|
|
46
|
+
- Use directive vocabulary: MUST, MUST NOT, NEVER, ALWAYS, DO, DO NOT
|
|
47
|
+
- Do NOT use hedge modals listed in AGENTIC-STE.md Rule 3
|
|
48
|
+
- Cap each instruction sentence at 20 words
|
|
49
|
+
- Write imperative, active-voice lines — one instruction per line
|
|
50
|
+
- Do NOT apply Agentic STE to `terse-mode` (output compression is out of scope)
|
|
51
|
+
|
|
52
|
+
After generation, run `bash scripts/validate-agentic-ste.sh --strict CLAUDE.md CONVENTIONS.md` when those files exist in the target project.
|
|
53
|
+
|
|
54
|
+
## Generate files
|
|
55
|
+
|
|
56
|
+
After the interview, generate each file using the templates in [REFERENCE.md](REFERENCE.md):
|
|
57
|
+
- `AGENTS.md` — from `docs/templates/AGENTS.md` Reach Template (canonical spine source)
|
|
58
|
+
- `CLAUDE.md` — symlink to `AGENTS.md` (copy fallback on Windows when symlink fails)
|
|
59
|
+
- `GEMINI.md` — symlink to `AGENTS.md` when Gemini wiring opted in
|
|
60
|
+
- `opencode.json` — with `"instructions": ["AGENTS.md"]` when OpenCode opted in
|
|
61
|
+
- `.aider.conf.yml` — with `read: AGENTS.md` when Aider opted in
|
|
62
|
+
- `CONVENTIONS.md` — bigpowers standard template + project defensive code categories
|
|
63
|
+
|
|
64
|
+
### `specs/` directory
|
|
65
|
+
|
|
66
|
+
```bash
|
|
67
|
+
mkdir -p specs/product specs/product/snapshots specs/epics/archive
|
|
68
|
+
mkdir -p specs/tech-architecture specs/adr specs/verifications specs/bugs
|
|
69
|
+
touch specs/product/SCOPE_LATEST.yaml specs/product/VISION_LATEST.yaml specs/product/GLOSSARY_LATEST.yaml
|
|
70
|
+
touch specs/release-plan.yaml specs/execution-status.yaml specs/planning-status.yaml specs/state.yaml
|
|
71
|
+
touch specs/tech-architecture/tech-stack.md specs/tech-architecture/SECURITY_PLAN_LATEST.md
|
|
72
|
+
touch specs/tech-architecture/TEST_PLAN_LATEST.md specs/tech-architecture/DESIGN_PLAN_LATEST.md
|
|
73
|
+
touch specs/tech-architecture/REFACTOR_LATEST.md specs/tech-architecture/IMPACT_LATEST.md
|
|
74
|
+
touch specs/bugs/registry.yaml
|
|
75
|
+
echo "# Specs\n\nAll planning documents for this project." > specs/README.md
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
**Note:** `specs/state.yaml.lock` is NOT pre-created — acquired/released dynamically.
|
|
79
|
+
|
|
80
|
+
`specs/state.yaml` carries top-level `workflow_mode` (`team-pr` | `solo-git`, default `solo-git`).
|
|
81
|
+
This is the **canonical integrate-mode signal** for all skills.
|
|
82
|
+
Set it once here. Skills such as `release-branch` read this file instead of sniffing profiles.
|
|
83
|
+
|
|
84
|
+
When generating `CLAUDE.md`, chain Test + Lint + Build into one **Preflight** row if the user named no Preflight command.
|
|
85
|
+
|
|
86
|
+
### Self-installing fenced markers (e45s21)
|
|
87
|
+
|
|
88
|
+
Skills that write into `CLAUDE.md` or `AGENTS.md` MUST use **fenced HTML comment markers** so handwritten content outside the fence is never clobbered:
|
|
89
|
+
|
|
90
|
+
```markdown
|
|
91
|
+
<!-- BEGIN bigpowers:section-id -->
|
|
92
|
+
…agent-managed content only…
|
|
93
|
+
<!-- END bigpowers:section-id -->
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
**Merge rule:** On update, replace only content between matching `BEGIN`/`END` pairs.
|
|
97
|
+
If a marker pair is missing, append a new fenced block at file end.
|
|
98
|
+
Never rewrite the whole file.
|
|
99
|
+
|
|
100
|
+
**Standard marker IDs** for seeded projects (see [REFERENCE.md](REFERENCE.md) § Fenced markers):
|
|
101
|
+
|
|
102
|
+
| Marker ID | Owner skill | Purpose |
|
|
103
|
+
|-----------|-------------|---------|
|
|
104
|
+
| `project` | seed-conventions | Project, Commands, Architecture |
|
|
105
|
+
| `context-routing` | seed-conventions | Glob → sub-AGENTS.md routing table |
|
|
106
|
+
| `learned-preferences` | session-state | Learned User Preferences + Workspace Facts |
|
|
107
|
+
| `tooling` | setup-environment, guard-git | sqz/rtk/hook blocks installed by tooling skills |
|
|
108
|
+
|
|
109
|
+
Emit these fences in `AGENTS.md` (and therefore `CLAUDE.md` symlink) from `docs/templates/AGENTS.md`. User prose outside fences is sacred.
|
|
110
|
+
|
|
111
|
+
- [ ] CLAUDE.md exists and is populated
|
|
112
|
+
- [ ] CONVENTIONS.md exists and includes specs/ output convention
|
|
113
|
+
- [ ] specs/product/ exists with SCOPE_LATEST.yaml, VISION_LATEST.yaml, GLOSSARY_LATEST.yaml
|
|
114
|
+
- [ ] specs/tech-architecture/ exists with tech-stack.md, security.md, test.md, design.md
|
|
115
|
+
- [ ] specs/verifications/ exists
|
|
116
|
+
- [ ] specs/epics/archive/ exists
|
|
117
|
+
- [ ] specs/bugs/registry.yaml exists
|
|
118
|
+
- [ ] Confirm with user: "Does CLAUDE.md accurately describe your project?"
|
|
119
|
+
|
|
120
|
+
---
|
|
121
|
+
|
|
122
|
+
# story: e51s02 e37s01 e37s03 e37s14
|
|
123
|
+
# story: e45s21
|
|
124
|
+
# Seed Conventions — Reference Templates
|
|
125
|
+
|
|
126
|
+
## Navigation
|
|
127
|
+
|
|
128
|
+
| Lines | Section |
|
|
129
|
+
|-------|---------|
|
|
130
|
+
| 1 | Title |
|
|
131
|
+
| 5–29 | Navigation |
|
|
132
|
+
| 30–53 | Fenced markers (e45s21) |
|
|
133
|
+
| 54–65 | AGENTS.md spine (Reach Template — e37s01) |
|
|
134
|
+
| 66–77 | Agent config template (legacy — prefer AGENTS.md spine) |
|
|
135
|
+
| 78–81 | Project |
|
|
136
|
+
| 82–91 | Commands |
|
|
137
|
+
| 92–94 | Architecture |
|
|
138
|
+
| 95–98 | Conventions |
|
|
139
|
+
| 99–104 | Never |
|
|
140
|
+
| 105–114 | Agent Rules |
|
|
141
|
+
| 115–123 | opencode.json template |
|
|
142
|
+
| 124–133 | Aider — `.aider.conf.yml` bridge (e37s03) |
|
|
143
|
+
| 134–146 | Codex CLI — project-local `.codex/config.toml` + AGENTS.md (e37s14) |
|
|
144
|
+
| 147–156 | CONVENTIONS.md |
|
|
145
|
+
| 157–160 | Stack profile fragments |
|
|
146
|
+
| 161–164 | Local tool wiring (optional interview step 8) |
|
|
147
|
+
| 165–173 | Cursor — project-local `.cursor/rules` symlink |
|
|
148
|
+
| 174–187 | OpenCode — project-local `opencode.json` + `AGENTS.md` |
|
|
149
|
+
| 188–190 | When to offer |
|
|
150
|
+
|
|
151
|
+
## Fenced markers (e45s21)
|
|
152
|
+
|
|
153
|
+
Self-installing blocks prevent skills from overwriting user-authored prose. Pattern:
|
|
154
|
+
|
|
155
|
+
```markdown
|
|
156
|
+
<!-- BEGIN bigpowers:section-id -->
|
|
157
|
+
…managed content…
|
|
158
|
+
<!-- END bigpowers:section-id -->
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
**Merge algorithm:**
|
|
162
|
+
|
|
163
|
+
1. If `BEGIN bigpowers:<id>` exists → replace inner content only.
|
|
164
|
+
2. If missing → append new fenced block at EOF.
|
|
165
|
+
3. Never delete content outside fences.
|
|
166
|
+
|
|
167
|
+
Seed these marker IDs in generated `AGENTS.md`:
|
|
168
|
+
|
|
169
|
+
| ID | Initial content |
|
|
170
|
+
|----|-----------------|
|
|
171
|
+
| `project` | Project, Commands, Architecture, Conventions, Never, Agent Rules |
|
|
172
|
+
| `context-routing` | Glob → sub-AGENTS.md table (see CLAUDE.md e45s22) |
|
|
173
|
+
| `learned-preferences` | Empty Learned User Preferences + Workspace Facts lists |
|
|
174
|
+
|
|
175
|
+
## AGENTS.md spine (Reach Template — e37s01)
|
|
176
|
+
|
|
177
|
+
Canonical source: copy from `docs/templates/AGENTS.md` in the bigpowers repo (Reach Template).
|
|
178
|
+
Do not invent structure ad hoc — the template includes multi-agent preamble, Preflight, Test/Lint/Build sections.
|
|
179
|
+
|
|
180
|
+
When local tool wiring is opted in:
|
|
181
|
+
1. Copy Reach Template → project root `AGENTS.md`, fill interview placeholders
|
|
182
|
+
2. `ln -sf AGENTS.md CLAUDE.md` (or content copy on Windows when symlink fails)
|
|
183
|
+
3. Write `opencode.json` with `"instructions": ["AGENTS.md"]`
|
|
184
|
+
|
|
185
|
+
When user **opts out** of local tool wiring, do not emit AGENTS.md spine artifacts.
|
|
186
|
+
|
|
187
|
+
## Agent config template (legacy — prefer AGENTS.md spine)
|
|
188
|
+
|
|
189
|
+
All three files use the same structure — only the header differs:
|
|
190
|
+
- `CLAUDE.md` → `# [Project Name] — Claude Code` (or symlink to AGENTS.md)
|
|
191
|
+
- `GEMINI.md` → `# [Project Name] — Gemini CLI`
|
|
192
|
+
- `AGENTS.md` → `# [Project Name] — AI Agents` (Reach Template header)
|
|
193
|
+
|
|
194
|
+
```markdown
|
|
195
|
+
# [Project Name] — [Agent]
|
|
196
|
+
|
|
197
|
+
Read CONVENTIONS.md before any GitHub or git operation.
|
|
198
|
+
|
|
199
|
+
## Project
|
|
200
|
+
[One sentence description]
|
|
201
|
+
Stack: [language, framework, runtime]
|
|
202
|
+
|
|
203
|
+
## Commands
|
|
204
|
+
| Action | Command |
|
|
205
|
+
|--------|---------|
|
|
206
|
+
| Run | `[cmd]` |
|
|
207
|
+
| Test | `[cmd]` |
|
|
208
|
+
| Build | `[cmd]` |
|
|
209
|
+
| Lint | `[cmd]` |
|
|
210
|
+
| Preflight | `[test && lint && build chain — or user-named full-green cmd]` |
|
|
211
|
+
| CI | `gh pr checks` (when a PR is open) |
|
|
212
|
+
|
|
213
|
+
## Architecture
|
|
214
|
+
[1–2 sentences. Key modules and their relationships.]
|
|
215
|
+
|
|
216
|
+
## Conventions
|
|
217
|
+
- [convention 1]
|
|
218
|
+
- [convention 2]
|
|
219
|
+
|
|
220
|
+
## Never
|
|
221
|
+
- Never dismiss reproducible gate failures as pre-existing or out of scope
|
|
222
|
+
- Never proceed on red Preflight or red CI — invoke quick-fix or fix-bug first
|
|
223
|
+
- [hard stop 1]
|
|
224
|
+
- [hard stop 2]
|
|
225
|
+
|
|
226
|
+
## Agent Rules
|
|
227
|
+
- **Workflow Mandate:** You MUST use the bigpowers skills (e.g. `plan-work`, `develop-tdd`, `orchestrate-project`) to perform tasks. DO NOT write code directly in response to a user prompt like "build this feature".
|
|
228
|
+
- **Always Green:** Preflight and CI must be green before forward work. Reproducible gate failures require **fix-or-log** (quick-fix → fix-bug) per CONVENTIONS § Discovered Defects.
|
|
229
|
+
- Read specs/ before writing code.
|
|
230
|
+
- All planning and specifications MUST be written to `specs/` (`product/SCOPE_LATEST.yaml`, `release-plan.yaml`, `epics/`) before any code is generated.
|
|
231
|
+
- Write the minimum code that solves the stated problem. Nothing extra.
|
|
232
|
+
- Run tests after every change. Show evidence before declaring done.
|
|
233
|
+
- One clarifying question beats a wrong assumption baked into 200 lines.
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
## opencode.json template
|
|
237
|
+
|
|
238
|
+
```json
|
|
239
|
+
{
|
|
240
|
+
"$schema": "https://opencode.ai/config.json",
|
|
241
|
+
"instructions": ["AGENTS.md"]
|
|
242
|
+
}
|
|
243
|
+
```
|
|
244
|
+
|
|
245
|
+
## Aider — `.aider.conf.yml` bridge (e37s03)
|
|
246
|
+
|
|
247
|
+
When Aider wiring is opted in:
|
|
248
|
+
|
|
249
|
+
```yaml
|
|
250
|
+
read: AGENTS.md
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
Upstream: [Aider-AI/aider](https://github.com/Aider-AI/aider) (not paul-gauthier/aider).
|
|
254
|
+
|
|
255
|
+
## Codex CLI — project-local `.codex/config.toml` + AGENTS.md (e37s14)
|
|
256
|
+
|
|
257
|
+
Source: https://developers.openai.com/codex/guides/agents-md
|
|
258
|
+
|
|
259
|
+
Codex is instruction-file-only — no slash skills. When Codex wiring is opted in:
|
|
260
|
+
|
|
261
|
+
```toml
|
|
262
|
+
# .codex/config.toml
|
|
263
|
+
instructions = ["AGENTS.md"]
|
|
264
|
+
```
|
|
265
|
+
|
|
266
|
+
Use AGENTS.md header `# [Project Name] — AI Agents` (shared with OpenCode/Cline). Single AGENTS.md serves dual-tool projects.
|
|
267
|
+
|
|
268
|
+
## CONVENTIONS.md
|
|
269
|
+
|
|
270
|
+
Use the standard bigpowers CONVENTIONS.md as the base. Fill in the project-specific defensive code categories from the interview answers.
|
|
271
|
+
|
|
272
|
+
**Always embed** these doctrine sections from bigpowers (adapt commands only):
|
|
273
|
+
|
|
274
|
+
- **§ Always Green / Shift Left** — 1-10-100 rationale, Preflight + CI green definitions
|
|
275
|
+
- **§ Discovered Defects** — fix-or-log ladder (quick-fix → fix-bug), separate commits for discovered fixes
|
|
276
|
+
- **Banned dismissive phrases** table — pre-existing, unrelated to session, not introduced by my changes, out of scope (ignoring a red gate)
|
|
277
|
+
|
|
278
|
+
## Stack profile fragments
|
|
279
|
+
|
|
280
|
+
If the user selected a stack profile, merge the matching `profiles/<name>.md` fragment into the generated `CONVENTIONS.md` under a `## Stack Conventions` section. Profiles supply language-specific commands, architecture patterns, and never-do additions.
|
|
281
|
+
|
|
282
|
+
## Local tool wiring (optional interview step 8)
|
|
283
|
+
|
|
284
|
+
Offered after the standard interview. Covers the two tools that global install (`scripts/install.sh`) structurally cannot reach because they read project-root config, not global paths.
|
|
285
|
+
|
|
286
|
+
### Cursor — project-local `.cursor/rules` symlink
|
|
287
|
+
|
|
288
|
+
```bash
|
|
289
|
+
# From the project root:
|
|
290
|
+
ln -sfn <bigpowers-install-path>/.cursor/rules .cursor/rules
|
|
291
|
+
```
|
|
292
|
+
|
|
293
|
+
Cursor reads `.cursor/rules/` from the project root. This symlink gives every project access to bigpowers skills as Cursor rules without duplicating the files. Run once per project.
|
|
294
|
+
|
|
295
|
+
### OpenCode — project-local `opencode.json` + `AGENTS.md`
|
|
296
|
+
|
|
297
|
+
`opencode.json` (project root):
|
|
298
|
+
```json
|
|
299
|
+
{
|
|
300
|
+
"$schema": "https://opencode.ai/config.json",
|
|
301
|
+
"instructions": [".cursor/rules/*.mdc", "AGENTS.md"]
|
|
302
|
+
}
|
|
303
|
+
```
|
|
304
|
+
|
|
305
|
+
OpenCode reads `opencode.json` from the project root, NOT from a global path. The `instructions` array points to the local `.cursor/rules` symlink (from the Cursor step above) and the project's `AGENTS.md`. Both must exist in the project for OpenCode to see bigpowers skills.
|
|
306
|
+
|
|
307
|
+
`AGENTS.md` is already generated by the standard interview (step 2 of Generate Files). When local tool wiring is opted in, ensure `AGENTS.md` includes the standard agent-config template header `# [Project Name] — OpenCode`.
|
|
308
|
+
|
|
309
|
+
### When to offer
|
|
310
|
+
|
|
311
|
+
Only offer local tool wiring when the user's project will be opened in Cursor or OpenCode. These tools are project-root scoped by design — no global installer can solve them. Global install (`install.sh`) already handles Claude Code, Gemini CLI, and pi globally. Do not offer for tools that read global config.
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "Track implementation decisions and progress in specs/state.yaml to prevent context rot. Use at the start of a session to load context, and whenever a significant decision is made or a milestone is reached."
|
|
3
|
+
alwaysApply: false
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# story: e45s23
|
|
7
|
+
|
|
8
|
+
# Session State
|
|
9
|
+
> **HARD GATE** — **HARD GATE** — Session state must be synchronized with git state. If state.yaml conflicts with the working tree, halt and ask for clarification. Do NOT assume state is correct.
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
Track the current state of implementation, including decisions made, pending tasks, and open questions, to ensure continuity across session boundaries and prevent "context rot."
|
|
13
|
+
|
|
14
|
+
Session-state implements the **isolate** strategy from the context-engineering framework (docs/references/context-engineering.md): each agent gets exactly the context it needs — no more — by recording decisions so the next agent can cold-start without replaying history. The four strategies (write, select, compress, isolate) work together: session-state handles isolation, terse-mode handles compression, survey-context handles selection, and CONVENTIONS.md ensures token-efficient writing.
|
|
15
|
+
|
|
16
|
+
## Goal
|
|
17
|
+
|
|
18
|
+
Maintain a single source of truth for the *current* session in `specs/state.yaml`. This complements long-term docs in `specs/tech-architecture/` and delivery detail in `specs/epics/` + `specs/release-plan.yaml`.
|
|
19
|
+
|
|
20
|
+
Legacy markdown (`specs/archive/STATE.md`, `RELEASE-PLAN.md`) is **not** SoT when YAML exists — use `specs/state.yaml` only.
|
|
21
|
+
|
|
22
|
+
When a story modifies existing behavior, patch only between matching marker pairs in `CLAUDE.md` / `AGENTS.md` `learned-preferences` fence — see e45s21.
|
|
23
|
+
|
|
24
|
+
## Handoff block (cold start)
|
|
25
|
+
|
|
26
|
+
When ending a session or before a context-heavy spawn, update `handoff` in `state.yaml`:
|
|
27
|
+
|
|
28
|
+
```yaml
|
|
29
|
+
handoff:
|
|
30
|
+
last_step_completed: "e02s01 verify-work passed"
|
|
31
|
+
open_decisions:
|
|
32
|
+
- "Use folder mode for e07 (>5 stories)"
|
|
33
|
+
required_reading:
|
|
34
|
+
- CONVENTIONS.md
|
|
35
|
+
- specs/epics/e02-verification/epic.yaml
|
|
36
|
+
next_skill: develop-tdd
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Strategic compaction
|
|
40
|
+
|
|
41
|
+
| Trigger | Action |
|
|
42
|
+
|---------|--------|
|
|
43
|
+
| Phase transition (Plan → Build → Verify) | Compact handoff; archive verbose decisions to ADR |
|
|
44
|
+
| Context > 70% estimated | Run terse-mode for status only; move detail to specs/ |
|
|
45
|
+
| Before `dispatch-agents` wave | `state.yaml` only channel between spawns |
|
|
46
|
+
|
|
47
|
+
## Workflow
|
|
48
|
+
|
|
49
|
+
### 1. Initialize (Session Start)
|
|
50
|
+
|
|
51
|
+
If `specs/state.yaml` does not exist, or if starting a new major phase:
|
|
52
|
+
|
|
53
|
+
- [ ] Read `specs/release-plan.yaml` and `specs/product/SCOPE_LATEST.yaml`.
|
|
54
|
+
- [ ] Get git metadata: `git branch --show-current` and `git rev-parse --short HEAD`.
|
|
55
|
+
- [ ] Create `specs/state.yaml` with active flow, git, handoff, and epic cycle if in build.
|
|
56
|
+
|
|
57
|
+
### 2. Load (Context Refresh)
|
|
58
|
+
|
|
59
|
+
When starting a new session or after a significant context flush:
|
|
60
|
+
|
|
61
|
+
- [ ] Read `specs/state.yaml` to understand where the previous agent left off.
|
|
62
|
+
- [ ] Read `specs/execution-status.yaml` for story progress (do not infer from release-plan).
|
|
63
|
+
- [ ] Verify git matches `state.yaml` `git.branch` / `git.hash`.
|
|
64
|
+
|
|
65
|
+
### 3. Update (Decision Point/Milestone)
|
|
66
|
+
|
|
67
|
+
Whenever a significant decision is made or a milestone is reached:
|
|
68
|
+
|
|
69
|
+
- [ ] Patch via `bash scripts/bp-yaml-set.sh specs/state.yaml git.hash <hash>` (or edit directly).
|
|
70
|
+
- [ ] Patch `handoff` and `learned_preferences` / `workspace_facts` in `CLAUDE.md` fenced block when durable user preferences or repo facts crystallize (e45s23).
|
|
71
|
+
- [ ] Update `handoff.open_decisions` with rationale.
|
|
72
|
+
- [ ] Update `epic_cycle` when advancing `ship-epic` steps.
|
|
73
|
+
- [ ] Record open questions under `handoff.open_decisions` or an ADR.
|
|
74
|
+
|
|
75
|
+
→ verify: `bash scripts/validate-specs-yaml.sh`
|
|
76
|
+
|
|
77
|
+
## Universal checkpoint pattern
|
|
78
|
+
|
|
79
|
+
Every multi-step flow (>3 steps) in bigpowers uses a cycle counter in `state.yaml`:
|
|
80
|
+
|
|
81
|
+
| Flow | Cycle key | Step field | Phases/Steps |
|
|
82
|
+
|------|-----------|------------|-------------|
|
|
83
|
+
| build-epic | `epic_cycle` | `current_step` | 8 (survey → release) |
|
|
84
|
+
| fix-bug | `bug_cycle` | `current_step` | 5 (investigate → release) |
|
|
85
|
+
| orchestrate-project | `project_cycle` | `current_phase` | 6 (discover → release) |
|
|
86
|
+
|
|
87
|
+
**Checkpoint:** After each step/phase completes, increment the counter in `state.yaml` and update `handoff.next_skill`.
|
|
88
|
+
|
|
89
|
+
**Resume:** On session start, read the current step/phase from the cycle key — continue from there, not from step 1.
|
|
90
|
+
|
|
91
|
+
**Completed steps:** Track completed steps in `completed_steps` (comma-separated string) for audit trail.
|
|
92
|
+
|
|
93
|
+
## Strategic compaction
|
|
94
|
+
|
|
95
|
+
Print the current session state: `cat specs/state.yaml`, then display `active_flow` and `handoff.next_skill` for quick reference.
|
|
96
|
+
|
|
97
|
+
### reset-state (absorbed)
|
|
98
|
+
|
|
99
|
+
Clear ephemeral session state. Set `active_epic_id`, `active_story_id`, and `epic_cycle.current_step` to `null` in `specs/state.yaml`. Use when ending a phase or starting a new project context.
|
|
100
|
+
|
|
101
|
+
### compact-state (absorbed)
|
|
102
|
+
|
|
103
|
+
Archive verbose decisions before a context transition. Move all entries from `handoff.open_decisions` to their appropriate location:
|
|
104
|
+
|
|
105
|
+
- **System-wide decisions** → `specs/adr/NNNN-slug.md` (global Architectural Decision Records)
|
|
106
|
+
- **Epic-scoped decisions** → `specs/epics/<active_epic_id>-<slug>/adr/NNNN-slug.md` (epic-local ADRs, archived with epic)
|
|
107
|
+
|
|
108
|
+
After archiving, reset `handoff.open_decisions` to an empty list.
|
|
109
|
+
|
|
110
|
+
## File Format: specs/state.yaml
|
|
111
|
+
|
|
112
|
+
```yaml
|
|
113
|
+
active_flow: build_epic # planning | build_epic | fix_bug
|
|
114
|
+
active_epic_id: e02
|
|
115
|
+
active_story_id: e02s01 # required when epic mode: folder
|
|
116
|
+
active_bug_id: null # BUG-2026-06-01T143022 when fix_bug
|
|
117
|
+
release:
|
|
118
|
+
target_version: null # NOT tracked manually — semantic-release decides at merge
|
|
119
|
+
last_tag: v2.28.0 # mirror of `gh release view`, reference only
|
|
120
|
+
last_publish: null
|
|
121
|
+
epic_cycle:
|
|
122
|
+
current_step: develop-tdd
|
|
123
|
+
next_skill: develop-tdd
|
|
124
|
+
completed_steps: [kickoff-branch]
|
|
125
|
+
bug_cycle:
|
|
126
|
+
current_step: null
|
|
127
|
+
completed_steps: []
|
|
128
|
+
git:
|
|
129
|
+
branch: feat/e02-verify
|
|
130
|
+
hash: abc1234
|
|
131
|
+
handoff:
|
|
132
|
+
last_step_completed: null
|
|
133
|
+
open_decisions: []
|
|
134
|
+
next_skill: survey-context
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
## Anti-Patterns
|
|
138
|
+
|
|
139
|
+
- **Duplicate Plan**: Don't copy `release-plan.yaml` or epic shards into `state.yaml`.
|
|
140
|
+
- **Stale State**: Forgetting to update `state.yaml` after a major refactor or decision.
|
|
141
|
+
- **Status in release-plan**: Story/epic status lives only in `execution-status.yaml`.
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
<!-- story: e03s03 -->
|
|
145
|
+
<!-- story: e04s01 -->
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "Pre-install dependencies and configure tools before development work begins. Use at session start on a fresh clone, before kickoff-branch, or when user says setup environment or install deps."
|
|
3
|
+
alwaysApply: false
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Setup Environment
|
|
7
|
+
> **HARD GATE** — **HARD GATE** — Environment setup must be idempotent and reproducible. If setup fails, provide clear error messages and remediation steps. Do NOT assume prior state.
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
Idempotent prep so BUILD phase commands succeed on first run.
|
|
11
|
+
|
|
12
|
+
## Checklist
|
|
13
|
+
|
|
14
|
+
1. Read `CLAUDE.md` / `CONVENTIONS.md` for required runtimes and commands.
|
|
15
|
+
2. Verify runtime versions (`node -v`, `swift --version`, etc.).
|
|
16
|
+
3. Install dependencies (`npm ci`, `bundle install`, etc.) — prefer lockfile installs.
|
|
17
|
+
4. Copy `.env.example` → `.env` if documented; never commit secrets.
|
|
18
|
+
5. Run smoke: lint + one fast test or `--version` on key tools.
|
|
19
|
+
6. Record versions in `specs/state.yaml` under Environment.
|
|
20
|
+
|
|
21
|
+
## BCP Plus Counter (optional)
|
|
22
|
+
|
|
23
|
+
The `big-counter` tool is an optional dependency for BCP Plus 13-dimension story sizing:
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
# Install from PyPI (recommended)
|
|
27
|
+
pip install big-counter
|
|
28
|
+
|
|
29
|
+
# Or from npm
|
|
30
|
+
npm install -g big-counter
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Verify the install: `big-counter --version`
|
|
34
|
+
Skip if BCP Plus sizing is not needed for this project.
|
|
35
|
+
|
|
36
|
+
## Verify
|
|
37
|
+
|
|
38
|
+
→ verify: `test -f CLAUDE.md && grep -q Test CLAUDE.md`
|