agy-superpowers 5.0.5 → 5.0.7
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 +23 -0
- package/bin/init.js +5 -5
- package/package.json +1 -1
- package/template/agent/config.yml +9 -0
- package/template/agent/patches/skills-patches.md +74 -0
- package/template/agent/skills/brainstorming/SKILL.md +3 -1
- package/template/agent/skills/brainstorming/visual-companion.md +2 -25
- package/template/agent/skills/dispatching-parallel-agents/SKILL.md +0 -1
- package/template/agent/skills/executing-plans/SKILL.md +1 -1
- package/template/agent/skills/subagent-driven-development/SKILL.md +7 -3
- package/template/agent/skills/using-superpowers/SKILL.md +6 -8
- package/template/agent/skills/using-superpowers/references/antigravity-tools.md +43 -0
- package/template/agent/skills/writing-skills/SKILL.md +1 -1
- package/template/agent/workflows/publish.md +45 -0
- package/template/agent/workflows/update-superpowers.md +30 -7
- package/template/agent/skills/systematic-debugging/CREATION-LOG.md +0 -119
- package/template/agent/skills/using-superpowers/references/codex-tools.md +0 -25
- package/template/agent/skills/using-superpowers/references/gemini-tools.md +0 -33
- package/template/agent/skills/writing-skills/anthropic-best-practices.md +0 -1150
- package/template/agent/skills/writing-skills/examples/CLAUDE_MD_TESTING.md +0 -189
package/README.md
CHANGED
|
@@ -130,6 +130,29 @@ This workflow will:
|
|
|
130
130
|
|
|
131
131
|
---
|
|
132
132
|
|
|
133
|
+
## Configuration
|
|
134
|
+
|
|
135
|
+
Per-project settings live in `.agent/config.yml`. Create or edit this file in your project's `.agent/` folder:
|
|
136
|
+
|
|
137
|
+
```yaml
|
|
138
|
+
# .agent/config.yml
|
|
139
|
+
|
|
140
|
+
# auto_commit: true | false
|
|
141
|
+
# When true (default), Superpowers skills automatically commit after completing
|
|
142
|
+
# tasks and writing design docs.
|
|
143
|
+
# When false, all git commits and staging are skipped — files are left as
|
|
144
|
+
# modified for you to commit manually.
|
|
145
|
+
auto_commit: true
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
| Setting | Default | Description |
|
|
149
|
+
|---|---|---|
|
|
150
|
+
| `auto_commit` | `true` | AI auto-commits after tasks and design docs. Set to `false` to skip all commits. |
|
|
151
|
+
|
|
152
|
+
This file is preserved across `/update-superpowers` runs.
|
|
153
|
+
|
|
154
|
+
---
|
|
155
|
+
|
|
133
156
|
## Installation
|
|
134
157
|
|
|
135
158
|
### Using This Repo in Your Project
|
package/bin/init.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
// bin/init.js
|
|
3
|
-
// Usage: npx
|
|
3
|
+
// Usage: npx agy-superpowers init
|
|
4
4
|
import fs from 'fs';
|
|
5
5
|
import path from 'path';
|
|
6
6
|
import { fileURLToPath } from 'url';
|
|
@@ -15,8 +15,8 @@ const command = args[0];
|
|
|
15
15
|
if (command !== 'init') {
|
|
16
16
|
console.error(`❌ Unknown command: ${command || '(none)'}`);
|
|
17
17
|
console.error('');
|
|
18
|
-
console.error('Usage: npx
|
|
19
|
-
console.error(' npx
|
|
18
|
+
console.error('Usage: npx agy-superpowers init');
|
|
19
|
+
console.error(' npx agy-superpowers init --force # overwrite existing .agent/');
|
|
20
20
|
process.exit(1);
|
|
21
21
|
}
|
|
22
22
|
|
|
@@ -38,7 +38,7 @@ if (fs.existsSync(TARGET_DIR)) {
|
|
|
38
38
|
console.warn('⚠️ .agent/ already exists in this directory.');
|
|
39
39
|
console.warn(' Delete it first or re-run with --force to overwrite:');
|
|
40
40
|
console.warn('');
|
|
41
|
-
console.warn(' npx
|
|
41
|
+
console.warn(' npx agy-superpowers init --force');
|
|
42
42
|
console.warn('');
|
|
43
43
|
if (!args.includes('--force')) {
|
|
44
44
|
process.exit(1);
|
|
@@ -47,7 +47,7 @@ if (fs.existsSync(TARGET_DIR)) {
|
|
|
47
47
|
console.log('🗑 Removed existing .agent/');
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
console.log('🚀 Initialising
|
|
50
|
+
console.log('🚀 Initialising agy-superpowers…');
|
|
51
51
|
copyDir(TEMPLATE_DIR, TARGET_DIR);
|
|
52
52
|
console.log('✅ .agent/ created successfully!\n');
|
|
53
53
|
console.log('📖 Next steps:');
|
package/package.json
CHANGED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Antigravity Superpowers — Project Config
|
|
2
|
+
#
|
|
3
|
+
# Configure per-project behavior by editing this file.
|
|
4
|
+
# Skills read this file to determine how to behave in this project.
|
|
5
|
+
|
|
6
|
+
# auto_commit: true | false
|
|
7
|
+
# When true (default), AI automatically commits after completing tasks and writing design docs.
|
|
8
|
+
# When false, all git commits and staging are skipped; files are left as modified for manual commit.
|
|
9
|
+
auto_commit: false
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# Skill Patches
|
|
2
|
+
|
|
3
|
+
Patches applied by AI during the `update-superpowers` workflow (Phase 2, Step 7).
|
|
4
|
+
Each patch describes the *intent* of the change — AI finds the relevant section and rewrites it.
|
|
5
|
+
Do not match text literally. Understand intent and adapt to current upstream wording.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Patch: Platform Adaptation — using-superpowers
|
|
10
|
+
|
|
11
|
+
**File:** `using-superpowers/SKILL.md`
|
|
12
|
+
**Intent:** Remove all references to Claude Code, Gemini CLI, and Codex. Replace with a single
|
|
13
|
+
Antigravity block: skills are read using `view_file` on `.agent/skills/<name>/SKILL.md`.
|
|
14
|
+
Reference `references/antigravity-tools.md` for tool name mappings.
|
|
15
|
+
The Platform Adaptation section should say this package is configured for Google Antigravity,
|
|
16
|
+
with tool name equivalents in `references/antigravity-tools.md`.
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## Patch: Platform mentions — executing-plans
|
|
21
|
+
|
|
22
|
+
**File:** `executing-plans/SKILL.md`
|
|
23
|
+
**Intent:** Replace any mentions of "Claude Code", "Codex", or other non-Antigravity platforms
|
|
24
|
+
with "Antigravity". Example: "(such as Claude Code or Codex)" → "(such as Antigravity)".
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## Patch: Skills path — writing-skills
|
|
29
|
+
|
|
30
|
+
**File:** `writing-skills/SKILL.md`
|
|
31
|
+
**Intent:** Replace platform-specific personal skill paths (`~/.claude/skills` for Claude Code,
|
|
32
|
+
`~/.agents/skills/` for Codex) with the Antigravity path: `~/.agent/skills`.
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
## Patch: Visual companion platform blocks — brainstorming
|
|
37
|
+
|
|
38
|
+
**File:** `brainstorming/visual-companion.md`
|
|
39
|
+
**Intent:** Remove the Codex-specific server block. Replace Claude Code and Gemini CLI
|
|
40
|
+
server startup blocks with a single Antigravity block:
|
|
41
|
+
```bash
|
|
42
|
+
# Launch the server normally
|
|
43
|
+
scripts/start-server.sh --project-dir /path/to/project
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
---
|
|
47
|
+
|
|
48
|
+
## Patch: Platform comment — dispatching-parallel-agents
|
|
49
|
+
|
|
50
|
+
**File:** `dispatching-parallel-agents/SKILL.md`
|
|
51
|
+
**Intent:** Remove the comment `// In Claude Code / AI environment` (or similar platform-specific
|
|
52
|
+
inline comments). The code should work without platform-specific annotations.
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
## Patch: auto_commit flag — brainstorming
|
|
57
|
+
|
|
58
|
+
**File:** `brainstorming/SKILL.md`
|
|
59
|
+
**Intent:** Make the step that commits the design document to git conditional on `.agent/config.yml`:
|
|
60
|
+
- Read `.agent/config.yml` before committing
|
|
61
|
+
- If `auto_commit: true` (default): commit normally with `git add <path> && git commit -m "docs: add <topic> design spec"`
|
|
62
|
+
- If `auto_commit: false`: skip commit and staging entirely. Print: "Skipping commit (auto_commit: false in .agent/config.yml). File is ready for manual commit."
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
## Patch: auto_commit flag — subagent-driven-development
|
|
67
|
+
|
|
68
|
+
**File:** `subagent-driven-development/SKILL.md`
|
|
69
|
+
**Intent:** Make the implementer subagent commit step conditional on `.agent/config.yml`:
|
|
70
|
+
- Read `.agent/config.yml` before committing
|
|
71
|
+
- If `auto_commit: true` (default): commit normally with `git add` + `git commit`
|
|
72
|
+
- If `auto_commit: false`: skip commit and staging entirely. Print: "Skipping commit (auto_commit: false in .agent/config.yml). Files left as modified for manual commit."
|
|
73
|
+
Update any diagram labels that mention "commits" to reflect this conditionality
|
|
74
|
+
(e.g. "commits (if auto_commit: true)").
|
|
@@ -114,7 +114,9 @@ digraph brainstorming {
|
|
|
114
114
|
- Write the validated design (spec) to `docs/superpowers/specs/YYYY-MM-DD-<topic>-design.md`
|
|
115
115
|
- (User preferences for spec location override this default)
|
|
116
116
|
- Use elements-of-style:writing-clearly-and-concisely skill if available
|
|
117
|
-
- Commit the design document to git
|
|
117
|
+
- **Commit the design document to git** — but first check `.agent/config.yml`:
|
|
118
|
+
- If `auto_commit: true` (default): run `git add <path> && git commit -m "docs: add <topic> design spec"`
|
|
119
|
+
- If `auto_commit: false`: skip commit and staging entirely. Print: "Skipping commit (auto_commit: false in .agent/config.yml). File is ready for manual commit."
|
|
118
120
|
|
|
119
121
|
**Spec Review Loop:**
|
|
120
122
|
After writing the spec document:
|
|
@@ -48,35 +48,12 @@ Save `screen_dir` from the response. Tell user to open the URL.
|
|
|
48
48
|
|
|
49
49
|
**Launching the server by platform:**
|
|
50
50
|
|
|
51
|
-
**
|
|
51
|
+
**Antigravity:**
|
|
52
52
|
```bash
|
|
53
|
-
#
|
|
53
|
+
# Launch the server normally
|
|
54
54
|
scripts/start-server.sh --project-dir /path/to/project
|
|
55
55
|
```
|
|
56
56
|
|
|
57
|
-
**Claude Code (Windows):**
|
|
58
|
-
```bash
|
|
59
|
-
# Windows auto-detects and uses foreground mode, which blocks the tool call.
|
|
60
|
-
# Use run_in_background: true on the Bash tool call so the server survives
|
|
61
|
-
# across conversation turns.
|
|
62
|
-
scripts/start-server.sh --project-dir /path/to/project
|
|
63
|
-
```
|
|
64
|
-
When calling this via the Bash tool, set `run_in_background: true`. Then read `$SCREEN_DIR/.server-info` on the next turn to get the URL and port.
|
|
65
|
-
|
|
66
|
-
**Codex:**
|
|
67
|
-
```bash
|
|
68
|
-
# Codex reaps background processes. The script auto-detects CODEX_CI and
|
|
69
|
-
# switches to foreground mode. Run it normally — no extra flags needed.
|
|
70
|
-
scripts/start-server.sh --project-dir /path/to/project
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
**Gemini CLI:**
|
|
74
|
-
```bash
|
|
75
|
-
# Use --foreground and set is_background: true on your shell tool call
|
|
76
|
-
# so the process survives across turns
|
|
77
|
-
scripts/start-server.sh --project-dir /path/to/project --foreground
|
|
78
|
-
```
|
|
79
|
-
|
|
80
57
|
**Other environments:** The server must keep running in the background across conversation turns. If your environment reaps detached processes, use `--foreground` and launch the command with your platform's background execution mechanism.
|
|
81
58
|
|
|
82
59
|
If the URL is unreachable from your browser (common in remote/containerized setups), bind a non-loopback host:
|
|
@@ -66,7 +66,6 @@ Each agent gets:
|
|
|
66
66
|
### 3. Dispatch in Parallel
|
|
67
67
|
|
|
68
68
|
```typescript
|
|
69
|
-
// In Claude Code / AI environment
|
|
70
69
|
Task("Fix agent-tool-abort.test.ts failures")
|
|
71
70
|
Task("Fix batch-completion-behavior.test.ts failures")
|
|
72
71
|
Task("Fix tool-approval-race-conditions.test.ts failures")
|
|
@@ -11,7 +11,7 @@ Load plan, review critically, execute all tasks, report when complete.
|
|
|
11
11
|
|
|
12
12
|
**Announce at start:** "I'm using the executing-plans skill to implement this plan."
|
|
13
13
|
|
|
14
|
-
**Note:** Tell your human partner that Superpowers works much better with access to subagents. The quality of its work will be significantly higher if run on a platform with subagent support (such as
|
|
14
|
+
**Note:** Tell your human partner that Superpowers works much better with access to subagents. The quality of its work will be significantly higher if run on a platform with subagent support (such as Antigravity). If subagents are available, use superpowers:subagent-driven-development instead of this skill.
|
|
15
15
|
|
|
16
16
|
## The Process
|
|
17
17
|
|
|
@@ -48,7 +48,7 @@ digraph process {
|
|
|
48
48
|
"Dispatch implementer subagent (./implementer-prompt.md)" [shape=box];
|
|
49
49
|
"Implementer subagent asks questions?" [shape=diamond];
|
|
50
50
|
"Answer questions, provide context" [shape=box];
|
|
51
|
-
"Implementer subagent implements, tests, commits, self-reviews" [shape=box];
|
|
51
|
+
"Implementer subagent implements, tests, commits (if auto_commit: true), self-reviews" [shape=box];
|
|
52
52
|
"Dispatch spec reviewer subagent (./spec-reviewer-prompt.md)" [shape=box];
|
|
53
53
|
"Spec reviewer subagent confirms code matches spec?" [shape=diamond];
|
|
54
54
|
"Implementer subagent fixes spec gaps" [shape=box];
|
|
@@ -67,8 +67,8 @@ digraph process {
|
|
|
67
67
|
"Dispatch implementer subagent (./implementer-prompt.md)" -> "Implementer subagent asks questions?";
|
|
68
68
|
"Implementer subagent asks questions?" -> "Answer questions, provide context" [label="yes"];
|
|
69
69
|
"Answer questions, provide context" -> "Dispatch implementer subagent (./implementer-prompt.md)";
|
|
70
|
-
"Implementer subagent asks questions?" -> "Implementer subagent implements, tests, commits, self-reviews" [label="no"];
|
|
71
|
-
"Implementer subagent implements, tests, commits, self-reviews" -> "Dispatch spec reviewer subagent (./spec-reviewer-prompt.md)";
|
|
70
|
+
"Implementer subagent asks questions?" -> "Implementer subagent implements, tests, commits (if auto_commit: true), self-reviews" [label="no"];
|
|
71
|
+
"Implementer subagent implements, tests, commits (if auto_commit: true), self-reviews" -> "Dispatch spec reviewer subagent (./spec-reviewer-prompt.md)";
|
|
72
72
|
"Dispatch spec reviewer subagent (./spec-reviewer-prompt.md)" -> "Spec reviewer subagent confirms code matches spec?";
|
|
73
73
|
"Spec reviewer subagent confirms code matches spec?" -> "Implementer subagent fixes spec gaps" [label="no"];
|
|
74
74
|
"Implementer subagent fixes spec gaps" -> "Dispatch spec reviewer subagent (./spec-reviewer-prompt.md)" [label="re-review"];
|
|
@@ -247,6 +247,10 @@ Done!
|
|
|
247
247
|
- **Start code quality review before spec compliance is ✅** (wrong order)
|
|
248
248
|
- Move to next task while either review has open issues
|
|
249
249
|
|
|
250
|
+
**Before implementer commits:** Check `.agent/config.yml` for `auto_commit` setting.
|
|
251
|
+
- If `auto_commit: true` (default): commit normally with `git add` + `git commit`
|
|
252
|
+
- If `auto_commit: false`: skip commit and staging entirely. Print: "Skipping commit (auto_commit: false in .agent/config.yml). Files left as modified for manual commit."
|
|
253
|
+
|
|
250
254
|
**If subagent asks questions:**
|
|
251
255
|
- Answer clearly and completely
|
|
252
256
|
- Provide additional context if needed
|
|
@@ -19,23 +19,21 @@ This is not negotiable. This is not optional. You cannot rationalize your way ou
|
|
|
19
19
|
|
|
20
20
|
Superpowers skills override default system prompt behavior, but **user instructions always take precedence**:
|
|
21
21
|
|
|
22
|
-
1. **User's explicit instructions** (
|
|
22
|
+
1. **User's explicit instructions** (GEMINI.md, AGENTS.md, direct requests) — highest priority
|
|
23
23
|
2. **Superpowers skills** — override default system behavior where they conflict
|
|
24
24
|
3. **Default system prompt** — lowest priority
|
|
25
25
|
|
|
26
|
-
If
|
|
26
|
+
If GEMINI.md or AGENTS.md says "don't use TDD" and a skill says "always use TDD," follow the user's instructions. The user is in control.
|
|
27
27
|
|
|
28
28
|
## How to Access Skills
|
|
29
29
|
|
|
30
|
-
**In
|
|
31
|
-
|
|
32
|
-
**In Gemini CLI:** Skills activate via the `activate_skill` tool. Gemini loads skill metadata at session start and activates the full content on demand.
|
|
33
|
-
|
|
34
|
-
**In other environments:** Check your platform's documentation for how skills are loaded.
|
|
30
|
+
**In Antigravity:** Use `view_file` on `.agent/skills/<skill-name>/SKILL.md` to read a skill. Skills are detected automatically from their `description` field.
|
|
35
31
|
|
|
36
32
|
## Platform Adaptation
|
|
37
33
|
|
|
38
|
-
|
|
34
|
+
This package is configured for **Google Antigravity**. Tool name mappings are handled automatically via `GEMINI.md` in your workspace.
|
|
35
|
+
|
|
36
|
+
For tool name equivalents, see `references/antigravity-tools.md`.
|
|
39
37
|
|
|
40
38
|
# Using Skills
|
|
41
39
|
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# Antigravity Tool Mapping
|
|
2
|
+
|
|
3
|
+
Some skills reference tool names from other platforms. Use the Antigravity equivalents below:
|
|
4
|
+
|
|
5
|
+
| Skill references | Antigravity equivalent |
|
|
6
|
+
|---|---|
|
|
7
|
+
| `Read` (file reading) | `view_file` |
|
|
8
|
+
| `Write` (file creation) | `write_to_file` |
|
|
9
|
+
| `Edit` (file editing, single block) | `replace_file_content` |
|
|
10
|
+
| `Edit` (file editing, multiple blocks) | `multi_replace_file_content` |
|
|
11
|
+
| `Bash` (run commands) | `run_command` |
|
|
12
|
+
| `Grep` (search file content) | `grep_search` |
|
|
13
|
+
| `Glob` / `LS` (search files by name/pattern) | `find_by_name` |
|
|
14
|
+
| `LS` (list directory) | `list_dir` |
|
|
15
|
+
| `WebSearch` | `search_web` |
|
|
16
|
+
| `WebFetch` | `read_url_content` |
|
|
17
|
+
| `Skill` tool (invoke a skill) | `view_file` on `.agent/skills/<name>/SKILL.md` |
|
|
18
|
+
| `TodoWrite` (task tracking) | ❌ No direct equivalent — track progress in responses |
|
|
19
|
+
| `Task` tool (dispatch subagent) | `browser_subagent` (browser only, not general-purpose) |
|
|
20
|
+
|
|
21
|
+
## Subagent support
|
|
22
|
+
|
|
23
|
+
Antigravity does not support general-purpose subagent dispatch (`Task` tool). Skills that rely on `subagent-driven-development` or `dispatching-parallel-agents` should fall back to single-session execution via `executing-plans`.
|
|
24
|
+
|
|
25
|
+
## Background commands
|
|
26
|
+
|
|
27
|
+
Antigravity supports long-running background commands:
|
|
28
|
+
|
|
29
|
+
| Tool | Purpose |
|
|
30
|
+
|---|---|
|
|
31
|
+
| `run_command` with `WaitMsBeforeAsync` | Start a command, optionally wait for output |
|
|
32
|
+
| `command_status` | Poll status and output of a background command |
|
|
33
|
+
| `send_command_input` | Send stdin to a running command |
|
|
34
|
+
|
|
35
|
+
## Additional Antigravity tools
|
|
36
|
+
|
|
37
|
+
These tools are available in Antigravity with no equivalent in other platforms:
|
|
38
|
+
|
|
39
|
+
| Tool | Purpose |
|
|
40
|
+
|---|---|
|
|
41
|
+
| `generate_image` | Generate or edit images via AI |
|
|
42
|
+
| `browser_subagent` | Automate browser interactions |
|
|
43
|
+
| `list_resources` / `read_resource` | MCP resource access |
|
|
@@ -9,7 +9,7 @@ description: Use when creating new skills, editing existing skills, or verifying
|
|
|
9
9
|
|
|
10
10
|
**Writing skills IS Test-Driven Development applied to process documentation.**
|
|
11
11
|
|
|
12
|
-
**Personal skills live in agent-specific directories (`~/.
|
|
12
|
+
**Personal skills live in agent-specific directories (`~/.agent/skills` for Antigravity)**
|
|
13
13
|
|
|
14
14
|
You write test cases (pressure scenarios with subagents), watch them fail (baseline behavior), write the skill (documentation), watch tests pass (agents comply), and refactor (close loopholes).
|
|
15
15
|
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Publish agy-superpowers to npm with version bump, git tag, and push
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
Publish `agy-superpowers` to npm.
|
|
6
|
+
|
|
7
|
+
**Current version:** check `package.json` → `"version"`
|
|
8
|
+
**npm page:** https://www.npmjs.com/package/agy-superpowers
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
## Usage
|
|
13
|
+
|
|
14
|
+
// turbo
|
|
15
|
+
1. Run the publish script with the desired version bump:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
# patch bump: 5.0.5 → 5.0.6 (default, use after minor fixes)
|
|
19
|
+
./scripts/publish.sh
|
|
20
|
+
|
|
21
|
+
# minor bump: 5.0.5 → 5.1.0 (new features)
|
|
22
|
+
./scripts/publish.sh minor
|
|
23
|
+
|
|
24
|
+
# exact version: match upstream superpowers tag (use after /update-superpowers)
|
|
25
|
+
./scripts/publish.sh 5.1.0
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
2. Script will automatically:
|
|
29
|
+
- Bump `package.json` version
|
|
30
|
+
- Run `npm run build` (via `prepublishOnly`)
|
|
31
|
+
- Publish to npm registry
|
|
32
|
+
- `git commit` + `git tag` + `git push`
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
## After running `/update-superpowers`
|
|
37
|
+
|
|
38
|
+
When superpowers upstream releases a new version, sync and publish:
|
|
39
|
+
|
|
40
|
+
1. Run `/update-superpowers` (updates `superpowers/` and `.agent/`)
|
|
41
|
+
2. Check new version: `cat .agent/superpowers-version.json`
|
|
42
|
+
3. Publish with matching version:
|
|
43
|
+
```bash
|
|
44
|
+
./scripts/publish.sh 5.1.0 # replace with actual new version
|
|
45
|
+
```
|
|
@@ -7,14 +7,26 @@ This workflow has two phases:
|
|
|
7
7
|
- **Phase 2 (AI):** update the skill list in rules only — no content rewriting
|
|
8
8
|
|
|
9
9
|
// turbo
|
|
10
|
-
1.
|
|
10
|
+
1. Preserve user config (if exists):
|
|
11
|
+
`[ -f .agent/config.yml ] && cp .agent/config.yml /tmp/agent-config-backup.yml && echo "Config backed up" || echo "No config to backup"`
|
|
12
|
+
|
|
13
|
+
// turbo
|
|
14
|
+
2. Run the update script:
|
|
11
15
|
`bash .agent/.shared/update-superpowers.sh`
|
|
12
16
|
|
|
13
|
-
- If output ends with "Already up to date" → **STOP**. Nothing to do.
|
|
14
|
-
- If clone fails → **STOP**. Report the error to the user.
|
|
17
|
+
- If output ends with "Already up to date" → restore config if backed up (`[ -f /tmp/agent-config-backup.yml ] && cp /tmp/agent-config-backup.yml .agent/config.yml`), then **STOP**. Nothing to do.
|
|
18
|
+
- If clone fails → restore config if backed up, then **STOP**. Report the error to the user.
|
|
15
19
|
- On success the script prints `SCRIPT_DONE:<new-tag>` — note the new tag and continue.
|
|
16
20
|
|
|
17
|
-
|
|
21
|
+
// turbo
|
|
22
|
+
3. Run the Antigravity patch script (breaks symlinks → real files, removes non-Antigravity tool refs):
|
|
23
|
+
`node scripts/patch-agent-skills.js`
|
|
24
|
+
|
|
25
|
+
// turbo
|
|
26
|
+
4. Restore user config:
|
|
27
|
+
`[ -f /tmp/agent-config-backup.yml ] && cp /tmp/agent-config-backup.yml .agent/config.yml && echo "Config restored" || echo "No config to restore"`
|
|
28
|
+
|
|
29
|
+
5. **Phase 2 — Update skill list in rules**
|
|
18
30
|
|
|
19
31
|
List all skill folders now present in `.agent/skills/`.
|
|
20
32
|
Open `.agent/rules/superpowers.md` and update **only the skills table**:
|
|
@@ -24,19 +36,30 @@ This workflow has two phases:
|
|
|
24
36
|
|
|
25
37
|
If no skills were added or removed → skip, note "rules: no changes needed".
|
|
26
38
|
|
|
27
|
-
|
|
39
|
+
6. **Phase 2 — New skills check**
|
|
28
40
|
|
|
29
41
|
For any skill in `.agent/skills/` that has no corresponding workflow in `.agent/workflows/`:
|
|
30
42
|
- Read its `SKILL.md` `description` field.
|
|
31
43
|
- Report it to the user: "New skill available: `<name>` — `<description>`. Create a workflow?"
|
|
32
44
|
- Do NOT auto-create. Let the user decide.
|
|
33
45
|
|
|
46
|
+
7. **Phase 2 — Apply skill patches from `.agent/patches/skills-patches.md`**
|
|
47
|
+
|
|
48
|
+
Read `.agent/patches/skills-patches.md`. For each patch entry:
|
|
49
|
+
- Open the target SKILL.md (path relative to `.agent/skills/`)
|
|
50
|
+
- Understand the *intent* described — do not match text literally
|
|
51
|
+
- Find the relevant section in the current file content
|
|
52
|
+
- Rewrite that section to match the intent, adapting to any upstream wording changes
|
|
53
|
+
- If the patch is already applied → skip, note "already applied"
|
|
54
|
+
|
|
55
|
+
Apply all patches before moving to the next step.
|
|
56
|
+
|
|
34
57
|
// turbo
|
|
35
|
-
|
|
58
|
+
8. Commit all changes from Phase 2:
|
|
36
59
|
`git add .agent/ && git commit -m "chore: sync .agent/ with superpowers <new-tag>"`
|
|
37
60
|
(Skip commit if nothing changed.)
|
|
38
61
|
|
|
39
|
-
|
|
62
|
+
8. Print summary:
|
|
40
63
|
```
|
|
41
64
|
✅ Superpowers updated: <old-tag> → <new-tag>
|
|
42
65
|
📦 Skills: <old-count> → <new-count> (+new_skill / -removed_skill)
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
# Creation Log: Systematic Debugging Skill
|
|
2
|
-
|
|
3
|
-
Reference example of extracting, structuring, and bulletproofing a critical skill.
|
|
4
|
-
|
|
5
|
-
## Source Material
|
|
6
|
-
|
|
7
|
-
Extracted debugging framework from `/Users/jesse/.claude/CLAUDE.md`:
|
|
8
|
-
- 4-phase systematic process (Investigation → Pattern Analysis → Hypothesis → Implementation)
|
|
9
|
-
- Core mandate: ALWAYS find root cause, NEVER fix symptoms
|
|
10
|
-
- Rules designed to resist time pressure and rationalization
|
|
11
|
-
|
|
12
|
-
## Extraction Decisions
|
|
13
|
-
|
|
14
|
-
**What to include:**
|
|
15
|
-
- Complete 4-phase framework with all rules
|
|
16
|
-
- Anti-shortcuts ("NEVER fix symptom", "STOP and re-analyze")
|
|
17
|
-
- Pressure-resistant language ("even if faster", "even if I seem in a hurry")
|
|
18
|
-
- Concrete steps for each phase
|
|
19
|
-
|
|
20
|
-
**What to leave out:**
|
|
21
|
-
- Project-specific context
|
|
22
|
-
- Repetitive variations of same rule
|
|
23
|
-
- Narrative explanations (condensed to principles)
|
|
24
|
-
|
|
25
|
-
## Structure Following skill-creation/SKILL.md
|
|
26
|
-
|
|
27
|
-
1. **Rich when_to_use** - Included symptoms and anti-patterns
|
|
28
|
-
2. **Type: technique** - Concrete process with steps
|
|
29
|
-
3. **Keywords** - "root cause", "symptom", "workaround", "debugging", "investigation"
|
|
30
|
-
4. **Flowchart** - Decision point for "fix failed" → re-analyze vs add more fixes
|
|
31
|
-
5. **Phase-by-phase breakdown** - Scannable checklist format
|
|
32
|
-
6. **Anti-patterns section** - What NOT to do (critical for this skill)
|
|
33
|
-
|
|
34
|
-
## Bulletproofing Elements
|
|
35
|
-
|
|
36
|
-
Framework designed to resist rationalization under pressure:
|
|
37
|
-
|
|
38
|
-
### Language Choices
|
|
39
|
-
- "ALWAYS" / "NEVER" (not "should" / "try to")
|
|
40
|
-
- "even if faster" / "even if I seem in a hurry"
|
|
41
|
-
- "STOP and re-analyze" (explicit pause)
|
|
42
|
-
- "Don't skip past" (catches the actual behavior)
|
|
43
|
-
|
|
44
|
-
### Structural Defenses
|
|
45
|
-
- **Phase 1 required** - Can't skip to implementation
|
|
46
|
-
- **Single hypothesis rule** - Forces thinking, prevents shotgun fixes
|
|
47
|
-
- **Explicit failure mode** - "IF your first fix doesn't work" with mandatory action
|
|
48
|
-
- **Anti-patterns section** - Shows exactly what shortcuts look like
|
|
49
|
-
|
|
50
|
-
### Redundancy
|
|
51
|
-
- Root cause mandate in overview + when_to_use + Phase 1 + implementation rules
|
|
52
|
-
- "NEVER fix symptom" appears 4 times in different contexts
|
|
53
|
-
- Each phase has explicit "don't skip" guidance
|
|
54
|
-
|
|
55
|
-
## Testing Approach
|
|
56
|
-
|
|
57
|
-
Created 4 validation tests following skills/meta/testing-skills-with-subagents:
|
|
58
|
-
|
|
59
|
-
### Test 1: Academic Context (No Pressure)
|
|
60
|
-
- Simple bug, no time pressure
|
|
61
|
-
- **Result:** Perfect compliance, complete investigation
|
|
62
|
-
|
|
63
|
-
### Test 2: Time Pressure + Obvious Quick Fix
|
|
64
|
-
- User "in a hurry", symptom fix looks easy
|
|
65
|
-
- **Result:** Resisted shortcut, followed full process, found real root cause
|
|
66
|
-
|
|
67
|
-
### Test 3: Complex System + Uncertainty
|
|
68
|
-
- Multi-layer failure, unclear if can find root cause
|
|
69
|
-
- **Result:** Systematic investigation, traced through all layers, found source
|
|
70
|
-
|
|
71
|
-
### Test 4: Failed First Fix
|
|
72
|
-
- Hypothesis doesn't work, temptation to add more fixes
|
|
73
|
-
- **Result:** Stopped, re-analyzed, formed new hypothesis (no shotgun)
|
|
74
|
-
|
|
75
|
-
**All tests passed.** No rationalizations found.
|
|
76
|
-
|
|
77
|
-
## Iterations
|
|
78
|
-
|
|
79
|
-
### Initial Version
|
|
80
|
-
- Complete 4-phase framework
|
|
81
|
-
- Anti-patterns section
|
|
82
|
-
- Flowchart for "fix failed" decision
|
|
83
|
-
|
|
84
|
-
### Enhancement 1: TDD Reference
|
|
85
|
-
- Added link to skills/testing/test-driven-development
|
|
86
|
-
- Note explaining TDD's "simplest code" ≠ debugging's "root cause"
|
|
87
|
-
- Prevents confusion between methodologies
|
|
88
|
-
|
|
89
|
-
## Final Outcome
|
|
90
|
-
|
|
91
|
-
Bulletproof skill that:
|
|
92
|
-
- ✅ Clearly mandates root cause investigation
|
|
93
|
-
- ✅ Resists time pressure rationalization
|
|
94
|
-
- ✅ Provides concrete steps for each phase
|
|
95
|
-
- ✅ Shows anti-patterns explicitly
|
|
96
|
-
- ✅ Tested under multiple pressure scenarios
|
|
97
|
-
- ✅ Clarifies relationship to TDD
|
|
98
|
-
- ✅ Ready for use
|
|
99
|
-
|
|
100
|
-
## Key Insight
|
|
101
|
-
|
|
102
|
-
**Most important bulletproofing:** Anti-patterns section showing exact shortcuts that feel justified in the moment. When Claude thinks "I'll just add this one quick fix", seeing that exact pattern listed as wrong creates cognitive friction.
|
|
103
|
-
|
|
104
|
-
## Usage Example
|
|
105
|
-
|
|
106
|
-
When encountering a bug:
|
|
107
|
-
1. Load skill: skills/debugging/systematic-debugging
|
|
108
|
-
2. Read overview (10 sec) - reminded of mandate
|
|
109
|
-
3. Follow Phase 1 checklist - forced investigation
|
|
110
|
-
4. If tempted to skip - see anti-pattern, stop
|
|
111
|
-
5. Complete all phases - root cause found
|
|
112
|
-
|
|
113
|
-
**Time investment:** 5-10 minutes
|
|
114
|
-
**Time saved:** Hours of symptom-whack-a-mole
|
|
115
|
-
|
|
116
|
-
---
|
|
117
|
-
|
|
118
|
-
*Created: 2025-10-03*
|
|
119
|
-
*Purpose: Reference example for skill extraction and bulletproofing*
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
# Codex Tool Mapping
|
|
2
|
-
|
|
3
|
-
Skills use Claude Code tool names. When you encounter these in a skill, use your platform equivalent:
|
|
4
|
-
|
|
5
|
-
| Skill references | Codex equivalent |
|
|
6
|
-
|-----------------|------------------|
|
|
7
|
-
| `Task` tool (dispatch subagent) | `spawn_agent` |
|
|
8
|
-
| Multiple `Task` calls (parallel) | Multiple `spawn_agent` calls |
|
|
9
|
-
| Task returns result | `wait` |
|
|
10
|
-
| Task completes automatically | `close_agent` to free slot |
|
|
11
|
-
| `TodoWrite` (task tracking) | `update_plan` |
|
|
12
|
-
| `Skill` tool (invoke a skill) | Skills load natively — just follow the instructions |
|
|
13
|
-
| `Read`, `Write`, `Edit` (files) | Use your native file tools |
|
|
14
|
-
| `Bash` (run commands) | Use your native shell tools |
|
|
15
|
-
|
|
16
|
-
## Subagent dispatch requires multi-agent support
|
|
17
|
-
|
|
18
|
-
Add to your Codex config (`~/.codex/config.toml`):
|
|
19
|
-
|
|
20
|
-
```toml
|
|
21
|
-
[features]
|
|
22
|
-
multi_agent = true
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
This enables `spawn_agent`, `wait`, and `close_agent` for skills like `dispatching-parallel-agents` and `subagent-driven-development`.
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
# Gemini CLI Tool Mapping
|
|
2
|
-
|
|
3
|
-
Skills use Claude Code tool names. When you encounter these in a skill, use your platform equivalent:
|
|
4
|
-
|
|
5
|
-
| Skill references | Gemini CLI equivalent |
|
|
6
|
-
|-----------------|----------------------|
|
|
7
|
-
| `Read` (file reading) | `read_file` |
|
|
8
|
-
| `Write` (file creation) | `write_file` |
|
|
9
|
-
| `Edit` (file editing) | `replace` |
|
|
10
|
-
| `Bash` (run commands) | `run_shell_command` |
|
|
11
|
-
| `Grep` (search file content) | `grep_search` |
|
|
12
|
-
| `Glob` (search files by name) | `glob` |
|
|
13
|
-
| `TodoWrite` (task tracking) | `write_todos` |
|
|
14
|
-
| `Skill` tool (invoke a skill) | `activate_skill` |
|
|
15
|
-
| `WebSearch` | `google_web_search` |
|
|
16
|
-
| `WebFetch` | `web_fetch` |
|
|
17
|
-
| `Task` tool (dispatch subagent) | No equivalent — Gemini CLI does not support subagents |
|
|
18
|
-
|
|
19
|
-
## No subagent support
|
|
20
|
-
|
|
21
|
-
Gemini CLI has no equivalent to Claude Code's `Task` tool. Skills that rely on subagent dispatch (`subagent-driven-development`, `dispatching-parallel-agents`) will fall back to single-session execution via `executing-plans`.
|
|
22
|
-
|
|
23
|
-
## Additional Gemini CLI tools
|
|
24
|
-
|
|
25
|
-
These tools are available in Gemini CLI but have no Claude Code equivalent:
|
|
26
|
-
|
|
27
|
-
| Tool | Purpose |
|
|
28
|
-
|------|---------|
|
|
29
|
-
| `list_directory` | List files and subdirectories |
|
|
30
|
-
| `save_memory` | Persist facts to GEMINI.md across sessions |
|
|
31
|
-
| `ask_user` | Request structured input from the user |
|
|
32
|
-
| `tracker_create_task` | Rich task management (create, update, list, visualize) |
|
|
33
|
-
| `enter_plan_mode` / `exit_plan_mode` | Switch to read-only research mode before making changes |
|