@loneexile/omp-superpowers 6.4.2-omp.1

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.
Files changed (84) hide show
  1. package/.pi/extensions/superpowers.ts +123 -0
  2. package/CHANGELOG.md +28 -0
  3. package/LICENSE +21 -0
  4. package/README.md +187 -0
  5. package/agents/sdd-escalation-implementer.md +18 -0
  6. package/agents/sdd-final-reviewer.md +23 -0
  7. package/agents/sdd-implementer.md +23 -0
  8. package/agents/sdd-rereviewer.md +69 -0
  9. package/agents/sdd-reviewer.md +83 -0
  10. package/package.json +40 -0
  11. package/skills/brainstorming/SKILL.md +285 -0
  12. package/skills/brainstorming/scripts/frame-template.html +213 -0
  13. package/skills/brainstorming/scripts/helper.js +167 -0
  14. package/skills/brainstorming/scripts/server.cjs +723 -0
  15. package/skills/brainstorming/scripts/start-server.sh +209 -0
  16. package/skills/brainstorming/scripts/stop-server.sh +120 -0
  17. package/skills/brainstorming/spec-document-reviewer-prompt.md +49 -0
  18. package/skills/brainstorming/visual-companion.md +299 -0
  19. package/skills/diagnosing-superpowers/SKILL.md +120 -0
  20. package/skills/diagnosing-superpowers/prompts/analyst-common.md +38 -0
  21. package/skills/diagnosing-superpowers/prompts/cost-and-time.md +28 -0
  22. package/skills/diagnosing-superpowers/prompts/plan-adherence.md +29 -0
  23. package/skills/diagnosing-superpowers/prompts/quality-evidence.md +26 -0
  24. package/skills/diagnosing-superpowers/prompts/repeated-work.md +30 -0
  25. package/skills/diagnosing-superpowers/prompts/request-conflicts.md +20 -0
  26. package/skills/diagnosing-superpowers/prompts/scrub-audit.md +33 -0
  27. package/skills/diagnosing-superpowers/prompts/scrub.md +29 -0
  28. package/skills/diagnosing-superpowers/prompts/similar-session.md +38 -0
  29. package/skills/diagnosing-superpowers/prompts/skill-timeline.md +30 -0
  30. package/skills/diagnosing-superpowers/prompts/stumbles.md +28 -0
  31. package/skills/diagnosing-superpowers/references/context-safety.md +22 -0
  32. package/skills/diagnosing-superpowers/references/github-issues.md +47 -0
  33. package/skills/diagnosing-superpowers/references/redaction-policy.md +34 -0
  34. package/skills/diagnosing-superpowers/references/session-discovery.md +31 -0
  35. package/skills/diagnosing-superpowers/templates/bundle-README.md +77 -0
  36. package/skills/diagnosing-superpowers/templates/case.md +64 -0
  37. package/skills/diagnosing-superpowers/templates/issue.md +51 -0
  38. package/skills/diagnosing-superpowers/templates/report.md +82 -0
  39. package/skills/dispatching-parallel-agents/SKILL.md +167 -0
  40. package/skills/executing-plans/SKILL.md +373 -0
  41. package/skills/executing-plans/scripts/task-done +52 -0
  42. package/skills/executing-plans/scripts/task-start +28 -0
  43. package/skills/finishing-a-development-branch/SKILL.md +225 -0
  44. package/skills/receiving-code-review/SKILL.md +205 -0
  45. package/skills/requesting-code-review/SKILL.md +95 -0
  46. package/skills/requesting-code-review/code-reviewer.md +198 -0
  47. package/skills/subagent-driven-development/SKILL.md +681 -0
  48. package/skills/subagent-driven-development/implementer-prompt.md +157 -0
  49. package/skills/subagent-driven-development/re-review-prompt.md +110 -0
  50. package/skills/subagent-driven-development/scripts/review-package +53 -0
  51. package/skills/subagent-driven-development/scripts/sdd-workspace +82 -0
  52. package/skills/subagent-driven-development/scripts/task-brief +43 -0
  53. package/skills/subagent-driven-development/task-reviewer-prompt.md +205 -0
  54. package/skills/systematic-debugging/CREATION-LOG.md +119 -0
  55. package/skills/systematic-debugging/SKILL.md +283 -0
  56. package/skills/systematic-debugging/condition-based-waiting-example.ts +158 -0
  57. package/skills/systematic-debugging/condition-based-waiting.md +115 -0
  58. package/skills/systematic-debugging/defense-in-depth.md +122 -0
  59. package/skills/systematic-debugging/find-polluter.sh +72 -0
  60. package/skills/systematic-debugging/root-cause-tracing.md +169 -0
  61. package/skills/systematic-debugging/test-academic.md +14 -0
  62. package/skills/systematic-debugging/test-pressure-1.md +58 -0
  63. package/skills/systematic-debugging/test-pressure-2.md +68 -0
  64. package/skills/systematic-debugging/test-pressure-3.md +69 -0
  65. package/skills/test-driven-development/SKILL.md +330 -0
  66. package/skills/test-driven-development/writing-good-tests.md +198 -0
  67. package/skills/using-git-worktrees/SKILL.md +194 -0
  68. package/skills/using-superpowers/SKILL.md +65 -0
  69. package/skills/using-superpowers/references/antigravity-tools.md +23 -0
  70. package/skills/using-superpowers/references/claude-code-tools.md +29 -0
  71. package/skills/using-superpowers/references/codex-tools.md +108 -0
  72. package/skills/using-superpowers/references/gemini-tools.md +63 -0
  73. package/skills/using-superpowers/references/hermes-tools.md +56 -0
  74. package/skills/using-superpowers/references/muse-tools.md +35 -0
  75. package/skills/using-superpowers/references/pi-tools.md +41 -0
  76. package/skills/verification-before-completion/SKILL.md +120 -0
  77. package/skills/writing-plans/SKILL.md +204 -0
  78. package/skills/writing-skills/SKILL.md +681 -0
  79. package/skills/writing-skills/anthropic-best-practices.md +1150 -0
  80. package/skills/writing-skills/examples/CLAUDE_MD_TESTING.md +189 -0
  81. package/skills/writing-skills/graphviz-conventions.dot +172 -0
  82. package/skills/writing-skills/persuasion-principles.md +187 -0
  83. package/skills/writing-skills/render-graphs.js +169 -0
  84. package/skills/writing-skills/testing-skills-with-subagents.md +384 -0
@@ -0,0 +1,120 @@
1
+ ---
2
+ name: verification-before-completion
3
+ description: Use when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always
4
+ ---
5
+
6
+ # Verification Before Completion
7
+
8
+ ## Overview
9
+
10
+ **Core principle:** Evidence before claims, always.
11
+
12
+ **Violating the letter of this rule is violating the spirit of this rule.**
13
+
14
+ ## The Iron Law
15
+
16
+ ```
17
+ NO COMPLETION CLAIMS WITHOUT FRESH VERIFICATION EVIDENCE
18
+ ```
19
+
20
+ If you haven't run the verification command in this message, you cannot claim it passes.
21
+
22
+ ## The Gate Function
23
+
24
+ ```
25
+ BEFORE claiming any status or expressing satisfaction:
26
+
27
+ 1. IDENTIFY: What command proves this claim?
28
+ 2. RUN: Execute the FULL command (fresh, complete)
29
+ 3. READ: Full output, check exit code, count failures
30
+ 4. VERIFY: Does output confirm the claim?
31
+ - If NO: State actual status with evidence
32
+ - If YES: State claim WITH evidence
33
+ 5. ONLY THEN: Make the claim
34
+
35
+ Skip any step = lying, not verifying
36
+ ```
37
+
38
+ ## Common Failures
39
+
40
+ | Claim | Requires | Not Sufficient |
41
+ |-------|----------|----------------|
42
+ | Tests pass | Test command output: 0 failures | Previous run, "should pass" |
43
+ | Linter clean | Linter output: 0 errors | Partial check, extrapolation |
44
+ | Build succeeds | Build command: exit 0 | Linter passing, logs look good |
45
+ | Bug fixed | Test original symptom: passes | Code changed, assumed fixed |
46
+ | Regression test works | Red-green cycle verified | Test passes once |
47
+ | Agent completed | VCS diff shows changes | Agent reports "success" |
48
+ | Requirements met | Line-by-line checklist | Tests passing |
49
+
50
+ ## Red Flags - STOP
51
+
52
+ - Using "should", "probably", "seems to"
53
+ - Expressing satisfaction before verification ("Great!", "Perfect!", "Done!", etc.)
54
+ - About to commit/push/PR without verification
55
+ - Trusting agent success reports
56
+ - Relying on partial verification
57
+ - Thinking "just this once"
58
+ - Tired and wanting work over
59
+ - **ANY wording implying success without having run verification**
60
+
61
+ ## Rationalization Prevention
62
+
63
+ | Excuse | Reality |
64
+ |--------|---------|
65
+ | "Should work now" | RUN the verification |
66
+ | "I'm confident" | Confidence ≠ evidence |
67
+ | "Just this once" | No exceptions |
68
+ | "Linter passed" | Linter ≠ compiler |
69
+ | "Agent said success" | Verify independently |
70
+ | "I'm tired" | Exhaustion ≠ excuse |
71
+ | "Partial check is enough" | Partial proves nothing |
72
+ | "Different words so rule doesn't apply" | Spirit over letter |
73
+
74
+ ## Key Patterns
75
+
76
+ **Tests:**
77
+ ```
78
+ ✅ [Run test command] [See: 34/34 pass] "All tests pass"
79
+ ❌ "Should pass now" / "Looks correct"
80
+ ```
81
+
82
+ **Regression tests (TDD Red-Green):**
83
+ ```
84
+ ✅ Write → Run (pass) → Revert fix → Run (MUST FAIL) → Restore → Run (pass)
85
+ ❌ "I've written a regression test" (without red-green verification)
86
+ ```
87
+
88
+ **Build:**
89
+ ```
90
+ ✅ [Run build] [See: exit 0] "Build passes"
91
+ ❌ "Linter passed" (linter doesn't check compilation)
92
+ ```
93
+
94
+ **Requirements:**
95
+ ```
96
+ ✅ Re-read plan → Create checklist → Verify each → Report gaps or completion
97
+ ❌ "Tests pass, phase complete"
98
+ ```
99
+
100
+ **Agent delegation:**
101
+ ```
102
+ ✅ Agent reports success → Check VCS diff → Verify changes → Report actual state
103
+ ❌ Trust agent report
104
+ ```
105
+
106
+ ## When To Apply
107
+
108
+ **ALWAYS before:**
109
+ - ANY variation of success/completion claims
110
+ - ANY expression of satisfaction
111
+ - ANY positive statement about work state
112
+ - Committing, PR creation, task completion
113
+ - Moving to next task
114
+ - Delegating to agents
115
+
116
+ **Rule applies to:**
117
+ - Exact phrases
118
+ - Paraphrases and synonyms
119
+ - Implications of success
120
+ - ANY communication suggesting completion/correctness
@@ -0,0 +1,204 @@
1
+ ---
2
+ name: writing-plans
3
+ description: Use when you have a spec or requirements for a multi-step task, before touching code
4
+ ---
5
+
6
+ # Writing Plans
7
+
8
+ ## Overview
9
+
10
+ Write implementation plans for an engineer who has not seen this codebase or this spec. Assume they write idiomatic code in the project's language once they know the exact interface and the exact test, and that they will make a reasonable choice wherever the plan leaves one open. What they cannot know is what you decided: which files, which names and signatures, which values from the spec, which tests prove each task. Document those. Give them the whole plan as bite-sized tasks. DRY. YAGNI. TDD. Frequent commits.
11
+
12
+ **Announce at start:** "I'm using the writing-plans skill to create the implementation plan."
13
+
14
+ **Context:** If working in an isolated worktree, it should have been created via the `superpowers:using-git-worktrees` skill at execution time.
15
+
16
+ **Save plans to:** `docs/superpowers/plans/YYYY-MM-DD-<feature-name>.md`
17
+ - (User preferences for plan location override this default)
18
+
19
+ ## Scope Check
20
+
21
+ If the spec covers multiple independent subsystems, it should have been broken into sub-project specs during brainstorming. If it wasn't, suggest breaking this into separate plans — one per subsystem. Each plan should produce working, testable software on its own.
22
+
23
+ ## File Structure
24
+
25
+ Before defining tasks, map out which files will be created or modified and what each one is responsible for. This is where decomposition decisions get locked in.
26
+
27
+ - Design units with clear boundaries and well-defined interfaces. Each file should have one clear responsibility.
28
+ - You reason best about code you can hold in context at once, and your edits are more reliable when files are focused. Prefer smaller, focused files over large ones that do too much.
29
+ - Files that change together should live together. Split by responsibility, not by technical layer.
30
+ - In existing codebases, follow established patterns. If the codebase uses large files, don't unilaterally restructure - but if a file you're modifying has grown unwieldy, including a split in the plan is reasonable.
31
+
32
+ This structure informs the task decomposition. Each task should produce self-contained changes that make sense independently.
33
+
34
+ ## Task Right-Sizing
35
+
36
+ A task is the smallest unit that carries its own test cycle and is worth a
37
+ fresh reviewer's gate. When drawing task boundaries: fold setup,
38
+ configuration, scaffolding, and documentation steps into the task whose
39
+ deliverable needs them; split only where a reviewer could meaningfully
40
+ reject one task while approving its neighbor. Each task ends with an
41
+ independently testable deliverable.
42
+
43
+ ## Step Granularity
44
+
45
+ **Each step is one action with a checkable result:**
46
+ - "Write the failing test" - step
47
+ - "Run it to make sure it fails" - step
48
+ - "Implement the minimal code to make the test pass" - step
49
+ - "Run the tests and make sure they pass" - step
50
+ - "Commit" - step
51
+
52
+ ## Plan Document Header
53
+
54
+ **Every plan MUST start with this header:**
55
+
56
+ ```markdown
57
+ # [Feature Name] Implementation Plan
58
+
59
+ > **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking.
60
+
61
+ **Goal:** [One sentence describing what this builds]
62
+
63
+ **Architecture:** [2-3 sentences about approach]
64
+
65
+ **Tech Stack:** [Key technologies/libraries]
66
+
67
+ **Spec:** [path to the spec/design doc this plan implements — the plan
68
+ argues from the spec, so the spec travels with it; executors read both]
69
+
70
+ ## Global Constraints
71
+
72
+ [The spec's project-wide requirements — version floors, dependency limits,
73
+ naming and copy rules, platform requirements — one line each, with exact
74
+ values copied verbatim from the spec. Every task's requirements implicitly
75
+ include this section.]
76
+
77
+ ## Review Focus
78
+
79
+ [The five input classes or failure modes the spec implies but no task's
80
+ tests exercise that are most likely to bite a person using this software
81
+ — one line each, naming the input or condition and the behavior a
82
+ reasonable person would expect, most likely first. The spec is a vision
83
+ document: it says what the software must do, not everything it will
84
+ meet, and its silence on an input is not permission for that input to
85
+ break the program. Write the list here, once, with the spec in front of
86
+ you. Then, for each line, add the test that pins it to the task that
87
+ owns the code, in that task's own step style.]
88
+
89
+ ---
90
+ ```
91
+
92
+ ## Task Structure
93
+
94
+ ````markdown
95
+ ### Task N: [Component Name]
96
+
97
+ **Files:**
98
+ - Create: `exact/path/to/file.py`
99
+ - Modify: `exact/path/to/existing.py:123-145`
100
+ - Test: `tests/exact/path/to/test.py`
101
+
102
+ **Interfaces:**
103
+ - Consumes: [what this task uses from earlier tasks — exact signatures]
104
+ - Produces: [what later tasks rely on — exact function names, parameter
105
+ and return types. A task's implementer sees only their own task; this
106
+ block is how they learn the names and types neighboring tasks use.]
107
+
108
+ - [ ] **Step 1: Write the failing test**
109
+
110
+ ```python
111
+ def test_specific_behavior():
112
+ result = function(input)
113
+ assert result == expected
114
+ ```
115
+
116
+ - [ ] **Step 2: Run test to verify it fails**
117
+
118
+ Run: `pytest tests/path/test.py::test_name -v`
119
+ Expected: FAIL with "function not defined"
120
+
121
+ - [ ] **Step 3: Implement `function(input: InputType) -> ResultType` in `exact/path/to/file.py`**
122
+
123
+ One line on the approach when the signature and the test leave a choice
124
+ (which library call, which data structure); a code block only for an
125
+ algorithm they do not determine.
126
+
127
+ - [ ] **Step 4: Run test to verify it passes**
128
+
129
+ Run: `pytest tests/path/test.py::test_name -v`
130
+ Expected: PASS
131
+
132
+ - [ ] **Step 5: Commit**
133
+
134
+ ```bash
135
+ git add tests/path/test.py src/path/file.py
136
+ git commit -m "feat: add specific feature"
137
+ ```
138
+ ````
139
+
140
+ ## What a Step Contains
141
+
142
+ A step is done when the implementer can write exactly one reasonable thing
143
+ from it. That is the whole requirement: unambiguous, not complete. Each kind
144
+ of step carries what makes it unambiguous and nothing more:
145
+
146
+ - **A test step:** the test's name and its assertions, as code, with the
147
+ spec's exact values in them.
148
+ - **A code step:** the exact signature (name, parameters, return type), the
149
+ file it lives in, and the specific values the spec pins. The implementer
150
+ writes the body. A body appears only for an algorithm the signature and
151
+ tests do not determine, or for exact copy the spec fixes.
152
+ - **A verification step:** the command to run and the output that means it
153
+ passed.
154
+ - **A reference to another task:** that task's Interfaces block says what
155
+ to use; the plan does not repeat that task's code.
156
+
157
+ A plan is the set of decisions the implementer cannot make alone. A plan
158
+ longer than the code it describes has written the code instead. Lines that
159
+ decide nothing ("TBD", "handle edge cases", "add appropriate validation",
160
+ "write tests for the above", a type or function no task defines) are the
161
+ opposite failure, and the self-review catches both.
162
+
163
+ ## Self-Review
164
+
165
+ After writing the complete plan, look at the spec with fresh eyes and check the plan against it. This is a checklist you run yourself — not a subagent dispatch.
166
+
167
+ **1. Spec coverage:** Skim each section/requirement in the spec. Can you point to a task that implements it? List any gaps.
168
+
169
+ **2. Step scan:** Every step must let the implementer write exactly one reasonable thing, and no step may carry more than that: a line that decides nothing is a gap, a function body the signature and tests already determine is a transcript. Fix both.
170
+
171
+ **3. Type consistency:** Do the types, method signatures, and property names you used in later tasks match what you defined in earlier tasks? A function called `clearLayers()` in Task 3 but `clearFullLayers()` in Task 7 is a bug.
172
+
173
+ **4. Review Focus:** For each input class or failure mode the spec implies, is there a task whose tests exercise it? The five uncovered ones most likely to bite a person go in the Review Focus section, and each line there gets its test added to the owning task. An empty section means you checked and found none, not that you skipped the check.
174
+
175
+ **5. Proportion:** Compare the plan's length to the spec's. A plan several times longer than the spec it implements is a transcript of the program, not a plan. If code blocks are most of the document, replace bodies with signatures, test names and assertions, and check that each step is still unambiguous.
176
+
177
+ If you find issues, fix them inline. No need to re-review — just fix and move on. If you find a spec requirement with no task, add the task.
178
+
179
+ ## Execution Handoff
180
+
181
+ After saving and self-reviewing the plan, link it for your human partner
182
+ to read. If they have already explicitly supplied an execution method, ask
183
+ them to review the plan and confirm it captures what they want; wait for that
184
+ review before implementation, then use the preserved method. Otherwise, ask
185
+ them to review the plan and choose an execution method before implementation.
186
+
187
+ **When no execution method has already been supplied:**
188
+
189
+ **"Plan complete and saved to `docs/superpowers/plans/<filename>.md`. Please review the plan. Which execution approach would you prefer?**
190
+
191
+ - **Subagent-driven** - A fresh subagent implements each task and a fresh reviewer checks it before the next one starts, then a whole-branch review at the end. Most thorough; costs a fresh context per task and per review.
192
+ - **Native** - I implement every task myself in this session, the way this harness runs work, then one fresh reviewer on the most capable model checks the whole branch. Cheapest and fastest; no independent review until the end. Runs well with a mid-tier session model, since the plan carries the design.
193
+
194
+ **For this plan I recommend <one of the two>, because <one sentence from the plan: how much the tasks depend on each other's interfaces, how many there are, what a shipped mistake would cost>. Does the plan capture what you want, and which approach should we use?"**
195
+
196
+ **When an execution method has already been supplied:**
197
+
198
+ **"Plan complete and saved to `docs/superpowers/plans/<filename>.md`. Please review the plan. Does it capture what you want?"**
199
+
200
+ **If Subagent-driven chosen:**
201
+ - **REQUIRED SUB-SKILL:** Use superpowers:subagent-driven-development
202
+
203
+ **If Native chosen:**
204
+ - **REQUIRED SUB-SKILL:** Use superpowers:executing-plans