bigpowers 2.71.0 → 2.72.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.
@@ -1,3 +1,4 @@
1
+ # story: e51s02
1
2
  # Seed Conventions — Reference Templates
2
3
 
3
4
  ## Agent config template (CLAUDE.md / GEMINI.md / AGENTS.md)
@@ -23,6 +24,8 @@ Stack: [language, framework, runtime]
23
24
  | Test | `[cmd]` |
24
25
  | Build | `[cmd]` |
25
26
  | Lint | `[cmd]` |
27
+ | Preflight | `[test && lint && build chain — or user-named full-green cmd]` |
28
+ | CI | `gh pr checks` (when a PR is open) |
26
29
 
27
30
  ## Architecture
28
31
  [1–2 sentences. Key modules and their relationships.]
@@ -32,15 +35,17 @@ Stack: [language, framework, runtime]
32
35
  - [convention 2]
33
36
 
34
37
  ## Never
38
+ - Never dismiss reproducible gate failures as pre-existing or out of scope
39
+ - Never proceed on red Preflight or red CI — invoke quick-fix or fix-bug first
35
40
  - [hard stop 1]
36
41
  - [hard stop 2]
37
42
 
38
43
  ## Agent Rules
39
44
  - **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".
45
+ - **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.
40
46
  - Read specs/ before writing code.
41
47
  - All planning and specifications MUST be written to `specs/` (`product/SCOPE_LATEST.yaml`, `release-plan.yaml`, `epics/`) before any code is generated.
42
48
  - Write the minimum code that solves the stated problem. Nothing extra.
43
- - Never refactor, rename, or reorganize code outside the task scope.
44
49
  - Run tests after every change. Show evidence before declaring done.
45
50
  - One clarifying question beats a wrong assumption baked into 200 lines.
46
51
  ```
@@ -58,6 +63,12 @@ Stack: [language, framework, runtime]
58
63
 
59
64
  Use the standard bigpowers CONVENTIONS.md as the base. Fill in the project-specific defensive code categories from the interview answers.
60
65
 
66
+ **Always embed** these doctrine sections from bigpowers (adapt commands only):
67
+
68
+ - **§ Always Green / Shift Left** — 1-10-100 rationale, Preflight + CI green definitions
69
+ - **§ Discovered Defects** — fix-or-log ladder (quick-fix → fix-bug), separate commits for discovered fixes
70
+ - **Banned dismissive phrases** table — pre-existing, unrelated to session, not introduced by my changes, out of scope (ignoring a red gate)
71
+
61
72
  ## Stack profile fragments
62
73
 
63
74
  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.
@@ -91,4 +102,4 @@ OpenCode reads `opencode.json` from the project root, NOT from a global path. Th
91
102
 
92
103
  ### When to offer
93
104
 
94
- 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.
105
+ 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.
@@ -1,3 +1,4 @@
1
+ # story: e51s02
1
2
  ---
2
3
  name: seed-conventions
3
4
  model: sonnet
@@ -26,12 +27,12 @@ Ask the user these questions (one at a time, wait for each answer):
26
27
  2. **Stack** — "What language, framework, and runtime? (e.g. TypeScript / Next.js / Node 22)"
27
28
  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`.
28
29
  3. **Commands** — "What commands do you use for: run, test, build, lint?"
30
+ 3b. **Preflight (optional)** — "What single command runs your full local green stack (test + lint + build)? If you don't have one, we'll chain your Test + Lint + Build answers into a **Preflight** row in the Commands table."
29
31
  4. **Architecture** — "Key modules and relationships in 1–2 sentences."
30
32
  5. **Conventions** — "Any naming, file organization, or patterns all agents must follow?"
31
33
  6. **Never-do list** — "What are the hard stops? Things an agent must never touch?"
32
34
  7. **Defensive code categories** — "Which apply? (Rate limit / Retry / Circuit breaker / Timeout / Graceful degradation)"
33
35
  8. **Local tool wiring (optional)** — "Wire bigpowers skills for project-local tools that global install can't reach? (Cursor + OpenCode only)" If yes, generate the local wiring artifacts described in [REFERENCE.md](REFERENCE.md) §Local tool wiring. If no, skip — the standard seed output is unchanged.
34
- 8. **Local tool wiring (optional)** — "Wire bigpowers skills for project-local tools that global install can't reach? (Cursor + OpenCode only)" If yes, generate the local wiring artifacts described in [REFERENCE.md](REFERENCE.md) §Local tool wiring. If no, skip — the standard seed output is unchanged.
35
36
 
36
37
  ## Generate files
37
38
 
@@ -56,7 +57,9 @@ echo "# Specs\n\nAll planning documents for this project." > specs/README.md
56
57
 
57
58
  **Note:** `specs/state.yaml.lock` is NOT pre-created — acquired/released dynamically.
58
59
 
59
- `specs/state.yaml` carries a top-level `workflow_mode` key (`team-pr` | `solo-git`, default `team-pr`). This is the **canonical integrate-mode signal** for all skills — set it once here and skills such as `release-branch` read it from this file instead of sniffing profile files.
60
+ `specs/state.yaml` carries a top-level `workflow_mode` key (`team-pr` | `solo-git`, default `solo-git`). This is the **canonical integrate-mode signal** for all skills — set it once here and skills such as `release-branch` read it from this file instead of sniffing profile files.
61
+
62
+ When generating `CLAUDE.md`, if the user did not name a Preflight command, chain the Test + Lint + Build interview answers into one **Preflight** row (e.g. `npm test && npm run lint && npm run build`).
60
63
 
61
64
 
62
65
 
@@ -1,4 +1,5 @@
1
1
  <!-- story: e38s05 -->
2
+ <!-- story: e51s03 -->
2
3
  ---
3
4
  name: verify-work
4
5
  description: Multi-phase UAT gate — cold-start smoke, build, typecheck, lint, tests, step-by-step manual verification, gaps-closure loop. Use after execute-plan or develop-tdd, before audit-code.
@@ -34,6 +35,8 @@ Review answers "is the code good?"; Verify answers "does the built thing do what
34
35
 
35
36
  0. **Branch check** — must not be `main`/`master`.
36
37
 
38
+ 0a. **Preflight / CI green (HARD GATE — e51s03)** — Run Preflight from `CLAUDE.md` or `BP_PREFLIGHT` (`bp-read-agents.sh`). If PR open: `gh pr checks` (**CI green**). Failure blocks all phases → `quick-fix` or `fix-bug`.
39
+
37
40
  1. Read active story tasks from `specs/epics/<capsule>/eNNsYY-tasks.yaml` and story spec from `specs/epics/<capsule>/eNNsYY-<slug>.md` (countable-story-format, Gherkin in §17). Note the `risk:` level (`P0`–`P3`).
38
41
  1a. **Pre-UAT verify validation** — for each task's `verify:` command, run it and detect pattern mismatches before UAT begins. If a grep/awk/jq command fails, check whether the pattern is wrong vs. a genuine failure:
39
42
  ```bash
@@ -42,7 +45,7 @@ Review answers "is the code good?"; Verify answers "does the built thing do what
42
45
  ```
43
46
  Report: `"Pattern 'X' not found. Nearest match: 'Y' at line N"` and ask `"Update verify command? [Y/n]"`. Fix before proceeding — a mismatched verify command produces false failures during UAT.
44
47
  2. **Cold-start smoke** (if app; skip if P3): stop server, clear caches, boot from scratch.
45
- 3. **AGENTS.md preflight** — before running default checks, call `bash scripts/bp-read-agents.sh` to detect project-specific commands. If `BP_PREFLIGHT` is set, run it instead of the default mechanical gates (or in addition to them if the project requires both). Output: `"Using preflight from AGENTS.md: <cmd>"`. Fall back to `CLAUDE.md` commands if AGENTS.md is absent.
48
+ 3. **AGENTS.md preflight** — if 0a skipped BP_PREFLIGHT, run `bash scripts/bp-read-agents.sh` and use detected command.
46
49
  4. Mechanical gates: build → typecheck → lint → tests (from `CLAUDE.md` or AGENTS.md). Skip tests if P2/P3.
47
50
  5. **Security scan** (skip if P2/P3) — run `security-review` against the git diff (working tree vs merge-base). Parse findings report. If any HIGH findings with confidence ≥ 8 exist → **block the gate**. Write findings to `specs/security/REVIEW.md`. Allow documented exceptions via `specs/security/EXCEPTIONS.md`. MEDIUM/LOW findings warn but don't block.
48
51
  5a. **Blind-spot check** — run `bash scripts/check-blind-spots.sh`. This detects structural quality gaps (verify-gap, test-gap, stale-tag, etc.) beyond percentage coverage. If any HIGH-severity findings exist → **block the verify-work PASS gate**. Findings are written to `specs/blind-spots.json`. MEDIUM/LOW findings warn but don't block.
@@ -54,14 +57,7 @@ Review answers "is the code good?"; Verify answers "does the built thing do what
54
57
 
55
58
  ### Cold-Start Smoke (absorbed)
56
59
 
57
- For applications, verify correctness from a clean state:
58
-
59
- - Stop the running server (if any)
60
- - Clear any caches (browser, application caches, compiled artifacts)
61
- - Boot the application from scratch
62
- - Verify that no stale artifacts or configuration are affecting the behavior
63
-
64
- This catches environment-specific bugs and ensures the build is reproducible.
60
+ Stop server, clear caches, boot from scratch; confirm no stale config affects behavior.
65
61
 
66
62
  ### Gaps Loop (absorbed)
67
63
 
package/skills-lock.json CHANGED
@@ -13,7 +13,7 @@
13
13
  },
14
14
  "audit-code": {
15
15
  "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.",
16
- "sha256": "9a4afa72a83882d6",
16
+ "sha256": "6d844137eda91fe7",
17
17
  "path": "skills/audit-codeSKILL.md"
18
18
  },
19
19
  "audit-plan": {
@@ -78,7 +78,7 @@
78
78
  },
79
79
  "develop-tdd": {
80
80
  "description": "Test-driven development with red-green-refactor loop using vertical slices. Use for features (epic tasks) or bugs (specs/bugs/BUG-*.md).",
81
- "sha256": "02c444db6e21dade",
81
+ "sha256": "943a6181c39ab097",
82
82
  "path": "skills/develop-tddSKILL.md"
83
83
  },
84
84
  "diagnose-root": {
@@ -108,7 +108,7 @@
108
108
  },
109
109
  "evolve-skill": {
110
110
  "description": "Benchmark-gated skill evolution — consume bigpowers-benchmark report, propose plan-work change, edit skill via craft-skill, re-run benchmark, record ADR. Use when a skill underperforms on benchmark or stocktake finds systemic gap.",
111
- "sha256": "3fe2aefbdfca4c4d",
111
+ "sha256": "db153994fb656052",
112
112
  "path": "skills/evolve-skillSKILL.md"
113
113
  },
114
114
  "execute-plan": {
@@ -123,7 +123,7 @@
123
123
  },
124
124
  "fix-bug": {
125
125
  "description": "Bug fix orchestrator — active_flow fix_bug; reads specs/bugs/BUG-*.md; chains investigate-bug, develop-tdd, validate-fix. Use when user reports a defect.",
126
- "sha256": "ce4781244b970a14",
126
+ "sha256": "8e9e5922211b7e3b",
127
127
  "path": "skills/fix-bugSKILL.md"
128
128
  },
129
129
  "gate-trace": {
@@ -163,7 +163,7 @@
163
163
  },
164
164
  "kickoff-branch": {
165
165
  "description": "Create a git worktree and feature branch, then verify a clean test baseline before any code is written. Use when starting a new feature or task, when user wants to work in isolation from main, or mentions \"start a branch\" or \"new worktree\".",
166
- "sha256": "928d87bae8cc4ddf",
166
+ "sha256": "c9bed1e15d6df733",
167
167
  "path": "skills/kickoff-branchSKILL.md"
168
168
  },
169
169
  "maintain-wiki": {
@@ -223,7 +223,7 @@
223
223
  },
224
224
  "quick-fix": {
225
225
  "description": "\"Streamlined fast-path for trivial data-only fixes — no TDD, no branching ceremony. Collapses 6 skills into 2 for changes that are purely data with no logic risk. Aborts with fallback to investigate-bug if guardrails trigger.\"",
226
- "sha256": "f446202c2910b615",
226
+ "sha256": "6a1b70cb1530c428",
227
227
  "path": "skills/quick-fixSKILL.md"
228
228
  },
229
229
  "release-branch": {
@@ -283,7 +283,7 @@
283
283
  },
284
284
  "seed-conventions": {
285
285
  "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.",
286
- "sha256": "eb4cbca25d54fa81",
286
+ "sha256": "397090fd29c8cac1",
287
287
  "path": "skills/seed-conventionsSKILL.md"
288
288
  },
289
289
  "session-state": {
@@ -353,7 +353,7 @@
353
353
  },
354
354
  "verify-work": {
355
355
  "description": "Multi-phase UAT gate — cold-start smoke, build, typecheck, lint, tests, step-by-step manual verification, gaps-closure loop. Use after execute-plan or develop-tdd, before audit-code.",
356
- "sha256": "300e5a7c7695e33f",
356
+ "sha256": "ae08ac8212a003ac",
357
357
  "path": "skills/verify-workSKILL.md"
358
358
  },
359
359
  "visual-dashboard": {