@leing2021/super-pi 0.23.4 → 0.23.5
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/README.md +1 -1
- package/package.json +1 -1
- package/rules/common/development-workflow.md +1 -0
- package/skills/01-brainstorm/SKILL.md +1 -1
- package/skills/02-plan/SKILL.md +3 -2
- package/skills/03-work/SKILL.md +21 -2
- package/skills/04-review/SKILL.md +1 -1
- package/skills/04-review/references/reviewer-selection.md +3 -1
- package/skills/05-learn/SKILL.md +1 -1
- package/skills/06-next/SKILL.md +1 -1
- package/skills/07-worktree/SKILL.md +1 -1
- package/skills/08-help/SKILL.md +1 -1
package/README.md
CHANGED
|
@@ -89,7 +89,7 @@ New conversation overhead: **~2,600 tokens** (1.3% of 200K context).
|
|
|
89
89
|
|
|
90
90
|
Progressive loading: only needed skills loaded on-demand.
|
|
91
91
|
|
|
92
|
-
Full evaluation →
|
|
92
|
+
Full evaluation → see Token Cost section above.
|
|
93
93
|
|
|
94
94
|
---
|
|
95
95
|
|
package/package.json
CHANGED
|
@@ -13,6 +13,7 @@ The Feature Implementation Workflow describes the development pipeline: research
|
|
|
13
13
|
- **Check package registries:** Search npm, PyPI, crates.io, and other registries before writing utility code. Prefer battle-tested libraries over hand-rolled solutions.
|
|
14
14
|
- **Search for adaptable implementations:** Look for open-source projects that solve 80%+ of the problem and can be forked, ported, or wrapped.
|
|
15
15
|
- Prefer adopting or porting a proven approach over writing net-new code when it meets the requirement.
|
|
16
|
+
- **Source-driven trigger:** When implementation depends on a framework/library API, version-specific behavior, or a recommended pattern, verify against official documentation and cite key sources in the output. Pure logic, renaming, or in-project pattern reuse does not require external citation.
|
|
16
17
|
|
|
17
18
|
1. **Plan First**
|
|
18
19
|
- Use **planner** agent to create implementation plan
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: 01-brainstorm
|
|
3
|
-
description: "
|
|
3
|
+
description: "Discover requirements through structured multi-round dialog. Use when the request is ambiguous, needs discovery, or describes a new idea/product."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Brainstorm
|
package/skills/02-plan/SKILL.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: 02-plan
|
|
3
|
-
description: "Turn requirements into
|
|
3
|
+
description: "Turn requirements into an execution-ready plan with TDD-gated implementation units. Use when a brainstorm artifact exists and is ready for planning."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Plan
|
|
@@ -43,7 +43,8 @@ Every unit follows **RED → GREEN → REFACTOR**:
|
|
|
43
43
|
2. Read relevant brainstorm from `docs/brainstorms/`
|
|
44
44
|
3. Run solution search (keywords → grep frontmatter → read top 3)
|
|
45
45
|
4. Gather repository context
|
|
46
|
-
5.
|
|
46
|
+
5. **Source-driven check:** For each unit that involves framework/library APIs, add a note: "Verify against official docs before implementing."
|
|
47
|
+
6. If plan exists: use `plan_diff` `compare` → review with user → `patch`
|
|
47
48
|
6. If no plan: write new plan under `docs/plans/` using `references/plan-template.md`
|
|
48
49
|
7. Structure work using `references/implementation-unit-template.md`
|
|
49
50
|
8. Verify every unit follows TDD gates
|
package/skills/03-work/SKILL.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: 03-work
|
|
3
|
-
description: Execute plan
|
|
3
|
+
description: "Execute plan units with parallel subagents, TDD enforcement, and checkpoint resume. Use when a plan path is ready for implementation."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Work
|
|
@@ -39,6 +39,24 @@ Every step follows **RED → GREEN → REFACTOR**:
|
|
|
39
39
|
- Missing evidence test passed after implementation
|
|
40
40
|
- Tests added only after code
|
|
41
41
|
|
|
42
|
+
## Stop-the-line rule (Hard gate)
|
|
43
|
+
|
|
44
|
+
When any unexpected failure occurs during execution:
|
|
45
|
+
|
|
46
|
+
1. **STOP** adding features or making changes
|
|
47
|
+
2. **PRESERVE** evidence (error output, repro steps)
|
|
48
|
+
3. **DIAGNOSE** root cause — reproduce, localize, reduce
|
|
49
|
+
4. **FIX** the root cause, not the symptom
|
|
50
|
+
5. **GUARD** with a regression test
|
|
51
|
+
6. **RESUME** only after verification passes
|
|
52
|
+
|
|
53
|
+
Anti-rationalization — when a gate fails or evidence is missing:
|
|
54
|
+
- Do not rationalize, downgrade, or explain away the failure.
|
|
55
|
+
- Stop, report the blocker with evidence, and either fix the root cause or ask for direction.
|
|
56
|
+
- Do not continue unrelated implementation after failed verification.
|
|
57
|
+
|
|
58
|
+
This is a hard gate — do not push past a failing test or broken build to continue implementation. Errors compound.
|
|
59
|
+
|
|
42
60
|
## Workflow
|
|
43
61
|
|
|
44
62
|
1. **Load context**: consume latest handoff before any broad file reads — `context_handoff load` or read `.context/compound-engineering/handoffs/latest.md`. If found, use `activeFiles`, `blocker`, `verification`, `activeRules` as starting point. If not found, proceed normally.
|
|
@@ -48,7 +66,8 @@ Every step follows **RED → GREEN → REFACTOR**:
|
|
|
48
66
|
5. Use `task_splitter` for dependency analysis
|
|
49
67
|
6. Execute: **inline mode** by default, `ce_parallel_subagent` for independent units
|
|
50
68
|
7. Follow TDD per unit: RED → minimal code → GREEN → refactor → unit-level **verification**
|
|
51
|
-
8.
|
|
69
|
+
8. **Source-driven gate:** Before implementing framework/library-specific code, verify the API or pattern against official documentation. Flag unverified patterns as UNVERIFIED in output.
|
|
70
|
+
9. Record progress via `references/progress-update-format.md`
|
|
52
71
|
9. Save `session_checkpoint` after each unit
|
|
53
72
|
10. On failure: `session_checkpoint` `fail` → `retry` → follow strategy
|
|
54
73
|
11. Provide completion report (see `references/completion-report.md`)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: 04-review
|
|
3
|
-
description: "Review code with
|
|
3
|
+
description: "Review code changes across five axes with evidence-first findings. Use after implementation is complete and before committing."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Review
|
|
@@ -10,6 +10,8 @@ Use the `review_router` tool to determine which reviewers to apply based on diff
|
|
|
10
10
|
|
|
11
11
|
## Reviewer personas
|
|
12
12
|
|
|
13
|
+
All reviewers evaluate changes across five axes: correctness, readability, architecture, security, performance. Base reviewers cover axes 1–3 by default; conditional reviewers add depth on specific axes.
|
|
14
|
+
|
|
13
15
|
### Base reviewers (always active)
|
|
14
16
|
|
|
15
17
|
- **correctness-reviewer**: Logical correctness, intended behavior, edge cases.
|
|
@@ -19,6 +21,6 @@ Use the `review_router` tool to determine which reviewers to apply based on diff
|
|
|
19
21
|
### Conditional reviewers (routed by `review_router`)
|
|
20
22
|
|
|
21
23
|
- **security-reviewer**: Triggered when auth, permissions, tokens, sessions, or crypto files change. Reviews for injection, auth bypass, credential leakage.
|
|
22
|
-
- **
|
|
24
|
+
- **performance-reviewer**: Triggered when query, cache, database, or streaming files change. Reviews for N+1, unnecessary allocation, missing indexes.
|
|
23
25
|
- **integration-reviewer**: Triggered when CI/CD, Docker, package.json, or config files change. Reviews for dependency conflicts, build breakage, deployment issues.
|
|
24
26
|
- **thoroughness-reviewer**: Triggered for large diffs (5+ files or 300+ lines). Reviews for incomplete refactors, missed callers, inconsistent changes.
|
package/skills/05-learn/SKILL.md
CHANGED
package/skills/06-next/SKILL.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: 06-next
|
|
3
|
-
description: "Inspect workflow
|
|
3
|
+
description: "Inspect workflow artifacts and recommend the single best next skill. Use when unsure what to run next."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Next
|
package/skills/08-help/SKILL.md
CHANGED