bigpowers 2.1.3 → 2.3.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 +16 -0
- package/.pi/prompts/assess-impact.md +76 -0
- package/.pi/prompts/audit-code.md +156 -0
- package/.pi/prompts/build-epic.md +44 -0
- package/.pi/prompts/change-request.md +105 -0
- package/.pi/prompts/commit-message.md +135 -0
- package/.pi/prompts/compose-workflow.md +40 -0
- package/.pi/prompts/craft-skill.md +150 -0
- package/.pi/prompts/deepen-architecture.md +235 -0
- package/.pi/prompts/define-language.md +79 -0
- package/.pi/prompts/define-success.md +62 -0
- package/.pi/prompts/delegate-task.md +76 -0
- package/.pi/prompts/design-interface.md +96 -0
- package/.pi/prompts/develop-tdd.md +375 -0
- package/.pi/prompts/diagnose-root.md +23 -0
- package/.pi/prompts/dispatch-agents.md +83 -0
- package/.pi/prompts/edit-document.md +22 -0
- package/.pi/prompts/elaborate-spec.md +81 -0
- package/.pi/prompts/enforce-first.md +77 -0
- package/.pi/prompts/evolve-skill.md +38 -0
- package/.pi/prompts/execute-plan.md +54 -0
- package/.pi/prompts/fix-bug.md +36 -0
- package/.pi/prompts/grill-me.md +95 -0
- package/.pi/prompts/grill-with-docs.md +37 -0
- package/.pi/prompts/guard-git.md +212 -0
- package/.pi/prompts/hook-commits.md +93 -0
- package/.pi/prompts/inspect-quality.md +105 -0
- package/.pi/prompts/investigate-bug.md +117 -0
- package/.pi/prompts/kickoff-branch.md +99 -0
- package/.pi/prompts/map-codebase.md +70 -0
- package/.pi/prompts/migrate-spec.md +482 -0
- package/.pi/prompts/model-domain.md +227 -0
- package/.pi/prompts/orchestrate-project.md +161 -0
- package/.pi/prompts/organize-workspace.md +159 -0
- package/.pi/prompts/plan-refactor.md +77 -0
- package/.pi/prompts/plan-release.md +145 -0
- package/.pi/prompts/plan-work.md +161 -0
- package/.pi/prompts/release-branch.md +158 -0
- package/.pi/prompts/request-review.md +70 -0
- package/.pi/prompts/research-first.md +62 -0
- package/.pi/prompts/reset-baseline.md +20 -0
- package/.pi/prompts/respond-review.md +70 -0
- package/.pi/prompts/run-evals.md +56 -0
- package/.pi/prompts/run-planning.md +26 -0
- package/.pi/prompts/scope-work.md +23 -0
- package/.pi/prompts/search-skills.md +21 -0
- package/.pi/prompts/seed-conventions.md +132 -0
- package/.pi/prompts/session-state.md +146 -0
- package/.pi/prompts/setup-environment.md +23 -0
- package/.pi/prompts/simulate-agents.md +25 -0
- package/.pi/prompts/slice-tasks.md +23 -0
- package/.pi/prompts/spike-prototype.md +94 -0
- package/.pi/prompts/stocktake-skills.md +40 -0
- package/.pi/prompts/survey-context.md +129 -0
- package/.pi/prompts/terse-mode.md +37 -0
- package/.pi/prompts/trace-requirement.md +68 -0
- package/.pi/prompts/using-bigpowers.md +105 -0
- package/.pi/prompts/validate-fix.md +98 -0
- package/.pi/prompts/verify-work.md +125 -0
- package/.pi/prompts/visual-dashboard.md +51 -0
- package/.pi/prompts/wire-observability.md +92 -0
- package/.pi/prompts/write-document.md +244 -0
- package/.pi/skills/assess-impact/SKILL.md +77 -0
- package/.pi/skills/audit-code/SKILL.md +157 -0
- package/.pi/skills/build-epic/SKILL.md +45 -0
- package/.pi/skills/change-request/SKILL.md +106 -0
- package/.pi/skills/commit-message/SKILL.md +136 -0
- package/.pi/skills/compose-workflow/SKILL.md +41 -0
- package/.pi/skills/craft-skill/SKILL.md +151 -0
- package/.pi/skills/deepen-architecture/SKILL.md +236 -0
- package/.pi/skills/define-language/SKILL.md +80 -0
- package/.pi/skills/define-success/SKILL.md +63 -0
- package/.pi/skills/delegate-task/SKILL.md +77 -0
- package/.pi/skills/design-interface/SKILL.md +97 -0
- package/.pi/skills/develop-tdd/SKILL.md +376 -0
- package/.pi/skills/diagnose-root/SKILL.md +24 -0
- package/.pi/skills/dispatch-agents/SKILL.md +84 -0
- package/.pi/skills/edit-document/SKILL.md +23 -0
- package/.pi/skills/elaborate-spec/SKILL.md +82 -0
- package/.pi/skills/enforce-first/SKILL.md +78 -0
- package/.pi/skills/evolve-skill/SKILL.md +39 -0
- package/.pi/skills/execute-plan/SKILL.md +55 -0
- package/.pi/skills/fix-bug/SKILL.md +37 -0
- package/.pi/skills/grill-me/SKILL.md +96 -0
- package/.pi/skills/grill-with-docs/SKILL.md +38 -0
- package/.pi/skills/guard-git/SKILL.md +213 -0
- package/.pi/skills/hook-commits/SKILL.md +94 -0
- package/.pi/skills/inspect-quality/SKILL.md +106 -0
- package/.pi/skills/investigate-bug/SKILL.md +118 -0
- package/.pi/skills/kickoff-branch/SKILL.md +100 -0
- package/.pi/skills/map-codebase/SKILL.md +71 -0
- package/.pi/skills/migrate-spec/SKILL.md +483 -0
- package/.pi/skills/model-domain/SKILL.md +228 -0
- package/.pi/skills/orchestrate-project/SKILL.md +162 -0
- package/.pi/skills/organize-workspace/SKILL.md +160 -0
- package/.pi/skills/plan-refactor/SKILL.md +78 -0
- package/.pi/skills/plan-release/SKILL.md +146 -0
- package/.pi/skills/plan-work/SKILL.md +162 -0
- package/.pi/skills/release-branch/SKILL.md +159 -0
- package/.pi/skills/request-review/SKILL.md +71 -0
- package/.pi/skills/research-first/SKILL.md +63 -0
- package/.pi/skills/reset-baseline/SKILL.md +21 -0
- package/.pi/skills/respond-review/SKILL.md +71 -0
- package/.pi/skills/run-evals/SKILL.md +57 -0
- package/.pi/skills/run-planning/SKILL.md +27 -0
- package/.pi/skills/scope-work/SKILL.md +24 -0
- package/.pi/skills/search-skills/SKILL.md +22 -0
- package/.pi/skills/seed-conventions/SKILL.md +133 -0
- package/.pi/skills/session-state/SKILL.md +147 -0
- package/.pi/skills/setup-environment/SKILL.md +24 -0
- package/.pi/skills/simulate-agents/SKILL.md +26 -0
- package/.pi/skills/slice-tasks/SKILL.md +24 -0
- package/.pi/skills/spike-prototype/SKILL.md +95 -0
- package/.pi/skills/stocktake-skills/SKILL.md +41 -0
- package/.pi/skills/survey-context/SKILL.md +130 -0
- package/.pi/skills/terse-mode/SKILL.md +38 -0
- package/.pi/skills/trace-requirement/SKILL.md +69 -0
- package/.pi/skills/using-bigpowers/SKILL.md +106 -0
- package/.pi/skills/validate-fix/SKILL.md +99 -0
- package/.pi/skills/verify-work/SKILL.md +126 -0
- package/.pi/skills/visual-dashboard/SKILL.md +52 -0
- package/.pi/skills/wire-observability/SKILL.md +93 -0
- package/.pi/skills/write-document/SKILL.md +245 -0
- package/CHANGELOG.md +14 -0
- package/CLAUDE.md +1 -1
- package/CONVENTIONS.md +16 -10
- package/README.md +30 -4
- package/build-epic/SKILL.md +1 -1
- package/deepen-architecture/SKILL.md +2 -0
- package/define-language/SKILL.md +2 -0
- package/develop-tdd/REFERENCE.md +61 -0
- package/develop-tdd/SKILL.md +19 -119
- package/diagnose-root/SKILL.md +2 -0
- package/edit-document/SKILL.md +2 -0
- package/fix-bug/SKILL.md +3 -1
- package/grill-me/SKILL.md +3 -1
- package/grill-with-docs/SKILL.md +3 -1
- package/investigate-bug/SKILL.md +5 -11
- package/map-codebase/SKILL.md +3 -1
- package/migrate-spec/REFERENCE-GSD.md +4 -4
- package/migrate-spec/REFERENCE.md +33 -6
- package/migrate-spec/SKILL.md +1 -14
- package/model-domain/SKILL.md +2 -0
- package/orchestrate-project/REFERENCE.md +1 -1
- package/package.json +3 -2
- package/plan-release/SKILL.md +1 -1
- package/plan-work/REFERENCE.md +104 -0
- package/plan-work/SKILL.md +17 -151
- package/release-branch/REFERENCE.md +55 -0
- package/release-branch/SKILL.md +19 -117
- package/request-review/SKILL.md +1 -1
- package/run-planning/SKILL.md +3 -2
- package/scope-work/SKILL.md +3 -1
- package/scripts/audit-compliance.sh +15 -3
- package/scripts/check-skill-size.sh +79 -0
- package/scripts/generate-reference-tables.sh +64 -0
- package/scripts/project-survey.sh +2 -2
- package/scripts/sync-skills.sh +51 -3
- package/scripts/validate-doctrine.sh +143 -0
- package/seed-conventions/REFERENCE.md +63 -0
- package/seed-conventions/SKILL.md +23 -177
- package/slice-tasks/SKILL.md +3 -1
- package/survey-context/SKILL.md +3 -1
- package/write-document/SKILL.md +4 -2
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: wire-observability
|
|
3
|
+
description: "Add structured JSON logging, observability commands, and idempotent setup scripts to a project. Use when a project needs production-readiness instrumentation, when user wants structured logging, or as a production-readiness gate at any phase of development."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
# Wire Observability
|
|
8
|
+
> **HARD GATE** — **HARD GATE** — Observability is not optional. Before shipping, verify: structured logging is in place, key metrics are instrumented, error cases emit signals. 'We'll add metrics later' becomes 'never.'
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
Add structured logging, observability commands, and idempotent setup scripts. Can be invoked at any phase — recommended at the end of the first working slice, before the first deploy.
|
|
12
|
+
|
|
13
|
+
## What this sets up
|
|
14
|
+
|
|
15
|
+
1. **Structured JSON logging** — machine-readable logs for debugging and observability
|
|
16
|
+
2. **Observability commands** — how to check the system's health documented in CLAUDE.md
|
|
17
|
+
3. **Idempotent setup scripts** — scripts that can be run repeatedly without side effects
|
|
18
|
+
|
|
19
|
+
## Process
|
|
20
|
+
|
|
21
|
+
### 1. Assess current state
|
|
22
|
+
|
|
23
|
+
Check what's already in place:
|
|
24
|
+
- Is there a logging library? (pino, winston, structlog, zap, slog, etc.)
|
|
25
|
+
- Is logging JSON or plain text?
|
|
26
|
+
- Is there a health check endpoint or command?
|
|
27
|
+
- Are there setup scripts? Are they idempotent?
|
|
28
|
+
|
|
29
|
+
### 2. Add structured JSON logging
|
|
30
|
+
|
|
31
|
+
**For user-facing CLI output:** plain text is fine.
|
|
32
|
+
**For everything else:** structured JSON.
|
|
33
|
+
|
|
34
|
+
Structured log entry format:
|
|
35
|
+
```json
|
|
36
|
+
{
|
|
37
|
+
"level": "info",
|
|
38
|
+
"timestamp": "2025-01-15T10:23:45.123Z",
|
|
39
|
+
"message": "User created",
|
|
40
|
+
"userId": "usr_abc123",
|
|
41
|
+
"requestId": "req_xyz789"
|
|
42
|
+
}
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Guidelines:
|
|
46
|
+
- Include `level`, `timestamp`, `message` in every entry
|
|
47
|
+
- Add context fields relevant to the operation (userId, requestId, traceId)
|
|
48
|
+
- Log at boundaries: HTTP requests in/out, DB queries, external API calls, background job start/end
|
|
49
|
+
- Log errors with stack traces: `logger.error({ err, context }, "Operation failed")`
|
|
50
|
+
- **Never log secrets, passwords, tokens, or PII**
|
|
51
|
+
|
|
52
|
+
### 3. Document observability commands in CLAUDE.md
|
|
53
|
+
|
|
54
|
+
Add an "Observability" section to the project's CLAUDE.md:
|
|
55
|
+
|
|
56
|
+
```markdown
|
|
57
|
+
## Observability
|
|
58
|
+
|
|
59
|
+
| What | Command |
|
|
60
|
+
|------|---------|
|
|
61
|
+
| View logs | `<log tail command>` |
|
|
62
|
+
| Health check | `<health check command>` |
|
|
63
|
+
| Check DB connection | `<db ping command>` |
|
|
64
|
+
| View metrics | `<metrics command>` |
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
### 4. Write idempotent setup scripts
|
|
68
|
+
|
|
69
|
+
An idempotent script can be run multiple times and always produces the same result (no errors on re-run).
|
|
70
|
+
|
|
71
|
+
Pattern: check if the thing already exists before creating it.
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
#!/usr/bin/env bash
|
|
75
|
+
set -euo pipefail
|
|
76
|
+
|
|
77
|
+
# Idempotent: only create if not exists
|
|
78
|
+
if ! psql -c "SELECT 1 FROM pg_database WHERE datname = 'myapp'" | grep -q 1; then
|
|
79
|
+
createdb myapp
|
|
80
|
+
echo "Database created"
|
|
81
|
+
else
|
|
82
|
+
echo "Database already exists, skipping"
|
|
83
|
+
fi
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
Place setup scripts in `scripts/setup.sh` (or language-appropriate equivalent). Document the command in CLAUDE.md under Commands.
|
|
87
|
+
|
|
88
|
+
### 5. Verify
|
|
89
|
+
|
|
90
|
+
- [ ] Run the app and confirm JSON logs appear in the correct format
|
|
91
|
+
- [ ] Run `scripts/setup.sh` twice — second run should produce no errors
|
|
92
|
+
- [ ] Health check command returns success
|
|
93
|
+
- [ ] No sensitive data in log output
|
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: write-document
|
|
3
|
+
description: "Write, organize, and sync high-integrity technical documents using the BMAD methodology. Ensures every document is Bold, Minimal, Actionable, and Durable. Use when creating architectural docs, technical guides, or organizing the specs/ directory."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
# Write Document (BMAD)
|
|
8
|
+
|
|
9
|
+
Create high-signal technical documentation that serves as an expert collaborator for both humans and AI. This skill enforces the BMAD principles to prevent context rot and ensure architectural durability.
|
|
10
|
+
|
|
11
|
+
**Distinct from `edit-document`:** Use this skill to create a document that does not yet exist. Use `edit-document` when a document already exists and needs restructuring, clarity, or prose improvements.
|
|
12
|
+
|
|
13
|
+
> **HARD GATE** — Every document must have a clear "Reason for Existence." If a document doesn't provide actionable leverage for a caller or test, do not create it.
|
|
14
|
+
|
|
15
|
+
## The BMAD Principles
|
|
16
|
+
|
|
17
|
+
| Principle | Execution |
|
|
18
|
+
| :--- | :--- |
|
|
19
|
+
| **B**old | Make strong assertions. Define clear boundaries and "Never" rules. No "it might" or "usually." |
|
|
20
|
+
| **M**inimal | High-density, low-filler. **Circuit Breaker**: If the file exceeds 300 lines or the session exceeds 20 turns, you MUST run `terse-mode` and compact state before saving. |
|
|
21
|
+
| **A**ctionable | Link every doc to a verifiable outcome. **Architectural Docs**: Verify via Gherkin features (`specs/verifications/features/`) or grep-based structure checks (`grep -c "pattern" file`) that prove the design's *constraints* are present. |
|
|
22
|
+
| **D**urable | Design for the long-term. **Scalability**: Use "Nested Indexing"—root files link to module-level `GEMINI.md` indexes; do not list individual sub-files in the root. |
|
|
23
|
+
|
|
24
|
+
## Process
|
|
25
|
+
|
|
26
|
+
### 1. Identify the Artifact Type & Scope
|
|
27
|
+
|
|
28
|
+
Choose the correct BMAD-BigPowers artifact:
|
|
29
|
+
- **Decision Record (ADR)**: For "Why" decisions (saved to `specs/adr/`).
|
|
30
|
+
- **Context Map**: For system-wide architectural mapping (`specs/tech-architecture/tech-stack.md`).
|
|
31
|
+
- **Technical Guide**: For "How-to" with verification (saved to `<module>/REFERENCE.md`).
|
|
32
|
+
- **Behavioral Feature**: Gherkin-style compliance specs (saved to `specs/verifications/features/`).
|
|
33
|
+
- **Project README**: Project-facing documentation (saved to `README.md` at project root).
|
|
34
|
+
|
|
35
|
+
**Cross-Cutting Concerns**: If a doc affects multiple modules, place the authoritative source in the lowest common ancestor directory and use "Delegates" (one-line pointers) in sub-directories to maintain the Single Source of Truth without violating the Stepdown Rule.
|
|
36
|
+
|
|
37
|
+
### 2. Draft with Semantic Velocity
|
|
38
|
+
|
|
39
|
+
> **STREAM CONTINUITY** — When writing file content, output in continuous chunks of ~200 lines. Do not pause. Continue immediately until complete. If you need time, emit a placeholder comment rather than going silent.
|
|
40
|
+
|
|
41
|
+
Write the document focusing on "Expert Collaboration":
|
|
42
|
+
- **Instructions over Descriptions**: Tell the reader (human or AI) exactly how to interact with the system.
|
|
43
|
+
- **Provenance Links**: Link to ADRs, Issues, or Commits to preserve intent.
|
|
44
|
+
- **The Stepdown Rule**: Information should descend exactly one level of abstraction. If a root doc needs to explain a leaf-level detail, it must point to a sub-index first.
|
|
45
|
+
|
|
46
|
+
### Quick README (Project READMEs only)
|
|
47
|
+
|
|
48
|
+
1. Ask: "Project name? One-sentence description?"
|
|
49
|
+
2. Generate `README.md` at project root using the template in [REFERENCE.md](REFERENCE.md) — no TOC, no second interview round.
|
|
50
|
+
3. Fill gaps from `CLAUDE.md` commands if available; use `TODO` markers otherwise.
|
|
51
|
+
4. Output and suggest `edit-document` for polish.
|
|
52
|
+
|
|
53
|
+
→ verify: `grep -c "^## " README.md | awk '{if($1>=7) print "OK"}'`
|
|
54
|
+
|
|
55
|
+
### 3. Apply the 94% Quality Gate
|
|
56
|
+
|
|
57
|
+
Before finalizing, audit the document against these red flags:
|
|
58
|
+
- [ ] **Filler Language**: Are there pleasantries or "I hope this helps"? (Delete them).
|
|
59
|
+
- [ ] **Ambiguity**: Are there "usually," "often," or "it depends" without specific conditions?
|
|
60
|
+
- [ ] **Dead Ends**: Does the document end without a "Next Step" or "Verification" command?
|
|
61
|
+
- [ ] **Shallow Content**: Does it restate the code without explaining the *intent* or *contracts*?
|
|
62
|
+
|
|
63
|
+
### 4. Sync and Organize
|
|
64
|
+
|
|
65
|
+
- **Big Powers Hierarchy**: Place the document in the correct tier (Global -> Project -> Sub-directory). Project READMEs are an exception — they go to project root (`README.md`), not `specs/`.
|
|
66
|
+
- **Nested Indexing**: If adding a module-level doc, ensure the module's `GEMINI.md` is updated. If the module's index is new, add it to the root `GEMINI.md`.
|
|
67
|
+
- **Sync**: Run `scripts/sync-skills.sh` if the document is a `SKILL.md` or affects generated artifacts.
|
|
68
|
+
|
|
69
|
+
## Rules
|
|
70
|
+
|
|
71
|
+
- **Minimalism is a requirement**: If a document can be a 5-line table, do not make it a 5-line essay.
|
|
72
|
+
- **Verifiable outcomes**: Every technical document must include at least one `verify:` command. For architecture, this can be a `grep` or `run_shell_command` that validates the existence of required files or patterns.
|
|
73
|
+
- **No speculative docs**: Do not write documentation for features that do not exist yet unless explicitly doing `elaborate-spec`.
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
Suggest next skill: `audit-code` or `sync-skills.sh`.
|
|
77
|
+
|
|
78
|
+
---
|
|
79
|
+
|
|
80
|
+
# Project README Template
|
|
81
|
+
|
|
82
|
+
Combined from dbader/readme-template and jehna/readme-best-practices. No TOC.
|
|
83
|
+
|
|
84
|
+
## Sections
|
|
85
|
+
|
|
86
|
+
### 1. Title + Badges
|
|
87
|
+
|
|
88
|
+
```markdown
|
|
89
|
+
# Project Name
|
|
90
|
+
|
|
91
|
+

|
|
92
|
+

|
|
93
|
+
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
Fill badges from CLAUDE.md stack info if available. Default to license + version badges.
|
|
97
|
+
|
|
98
|
+
### 2. Tagline
|
|
99
|
+
|
|
100
|
+
```markdown
|
|
101
|
+
> One-line description of what this project does and why it matters.
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
### 3. Description
|
|
105
|
+
|
|
106
|
+
2-3 paragraphs: what problem it solves, who it's for, and what makes it different.
|
|
107
|
+
|
|
108
|
+
### 4. Prerequisites
|
|
109
|
+
|
|
110
|
+
```markdown
|
|
111
|
+
## Prerequisites
|
|
112
|
+
|
|
113
|
+
- **Runtime**: Node.js v18+ (from CLAUDE.md)
|
|
114
|
+
- **Package manager**: npm (or pnpm/yarn)
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
Auto-fill from CLAUDE.md commands section when possible.
|
|
118
|
+
|
|
119
|
+
### 5. Installation
|
|
120
|
+
|
|
121
|
+
```markdown
|
|
122
|
+
## Installation
|
|
123
|
+
|
|
124
|
+
```bash
|
|
125
|
+
npm install -g your-package
|
|
126
|
+
# or
|
|
127
|
+
npx your-package
|
|
128
|
+
```
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
Prefer npx one-shot if applicable; list global install as alternative.
|
|
132
|
+
|
|
133
|
+
### 6. Usage
|
|
134
|
+
|
|
135
|
+
```markdown
|
|
136
|
+
## Usage
|
|
137
|
+
|
|
138
|
+
```bash
|
|
139
|
+
your-command --help
|
|
140
|
+
your-command do-something
|
|
141
|
+
```
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
Include the most common 1-2 commands. Link to full docs if they exist.
|
|
145
|
+
|
|
146
|
+
### 7. Features
|
|
147
|
+
|
|
148
|
+
```markdown
|
|
149
|
+
## Features
|
|
150
|
+
|
|
151
|
+
- Feature 1: short description
|
|
152
|
+
- Feature 2: short description
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
3-6 bullet points of what the project does. Derived from the project's purpose.
|
|
156
|
+
|
|
157
|
+
### 8. Configuration
|
|
158
|
+
|
|
159
|
+
```markdown
|
|
160
|
+
## Configuration
|
|
161
|
+
|
|
162
|
+
| Variable | Default | Description |
|
|
163
|
+
|----------|---------|-------------|
|
|
164
|
+
| `VAR_NAME` | `value` | What it controls |
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
Use `TODO` markers if unknown.
|
|
168
|
+
|
|
169
|
+
### 9. Development Setup
|
|
170
|
+
|
|
171
|
+
```markdown
|
|
172
|
+
## Development
|
|
173
|
+
|
|
174
|
+
```bash
|
|
175
|
+
git clone <repo-url>
|
|
176
|
+
cd project
|
|
177
|
+
npm install
|
|
178
|
+
```
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
Auto-fill from CLAUDE.md `Run` and `Build` commands.
|
|
182
|
+
|
|
183
|
+
### 10. Running Tests
|
|
184
|
+
|
|
185
|
+
```markdown
|
|
186
|
+
## Tests
|
|
187
|
+
|
|
188
|
+
```bash
|
|
189
|
+
npm test
|
|
190
|
+
npm run lint
|
|
191
|
+
```
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
Auto-fill from CLAUDE.md `Test` and `Lint` commands.
|
|
195
|
+
|
|
196
|
+
### 11. Contributing
|
|
197
|
+
|
|
198
|
+
```markdown
|
|
199
|
+
## Contributing
|
|
200
|
+
|
|
201
|
+
1. Fork the repo.
|
|
202
|
+
2. Create a feature branch (`git checkout -b feature/my-thing`).
|
|
203
|
+
3. Commit changes (`git commit -am 'Add my thing'`).
|
|
204
|
+
4. Push (`git push origin feature/my-thing`).
|
|
205
|
+
5. Open a Pull Request.
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
### 12. Changelog
|
|
209
|
+
|
|
210
|
+
```markdown
|
|
211
|
+
## Changelog
|
|
212
|
+
|
|
213
|
+
See [CHANGELOG.md](CHANGELOG.md) or [Releases](https://github.com/user/repo/releases).
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
### 13. Links
|
|
217
|
+
|
|
218
|
+
```markdown
|
|
219
|
+
## Links
|
|
220
|
+
|
|
221
|
+
- Repository: https://github.com/user/repo
|
|
222
|
+
- Issue tracker: https://github.com/user/repo/issues
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
### 14. License
|
|
226
|
+
|
|
227
|
+
```markdown
|
|
228
|
+
## License
|
|
229
|
+
|
|
230
|
+
MIT — see [LICENSE](LICENSE) for details.
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
Detect from CLAUDE.md or project LICENSE file.
|
|
234
|
+
|
|
235
|
+
### 15. Credits (optional)
|
|
236
|
+
|
|
237
|
+
```markdown
|
|
238
|
+
## Credits
|
|
239
|
+
|
|
240
|
+
Built with [bigpowers](https://github.com/danielvm-git/bigpowers).
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
## Verify
|
|
244
|
+
|
|
245
|
+
After generation, run: `grep -c "^## " README.md` — expect ≥ 7 section headings.
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [2.3.0](https://github.com/danielvm-git/bigpowers/compare/v2.2.0...v2.3.0) (2026-06-18)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **skills:** add pi agent harness as target platform ([#18](https://github.com/danielvm-git/bigpowers/issues/18)) ([768d911](https://github.com/danielvm-git/bigpowers/commit/768d911ba5a980eb2dcb11ce85a4d0a1813d243b))
|
|
7
|
+
|
|
8
|
+
# [2.2.0](https://github.com/danielvm-git/bigpowers/compare/v2.1.3...v2.2.0) (2026-06-13)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* **skills:** enforce tiered SKILL.md size cap (Epic 4) ([5b66257](https://github.com/danielvm-git/bigpowers/commit/5b66257bcb7c5c01246e8cbf02e6cb701120eae0))
|
|
14
|
+
|
|
1
15
|
## [2.1.3](https://github.com/danielvm-git/bigpowers/compare/v2.1.2...v2.1.3) (2026-06-12)
|
|
2
16
|
|
|
3
17
|
|
package/CLAUDE.md
CHANGED
|
@@ -21,7 +21,7 @@ Stack: Markdown / Bash (documentation-based; skills integrate with Claude Code,
|
|
|
21
21
|
|
|
22
22
|
## Architecture
|
|
23
23
|
|
|
24
|
-
Collection of 61 verb-noun skills, each with a SKILL.md source file and supporting documentation. Runtime specs live in `specs/state.yaml`, `specs/release-plan.yaml`, and `specs/execution-status.yaml`; intent in `specs/
|
|
24
|
+
Collection of 61 verb-noun skills, each with a SKILL.md source file and supporting documentation. Runtime specs live in `specs/state.yaml`, `specs/release-plan.yaml`, and `specs/execution-status.yaml`; intent in `specs/product/`; epic shards in `specs/epics/`. The sync-skills.sh script auto-generates artifacts for Cursor (.cursor/rules) and Gemini CLI (.gemini/extensions/bigpowers/) from SKILL.md sources. All planning output goes to specs/ at the project root.
|
|
25
25
|
|
|
26
26
|
## Conventions
|
|
27
27
|
|
package/CONVENTIONS.md
CHANGED
|
@@ -59,7 +59,13 @@ Every skill that produces written output writes to `specs/` at the project root.
|
|
|
59
59
|
|
|
60
60
|
### BCP accounting mandate (v2.0.0)
|
|
61
61
|
|
|
62
|
-
|
|
62
|
+
**BCP = Business Complexity Points** — a pre-build story size, not a per-task annotation. Canonical method: [`docs/references/bcp.md`](docs/references/bcp.md) (sourced from `flow-ciandt/bcp-agent`).
|
|
63
|
+
|
|
64
|
+
- **Sizing (plan-release):** Every story in `specs/release-plan.yaml` MUST have a `bcps:` field set via the 6-step BCP sizing method before implementation begins. No story enters the build queue without a BCP baseline.
|
|
65
|
+
- **Session state:** `plan-work` confirms the BCP size and writes it to `specs/state.yaml` as `epic_cycle.story_bcps`.
|
|
66
|
+
- **Velocity (release-branch):** After landing, `release-branch` appends a row to `specs/metrics/cycle-times.yaml` with `bcp_per_hour = story_bcps / cycle_minutes * 60`.
|
|
67
|
+
|
|
68
|
+
BCP is a **story-level** size. Per-task `[BCP N]` annotations are not part of the canonical method.
|
|
63
69
|
|
|
64
70
|
### Timestamp mandate (v2.0.0)
|
|
65
71
|
|
|
@@ -76,9 +82,9 @@ Every critical-path skill (survey-context, plan-work, kickoff-branch, develop-td
|
|
|
76
82
|
|
|
77
83
|
| Question | File | Format |
|
|
78
84
|
|----------|------|--------|
|
|
79
|
-
| What should the product do? | `specs/
|
|
80
|
-
| North star / initiative | `specs/
|
|
81
|
-
| Glossary | `specs/
|
|
85
|
+
| What should the product do? | `specs/product/SCOPE_LATEST.yaml` | YAML |
|
|
86
|
+
| North star / initiative | `specs/product/VISION_LATEST.yaml` | YAML |
|
|
87
|
+
| Glossary | `specs/product/GLOSSARY_LATEST.yaml` | YAML |
|
|
82
88
|
| What ships in this release, in what order? | `specs/release-plan.yaml` | YAML |
|
|
83
89
|
| How to implement an epic/story? | `specs/epics/eNN-*.yaml` or `specs/epics/eNN-*/stories/` | YAML + MD |
|
|
84
90
|
| Where are we in the session? | `specs/state.yaml` | YAML |
|
|
@@ -87,7 +93,7 @@ Epic IDs: `e01`, `e30`. Story IDs: `e01s01`. One FR in SCOPE may span multiple e
|
|
|
87
93
|
|
|
88
94
|
### Frozen release (ex-baseline)
|
|
89
95
|
|
|
90
|
-
When planning closes, copy to `specs/
|
|
96
|
+
When planning closes, copy to `specs/product/snapshots/release-<version>/` (`release-plan.yaml`, `SCOPE_LATEST.yaml`, `VISION_LATEST.yaml`). No separate `baselines/` folder.
|
|
91
97
|
|
|
92
98
|
### Semantic-release — three places
|
|
93
99
|
|
|
@@ -99,11 +105,11 @@ When planning closes, copy to `specs/requirements/snapshots/release-<version>/`
|
|
|
99
105
|
|
|
100
106
|
| Document | Path |
|
|
101
107
|
|----------|------|
|
|
102
|
-
| Stack / architecture | `specs/
|
|
103
|
-
| Security / test / design plans | `specs/
|
|
104
|
-
| Domain context + ADRs | `specs/
|
|
108
|
+
| Stack / architecture | `specs/tech-architecture/TECH_STACK_LATEST.md` |
|
|
109
|
+
| Security / test / design plans | `specs/tech-architecture/*_PLAN_LATEST.md` |
|
|
110
|
+
| Domain context + ADRs | `specs/tech-architecture/TECH_STACK_LATEST.md` or legacy `specs/CONTEXT.md` + `specs/adr/` |
|
|
105
111
|
| Bug investigation | `specs/bugs/BUG-*.md` + `specs/bugs/registry.yaml` (generated) |
|
|
106
|
-
| Refactor / impact | `specs/
|
|
112
|
+
| Refactor / impact | `specs/tech-architecture/REFACTOR_LATEST.md`, `specs/tech-architecture/IMPACT_LATEST.md` |
|
|
107
113
|
| Legacy markdown | `specs/archive/` after `bash scripts/convert-legado.sh` |
|
|
108
114
|
|
|
109
115
|
Validate YAML layout: `bash scripts/validate-specs-yaml.sh`. Patch runtime keys: `bash scripts/bp-yaml-set.sh specs/state.yaml git.branch feat/foo`.
|
|
@@ -114,7 +120,7 @@ Validate YAML layout: `bash scripts/validate-specs-yaml.sh`. Patch runtime keys:
|
|
|
114
120
|
|-----|-----|
|
|
115
121
|
| `specs/STATE.md` | `specs/state.yaml` |
|
|
116
122
|
| `specs/RELEASE-PLAN.md` | `specs/release-plan.yaml` + `specs/epics/` |
|
|
117
|
-
| `specs/SCOPE.md` | `specs/
|
|
123
|
+
| `specs/SCOPE.md` | `specs/product/SCOPE_LATEST.yaml` |
|
|
118
124
|
|
|
119
125
|
## Code Style
|
|
120
126
|
|
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
**61 agent skills for high-integrity, spec-driven, test-first software development by solo developers.**
|
|
8
8
|
|
|
9
|
-
`bigpowers` provides a prescriptive, vertical-slice methodology for building software with AI agents (Claude Code, Gemini CLI, Cursor). It bridges the gap between raw LLM capabilities and professional engineering standards.
|
|
9
|
+
`bigpowers` provides a prescriptive, vertical-slice methodology for building software with AI agents (Claude Code, Gemini CLI, Cursor, pi). It bridges the gap between raw LLM capabilities and professional engineering standards.
|
|
10
10
|
|
|
11
11
|
Published on npm: [bigpowers@2.0.0](https://www.npmjs.com/package/bigpowers)
|
|
12
12
|
|
|
@@ -48,6 +48,7 @@ npm run sync
|
|
|
48
48
|
- [Claude Code](https://claude.ai/code)
|
|
49
49
|
- [Gemini CLI](https://github.com/google/gemini-cli)
|
|
50
50
|
- [Cursor](https://cursor.sh/)
|
|
51
|
+
- [pi](https://pi.dev/) — coding agent harness
|
|
51
52
|
|
|
52
53
|
---
|
|
53
54
|
|
|
@@ -96,6 +97,31 @@ bigpowers
|
|
|
96
97
|
|
|
97
98
|
---
|
|
98
99
|
|
|
100
|
+
## 🔌 pi Support
|
|
101
|
+
|
|
102
|
+
bigpowers generates pi Agent Skills and prompt templates alongside Cursor and Gemini artifacts via `sync-skills.sh`.
|
|
103
|
+
|
|
104
|
+
### Install as a pi package
|
|
105
|
+
|
|
106
|
+
```bash
|
|
107
|
+
# Clone and sync to generate pi artifacts
|
|
108
|
+
cd bigpowers
|
|
109
|
+
bash scripts/sync-skills.sh
|
|
110
|
+
|
|
111
|
+
# Install from local path as a pi package
|
|
112
|
+
pi install .
|
|
113
|
+
|
|
114
|
+
# Or install as a pi npm package (once published with pi-package keyword)
|
|
115
|
+
pi install npm:bigpowers
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
**What you get:**
|
|
119
|
+
- **62 pi skills** in `.pi/skills/` — loaded automatically into pi's system prompt as `<available_skills>`
|
|
120
|
+
- **62 pi prompt templates** in `.pi/prompts/` — slash commands like `/survey-context`, `/plan-work`
|
|
121
|
+
- **pi package manifest** in `.pi/package.json` — enables `pi install` with auto-discovery
|
|
122
|
+
|
|
123
|
+
Skills are loaded on-demand via progressive disclosure: only descriptions are always in context; the full SKILL.md loads when the agent reads it. Prompt templates expand in pi's editor with autocomplete.
|
|
124
|
+
|
|
99
125
|
## 🏗 The v2.0.0 Lifecycle
|
|
100
126
|
|
|
101
127
|
Every project follows the **orchestrate-project 6-phase model** (full SOP: [`docs/WORKFLOW-SOP-v2.md`](docs/WORKFLOW-SOP-v2.md)):
|
|
@@ -137,9 +163,9 @@ ONCE/PROJECT orchestrate-project
|
|
|
137
163
|
| Level | Document | Responsibility |
|
|
138
164
|
| :--- | :--- | :--- |
|
|
139
165
|
| **Vision** | `docs/PRINCIPLES.md` | Philosophical foundations and evolution. |
|
|
140
|
-
| **Context** | `specs/
|
|
141
|
-
| **Scope** | `specs/
|
|
142
|
-
| **Vision** | `specs/
|
|
166
|
+
| **Context** | `specs/tech-architecture/TECH_STACK_LATEST.md` | Tech stack, architecture, and domain notes. |
|
|
167
|
+
| **Scope** | `specs/product/SCOPE_LATEST.yaml` | In-scope / out-of-scope and success criteria. |
|
|
168
|
+
| **Vision** | `specs/product/VISION_LATEST.yaml` | North star and initiative success criteria. |
|
|
143
169
|
| **Decisions** | `specs/adr/` | Architectural Decision Records (irreversible choices). |
|
|
144
170
|
| **Roadmap** | `specs/release-plan.yaml` + `specs/epics/` | WSJF-prioritized epics and stories with BCP baseline. |
|
|
145
171
|
| **Current** | `specs/state.yaml` | Session flow, active epic, `handoff.next_skill`, timestamps. |
|
package/build-epic/SKILL.md
CHANGED
|
@@ -30,7 +30,7 @@ Orchestrates the **build** flow for a single epic: survey → plan tasks → kic
|
|
|
30
30
|
## Process
|
|
31
31
|
|
|
32
32
|
1. Read `specs/state.yaml`, `specs/execution-status.yaml`, `specs/release-plan.yaml`, active `specs/epics/eNN-slug/epic.yaml`.
|
|
33
|
-
2. **BCP Tracking (Step 2):** After `plan-work` completes, read the `bcps:` count from the epic capsule and carry it into `state.yaml` as `epic_cycle.story_bcps = N`.
|
|
33
|
+
2. **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`.
|
|
34
34
|
3. If `epic_cycle.step` missing, set to `1`.
|
|
35
35
|
4. Run **only the current step** (resume mode) unless user asked for full auto-run.
|
|
36
36
|
5. After step verify passes, increment `epic_cycle.step` in `state.yaml` (or `bash scripts/bp-yaml-set.sh` if available).
|
|
@@ -8,6 +8,8 @@ description: Find deepening opportunities in a codebase, informed by the domain
|
|
|
8
8
|
|
|
9
9
|
Surface architectural friction and propose **deepening opportunities** — refactors that turn shallow modules into deep ones. The aim is testability and AI-navigability.
|
|
10
10
|
|
|
11
|
+
**Distinct from `define-language` and `model-domain`:** Use this skill to find module-level refactoring opportunities in the codebase. Use `define-language` to produce a canonical glossary of terms. Use `model-domain` to stress-test a plan through a domain-model interview.
|
|
12
|
+
|
|
11
13
|
> **HARD GATE** — Deep modules must solve a forcing function, not just be "nice abstractions." If you cannot articulate why the abstraction exists, it is premature.
|
|
12
14
|
|
|
13
15
|
## Glossary
|
package/define-language/SKILL.md
CHANGED
|
@@ -8,6 +8,8 @@ description: Extract a DDD-style ubiquitous language glossary from the current c
|
|
|
8
8
|
|
|
9
9
|
Extract and formalize domain terminology from the current conversation into a consistent glossary, saved to `specs/UBIQUITOUS_LANGUAGE.md`.
|
|
10
10
|
|
|
11
|
+
**Distinct from `model-domain` and `deepen-architecture`:** Use this skill to produce a canonical glossary of terms (words and definitions). Use `model-domain` to stress-test a plan through an interview that resolves domain model decisions. Use `deepen-architecture` to find module-level refactoring opportunities in the codebase.
|
|
12
|
+
|
|
11
13
|
> **HARD GATE** — Ubiquitous language is NOT optional. Every term in the domain that could be misunderstood must be glossed. Ambiguity = rework.
|
|
12
14
|
|
|
13
15
|
## Process
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# Develop TDD — Reference
|
|
2
|
+
|
|
3
|
+
## Anti-Pattern: Horizontal Slices
|
|
4
|
+
|
|
5
|
+
**DO NOT write all tests first, then all implementation.** This is "horizontal slicing" — treating RED as "write all tests" and GREEN as "write all code."
|
|
6
|
+
|
|
7
|
+
This produces **crap tests**:
|
|
8
|
+
- Tests written in bulk test _imagined_ behavior, not _actual_ behavior
|
|
9
|
+
- You end up testing the _shape_ of things rather than user-facing behavior
|
|
10
|
+
- Tests become insensitive to real changes
|
|
11
|
+
|
|
12
|
+
**Correct approach**: Vertical slices via tracer bullets. One test → one implementation → repeat.
|
|
13
|
+
|
|
14
|
+
```
|
|
15
|
+
WRONG (horizontal):
|
|
16
|
+
RED: test1, test2, test3, test4, test5
|
|
17
|
+
GREEN: impl1, impl2, impl3, impl4, impl5
|
|
18
|
+
|
|
19
|
+
RIGHT (vertical):
|
|
20
|
+
RED→GREEN: test1→impl1
|
|
21
|
+
RED→GREEN: test2→impl2
|
|
22
|
+
RED→GREEN: test3→impl3
|
|
23
|
+
...
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
> The Red Flags table lives in [SKILL.md](SKILL.md#red-flags) — it is core behavioral guidance, not reference detail.
|
|
27
|
+
|
|
28
|
+
## TDD Phases (Detail)
|
|
29
|
+
|
|
30
|
+
### Red Phase
|
|
31
|
+
|
|
32
|
+
Write a failing test first:
|
|
33
|
+
- Test describes the desired observable behavior through the public interface
|
|
34
|
+
- Run the test to confirm it fails for the right reason (not a syntax error, not a typo)
|
|
35
|
+
- Commit: `git commit -m "test(<scope>): <description>"`
|
|
36
|
+
|
|
37
|
+
### Green Phase
|
|
38
|
+
|
|
39
|
+
Write the minimum code to make the test pass:
|
|
40
|
+
- No extra logic, no anticipated future cases, no premature optimization
|
|
41
|
+
- Focus only on making the current test pass
|
|
42
|
+
- Commit: `git commit -m "feat(<scope>): <description>"` or `"fix(<scope>): <description>"`
|
|
43
|
+
|
|
44
|
+
### Refactor Phase
|
|
45
|
+
|
|
46
|
+
Improve structure without changing behavior:
|
|
47
|
+
- Extract duplication, apply SOLID principles where natural, deepen modules
|
|
48
|
+
- Run tests after each refactor step to ensure behavior is preserved
|
|
49
|
+
- Commit: `git commit -m "refactor(<scope>): <description>"`
|
|
50
|
+
- Apply the Boy Scout Rule: leave the code cleaner than you found it
|
|
51
|
+
|
|
52
|
+
## Visual Slices (UI Alternate Workflow)
|
|
53
|
+
|
|
54
|
+
For UI components (SwiftUI, React, Flutter) where behavioral unit testing is brittle or low-signal:
|
|
55
|
+
|
|
56
|
+
1. **Test-First Logic**: Extract logic (state transitions, formatting, validation) into a Controller, ViewModel, or Hook. This logic MUST follow pure TDD.
|
|
57
|
+
2. **Visual Verification**: For the View/Component itself:
|
|
58
|
+
- **RED**: Write the component signature and a basic preview/snapshot that fails (or displays placeholder).
|
|
59
|
+
- **GREEN**: Implement the UI and verify visually via manual run, preview, or snapshot test.
|
|
60
|
+
- **REFINE**: Adjust styling and layout until it matches the design.
|
|
61
|
+
3. **COMMIT**: `git commit -m "feat(ui): <component name> visual slice verified"`
|