bigpowers 2.87.2 → 2.87.3

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/.pi/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bigpowers",
3
- "version": "2.87.2",
3
+ "version": "2.87.3",
4
4
  "description": "81 skills — 73 agent skills synthesizing 17 years of software engineering discipline into a prescriptive methodology for solo developers",
5
5
  "keywords": [
6
6
  "pi-package"
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [2.87.3](https://github.com/danielvm-git/bigpowers/compare/v2.87.2...v2.87.3) (2026-08-07)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **skills:** pi no longer drops 16 skills — story tags moved inside frontmatter ([#108](https://github.com/danielvm-git/bigpowers/issues/108)) ([3d4f0cf](https://github.com/danielvm-git/bigpowers/commit/3d4f0cf33a0497a45bc525330fc048a5b2715e33))
7
+
1
8
  ## [2.87.2](https://github.com/danielvm-git/bigpowers/compare/v2.87.1...v2.87.2) (2026-08-05)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bigpowers",
3
- "version": "2.87.2",
3
+ "version": "2.87.3",
4
4
  "description": "73 agent skills synthesizing 17 years of software engineering discipline into a prescriptive methodology for solo developers",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -48,6 +48,9 @@ parse_frontmatter() {
48
48
  fi
49
49
  [ "$in_block" -ne 1 ] && continue
50
50
 
51
+ # Skip comment lines (e.g. # story: tags inside the frontmatter block)
52
+ [[ "$line" == \#* || "$line" == \<\!--* ]] && continue
53
+
51
54
  case "$line" in
52
55
  name:*)
53
56
  name="${line#name: }"
@@ -76,6 +79,8 @@ parse_frontmatter() {
76
79
  continue
77
80
  fi
78
81
  [ "$continued" -eq 0 ] && continue
82
+ # Skip comment lines (e.g. # story: tags inside the frontmatter block)
83
+ [[ "$line" == \#* || "$line" == \<\!--* ]] && continue
79
84
  # If next field starts (unindented key:), stop
80
85
  [[ "$line" =~ ^[a-zA-Z_]+: ]] && break
81
86
  desc="$desc $line"
@@ -103,7 +108,7 @@ parse_frontmatter_okf() {
103
108
  _PF_NAME=$(awk '/^---/{f++} f==1 && /^name:/{print; exit}' "$file" | sed 's/^name:[[:space:]]*//')
104
109
  _PF_MODEL=$(awk '/^---/{f++} f==1 && /^model:/{print; exit}' "$file" | sed 's/^model:[[:space:]]*//')
105
110
  _PF_EFFORT=$(awk '/^---/{f++} f==1 && /^effort:/{print; exit}' "$file" | sed 's/^effort:[[:space:]]*//')
106
- _PF_DESCRIPTION=$(awk '/^---/{f++; next} f==1 && /^description:/{p=1; sub(/^description:[[:space:]]*/,""); print; next} f==1 && p && /^[a-z]+:/{exit} f==1 && p{print}' "$file" \
111
+ _PF_DESCRIPTION=$(awk '/^---/{f++; next} f==1 && /^description:/{p=1; sub(/^description:[[:space:]]*/,""); print; next} f==1 && p && /^[a-z]+:/{exit} f==1 && p && !/^[[:space:]]*#/ && !/^[[:space:]]*<!--/{print}' "$file" \
107
112
  | tr -d '\n' \
108
113
  | sed -E 's/[[:space:]]+/ /g')
109
114
 
@@ -1,5 +1,21 @@
1
1
  #!/usr/bin/env python3
2
- """Validate YAML frontmatter in all .pi/skills/*/SKILL.md files."""
2
+ """Validate YAML frontmatter in SKILL.md files (sources + generated .pi/skills).
3
+
4
+ Rules per file (sources and generated copies alike):
5
+
6
+ R1 file must start with the frontmatter delimiter '---' at byte 0.
7
+ pi (dist/utils/frontmatter.js) and the Agent Skills spec require the
8
+ opening delimiter to be the first characters of the file. Story tags
9
+ (`# story:` / `<!-- story: -->`) must live INSIDE the frontmatter block
10
+ as YAML comments, or below the closing delimiter — never above it,
11
+ or pi drops the skill as "description is required".
12
+ (story: BUG-2026-08-06-pi-drops-skills-frontmatter)
13
+ R2 frontmatter must parse as YAML (PyYAML or bundled simple_yaml).
14
+ R3 description must not embed 'model: sonnet' as literal text.
15
+
16
+ Exits 1 on any failure. Called by the sync-skills.sh post-generation guard
17
+ and by scripts/test-setup-no-pyyaml.sh.
18
+ """
3
19
  import glob
4
20
  import sys
5
21
  import os
@@ -17,64 +33,99 @@ except ModuleNotFoundError:
17
33
  from simple_yaml import parse_simple_yaml
18
34
  _load_yaml = parse_simple_yaml
19
35
 
20
- SKILLS_DIR = ".pi/skills"
21
- files = sorted(glob.glob(f"{SKILLS_DIR}/*/SKILL.md"))
36
+ # Source of truth (skills/*/SKILL.md) and the pi-distributed copy (.pi/skills).
37
+ SKILL_ROOTS = ["skills", ".pi/skills"]
38
+
39
+
40
+ def validate_tree(root):
41
+ """Return (passed, delimiter_failures, parse_failures, semantic_failures)."""
42
+ files = sorted(glob.glob(os.path.join(root, "*/SKILL.md")))
43
+ parse_failures = []
44
+ semantic_failures = []
45
+ delimiter_failures = []
46
+ passed = []
47
+
48
+ for path in files:
49
+ skill_name = os.path.basename(os.path.dirname(path))
50
+ with open(path) as f:
51
+ content = f.read()
52
+
53
+ # R1 — pi's frontmatter gate: opening delimiter must be at byte 0.
54
+ if not content.startswith("---"):
55
+ delimiter_failures.append((skill_name, "file must start with '---' (story tags belong inside the frontmatter block or below it)"))
56
+ continue
22
57
 
23
- parse_failures = []
24
- semantic_failures = []
25
- passed = []
58
+ parts = content.split("---", 2)
59
+ if len(parts) < 3:
60
+ parse_failures.append((skill_name, "missing frontmatter delimiters"))
61
+ continue
26
62
 
27
- for path in files:
28
- skill_name = os.path.basename(os.path.dirname(path))
29
- with open(path) as f:
30
- content = f.read()
63
+ frontmatter = parts[1]
31
64
 
32
- parts = content.split("---", 2)
33
- if len(parts) < 3:
34
- parse_failures.append((skill_name, "missing frontmatter delimiters"))
35
- continue
65
+ try:
66
+ data = _load_yaml(frontmatter)
67
+ except Exception as e:
68
+ parse_failures.append((skill_name, str(e).split("\n")[0]))
69
+ continue
36
70
 
37
- frontmatter = parts[1]
71
+ if data is None:
72
+ parse_failures.append((skill_name, "empty frontmatter"))
73
+ continue
38
74
 
39
- try:
40
- data = _load_yaml(frontmatter)
41
- except Exception as e:
42
- parse_failures.append((skill_name, str(e).split("\n")[0]))
43
- continue
75
+ # R3 — semantic check: model hint embedded in description
76
+ desc = data.get("description", "")
77
+ if desc and "model: sonnet" in desc:
78
+ semantic_failures.append(skill_name)
44
79
 
45
- if data is None:
46
- parse_failures.append((skill_name, "empty frontmatter"))
47
- continue
80
+ passed.append(skill_name)
48
81
 
49
- # Semantic check: model hint embedded in description
50
- desc = data.get("description", "")
51
- if desc and "model: sonnet" in desc:
52
- semantic_failures.append(skill_name)
82
+ return passed, delimiter_failures, parse_failures, semantic_failures
53
83
 
54
- passed.append(skill_name)
55
84
 
56
- # Report
57
- print(f"Total SKILL.md files: {len(files)}")
58
- print(f"Parse OK: {len(passed)}")
59
- print(f"Parse FAIL: {len(parse_failures)}")
60
- print(f"Semantic issues (model in desc): {len(semantic_failures)}")
85
+ all_passed = []
86
+ all_delimiter = []
87
+ all_parse = []
88
+ all_semantic = []
89
+
90
+ for root in SKILL_ROOTS:
91
+ passed, delimiter_failures, parse_failures, semantic_failures = validate_tree(root)
92
+ all_passed += passed
93
+ all_delimiter += delimiter_failures
94
+ all_parse += parse_failures
95
+ all_semantic += semantic_failures
96
+ total = len(passed) + len(delimiter_failures) + len(parse_failures) + len(semantic_failures)
97
+ print(f"[{root}] SKILL.md files: {total} — parse OK: {len(passed)}")
98
+
99
+ print()
100
+ print(f"Total SKILL.md files: {len(all_passed) + len(all_delimiter) + len(all_parse) + len(all_semantic)}")
101
+ print(f"Parse OK: {len(all_passed)}")
102
+ print(f"Delimiter FAIL (must start with '---'): {len(all_delimiter)}")
103
+ print(f"Parse FAIL: {len(all_parse)}")
104
+ print(f"Semantic issues (model in desc): {len(all_semantic)}")
61
105
  print()
62
106
 
63
- if parse_failures:
107
+ if all_delimiter:
108
+ print("=== DELIMITER FAILURES (file does not start with '---') ===")
109
+ for name, err in all_delimiter:
110
+ print(f" {name}: {err}")
111
+ print()
112
+
113
+ if all_parse:
64
114
  print("=== PARSE FAILURES ===")
65
- for name, err in parse_failures:
115
+ for name, err in all_parse:
66
116
  print(f" {name}: {err}")
67
117
  print()
68
118
 
69
- if semantic_failures:
119
+ if all_semantic:
70
120
  print("=== SEMANTIC ISSUES (model embedded in description) ===")
71
- for name in sorted(semantic_failures):
121
+ for name in sorted(all_semantic):
72
122
  print(f" {name}")
73
123
  print()
74
124
 
75
- if parse_failures or semantic_failures:
76
- print(f"FAIL: {len(parse_failures)} parse + {len(semantic_failures)} semantic issues")
125
+ if all_delimiter or all_parse or all_semantic:
126
+ n = len(all_delimiter) + len(all_parse) + len(all_semantic)
127
+ print(f"FAIL: {n} issues ({len(all_delimiter)} delimiter + {len(all_parse)} parse + {len(all_semantic)} semantic)")
77
128
  sys.exit(1)
78
129
  else:
79
- print("PASS: all SKILL.md YAML frontmatter valid")
130
+ print("PASS: all SKILL.md YAML frontmatter valid (sources + .pi/skills)")
80
131
  sys.exit(0)
@@ -1,7 +1,7 @@
1
+ ---
1
2
  # story: e51s04
2
3
  # story: e45s18
3
4
  # story: e45s31
4
- ---
5
5
  name: audit-code
6
6
  model: haiku
7
7
  effort: standard
@@ -1,7 +1,7 @@
1
- # story: e45s02
2
- <!-- story: e45s12 -->
3
- <!-- story: e79s02 -->
4
1
  ---
2
+ # story: e45s02
3
+ # story: e45s12
4
+ # story: e79s02
5
5
  name: craft-skill
6
6
  model: sonnet
7
7
  effort: standard
@@ -1,6 +1,6 @@
1
- # story: e45s31
2
- <!-- story: e45s14 -->
3
1
  ---
2
+ # story: e45s31
3
+ # story: e45s14
4
4
  name: deepen-architecture
5
5
  model: sonnet
6
6
  effort: standard
@@ -1,5 +1,5 @@
1
- <!-- story: e45s15 -->
2
1
  ---
2
+ # story: e45s15
3
3
  name: deploy
4
4
  description: "Build → verify artifact → deploy → wait → smoke deployment pipeline. Platform-agnostic (MCP or CLI), with configurable timeout, retry with exponential backoff, and integrated health-check. The deploy half of CI/CD: run after build to push to production."
5
5
  model: sonnet
@@ -1,10 +1,10 @@
1
+ ---
1
2
  # story: e80s01
2
3
  # story: e80s03
3
4
  # story: e51s04
4
5
  # story: e45s06
5
6
  # story: e45s08
6
7
  # story: e45s34
7
- ---
8
8
  name: develop-tdd
9
9
  model: sonnet
10
10
  effort: standard
@@ -1,5 +1,5 @@
1
- # story: e45s38
2
1
  ---
2
+ # story: e45s38
3
3
  name: diagnose-stall
4
4
  model: haiku
5
5
  effort: light
@@ -1,5 +1,5 @@
1
- # story: e80s01
2
1
  ---
2
+ # story: e80s01
3
3
  name: enforce-first
4
4
  model: haiku
5
5
  effort: standard
@@ -1,5 +1,5 @@
1
- # story: e51s04
2
1
  ---
2
+ # story: e51s04
3
3
  name: fix-bug
4
4
  model: sonnet
5
5
  effort: standard
@@ -1,6 +1,6 @@
1
+ ---
1
2
  # story: e80s01
2
3
  # story: e45s05
3
- ---
4
4
  name: gate-trace
5
5
  description: "Deterministic traceability quality gate — reads coverage matrix + blind-spot data, applies decision rules with oracle confidence downgrade, emits PASS/CONCERNS/FAIL/WAIVED verdict. Use before release-branch to gate merges on traceability."
6
6
  # story: e38s06
@@ -1,9 +1,9 @@
1
+ ---
1
2
  # story: e45s04
2
3
  # story: e45s06
3
4
  # story: e45s09
4
5
  # story: e45s33
5
6
  # story: e45s35
6
- ---
7
7
  name: plan-work
8
8
  model: opus
9
9
  effort: standard
@@ -1,5 +1,5 @@
1
- # story: e51s04
2
1
  ---
2
+ # story: e51s04
3
3
  name: quick-fix
4
4
  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."
5
5
  model: sonnet
@@ -1,7 +1,7 @@
1
- # story: e45s07
2
- <!-- story: e45s07 -->
3
- <!-- story: e45s17 -->
4
1
  ---
2
+ # story: e45s07
3
+ # story: e45s07
4
+ # story: e45s17
5
5
  name: request-review
6
6
  model: opus
7
7
  effort: standard
@@ -1,5 +1,5 @@
1
- # story: e45s37
2
1
  ---
2
+ # story: e45s37
3
3
  name: run-evals
4
4
  description: Eval-Driven Development — define capability and regression evals before building; code graders use verify commands, model graders use explicit rubrics; log pass@k. Use before develop-tdd on new features, or when measuring agent capability over runs.
5
5
  model: sonnet
@@ -1,5 +1,5 @@
1
- # story: e80s02
2
1
  ---
2
+ # story: e80s02
3
3
  name: smoke-test
4
4
  phase: verify
5
5
  description: "Post-deploy health-check against a live URL. Validates HTTP status, response content, and critical endpoints. Runnable standalone OR as the final step of the deploy skill."
@@ -1,5 +1,5 @@
1
- # story: e80s02
2
1
  ---
2
+ # story: e80s02
3
3
  name: validate-contracts
4
4
  phase: verify
5
5
  description: "Assert data shape consistency across system boundaries — live API responses against JSON Schema, key-set comparison across layers, data shape validation for migrations and exports. Catches silent data corruption before deploy."
@@ -1,7 +1,7 @@
1
+ ---
1
2
  # story: e80s01
2
3
  # story: e80s04
3
4
  # story: e45s08
4
- ---
5
5
  name: validate-fix
6
6
  model: haiku
7
7
  effort: standard
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": "b0342883680fee6c",
16
+ "sha256": "6c37decb8b323a18",
17
17
  "path": "skills/audit-codeSKILL.md"
18
18
  },
19
19
  "audit-plan": {
@@ -48,12 +48,12 @@
48
48
  },
49
49
  "craft-skill": {
50
50
  "description": "Create new bigpowers skills with proper structure, progressive disclosure, and bundled resources. Use when user wants to create, write, or build a new skill for the bigpowers lifecycle.",
51
- "sha256": "f3b08c24979f1857",
51
+ "sha256": "b1d4efb0dcecb204",
52
52
  "path": "skills/craft-skillSKILL.md"
53
53
  },
54
54
  "deepen-architecture": {
55
55
  "description": "Find deepening opportunities in a codebase, informed by the domain language in specs/tech-architecture/tech-stack.md and the decisions in specs/adr/. Use when the user wants to improve architecture, find refactoring opportunities, consolidate tightly-coupled modules, or make a codebase more testable and AI-navigable.",
56
- "sha256": "da2760c0cb49a3e4",
56
+ "sha256": "ee41e4524031fee3",
57
57
  "path": "skills/deepen-architectureSKILL.md"
58
58
  },
59
59
  "define-language": {
@@ -73,7 +73,7 @@
73
73
  },
74
74
  "deploy": {
75
75
  "description": "\"Build → verify artifact → deploy → wait → smoke deployment pipeline. Platform-agnostic (MCP or CLI), with configurable timeout, retry with exponential backoff, and integrated health-check. The deploy half of CI/CD: run after build to push to production.\"",
76
- "sha256": "ddfcbfbfc464c620",
76
+ "sha256": "d355906aff894cfc",
77
77
  "path": "skills/deploySKILL.md"
78
78
  },
79
79
  "design-interface": {
@@ -83,7 +83,7 @@
83
83
  },
84
84
  "develop-tdd": {
85
85
  "description": "Test-driven development with red-green-refactor loop using vertical slices. Use for features (epic tasks) or bugs (specs/bugs/BUG-*.md).",
86
- "sha256": "8b3934e2291b863d",
86
+ "sha256": "433c1315e6604899",
87
87
  "path": "skills/develop-tddSKILL.md"
88
88
  },
89
89
  "diagnose-root": {
@@ -93,7 +93,7 @@
93
93
  },
94
94
  "diagnose-stall": {
95
95
  "description": "Diagnose why agent orchestration stopped producing progress — silent stalls in /loop, dispatch-agents, or execute-plan. Use when work appears hung, no output for several minutes, or a subagent never returned.",
96
- "sha256": "c0fe87349399c112",
96
+ "sha256": "983d5a3a922af07d",
97
97
  "path": "skills/diagnose-stallSKILL.md"
98
98
  },
99
99
  "dispatch-agents": {
@@ -113,7 +113,7 @@
113
113
  },
114
114
  "enforce-first": {
115
115
  "description": "Apply the F.I.R.S.T test quality rubric (per CONVENTIONS.md §Tests) to a test suite or individual tests. Use when develop-tdd is writing tests, when test quality needs to be checked, or when user mentions F.I.R.S.T or \"test quality\".",
116
- "sha256": "1ec1183ee6377917",
116
+ "sha256": "567d0efaa59d1262",
117
117
  "path": "skills/enforce-firstSKILL.md"
118
118
  },
119
119
  "evolve-skill": {
@@ -138,12 +138,12 @@
138
138
  },
139
139
  "fix-bug": {
140
140
  "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.",
141
- "sha256": "8e9e5922211b7e3b",
141
+ "sha256": "575a3ce60745c5c3",
142
142
  "path": "skills/fix-bugSKILL.md"
143
143
  },
144
144
  "gate-trace": {
145
145
  "description": "\"Deterministic traceability quality gate — reads coverage matrix + blind-spot data, applies decision rules with oracle confidence downgrade, emits PASS/CONCERNS/FAIL/WAIVED verdict. Use before release-branch to gate merges on traceability.\"",
146
- "sha256": "87e0c49ff90ec34c",
146
+ "sha256": "097c31ec960861ce",
147
147
  "path": "skills/gate-traceSKILL.md"
148
148
  },
149
149
  "generate-allure-report": {
@@ -238,7 +238,7 @@
238
238
  },
239
239
  "plan-work": {
240
240
  "description": "\"PLANNING SPINE STEP 3 of 3 — Plan the work: write detailed implementation tasks into the active epic capsule (specs/epics/eNN-slug/). Produces countable-story-format .md specs and runnable -tasks.yaml files. Use after slice-tasks (step 2). Not a substitute for scope-work (step 1) or slice-tasks (step 2).\"",
241
- "sha256": "32c2bcaf16cb4ad2",
241
+ "sha256": "0558f03399e6b93f",
242
242
  "path": "skills/plan-workSKILL.md"
243
243
  },
244
244
  "publish-package": {
@@ -248,7 +248,7 @@
248
248
  },
249
249
  "quick-fix": {
250
250
  "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.\"",
251
- "sha256": "6a1b70cb1530c428",
251
+ "sha256": "5631a3980b214748",
252
252
  "path": "skills/quick-fixSKILL.md"
253
253
  },
254
254
  "release-branch": {
@@ -258,7 +258,7 @@
258
258
  },
259
259
  "request-review": {
260
260
  "description": "Dispatch a fresh reviewer agent with a clean context to critique the code after audit-code passes. The reviewer has no shared state with the coding agent and gives a genuine second opinion. Use after audit-code passes, before committing, or when user wants an independent code review.",
261
- "sha256": "f362641a467c3000",
261
+ "sha256": "f395a14585b78aaf",
262
262
  "path": "skills/request-reviewSKILL.md"
263
263
  },
264
264
  "research-first": {
@@ -283,7 +283,7 @@
283
283
  },
284
284
  "run-evals": {
285
285
  "description": "Eval-Driven Development — define capability and regression evals before building; code graders use verify commands, model graders use explicit rubrics; log pass@k. Use before develop-tdd on new features, or when measuring agent capability over runs.",
286
- "sha256": "d20ba2bece1b1c72",
286
+ "sha256": "7bc7cfd24a41d9e3",
287
287
  "path": "skills/run-evalsSKILL.md"
288
288
  },
289
289
  "run-planning": {
@@ -338,7 +338,7 @@
338
338
  },
339
339
  "smoke-test": {
340
340
  "description": "\"Post-deploy health-check against a live URL. Validates HTTP status, response content, and critical endpoints. Runnable standalone OR as the final step of the deploy skill.\"",
341
- "sha256": "050170d66ada581e",
341
+ "sha256": "407669c94dee6b53",
342
342
  "path": "skills/smoke-testSKILL.md"
343
343
  },
344
344
  "spike-prototype": {
@@ -373,12 +373,12 @@
373
373
  },
374
374
  "validate-contracts": {
375
375
  "description": "\"Assert data shape consistency across system boundaries — live API responses against JSON Schema, key-set comparison across layers, data shape validation for migrations and exports. Catches silent data corruption before deploy.\"",
376
- "sha256": "d93c9ae2953ac457",
376
+ "sha256": "6541a7f72b3f0493",
377
377
  "path": "skills/validate-contractsSKILL.md"
378
378
  },
379
379
  "validate-fix": {
380
380
  "description": "Prove a fix works before declaring done — re-run the failing test, run the full suite, typecheck, lint, and harden against recurrence. Use after implementing a bug fix, when user says \"is this fixed?\", or before closing an investigation.",
381
- "sha256": "f94972af3fd48e3e",
381
+ "sha256": "d7fac868ccbf5dbe",
382
382
  "path": "skills/validate-fixSKILL.md"
383
383
  },
384
384
  "verify-work": {