bigpowers 2.17.0 → 2.18.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/.pi/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bigpowers",
3
- "version": "2.17.0",
3
+ "version": "2.18.0",
4
4
  "description": "67 skills — 61 agent skills for spec-driven, test-first software development by solo developers",
5
5
  "keywords": [
6
6
  "pi-package"
@@ -21,7 +21,30 @@ Audit SKILL.md catalog for drift, stale triggers, missing HARD GATEs, and INDEX
21
21
  1. Run `bash scripts/audit-catalog.sh` to verify pi/skills ↔ source SKILL.md sync. Mismatch is a critical finding.
22
22
  2. Run mode; for each skill check: exists, verb-noun, <300 lines total, HARD GATE present, INDEX row matches.
23
23
  3. Write `specs/STOCKTAKE-<date>.md` with findings table (skill, issue, severity).
24
- 4. Critical findings `plan-work` story; cosmetic `evolve-skill` candidate.
24
+ 4. **Effectiveness report (--full mode only):** Read `specs/state.yaml` `metrics.skill_timings` and report:
25
+ - Top 5 most-used skills (by calls, total_seconds)
26
+ - Skills with zero calls (potential dead weight)
27
+ - Skills with high average time (candidates for `evolve-skill`)
28
+ 5. Critical findings → `plan-work` story; cosmetic → `evolve-skill` candidate.
29
+
30
+ ### Skill timing data (`metrics.skill_timings`)
31
+
32
+ In `--full` mode, read `specs/state.yaml` `metrics.skill_timings` for per-skill usage stats:
33
+
34
+ ```yaml
35
+ metrics:
36
+ skill_timings:
37
+ survey-context:
38
+ calls: 12
39
+ total_seconds: 180
40
+ avg_seconds: 15.0
41
+ develop-tdd:
42
+ calls: 30
43
+ total_seconds: 5400
44
+ avg_seconds: 180.0
45
+ ```
46
+
47
+ Timing data is populated by `scripts/bp-timing.sh start|end <skill>` calls within critical-path skills.
25
48
 
26
49
  ## Verify
27
50
 
@@ -23,7 +23,30 @@ Audit SKILL.md catalog for drift, stale triggers, missing HARD GATEs, and INDEX
23
23
  1. Run `bash scripts/audit-catalog.sh` to verify pi/skills ↔ source SKILL.md sync. Mismatch is a critical finding.
24
24
  2. Run mode; for each skill check: exists, verb-noun, &lt;300 lines total, HARD GATE present, INDEX row matches.
25
25
  3. Write `specs/STOCKTAKE-<date>.md` with findings table (skill, issue, severity).
26
- 4. Critical findings `plan-work` story; cosmetic `evolve-skill` candidate.
26
+ 4. **Effectiveness report (--full mode only):** Read `specs/state.yaml` `metrics.skill_timings` and report:
27
+ - Top 5 most-used skills (by calls, total_seconds)
28
+ - Skills with zero calls (potential dead weight)
29
+ - Skills with high average time (candidates for `evolve-skill`)
30
+ 5. Critical findings → `plan-work` story; cosmetic → `evolve-skill` candidate.
31
+
32
+ ### Skill timing data (`metrics.skill_timings`)
33
+
34
+ In `--full` mode, read `specs/state.yaml` `metrics.skill_timings` for per-skill usage stats:
35
+
36
+ ```yaml
37
+ metrics:
38
+ skill_timings:
39
+ survey-context:
40
+ calls: 12
41
+ total_seconds: 180
42
+ avg_seconds: 15.0
43
+ develop-tdd:
44
+ calls: 30
45
+ total_seconds: 5400
46
+ avg_seconds: 180.0
47
+ ```
48
+
49
+ Timing data is populated by `scripts/bp-timing.sh start|end <skill>` calls within critical-path skills.
27
50
 
28
51
  ## Verify
29
52
 
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # [2.18.0](https://github.com/danielvm-git/bigpowers/compare/v2.17.0...v2.18.0) (2026-06-21)
2
+
3
+
4
+ ### Features
5
+
6
+ * **e18s05:** auto-timing helper + stocktake effectiveness ([1542bb7](https://github.com/danielvm-git/bigpowers/commit/1542bb7652c7ba1edb893260c7e586f63e416259))
7
+
1
8
  # [2.17.0](https://github.com/danielvm-git/bigpowers/compare/v2.16.0...v2.17.0) (2026-06-21)
2
9
 
3
10
 
package/SKILL-INDEX.md CHANGED
@@ -3,7 +3,7 @@
3
3
  > **DO NOT EDIT** — This file is auto-generated by `scripts/generate-skill-index.sh`.
4
4
  > Edit `SKILL.md` source files or `skills-lock.json` instead. Run `bash scripts/sync-skills.sh` to regenerate.
5
5
 
6
- **Generated:** 2026-06-21T21:41:36Z
6
+ **Generated:** 2026-06-21T21:42:28Z
7
7
  **Skills:** 67
8
8
 
9
9
  ---
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bigpowers",
3
- "version": "2.17.0",
3
+ "version": "2.18.0",
4
4
  "description": "61 agent skills for spec-driven, test-first software development by solo developers",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -0,0 +1,74 @@
1
+ #!/usr/bin/env bash
2
+ # bp-timing.sh — Record skill invocation timings for stocktake effectiveness analysis.
3
+ # Usage: bash scripts/bp-timing.sh start <skill-name>
4
+ # bash scripts/bp-timing.sh end <skill-name>
5
+ # Requires: python3 (for YAML-safe state updates)
6
+ set -euo pipefail
7
+
8
+ STATE_YAML="specs/state.yaml"
9
+ TIMINGS_KEY="metrics.skill_timings"
10
+
11
+ usage() {
12
+ echo "Usage: $0 start|end <skill-name>" >&2
13
+ exit 1
14
+ }
15
+
16
+ [ $# -ne 2 ] && usage
17
+
18
+ ACTION="$1"
19
+ SKILL="$2"
20
+
21
+ case "$ACTION" in
22
+ start)
23
+ STAMP=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
24
+ python3 -c "
25
+ import yaml, sys
26
+ try:
27
+ with open('$STATE_YAML') as f:
28
+ data = yaml.safe_load(f) or {}
29
+ except: data = {}
30
+
31
+ metrics = data.setdefault('metrics', {})
32
+ timings = metrics.setdefault('skill_timings', {})
33
+
34
+ if '$SKILL' not in timings:
35
+ timings['$SKILL'] = {'calls': 0, 'total_seconds': 0, 'avg_seconds': 0}
36
+
37
+ timings['$SKILL']['_start'] = '$STAMP'
38
+ with open('$STATE_YAML', 'w') as f:
39
+ yaml.dump(data, f, default_flow_style=False, sort_keys=False, allow_unicode=True)
40
+ " 2>/dev/null || echo "WARN: timing start failed (yaml tools missing?)" >&2
41
+ ;;
42
+
43
+ end)
44
+ STAMP=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
45
+ python3 -c "
46
+ import yaml
47
+ from datetime import datetime
48
+
49
+ with open('$STATE_YAML') as f:
50
+ data = yaml.safe_load(f) or {}
51
+
52
+ metrics = data.setdefault('metrics', {})
53
+ timings = metrics.setdefault('skill_timings', {})
54
+
55
+ if '$SKILL' in timings and '_start' in timings['$SKILL']:
56
+ start_t = datetime.fromisoformat(timings['$SKILL']['_start'].replace('Z','+00:00'))
57
+ end_t = datetime.fromisoformat('$STAMP'.replace('Z','+00:00'))
58
+ elapsed = (end_t - start_t).total_seconds()
59
+
60
+ entry = timings['$SKILL']
61
+ entry['calls'] = entry.get('calls', 0) + 1
62
+ entry['total_seconds'] = entry.get('total_seconds', 0) + elapsed
63
+ entry['avg_seconds'] = entry['total_seconds'] / entry['calls']
64
+ del entry['_start']
65
+
66
+ with open('$STATE_YAML', 'w') as f:
67
+ yaml.dump(data, f, default_flow_style=False, sort_keys=False, allow_unicode=True)
68
+ " 2>/dev/null || echo "WARN: timing end failed" >&2
69
+ ;;
70
+
71
+ *)
72
+ usage
73
+ ;;
74
+ esac
package/skills-lock.json CHANGED
@@ -278,7 +278,7 @@
278
278
  },
279
279
  "stocktake-skills": {
280
280
  "description": "Sequential subagent batch audit of the bigpowers skill catalog — Quick Scan (changed only) or Full (all skills). Use during sustain phase, before a major release, or when catalog drift is suspected.",
281
- "sha256": "84a4cba67602028f",
281
+ "sha256": "c58bf4f70ff02cd3",
282
282
  "path": "stocktake-skills/SKILL.md"
283
283
  },
284
284
  "survey-context": {
@@ -22,7 +22,30 @@ Audit SKILL.md catalog for drift, stale triggers, missing HARD GATEs, and INDEX
22
22
  1. Run `bash scripts/audit-catalog.sh` to verify pi/skills ↔ source SKILL.md sync. Mismatch is a critical finding.
23
23
  2. Run mode; for each skill check: exists, verb-noun, &lt;300 lines total, HARD GATE present, INDEX row matches.
24
24
  3. Write `specs/STOCKTAKE-<date>.md` with findings table (skill, issue, severity).
25
- 4. Critical findings `plan-work` story; cosmetic `evolve-skill` candidate.
25
+ 4. **Effectiveness report (--full mode only):** Read `specs/state.yaml` `metrics.skill_timings` and report:
26
+ - Top 5 most-used skills (by calls, total_seconds)
27
+ - Skills with zero calls (potential dead weight)
28
+ - Skills with high average time (candidates for `evolve-skill`)
29
+ 5. Critical findings → `plan-work` story; cosmetic → `evolve-skill` candidate.
30
+
31
+ ### Skill timing data (`metrics.skill_timings`)
32
+
33
+ In `--full` mode, read `specs/state.yaml` `metrics.skill_timings` for per-skill usage stats:
34
+
35
+ ```yaml
36
+ metrics:
37
+ skill_timings:
38
+ survey-context:
39
+ calls: 12
40
+ total_seconds: 180
41
+ avg_seconds: 15.0
42
+ develop-tdd:
43
+ calls: 30
44
+ total_seconds: 5400
45
+ avg_seconds: 180.0
46
+ ```
47
+
48
+ Timing data is populated by `scripts/bp-timing.sh start|end <skill>` calls within critical-path skills.
26
49
 
27
50
  ## Verify
28
51