@complexthings/superpowers-agent 9.2.1 → 10.0.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.
- package/.agents/skills/claude-handoff/SKILL.md +18 -0
- package/.agents/skills/code-review/SKILL.md +89 -0
- package/.agents/skills/{improve-codebase-architecture → codebase-design}/DEEPENING.md +1 -1
- package/.agents/skills/{improve-codebase-architecture/INTERFACE-DESIGN.md → codebase-design/DESIGN-IT-TWICE.md} +3 -3
- package/.agents/skills/codebase-design/SKILL.md +114 -0
- package/.agents/skills/design-an-interface/SKILL.md +94 -0
- package/.agents/skills/{diagnose → diagnosing-bugs}/SKILL.md +29 -12
- package/.agents/skills/{grill-with-docs → domain-modeling}/CONTEXT-FORMAT.md +1 -4
- package/.agents/skills/domain-modeling/SKILL.md +74 -0
- package/.agents/skills/fable-mode/SKILL.md +95 -0
- package/.agents/skills/git-guardrails-claude-code/SKILL.md +95 -0
- package/.agents/skills/git-guardrails-claude-code/scripts/block-dangerous-git.sh +25 -0
- package/.agents/skills/grill-me/SKILL.md +7 -0
- package/.agents/skills/grill-with-docs/SKILL.md +3 -86
- package/.agents/skills/grilling/SKILL.md +14 -0
- package/.agents/skills/handoff/SKILL.md +2 -1
- package/.agents/skills/i-have-adhd/SKILL.md +120 -0
- package/.agents/skills/implement/SKILL.md +11 -0
- package/.agents/skills/improve-codebase-architecture/HTML-REPORT.md +3 -3
- package/.agents/skills/improve-codebase-architecture/SKILL.md +13 -28
- package/.agents/skills/loop-me/SKILL.md +32 -0
- package/.agents/skills/prototype/SKILL.md +1 -1
- package/.agents/skills/qa/SKILL.md +130 -0
- package/.agents/skills/request-refactor-plan/SKILL.md +68 -0
- package/.agents/skills/research/SKILL.md +12 -0
- package/.agents/skills/resolving-merge-conflicts/SKILL.md +14 -0
- package/.agents/skills/scaffold-exercises/SKILL.md +106 -0
- package/.agents/skills/setup-matt-pocock-skills/SKILL.md +11 -9
- package/.agents/skills/setup-matt-pocock-skills/domain.md +2 -2
- package/.agents/skills/setup-matt-pocock-skills/issue-tracker-github.md +23 -0
- package/.agents/skills/setup-matt-pocock-skills/issue-tracker-gitlab.md +23 -0
- package/.agents/skills/setup-matt-pocock-skills/issue-tracker-local.md +11 -0
- package/.agents/skills/skill-creator/LICENSE.txt +202 -0
- package/.agents/skills/skill-creator/SKILL.md +485 -0
- package/.agents/skills/skill-creator/agents/analyzer.md +274 -0
- package/.agents/skills/skill-creator/agents/comparator.md +202 -0
- package/.agents/skills/skill-creator/agents/grader.md +223 -0
- package/.agents/skills/skill-creator/assets/eval_review.html +146 -0
- package/.agents/skills/skill-creator/eval-viewer/generate_review.py +471 -0
- package/.agents/skills/skill-creator/eval-viewer/viewer.html +1325 -0
- package/.agents/skills/skill-creator/references/schemas.md +430 -0
- package/.agents/skills/skill-creator/scripts/__init__.py +0 -0
- package/.agents/skills/skill-creator/scripts/__pycache__/__init__.cpython-314.pyc +0 -0
- package/.agents/skills/skill-creator/scripts/__pycache__/run_eval.cpython-314.pyc +0 -0
- package/.agents/skills/skill-creator/scripts/__pycache__/utils.cpython-314.pyc +0 -0
- package/.agents/skills/skill-creator/scripts/aggregate_benchmark.py +401 -0
- package/.agents/skills/skill-creator/scripts/generate_report.py +326 -0
- package/.agents/skills/skill-creator/scripts/improve_description.py +247 -0
- package/.agents/skills/skill-creator/scripts/package_skill.py +136 -0
- package/.agents/skills/skill-creator/scripts/quick_validate.py +103 -0
- package/.agents/skills/skill-creator/scripts/run_eval.py +310 -0
- package/.agents/skills/skill-creator/scripts/run_loop.py +328 -0
- package/.agents/skills/skill-creator/scripts/utils.py +47 -0
- package/.agents/skills/tdd/SKILL.md +17 -90
- package/.agents/skills/tdd/tests.md +16 -0
- package/.agents/skills/teach/GLOSSARY-FORMAT.md +35 -0
- package/.agents/skills/teach/LEARNING-RECORD-FORMAT.md +46 -0
- package/.agents/skills/teach/MISSION-FORMAT.md +31 -0
- package/.agents/skills/teach/RESOURCES-FORMAT.md +32 -0
- package/.agents/skills/teach/SKILL.md +140 -0
- package/.agents/skills/{to-prd → to-spec}/SKILL.md +11 -12
- package/.agents/skills/to-tickets/SKILL.md +114 -0
- package/.agents/skills/triage/AGENT-BRIEF.md +40 -1
- package/.agents/skills/triage/OUT-OF-SCOPE.md +5 -1
- package/.agents/skills/triage/SKILL.md +20 -11
- package/.agents/skills/wayfinder/SKILL.md +127 -0
- package/.agents/skills/writing-great-skills/GLOSSARY.md +201 -0
- package/.agents/skills/writing-great-skills/SKILL.md +83 -0
- package/.agents/superpowers-agent +103 -222
- package/.agents/superpowers-bootstrap.md +3 -3
- package/.agents/templates/AGENTS.md.template +11 -34
- package/.agents/templates/SUPERPOWERS.md.template +4 -4
- package/.github/copilot-instructions.md +23 -99
- package/.github/hooks/rtk-rewrite.json +22 -0
- package/AGENTS.md +7 -6
- package/README.md +53 -174
- package/package.json +2 -2
- package/skills/collaboration/brainstorming/SKILL.md +39 -139
- package/skills/collaboration/brainstorming/skill.json +2 -2
- package/skills/collaboration/leveraging-cli-tools/SKILL.md +70 -71
- package/skills/collaboration/leveraging-cli-tools/references/copilot-instructions.md +30 -0
- package/skills/collaboration/leveraging-cli-tools/scripts/setup-ponytail.sh +185 -0
- package/skills/collaboration/leveraging-cli-tools/scripts/setup-rtk.sh +217 -0
- package/skills/collaboration/leveraging-cli-tools/skill.json +1 -1
- package/skills/meta/create-skill-json/SKILL.md +4 -4
- package/skills/meta/create-skill-json/skill.json +1 -1
- package/skills/meta/create-skill-json/test-scenarios.md +1 -1
- package/skills/setup-skills/SKILL.md +18 -11
- package/skills/setup-skills/skill.json +8 -0
- package/.agents/skills/caveman/SKILL.md +0 -49
- package/.agents/skills/improve-codebase-architecture/LANGUAGE.md +0 -53
- package/.agents/skills/karpathy-guidelines/SKILL.md +0 -75
- package/.agents/skills/review/SKILL.md +0 -78
- package/.agents/skills/tdd/deep-modules.md +0 -33
- package/.agents/skills/tdd/interface-design.md +0 -31
- package/.agents/skills/tdd/refactoring.md +0 -10
- package/.agents/skills/to-issues/SKILL.md +0 -83
- package/.agents/skills/zoom-out/SKILL.md +0 -7
- package/skills/architecture/ABOUT.md +0 -20
- package/skills/architecture/preserving-productive-tensions/SKILL.md +0 -146
- package/skills/architecture/preserving-productive-tensions/skill.json +0 -9
- package/skills/collaboration/brainstorming/spec-document-reviewer-prompt.md +0 -50
- package/skills/collaboration/brainstorming/visual-companion.md +0 -277
- package/skills/collaboration/dispatching-parallel-agents/SKILL.md +0 -174
- package/skills/collaboration/dispatching-parallel-agents/skill.json +0 -9
- package/skills/collaboration/executing-plans/SKILL.md +0 -130
- package/skills/collaboration/executing-plans/skill.json +0 -9
- package/skills/collaboration/finishing-a-development-branch/SKILL.md +0 -261
- package/skills/collaboration/finishing-a-development-branch/skill.json +0 -9
- package/skills/collaboration/leveraging-cli-tools/scripts/slim.py +0 -167
- package/skills/collaboration/receiving-code-review/SKILL.md +0 -233
- package/skills/collaboration/receiving-code-review/skill.json +0 -9
- package/skills/collaboration/requesting-code-review/SKILL.md +0 -110
- package/skills/collaboration/requesting-code-review/code-reviewer.md +0 -146
- package/skills/collaboration/requesting-code-review/skill.json +0 -12
- package/skills/collaboration/subagent-driven-development/SKILL.md +0 -255
- package/skills/collaboration/subagent-driven-development/code-quality-reviewer-prompt.md +0 -26
- package/skills/collaboration/subagent-driven-development/implementer-prompt.md +0 -113
- package/skills/collaboration/subagent-driven-development/skill.json +0 -15
- package/skills/collaboration/subagent-driven-development/spec-reviewer-prompt.md +0 -61
- package/skills/collaboration/using-git-worktrees/SKILL.md +0 -366
- package/skills/collaboration/using-git-worktrees/skill.json +0 -9
- package/skills/collaboration/writing-plans/SKILL.md +0 -121
- package/skills/collaboration/writing-plans/plan-document-reviewer-prompt.md +0 -52
- package/skills/collaboration/writing-plans/skill.json +0 -9
- package/skills/debugging/defense-in-depth/SKILL.md +0 -380
- package/skills/debugging/defense-in-depth/skill.json +0 -9
- package/skills/debugging/root-cause-tracing/SKILL.md +0 -361
- package/skills/debugging/root-cause-tracing/find-polluter.sh +0 -63
- package/skills/debugging/root-cause-tracing/skill.json +0 -12
- package/skills/debugging/systematic-debugging/SKILL.md +0 -299
- package/skills/debugging/systematic-debugging/condition-based-waiting-example.ts +0 -158
- package/skills/debugging/systematic-debugging/condition-based-waiting.md +0 -115
- package/skills/debugging/systematic-debugging/defense-in-depth.md +0 -122
- package/skills/debugging/systematic-debugging/find-polluter.sh +0 -63
- package/skills/debugging/systematic-debugging/root-cause-tracing.md +0 -169
- package/skills/debugging/systematic-debugging/skill.json +0 -9
- package/skills/debugging/systematic-debugging/test-academic.md +0 -14
- package/skills/debugging/systematic-debugging/test-pressure-1.md +0 -58
- package/skills/debugging/systematic-debugging/test-pressure-2.md +0 -68
- package/skills/debugging/systematic-debugging/test-pressure-3.md +0 -69
- package/skills/debugging/verification-before-completion/SKILL.md +0 -143
- package/skills/debugging/verification-before-completion/skill.json +0 -9
- package/skills/finding-skills/SKILL.md +0 -101
- package/skills/finding-skills/skill.json +0 -8
- package/skills/meta/create-agents-md/SKILL.md +0 -182
- package/skills/meta/create-agents-md/skill.json +0 -9
- package/skills/meta/creating-prompts/SKILL.md +0 -349
- package/skills/meta/creating-prompts/examples/do-example.md +0 -65
- package/skills/meta/creating-prompts/examples/plan-example.md +0 -75
- package/skills/meta/creating-prompts/examples/refine-example.md +0 -65
- package/skills/meta/creating-prompts/examples/research-example.md +0 -63
- package/skills/meta/creating-prompts/scripts/get-next-number.sh +0 -27
- package/skills/meta/creating-prompts/skill.json +0 -20
- package/skills/meta/creating-prompts/templates/do-template.md +0 -59
- package/skills/meta/creating-prompts/templates/plan-template.md +0 -58
- package/skills/meta/creating-prompts/templates/refine-template.md +0 -54
- package/skills/meta/creating-prompts/templates/research-template.md +0 -56
- package/skills/meta/using-superpowers/SKILL.md +0 -108
- package/skills/meta/using-superpowers/skill.json +0 -5
- package/skills/meta/writing-prompts/SKILL.md +0 -122
- package/skills/meta/writing-prompts/references/platforms.md +0 -114
- package/skills/meta/writing-prompts/skill.json +0 -9
- package/skills/problem-solving/ABOUT.md +0 -40
- package/skills/problem-solving/collision-zone-thinking/SKILL.md +0 -188
- package/skills/problem-solving/collision-zone-thinking/references/historical-examples.md +0 -393
- package/skills/problem-solving/collision-zone-thinking/skill.json +0 -9
- package/skills/problem-solving/inversion-exercise/SKILL.md +0 -174
- package/skills/problem-solving/inversion-exercise/skill.json +0 -9
- package/skills/problem-solving/meta-pattern-recognition/SKILL.md +0 -116
- package/skills/problem-solving/meta-pattern-recognition/skill.json +0 -9
- package/skills/problem-solving/scale-game/SKILL.md +0 -222
- package/skills/problem-solving/scale-game/skill.json +0 -9
- package/skills/problem-solving/simplification-cascades/SKILL.md +0 -113
- package/skills/problem-solving/simplification-cascades/skill.json +0 -9
- package/skills/problem-solving/when-stuck/SKILL.md +0 -69
- package/skills/problem-solving/when-stuck/skill.json +0 -9
- package/skills/research/ABOUT.md +0 -20
- package/skills/research/tracing-knowledge-lineages/SKILL.md +0 -241
- package/skills/research/tracing-knowledge-lineages/skill.json +0 -9
- package/skills/testing/condition-based-waiting/SKILL.md +0 -359
- package/skills/testing/condition-based-waiting/example.ts +0 -158
- package/skills/testing/condition-based-waiting/skill.json +0 -12
- package/skills/testing/test-driven-development/SKILL.md +0 -434
- package/skills/testing/test-driven-development/skill.json +0 -9
- package/skills/testing/testing-anti-patterns/SKILL.md +0 -298
- package/skills/testing/testing-anti-patterns/skill.json +0 -9
- package/skills/testing/verification-before-completion/SKILL.md +0 -246
- package/skills/testing/verification-before-completion/skill.json +0 -10
- package/skills/using-a-skill/SKILL.md +0 -101
- package/skills/using-a-skill/skill.json +0 -8
- /package/.agents/skills/{diagnose → diagnosing-bugs}/scripts/hitl-loop.template.sh +0 -0
- /package/.agents/skills/{grill-with-docs → domain-modeling}/ADR-FORMAT.md +0 -0
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
You have superpowers. Superpowers teach you new skills and capabilities.
|
|
5
5
|
|
|
6
6
|
**Tool for running skills:**
|
|
7
|
-
-
|
|
7
|
+
- Use your platform's native skill tool, or read the skill's `SKILL.md` directly.
|
|
8
8
|
|
|
9
9
|
**Platform-specific tool mappings:**
|
|
10
10
|
Tool mappings for your detected platforms are automatically included in your platform-specific configuration files:
|
|
@@ -26,8 +26,8 @@ Project skills override Claude skills, which override personal skills, which ove
|
|
|
26
26
|
|
|
27
27
|
**Critical Rules:**
|
|
28
28
|
- Before ANY task, review the skills list (shown at bootstrap)
|
|
29
|
-
- If a relevant skill exists, you MUST
|
|
30
|
-
- YOU MUST USE YOUR `Read` TOOL TO READ THE SKILL FILE
|
|
29
|
+
- If a relevant skill exists, you MUST load it with your platform's native skill tool and follow its instructions.
|
|
30
|
+
- YOU MUST USE YOUR `Read` TOOL TO READ THE SKILL FILE. YOU MUST NOT `cat` or print it to yourself.
|
|
31
31
|
- Announce: "I've read the [Skill Name] skill and I'm using it to [purpose]"
|
|
32
32
|
- Skills with checklists require `manage_todo_list` todos for each item (or manual tracking if unavailable)
|
|
33
33
|
- NEVER skip mandatory workflows (brainstorming before coding, TDD, systematic debugging)
|
|
@@ -1,50 +1,27 @@
|
|
|
1
1
|
## 🎯 SKILLS
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[superpowers-agent Docs](.agents/docs/SUPERPOWERS.md)
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
### Skill Loading Rules
|
|
12
|
-
|
|
13
|
-
- Load skills **JIT only** — never preload to "understand" them.
|
|
14
|
-
- Follow skill instructions **exactly as written** — no skimming, no shortcuts.
|
|
15
|
-
- If a skill has a checklist, create a todo for **each item** — no mental tracking.
|
|
16
|
-
- Simple tasks benefit from skills as much as complex ones.
|
|
17
|
-
|
|
18
|
-
**Skill priority (highest to lowest):** Project → Personal
|
|
19
|
-
|
|
20
|
-
### Using Tools with Skills
|
|
21
|
-
|
|
22
|
-
1. **Native skill tool** — load skills via your platform's native skill tool.
|
|
23
|
-
2. **Symlinked skills** — Superpowers skills are symlinked into your platform's skills directory.
|
|
24
|
-
3. **Fallback** — if a skill isn't found via the native tool, run `superpowers-agent find-skills [PATTERN]`.
|
|
25
|
-
4. **Tool equivalence** — when a skill references a tool you don't have, substitute your equivalent.
|
|
26
|
-
|
|
27
|
-
### Why Skills Matter
|
|
28
|
-
|
|
29
|
-
Skills encode proven techniques that prevent mistakes. Not using them means repeating solved problems and missing edge cases.
|
|
30
|
-
|
|
31
|
-
**If a skill exists for your task, you MUST use it.**
|
|
5
|
+
- Skills encode proven techniques that prevent mistakes.
|
|
6
|
+
- Not using them means repeating solved problems and missing edge cases.
|
|
7
|
+
- If a skill exists for your task, you MUST use it.
|
|
8
|
+
- **Before starting any task**, check for relevant skills, use your native skill tool to do so.
|
|
9
|
+
- Review skill descriptions/frontmatter to identify relevant ones.
|
|
10
|
+
— when a skill references a tool you don't have, substitute your equivalent.
|
|
32
11
|
|
|
33
12
|
---
|
|
34
13
|
|
|
35
14
|
## Version Check
|
|
36
15
|
|
|
37
|
-
|
|
38
|
-
1. **CURRENT_VERSION** — run
|
|
16
|
+
Once per day, check for updates:
|
|
17
|
+
1. **CURRENT_VERSION** — run any `superpowers-agent` command, extract `X.Y.Z` from `^^SAV:X.Y.Z^^` in the output.
|
|
39
18
|
2. **NPM_LATEST_VERSION** — run `npm view @complexthings/superpowers-agent version`.
|
|
40
|
-
3. Compare by
|
|
19
|
+
3. Compare by semver, not string order (`9.10.0` > `9.9.0`). If newer, tell the user — don't run these yourself:
|
|
41
20
|
> Your superpowers-agent has updates (`CURRENT_VERSION` → `NPM_LATEST_VERSION`). Run:
|
|
42
21
|
> ```sh
|
|
43
22
|
> npm install -g @complexthings/superpowers-agent
|
|
44
23
|
> superpowers-agent update && superpowers-agent bootstrap && superpowers-agent setup-skills
|
|
45
24
|
> ```
|
|
46
|
-
|
|
25
|
+
Match, or a lookup fails → stay silent.
|
|
47
26
|
|
|
48
27
|
---
|
|
49
|
-
|
|
50
|
-
*Generated by Superpowers on {{DATE}}*
|
|
@@ -14,16 +14,16 @@ If `superpowers-agent` is not available, install it: `npm install -g @complexthi
|
|
|
14
14
|
|
|
15
15
|
## Version Check
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
1. **CURRENT_VERSION** — run
|
|
17
|
+
Once per day, check for updates:
|
|
18
|
+
1. **CURRENT_VERSION** — run `superpowers-agent version`, extract `X.Y.Z` from the output.
|
|
19
19
|
2. **NPM_LATEST_VERSION** — run `npm view @complexthings/superpowers-agent version`.
|
|
20
|
-
3. Compare by
|
|
20
|
+
3. Compare by semver, not string order (`9.10.0` > `9.9.0`). If newer, tell the user — don't run these yourself:
|
|
21
21
|
> Your superpowers-agent has updates (`CURRENT_VERSION` → `NPM_LATEST_VERSION`). Run:
|
|
22
22
|
> ```sh
|
|
23
23
|
> npm install -g @complexthings/superpowers-agent
|
|
24
24
|
> superpowers-agent update && superpowers-agent bootstrap && superpowers-agent setup-skills
|
|
25
25
|
> ```
|
|
26
|
-
|
|
26
|
+
Match, or a lookup fails → stay silent.
|
|
27
27
|
|
|
28
28
|
---
|
|
29
29
|
|
|
@@ -1,111 +1,35 @@
|
|
|
1
1
|
<!-- SUPERPOWERS_-_INSTRUCTIONS_START -->
|
|
2
|
-
|
|
3
|
-
name: using-superpowers
|
|
4
|
-
description: "Use when starting any conversation - establishes how to find and use skills, requiring Skill tool invocation before ANY response including clarifying questions. CRITICAL: this skill is already loaded in your context — do NOT invoke it again. It defines the foundational rule: if a skill might apply, you must invoke it first."
|
|
5
|
-
---
|
|
2
|
+
# Superpowers Skills
|
|
6
3
|
|
|
7
|
-
|
|
4
|
+
[superpowers-agent Docs](../.agents/docs/SUPERPOWERS.md)
|
|
8
5
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
## The Core Rule
|
|
12
|
-
|
|
13
|
-
**Before any response or action, check whether a skill applies — then invoke it.**
|
|
14
|
-
|
|
15
|
-
This means BEFORE writing code, BEFORE asking clarifying questions, BEFORE exploring files. Even a 1% chance a skill might apply means you invoke it to check. If the invoked skill turns out not to fit the situation, you don't need to follow it — but you must check.
|
|
16
|
-
|
|
17
|
-
Why this matters: skills encode hard-won workflows for tasks like debugging, TDD, and brainstorming. Skipping the check means you may skip a workflow that would have prevented a costly mistake.
|
|
18
|
-
|
|
19
|
-
## How to Discover and Invoke Skills
|
|
20
|
-
|
|
21
|
-
Skills appear in your context as an available-skills list — scan it at the start of every task. That list is the same workflow library no matter which agent platform you run on (Claude Code, Copilot, OpenCode, Pi, or anything else); only the tools around it differ.
|
|
6
|
+
Use your platform's native skill tool to discover and load installed skills relevant to the task. If no native tool is available, inspect the configured skill directories and read the needed `SKILL.md` file.
|
|
7
|
+
<!-- SUPERPOWERS_-_INSTRUCTIONS_END -->
|
|
22
8
|
|
|
23
|
-
|
|
9
|
+
<!-- rtk-instructions v2 -->
|
|
10
|
+
# RTK — Token-Optimized CLI
|
|
24
11
|
|
|
25
|
-
|
|
26
|
-
- **If it doesn't**, load the skill the way you'd open any file: read its SKILL.md directly with your file-read tool. Find the path in the skills list, or via the CLI fallback below.
|
|
12
|
+
**rtk** is a CLI proxy that filters and compresses command outputs, saving 60-90% tokens.
|
|
27
13
|
|
|
28
|
-
|
|
14
|
+
## Rule
|
|
29
15
|
|
|
30
|
-
|
|
16
|
+
Always prefix shell commands with `rtk`:
|
|
31
17
|
|
|
32
18
|
```bash
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
19
|
+
# Instead of: Use:
|
|
20
|
+
git status rtk git status
|
|
21
|
+
git log -10 rtk git log -10
|
|
22
|
+
cargo test rtk cargo test
|
|
23
|
+
docker ps rtk docker ps
|
|
24
|
+
kubectl get pods rtk kubectl pods
|
|
36
25
|
```
|
|
37
26
|
|
|
38
|
-
|
|
39
|
-
> "Using Skill: [name] to [purpose]"
|
|
40
|
-
|
|
41
|
-
This keeps the conversation clear and lets the user know which workflow you're following.
|
|
42
|
-
|
|
43
|
-
## Skill Priority
|
|
44
|
-
|
|
45
|
-
When several skills could apply, load them in order of how much each reframes the problem — broadest understanding first, narrowest execution last. Loading a skill is cheap (you are only reading); committing to the wrong workflow is expensive.
|
|
46
|
-
|
|
47
|
-
1. **Domain / context skills first.** A skill about the specific technology or domain you are working in teaches you the territory — and often tells you which approach fits, or that a generic workflow does not. Read it before you commit to a process, and before you brainstorm or plan: knowing the territory makes the brainstorm sharper and can rule a planning skill in or out. A domain skill outranks even an intent-gathering skill like brainstorming.
|
|
48
|
-
2. **Process / approach skills next.** brainstorming, planning, systematic-debugging, test-driven-development — chosen *informed by* what the domain skill told you.
|
|
49
|
-
3. **Implementation skills last.** Step-by-step execution guides, once the approach is set.
|
|
50
|
-
|
|
51
|
-
Why this order: if you lock into a planning or process workflow before reading the domain skill, you may follow steps that do not fit the problem — and by the time you read the domain skill you are already mid-workflow and cannot switch cleanly. Read first, the domain skill can still redirect you to the right process, or tell you to skip one.
|
|
52
|
-
|
|
53
|
-
**Worked example** — "Let's build a subscription checkout on Stripe," with a Stripe domain skill, a payment-flow planning skill, and a Stripe-checkout implementation skill available:
|
|
54
|
-
|
|
55
|
-
→ `stripe-payments-domain` (learn the territory; it may change how you plan) → `planning-payment-flows` (map states and failure modes) → `implementing-stripe-checkout` (execute).
|
|
56
|
-
|
|
57
|
-
When no domain skill applies, the leading process skill comes first: "Fix this bug" → `systematic-debugging`, then any domain or implementation skill it points you to.
|
|
58
|
-
|
|
59
|
-
The first skill you load may change the rest of the plan — reassess after each one rather than committing to the whole sequence up front.
|
|
60
|
-
|
|
61
|
-
## Mapping Skill Instructions to Your Tools
|
|
27
|
+
## Meta commands (use directly)
|
|
62
28
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|---------|---------|
|
|
71
|
-
| "This is just a simple question" | Questions are tasks. Check for skills. |
|
|
72
|
-
| "I need more context first" | Skill check comes BEFORE clarifying questions. |
|
|
73
|
-
| "Let me explore the codebase first" | Skills tell you HOW to explore. Check first. |
|
|
74
|
-
| "I can check git/files quickly" | Files lack conversation context. Check for skills. |
|
|
75
|
-
| "Let me gather information first" | Skills tell you HOW to gather information. |
|
|
76
|
-
| "This doesn't need a formal skill" | If a skill exists, use it. |
|
|
77
|
-
| "I remember this skill" | Skills evolve. Read current version. |
|
|
78
|
-
| "This doesn't count as a task" | Action = task. Check for skills. |
|
|
79
|
-
| "The skill is overkill" | Simple things become complex. Use it. |
|
|
80
|
-
| "I'll just do this one thing first" | Check BEFORE doing anything. |
|
|
81
|
-
| "This feels productive" | Undisciplined action wastes time. Skills prevent this. |
|
|
82
|
-
| "I know what that means" | Knowing the concept ≠ using the skill. Invoke it. |
|
|
83
|
-
|
|
84
|
-
## Skill Types
|
|
85
|
-
|
|
86
|
-
**Rigid skills** (TDD, systematic-debugging): Follow exactly. The structure is the value — adapting away the discipline defeats the purpose.
|
|
87
|
-
|
|
88
|
-
**Flexible skills** (patterns, guides): Adapt principles to context. The skill itself will indicate when flexibility is appropriate.
|
|
89
|
-
|
|
90
|
-
## Checklists
|
|
91
|
-
|
|
92
|
-
If a skill contains a checklist, create a task or todo entry for each item using your platform's task-tracking tool. Mental tracking causes steps to get skipped. Every time.
|
|
93
|
-
|
|
94
|
-
## User Instructions
|
|
95
|
-
|
|
96
|
-
Instructions say WHAT, not HOW. "Add X" or "Fix Y" doesn't mean skip workflows. A specific instruction is when skill discipline matters most.
|
|
97
|
-
|
|
98
|
-
## Version Monitoring
|
|
99
|
-
|
|
100
|
-
At conversation start (periodically thereafter, e.g. once per day), check your version:
|
|
101
|
-
1. **CURRENT_VERSION** — run a `superpowers-agent version` command and extract `X.Y.Z` from the `X.Y.Z` string in its output.
|
|
102
|
-
2. **NPM_LATEST_VERSION** — run `npm view @complexthings/superpowers-agent version`.
|
|
103
|
-
3. Compare by **semver precedence, not string comparison** (e.g. `9.2.1` > `9.0.1`). If NPM_LATEST_VERSION is newer, tell the user — do not run these yourself:
|
|
104
|
-
> Your superpowers-agent has updates (`CURRENT_VERSION` → `NPM_LATEST_VERSION`). Run:
|
|
105
|
-
> ```sh
|
|
106
|
-
> npm install -g @complexthings/superpowers-agent
|
|
107
|
-
> superpowers-agent update && superpowers-agent bootstrap && superpowers-agent setup-skills
|
|
108
|
-
> ```
|
|
109
|
-
If versions match, or either lookup fails (e.g. no network), continue silently.
|
|
110
|
-
|
|
111
|
-
<!-- SUPERPOWERS_-_INSTRUCTIONS_END -->
|
|
29
|
+
```bash
|
|
30
|
+
rtk gain # Token savings dashboard
|
|
31
|
+
rtk gain --history # Per-command savings history
|
|
32
|
+
rtk discover # Find missed rtk opportunities
|
|
33
|
+
rtk proxy <cmd> # Run raw (no filtering) but track usage
|
|
34
|
+
```
|
|
35
|
+
<!-- /rtk-instructions -->
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 1,
|
|
3
|
+
"hooks": {
|
|
4
|
+
"PreToolUse": [
|
|
5
|
+
{
|
|
6
|
+
"type": "command",
|
|
7
|
+
"command": "rtk hook copilot",
|
|
8
|
+
"cwd": ".",
|
|
9
|
+
"timeout": 5
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
"preToolUse": [
|
|
13
|
+
{
|
|
14
|
+
"type": "command",
|
|
15
|
+
"bash": "rtk hook copilot",
|
|
16
|
+
"powershell": "rtk hook copilot",
|
|
17
|
+
"cwd": ".",
|
|
18
|
+
"timeoutSec": 5
|
|
19
|
+
}
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
}
|
package/AGENTS.md
CHANGED
|
@@ -24,7 +24,7 @@ Skills extend your capabilities with proven workflows.
|
|
|
24
24
|
|
|
25
25
|
1. **Native skill tool** — load skills via your platform's native skill tool.
|
|
26
26
|
2. **Symlinked skills** — Superpowers skills are symlinked into your platform's skills directory.
|
|
27
|
-
3. **Fallback** — if a skill isn't found via the native tool,
|
|
27
|
+
3. **Fallback** — if a skill isn't found via the native tool, inspect the configured skill directories and read its `SKILL.md` directly.
|
|
28
28
|
4. **Tool equivalence** — when a skill references a tool you don't have, substitute your equivalent.
|
|
29
29
|
|
|
30
30
|
### Why Skills Matter
|
|
@@ -50,7 +50,7 @@ Periodically, e.g. once per day check the version of superpowers-agent:
|
|
|
50
50
|
|
|
51
51
|
---
|
|
52
52
|
|
|
53
|
-
*Generated by Superpowers on 2026-
|
|
53
|
+
*Generated by Superpowers on 2026-07-12*
|
|
54
54
|
<!-- SUPERPOWERS_SKILLS_END -->
|
|
55
55
|
|
|
56
56
|
## What This Project Is
|
|
@@ -76,7 +76,7 @@ The CLI has **no runtime dependencies** (pure Node.js/Bun built-ins). The only d
|
|
|
76
76
|
|
|
77
77
|
## Testing
|
|
78
78
|
|
|
79
|
-
|
|
79
|
+
Run the automated test suite from `.agents` with `bun test`. There is no root-level test script; run CLI commands directly for manual acceptance checks.
|
|
80
80
|
|
|
81
81
|
## Architecture
|
|
82
82
|
|
|
@@ -104,15 +104,14 @@ From `.agents/src/cli.js` dispatch table:
|
|
|
104
104
|
|
|
105
105
|
- **Core:** `bootstrap [--no-update] [--force]`, `version`, `check-updates`, `update [--no-reinstall]`
|
|
106
106
|
- **Config:** `config-get`, `config-set <key> <value>`
|
|
107
|
-
- **Skills:** `setup-skills`, `
|
|
107
|
+
- **Skills:** `setup-skills`, `session-context [--format=claude|copilot|raw]`
|
|
108
108
|
- **Install/manage skills:** `add <url-or-path|@alias> [path]`, `add-repository <git-url> [--as=@alias]`, `list-repositories`, `pull <url-or-path|@alias>`, `rm <url-or-path|@alias>`
|
|
109
109
|
- **Integrations:** `install-cursor-hooks`, `install-aliases`
|
|
110
110
|
|
|
111
111
|
### Key Flows
|
|
112
112
|
|
|
113
113
|
- **`bootstrap`** → detects installed AI platforms → symlinks skills into each platform's skills dir → writes platform config files
|
|
114
|
-
-
|
|
115
|
-
- **`execute <skill-name>`** → locates skill → outputs SKILL.md content for the agent to follow
|
|
114
|
+
- **Native skill tools** → discover and load skills from their configured directories
|
|
116
115
|
- **`add <url-or-path|@alias>`** → clones a git repo or copies a local path → installs skills into `~/.agents/superpowers/skills/`
|
|
117
116
|
- **`update`** → checks the npm registry for a newer version → reports if an update is available
|
|
118
117
|
|
|
@@ -150,3 +149,5 @@ The five canonical triage roles use their default label strings (`needs-triage`,
|
|
|
150
149
|
### Domain docs
|
|
151
150
|
|
|
152
151
|
Single-context layout — one `CONTEXT.md` + `docs/adr/` at the repo root (created lazily). See `docs/agents/domain.md`.
|
|
152
|
+
|
|
153
|
+
@RTK.md
|