@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,194 @@
1
+ ---
2
+ name: using-git-worktrees
3
+ description: Use when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback
4
+ ---
5
+
6
+ # Using Git Worktrees
7
+
8
+ ## Overview
9
+
10
+ Ensure work happens in an isolated workspace. Prefer your platform's native worktree tools. Fall back to manual git worktrees only when no native tool is available.
11
+
12
+ **Core principle:** Detect existing isolation first. Then use native tools. Then fall back to git. Never fight the harness.
13
+
14
+ **Announce at start:** "I'm using the using-git-worktrees skill to set up an isolated workspace."
15
+
16
+ ## Step 0: Detect Existing Isolation
17
+
18
+ **Before creating anything, check if you are already in an isolated workspace.**
19
+
20
+ ```bash
21
+ GIT_DIR=$(cd "$(git rev-parse --git-dir)" 2>/dev/null && pwd -P)
22
+ GIT_COMMON=$(cd "$(git rev-parse --git-common-dir)" 2>/dev/null && pwd -P)
23
+ BRANCH=$(git branch --show-current)
24
+ ```
25
+
26
+ **Submodule guard:** `GIT_DIR != GIT_COMMON` is also true inside git submodules. Before concluding "already in a worktree," verify you are not in a submodule:
27
+
28
+ ```bash
29
+ # If this returns a path, you're in a submodule, not a worktree — treat as normal repo
30
+ git rev-parse --show-superproject-working-tree 2>/dev/null
31
+ ```
32
+
33
+ **If `GIT_DIR != GIT_COMMON` (and not a submodule):** You are already in a linked worktree. Skip to Step 2 (Project Setup). Do NOT create another worktree.
34
+
35
+ Report with branch state:
36
+ - On a branch: "Already in isolated workspace at `<path>` on branch `<name>`."
37
+ - Detached HEAD: "Already in isolated workspace at `<path>` (detached HEAD, externally managed). Branch creation needed at finish time."
38
+
39
+ **If `GIT_DIR == GIT_COMMON` (or in a submodule):** You are in a normal repo checkout.
40
+
41
+ Has the user already indicated their worktree preference in your instructions? If not, ask for consent before creating a worktree:
42
+
43
+ > "Would you like me to set up an isolated worktree? It protects your current branch from changes."
44
+
45
+ Honor any existing declared preference without asking. If the user declines consent, work in place and skip to Step 2.
46
+
47
+ **On omp, the user has a one-line answer:** `/wt <branch>` moves *this session* into a new worktree on a new branch off `HEAD`, carrying uncommitted changes with it (clone-first, so `node_modules`/`target` come along). Only the user can run it — it is a slash command, refused while you are streaming. If they do, re-run the detection above: `GIT_DIR != GIT_COMMON` now holds, so skip to Step 2. (`worktree.cleanSource: true` additionally runs `git reset --hard` + `git clean` on the *original* checkout afterwards; it is off by default.)
48
+
49
+ ## Step 1: Create Isolated Workspace
50
+
51
+ **You have two mechanisms. Try them in this order.**
52
+
53
+ ### 1a. Native Worktree Tools (preferred)
54
+
55
+ The user has asked for an isolated workspace (Step 0 consent). Do you already have a way to create a worktree? It might be a tool with a name like `EnterWorktree`, `WorktreeCreate`, a `/worktree` command, or a `--worktree` flag. If you do, use it and skip to Step 2.
56
+
57
+ Native tools handle directory placement, branch creation, and cleanup automatically. Using `git worktree add` when you have a native tool creates phantom state your harness can't see or manage.
58
+
59
+ Only proceed to Step 1b if you have no native worktree tool available.
60
+
61
+ #### On omp: `omp worktree add`
62
+
63
+ omp exposes no worktree *tool* to the agent — `/wt` and `/move` are slash commands only the user can type. The native mechanism you can run is the CLI, from `bash`:
64
+
65
+ ```bash
66
+ repo=$(basename "$(git rev-parse --show-toplevel)")
67
+ path=~/.omp/wt/"$BRANCH_NAME-$repo"
68
+ omp worktree add -b "$BRANCH_NAME" "$path" # optional trailing commit-ish, default HEAD
69
+ ```
70
+
71
+ Rules, each measured on omp 18.1:
72
+
73
+ - **Put it under `~/.omp/wt/`** (or the configured `worktree.base`). That is the registry `omp worktree list` / `omp worktree clear` manage; a worktree created elsewhere is a valid git worktree that omp cannot see — the phantom state this step exists to avoid. Do not use `.worktrees/` on omp.
74
+ - **It does not carry uncommitted changes.** It is clone-first (ignored build artifacts like `node_modules` come along), but a dirty tree stays behind. If the user has work in flight, either commit/stash it first or ask them to use `/wt <branch>`, which does carry it.
75
+ - **Your working directory does not follow.** `cd` in `bash` is per call, and `read`/`edit`/`glob` resolve relative paths against the *session* cwd. After creating the worktree, ask the user to run `/move <path>` so the session follows you — until then, use absolute paths for everything under the worktree.
76
+ - **Cleanup.** A finished worktree is removed with `git worktree remove <path>` from the repo — that also deletes the directory. `omp worktree clear` only sweeps *orphaned* entries (its own words: "parent repo no longer tracks this worktree"); a live worktree survives it, and `--all` also takes the user's PR checkouts. Preview with `omp worktree clear --dry-run`. Never `rm -rf` a registered worktree.
77
+
78
+ This is the whole-session layer. Per-*subagent* isolation for parallel SDD waves is a separate switch, `task.isolation.enabled` (default off) — see the subagent-driven-development skill.
79
+
80
+ Then skip to Step 2.
81
+
82
+ ### 1b. Git Worktree Fallback
83
+
84
+ **Only use this if Step 1a does not apply** — you have no native worktree tool available. Create a worktree manually using git.
85
+
86
+ #### Directory Selection
87
+
88
+ Follow this priority order. Explicit user preference always beats observed filesystem state.
89
+
90
+ 1. **Check your instructions for a declared worktree directory preference.** If the user has already specified one, use it without asking.
91
+
92
+ 2. **Check for an existing project-local worktree directory:**
93
+ ```bash
94
+ ls -d .worktrees 2>/dev/null # Preferred (hidden)
95
+ ls -d worktrees 2>/dev/null # Alternative
96
+ ```
97
+ If found, use it. If both exist, `.worktrees` wins.
98
+
99
+ 3. **If there is no other guidance available**, default to `.worktrees/` at the project root.
100
+
101
+ #### Safety Verification (project-local directories only)
102
+
103
+ **MUST verify directory is ignored before creating worktree:**
104
+
105
+ ```bash
106
+ git check-ignore -q .worktrees 2>/dev/null || git check-ignore -q worktrees 2>/dev/null
107
+ ```
108
+
109
+ **If NOT ignored:** Add to .gitignore, commit the change, then proceed.
110
+
111
+ **Why critical:** Prevents accidentally committing worktree contents to repository.
112
+
113
+ #### Create the Worktree
114
+
115
+ ```bash
116
+ # Determine path based on chosen location
117
+ path="$LOCATION/$BRANCH_NAME"
118
+
119
+ git worktree add "$path" -b "$BRANCH_NAME"
120
+ cd "$path"
121
+ ```
122
+
123
+ **Sandbox fallback:** If `git worktree add` fails with a permission error (sandbox denial), tell the user the sandbox blocked worktree creation and you're working in the current directory instead. Then run setup and baseline tests in place.
124
+
125
+ ## Step 2: Project Setup
126
+
127
+ Auto-detect and run appropriate setup:
128
+
129
+ ```bash
130
+ # Node.js
131
+ if [ -f package.json ]; then npm install; fi
132
+
133
+ # Rust
134
+ if [ -f Cargo.toml ]; then cargo build; fi
135
+
136
+ # Python
137
+ if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
138
+ if [ -f pyproject.toml ]; then poetry install; fi
139
+
140
+ # Go
141
+ if [ -f go.mod ]; then go mod download; fi
142
+ ```
143
+
144
+ ## Step 3: Verify Clean Baseline
145
+
146
+ Run tests to ensure workspace starts clean:
147
+
148
+ ```bash
149
+ # Use project-appropriate command
150
+ npm test / cargo test / pytest / go test ./...
151
+ ```
152
+
153
+ **If tests fail:** Report failures, ask whether to proceed or investigate.
154
+
155
+ **If tests pass:** Report ready.
156
+
157
+ ### Report
158
+
159
+ ```
160
+ Worktree ready at <full-path>
161
+ Tests passing (<N> tests, 0 failures)
162
+ Ready to implement <feature-name>
163
+ ```
164
+
165
+ ## Quick Reference
166
+
167
+ | Situation | Action |
168
+ |-----------|--------|
169
+ | Already in linked worktree | Skip creation (Step 0) |
170
+ | In a submodule | Treat as normal repo (Step 0 guard) |
171
+ | Native worktree tool available | Use it (Step 1a) |
172
+ | No native tool | Git worktree fallback (Step 1b) |
173
+ | omp, user typed `/wt <branch>` | Session already moved, WIP carried — re-run Step 0, skip to Step 2 |
174
+ | omp, you create it | `omp worktree add -b <branch> ~/.omp/wt/<branch>-<repo>`; then ask for `/move <path>` |
175
+ | omp, dirty tree | Commit/stash first, or ask the user for `/wt` — `omp worktree add` leaves WIP behind |
176
+ | `.worktrees/` exists | Use it (verify ignored) |
177
+ | `worktrees/` exists | Use it (verify ignored) |
178
+ | Both exist | Use `.worktrees/` |
179
+ | Neither exists | Check instruction file, then default `.worktrees/` |
180
+ | Directory not ignored | Add to .gitignore + commit |
181
+ | Permission error on create | Sandbox fallback, work in place |
182
+ | Tests fail during baseline | Report failures + ask |
183
+ | No package.json/Cargo.toml | Skip dependency install |
184
+
185
+ ## Common Rationalizations
186
+
187
+ | Excuse | Reality |
188
+ |--------|---------|
189
+ | "I'm obviously not in a worktree — no need to check" | Run Step 0. Harness-created isolation and submodules both fool eyeballing; the detection commands settle it. |
190
+ | "`git worktree add` is quicker than hunting for a native tool" | A native tool (e.g. `EnterWorktree`) owns placement, branching, and cleanup. Bypassing it is the #1 mistake — it creates phantom state your harness can't see or manage. |
191
+ | "I `cd`'d into the worktree, so I'm working there now" | On omp, `cd` lasts one `bash` call and `read`/`edit`/`glob` resolve against the session cwd. You are still editing the original checkout. Ask for `/move <path>` or use absolute paths. |
192
+ | "The worktree directory is surely ignored already" | Run `git check-ignore`. An unignored worktree directory commits the whole tree into the repo. |
193
+ | "Any directory name works" | Explicit instructions beat an existing project-local directory, which beats the `.worktrees/` default. |
194
+ | "The workspace is fresh — baseline tests can wait" | A dirty baseline makes every later failure ambiguous. Run the tests now; proceeding past failures is your human partner's call. |
@@ -0,0 +1,65 @@
1
+ ---
2
+ name: using-superpowers
3
+ description: Use when starting any conversation - establishes how to find and use skills, requiring skill invocation before ANY response including clarifying questions
4
+ ---
5
+
6
+ <SUBAGENT-STOP>
7
+ If you were dispatched as a subagent to execute a specific task, ignore this skill.
8
+ </SUBAGENT-STOP>
9
+
10
+ <EXTREMELY-IMPORTANT>
11
+ If you think there is even a 1% chance a skill might apply to what you are doing, you ABSOLUTELY MUST invoke the skill.
12
+
13
+ IF A SKILL APPLIES TO YOUR TASK, YOU DO NOT HAVE A CHOICE. YOU MUST USE IT.
14
+
15
+ This is not negotiable. You cannot rationalize your way out of this.
16
+ </EXTREMELY-IMPORTANT>
17
+
18
+ ## The Rule
19
+
20
+ **Invoke relevant or requested skills BEFORE any response or action** — including clarifying questions, exploring the codebase, or checking files. If it turns out wrong for the situation, you don't have to use it.
21
+
22
+ **Before entering plan mode:** if you haven't already brainstormed, invoke the brainstorming skill first.
23
+
24
+ Then announce "Using [skill] to [purpose]" and follow the skill exactly. If it has a checklist, create a todo per item.
25
+
26
+ ## Skill Priority
27
+
28
+ When multiple skills apply, process skills come first — they set the approach, then implementation skills (frontend-design, etc.) carry it out. Brainstorming and systematic-debugging are Superpowers' most common process skills, but the rule holds for any of them.
29
+
30
+ - "Let's build X" → superpowers:brainstorming first, then implementation skills.
31
+ - "Fix this bug" → superpowers:systematic-debugging first, then domain skills.
32
+
33
+ ## Red Flags
34
+
35
+ These thoughts mean STOP—you're rationalizing:
36
+
37
+ | Thought | Reality |
38
+ |---------|---------|
39
+ | "This is just a simple question" | Questions are tasks. Check for skills. |
40
+ | "I need more context first" | Skill check comes BEFORE clarifying questions. |
41
+ | "Let me explore the codebase first" | Skills tell you HOW to explore. Check first. |
42
+ | "I can check git/files quickly" | Files lack conversation context. Check for skills. |
43
+ | "Let me gather information first" | Skills tell you HOW to gather information. |
44
+ | "This doesn't need a formal skill" | If a skill exists, use it. |
45
+ | "I remember this skill" | Skills evolve. Read current version. |
46
+ | "This doesn't count as a task" | Action = task. Check for skills. |
47
+ | "The skill is overkill" | Simple things become complex. Use it. |
48
+ | "I'll just do this one thing first" | Check BEFORE doing anything. |
49
+ | "This feels productive" | Undisciplined action wastes time. Skills prevent this. |
50
+ | "I know what that means" | Knowing the concept ≠ using the skill. Invoke it. |
51
+
52
+ ## Platform Adaptation
53
+
54
+ If your harness appears here, read its reference file for special instructions:
55
+
56
+ - Claude Code: `references/claude-code-tools.md`
57
+ - Codex: `references/codex-tools.md`
58
+ - Pi: `references/pi-tools.md`
59
+ - Antigravity: `references/antigravity-tools.md`
60
+ - Hermes Agent: `references/hermes-tools.md`
61
+ - Muse: `references/muse-tools.md`
62
+
63
+ ## User Instructions
64
+
65
+ User instructions (CLAUDE.md, AGENTS.md, GEMINI.md, etc, direct requests) take precedence over skills, which in turn override default behavior. Only skip skill workflows or instructions when your human partner has explicitly told you to.
@@ -0,0 +1,23 @@
1
+ # Antigravity CLI (`agy`) Tool Mapping
2
+
3
+ Skills speak in actions ("dispatch a subagent", "create a todo", "read a file"). On the Antigravity CLI (`agy`) these resolve to the tools below.
4
+
5
+ | Action skills request | Antigravity CLI equivalent |
6
+ |----------------------|----------------------|
7
+ | Dispatch a subagent (`Subagent (general-purpose):` template) | `invoke_subagent` with a built-in `TypeName` — `self` for full-capability work, `research` for read-only |
8
+ | Task tracking ("create a todo", "mark complete") | a **task artifact** — `write_to_file` with `IsArtifact: true` and `ArtifactType: "task"` (see [Task tracking](#task-tracking)). **Not** `manage_task`, which manages background processes. |
9
+
10
+ ## Task tracking
11
+
12
+ Antigravity has **no todo tool** (`manage_task` manages background
13
+ processes — `list`/`kill`/`status`/`send_input` — it is *not* a checklist). When a
14
+ skill says to create a todo list or track tasks, maintain a **task artifact**: a
15
+ markdown checklist saved with `write_to_file` (`IsArtifact: true`,
16
+ `ArtifactMetadata.ArtifactType: "task"`), edited with `replace_file_content` /
17
+ `multi_replace_file_content` as you go.
18
+
19
+ At the start of any multi-step task, create the task artifact listing every step of
20
+ your plan. As you complete each step, edit the artifact to mark it done (`- [x]`).
21
+ If the plan changes, update the checklist. Keep it current — it is your source of
22
+ truth for what remains; once the conversation gets long, re-read it before starting
23
+ each step.
@@ -0,0 +1,29 @@
1
+ # Claude Code Tool Notes
2
+
3
+ Claude Code is the reference harness: skills speak its vocabulary
4
+ (`Agent` for a subagent dispatch, todos, `Skill`). These notes cover the
5
+ one place Claude Code can run a plan cheaper than the skills' default
6
+ shape. It is opt-in by your human partner and changes nothing the skills
7
+ require.
8
+
9
+ ## Cheaper orchestration for subagent-driven development
10
+
11
+ The controller session is the most expensive seat in a
12
+ superpowers:subagent-driven-development run: it reads every dispatch
13
+ result and every report, and it usually runs on the session's most
14
+ capable model. Claude Code supports nested subagents (three layers below
15
+ the main conversation by default; `CLAUDE_CODE_MAX_SUBAGENT_SPAWN_DEPTH`
16
+ adjusts it), so the whole loop can run one layer down.
17
+
18
+ When your human partner asks for it — or has said the session model is
19
+ too expensive to spend on coordination — dispatch ONE orchestrator
20
+ subagent on a mid-tier model with the plan path and the instruction to
21
+ use superpowers:subagent-driven-development end to end. The orchestrator
22
+ dispatches its own implementers and reviewers per that skill's Model
23
+ Selection; the workspace and ledger live on disk, so nothing is lost to
24
+ the extra layer. Its final message must carry the "Rulings I made" list
25
+ verbatim — that list is how the decisions reach your human partner, and
26
+ you relay it, not summarize it.
27
+
28
+ Do this only for a whole plan. Nesting a single task's dispatch buys
29
+ nothing and adds a seat.
@@ -0,0 +1,108 @@
1
+ ## Subagent dispatch requires multi-agent support
2
+
3
+ Add to your Codex config (`~/.codex/config.toml`):
4
+
5
+ ```toml
6
+ [features]
7
+ multi_agent = true
8
+ ```
9
+
10
+ This enables the multi-agent tools that skills like
11
+ `dispatching-parallel-agents` and `subagent-driven-development` use.
12
+ Which tools you get depends on the multi-agent version your model
13
+ preset selects (current presets run V2; older ones run V1). Trust your
14
+ actual tool list over any table — including this one — when they
15
+ disagree.
16
+
17
+ - **Spawning:** give children a clean context with
18
+ `spawn_agent {fork_turns: "none"}`; the default `"all"` copies your
19
+ entire transcript into the child. On Codex 0.145+, role files under
20
+ `~/.codex/agents/` attach to isolated forks via `agent_type`.
21
+ Full-history forks accept `model` and `reasoning_effort` overrides
22
+ (only `agent_type` is refused there) — isolated forks are the SDD
23
+ default for context hygiene, not because overrides require them.
24
+ - **Fix rounds:** resume the implementer with `followup_task` — it
25
+ delivers your message, triggers a turn, and transparently reloads a
26
+ child the harness evicted. Never dispatch a fresh implementer on the
27
+ theory that a spawned agent cannot be messaged again; on V2 it
28
+ always can.
29
+ - **Lifecycle:** V2 has no `close_agent`. Finished children are
30
+ evicted automatically when slots are needed; leaving them unclosed
31
+ costs nothing. Only V1 sessions have `close_agent` — there, close
32
+ reviewers when their review returns, and close each implementer
33
+ after its task's review passes.
34
+ - **Model names:** never copy a model name from a skill, table, or old
35
+ session into `spawn_agent` without checking it against your current
36
+ spawn allowlist — V2 accepts only V2-capable presets and hard-errors
37
+ on the rest.
38
+
39
+ ## Waiting on children
40
+
41
+ `wait_agent` is an event subscription, not a poll: a long wait wakes
42
+ the moment a child produces mailbox activity, with the same latency as
43
+ a short one. Short-timeout polling buys nothing and costs a tool call —
44
+ and a context rebill — per poll. In measured sessions, roughly
45
+ two-thirds of all wait calls were short polls that timed out.
46
+
47
+ - While you still have local work, do not wait at all. A completed
48
+ child's final answer is pushed into your mailbox and arrives with
49
+ your next turn.
50
+ - When you are genuinely idle with children outstanding, wait in
51
+ bounded stretches: `wait_agent` with `timeout_ms` 300000-600000
52
+ (5-10 minutes). After each stretch — wake or timeout — post one
53
+ status line, run `list_agents`, and chase any child that finished
54
+ without reporting. Never stack polls shorter than five minutes; the
55
+ event subscription wakes a bounded stretch just as fast as a short
56
+ one.
57
+ - Completion mail cannot wake an idle controller (it is delivered
58
+ without triggering a turn); covering that idle window is
59
+ `wait_agent`'s only job. A stretch that times out with no activity
60
+ is your cue to reconcile, not to shorten the next stretch.
61
+
62
+ ## Model routing on spawns
63
+
64
+ Every `spawn_agent` you issue — including when you are yourself a
65
+ spawned child running a fan-out — sets `model` AND `reasoning_effort`
66
+ explicitly, per the Model Selection rules of the skill you are
67
+ executing. Setting `model` alone is a trap: the child's effort
68
+ silently resets to that model's default, not to yours.
69
+
70
+ Ask your human partner to add a machine-level backstop to
71
+ `~/.codex/config.toml` so any spawn that slips through still routes to
72
+ a deliberate tier instead of silently inheriting the session's most
73
+ expensive model:
74
+
75
+ ```toml
76
+ [agents]
77
+ default_subagent_model = "<a mid-tier model from your spawn allowlist>"
78
+ default_subagent_reasoning_effort = "medium"
79
+ ```
80
+
81
+ ## Environment Detection
82
+
83
+ Skills that create worktrees or finish branches should detect their
84
+ environment with read-only git commands before proceeding:
85
+
86
+ ```bash
87
+ GIT_DIR=$(cd "$(git rev-parse --git-dir)" 2>/dev/null && pwd -P)
88
+ GIT_COMMON=$(cd "$(git rev-parse --git-common-dir)" 2>/dev/null && pwd -P)
89
+ BRANCH=$(git branch --show-current)
90
+ ```
91
+
92
+ - `GIT_DIR != GIT_COMMON` → already in a linked worktree (skip creation)
93
+ - `BRANCH` empty → detached HEAD (cannot branch/push/PR from sandbox)
94
+
95
+ See `using-git-worktrees` Step 0 and `finishing-a-development-branch`
96
+ Step 1 for how each skill uses these signals.
97
+
98
+ ## Codex App Finishing
99
+
100
+ When the sandbox blocks branch/push operations (detached HEAD in an
101
+ externally managed worktree), the agent commits all work and informs
102
+ the user to use the App's native controls:
103
+
104
+ - **"Create branch"** — names the branch, then commit/push/PR via App UI
105
+ - **"Hand off to local"** — transfers work to the user's local checkout
106
+
107
+ The agent can still run tests, stage files, and output suggested branch
108
+ names, commit messages, and PR descriptions for the user to copy.
@@ -0,0 +1,63 @@
1
+ # Gemini CLI Tool Mapping
2
+
3
+ Skills speak in actions ("dispatch a subagent", "create a todo", "read a file"). On Gemini CLI these resolve to the tools below.
4
+
5
+ | Action skills request | Gemini CLI equivalent |
6
+ |----------------------|----------------------|
7
+ | Read a file | `read_file` |
8
+ | Read multiple files at once | `read_many_files` |
9
+ | Create a new file | `write_file` |
10
+ | Edit a file | `replace` |
11
+ | Run a shell command | `run_shell_command` |
12
+ | Search file contents | `grep_search` |
13
+ | Find files by name | `glob` |
14
+ | List files and subdirectories | `list_directory` |
15
+ | Fetch a URL | `web_fetch` |
16
+ | Search the web | `google_web_search` |
17
+ | Invoke a skill | `activate_skill` |
18
+ | Dispatch a subagent (`Subagent (general-purpose):` template) | `invoke_agent` with `agent_name: "generalist"` (invocable via `@generalist` chat syntax — see [Subagent support](#subagent-support)) |
19
+ | Multiple parallel dispatches | Multiple `invoke_agent` calls in the same response |
20
+ | Task tracking ("create a todo", "mark complete") | `write_todos` (statuses: pending, in_progress, completed, cancelled, blocked) |
21
+
22
+ ## Instructions file
23
+
24
+ When a skill mentions "your instructions file", on Gemini CLI this is **`GEMINI.md`**. Gemini CLI loads `GEMINI.md` hierarchically: global at `~/.gemini/GEMINI.md`, project-level files in workspace directories and their ancestors, and sub-directory `GEMINI.md` files when a tool accesses files in those directories.
25
+
26
+ ## Personal skills directory
27
+
28
+ User-level skills live at **`~/.gemini/skills/`**, with **`~/.agents/skills/`** as a cross-runtime alias (shared with Codex and Copilot CLI). When both directories exist at the same scope, `.agents/skills/` takes precedence. Each skill is a subdirectory containing a `SKILL.md` (with `name` and `description` frontmatter).
29
+
30
+ ## Subagent support
31
+
32
+ Gemini CLI dispatches subagents through the `invoke_agent` tool, which takes `agent_name` and `prompt` parameters. The same dispatch is also surfaced as a chat-syntax shortcut: typing `@generalist <prompt>` is equivalent to calling `invoke_agent` with `agent_name: "generalist"`. Built-in agent names include `generalist`, `cli_help`, `codebase_investigator`, and (with browser tooling enabled) `browser_agent`.
33
+
34
+ Skills dispatch with `Subagent (general-purpose):` and either reference a prompt-template file (e.g., `superpowers:subagent-driven-development`'s `./implementer-prompt.md`) or supply an inline prompt. On Gemini CLI:
35
+
36
+ | Skill dispatch form | Gemini CLI equivalent |
37
+ |---------------------|----------------------|
38
+ | References a `*-prompt.md` template (implementer, task-reviewer, code-reviewer, etc.) | Fill the template, then `invoke_agent` with `agent_name: "generalist"` and the filled prompt |
39
+ | References `superpowers:requesting-code-review`'s `./code-reviewer.md` | `invoke_agent` with `agent_name: "generalist"` and the filled review template |
40
+ | Inline prompt (no template referenced) | `invoke_agent` with `agent_name: "generalist"` and your inline prompt |
41
+
42
+ ### Prompt filling
43
+
44
+ Skills provide prompt templates with placeholders like `{WHAT_WAS_IMPLEMENTED}` or `[FULL TEXT of task]`. Fill all placeholders before passing the complete prompt to `invoke_agent`. The prompt template itself contains the agent's role, review criteria, and expected output format — the subagent will follow it.
45
+
46
+ ### Parallel dispatch
47
+
48
+ Gemini CLI supports parallel subagent dispatch. Issue multiple `invoke_agent` calls in the same response (or multiple `@generalist` invocations in one prompt) to run independent subagent work in parallel. Keep dependent tasks sequential, but do not serialize independent subagent tasks just to preserve a simpler history.
49
+
50
+ ## Additional Gemini CLI tools
51
+
52
+ These tools are unique to Gemini CLI:
53
+
54
+ | Tool | Purpose |
55
+ |------|---------|
56
+ | `save_memory` (legacy) | Persist facts across sessions when `experimental.memoryV2 = false` |
57
+ | `get_internal_docs` | Look up Gemini CLI's bundled documentation |
58
+ | `ask_user` | Pose structured questions to the user (text / single-select / multi-select) |
59
+ | `enter_plan_mode` / `exit_plan_mode` | Switch into and out of read-only plan mode |
60
+ | `update_topic` | Update the current conversation's topic / strategic-intent metadata |
61
+ | `complete_task` | Signal that a Gemini subagent has completed and return its result to the parent agent |
62
+ | `tracker_create_task`, `tracker_update_task`, `tracker_get_task`, `tracker_list_tasks`, `tracker_add_dependency`, `tracker_visualize` | Rich task tracker with dependency and visualization support |
63
+ | `read_mcp_resource`, `list_mcp_resources` | MCP resource access |
@@ -0,0 +1,56 @@
1
+ # Hermes Agent Tool Mapping
2
+
3
+ Skills speak in actions ("dispatch a subagent", "create a todo", "read a file"). On Hermes Agent these resolve to the tools below.
4
+
5
+ ## Tools
6
+
7
+ | Action skills request | Hermes tool |
8
+ |---|---|
9
+ | Read a file | `read_file` |
10
+ | Create a new file | `write_file` |
11
+ | Edit a file (targeted patch) | `patch` |
12
+ | Run a shell command | `terminal` |
13
+ | Search file contents | `search_files` |
14
+ | Find files by name | `terminal` with `find` |
15
+ | Fetch a URL / read a webpage | `web_extract(urls=[...])` |
16
+ | Search the web | `web_search(query=...)` |
17
+ | Dispatch a subagent | `delegate_task(goal=..., context=..., toolsets=[...], role="leaf")` |
18
+ | Task tracking | `todo` tool |
19
+ | Invoke a skill | `skill_view("skill-name")` |
20
+
21
+ ## Instructions file
22
+
23
+ When a skill mentions "your instructions file," on Hermes Agent this is **`AGENTS.md`** in the project directory, or **`SOUL.md`** globally at `~/.hermes/SOUL.md`.
24
+
25
+ ## Invoking a skill
26
+
27
+ Hermes Agent has a `skills` toolset with `skill_view` and `skills_list` tools.
28
+ To invoke a superpowers skill, use:
29
+
30
+ ```
31
+ skill_view("brainstorming")
32
+ skill_view("test-driven-development")
33
+ ```
34
+
35
+ If `skill_view` cannot find a superpowers skill (it may not appear in the catalog
36
+ until the plugin fully registers it), fall back to reading the SKILL.md directly:
37
+
38
+ ```
39
+ read_file(path="~/.hermes/plugins/superpowers/skills/<skill-name>/SKILL.md")
40
+ ```
41
+
42
+ This fallback is the same mechanism used by other harnesses without native skill loading.
43
+
44
+ ## Subagent dispatch
45
+
46
+ Use `delegate_task` to spawn isolated subagents for parallel or sequential workstreams:
47
+
48
+ ```
49
+ delegate_task(goal="...", context="...", toolsets=[...], role="leaf")
50
+ ```
51
+
52
+ If `delegate_task` is unavailable, do the work inline rather than inventing tool calls.
53
+
54
+ ## Task tracking
55
+
56
+ Use the `todo` tool for task tracking within a session. For multi-agent task boards, use `hermes kanban` CLI if available. Treat older `TodoWrite` references as the task-tracking action.
@@ -0,0 +1,35 @@
1
+ # Muse Tool Mapping
2
+
3
+ Skills speak in actions ("dispatch a subagent", "create a todo", "read a file"). On Muse these resolve to the tools below.
4
+
5
+ | Action skills request | Muse equivalent |
6
+ |----------------------|----------------|
7
+ | Read a file | `read_file` |
8
+ | Read multiple files | `read_file` (call multiple times) or `search` |
9
+ | Create a new file | `write_file` |
10
+ | Edit a file | `edit_file` |
11
+ | Run a shell command | `bash` |
12
+ | Search file contents | `search` |
13
+ | Find files by name | `search` with `glob` |
14
+ | Fetch a URL | `web_fetch` |
15
+ | Search the web | `web_search` |
16
+ | Invoke a skill | `read_file` on `skills/<name>/SKILL.md` or native skill tool |
17
+ | Dispatch a subagent (`Subagent (general-purpose):` template) | `subagent_spawn` with prompt filling |
18
+ | Task tracking ("create a todo", "mark complete") | `write_todos` or `bash` task file |
19
+ | Ask the user a question | `request_user_input` |
20
+
21
+ ## Instructions file
22
+
23
+ When a skill mentions "your instructions file", on Muse this is **`CLAUDE.md`** or **`AGENTS.md`** in the project root. Muse loads these hierarchically where configured.
24
+
25
+ ## Skill invocation
26
+
27
+ Muse has native skill support via `muse skills`. To invoke a Superpowers skill, read its `SKILL.md` and follow the instructions. The bootstrap (`using-superpowers`) is injected automatically at `SessionStart` via the plugin hook — you are already following it, do not re-load it.
28
+
29
+ ## Subagent dispatch
30
+
31
+ Use `subagent_spawn` to delegate work to isolated subagents. Fill prompt templates (e.g., `implementer-prompt.md`, `task-reviewer-prompt.md`) before dispatching. If no subagent tool is available, do the work inline rather than inventing tool calls.
32
+
33
+ ## Task tracking
34
+
35
+ Use `write_todos` for checklist tracking. Create one todo per skill checklist item, mark in_progress/completed as you go. If `write_todos` is unavailable, maintain a markdown task file via `write_file`/`edit_file`.
@@ -0,0 +1,41 @@
1
+ # omp Tool Mapping
2
+
3
+ Skills speak in actions ("dispatch a subagent", "create a todo", "read a file"). On omp (Oh My Pi) these resolve to the tools below.
4
+
5
+ | Action skills request | omp equivalent |
6
+ | --- | --- |
7
+ | Dispatch a subagent (`Subagent (general-purpose):` template) | The built-in `task` tool |
8
+ | Dispatch N subagents in parallel | ONE `task` call with N entries in `tasks[]` |
9
+ | Task tracking ("create a todo", "mark complete") | The built-in `todo` tool |
10
+
11
+ ## Subagents
12
+
13
+ omp ships a built-in `task` tool. Use it for every Superpowers subagent workflow — never conclude that subagent capability is missing.
14
+
15
+ Batch shape: one call carries `{ context, tasks[] }`, one subagent per item, run concurrently (capped by the `task.maxConcurrency` setting). Dispatch parallel agents as multiple entries in a single call, never as sequential calls.
16
+
17
+ Agent types: pick the most specific one per item from the roster in the `task` tool's own description. Commonly available: `scout` (read-only research — use for investigation), `reviewer`, `security-reviewer`, `sonic` (strictly mechanical work), `task` (general-purpose, full capabilities). The exact roster depends on installed and configured agents, so read the tool description rather than assuming.
18
+
19
+ The tool is lowercase `task`; `Task` does not exist. Optional: `task.isolation.enabled` runs each subagent in an isolated checkout copy and integrates the result, replacing manual `git worktree` plumbing.
20
+
21
+ ### Model selection on omp
22
+
23
+ The `task` tool has **no `model:` field**. Every `model: [...]` line in a Superpowers template is inert here — the agent TYPE carries model, thinking level, and tool set. Choosing `task` "because it can do everything" means the slowest tier over the widest tool set on every dispatch.
24
+
25
+ This fork ships SDD-specific agents (they appear in the `task` roster once the plugin is installed):
26
+
27
+ | Superpowers role | `agent:` | What it pins |
28
+ | --- | --- | --- |
29
+ | Implementer, fix rounds 1-2 | `sdd-implementer` | sonnet-5 · medium; edit/test tools; no subagents |
30
+ | Task reviewer | `sdd-reviewer` | sonnet-5 · high; `read`/`grep`/`glob` — no file writes, no shell (`hub start` can still launch a process; the harness cannot remove `hub`) |
31
+ | Scoped re-review | `sdd-rereviewer` | sonnet-5 · low; `read`/`grep`; ≤4 calls |
32
+ | Fix round 3 / ruled strongest-tier task | `sdd-escalation-implementer` | opus-5 · xhigh; same tools as the implementer |
33
+ | Final whole-branch review | `sdd-final-reviewer` | opus-5 · xhigh; read-only + focused bash |
34
+
35
+ Shipped defaults are Anthropic; the tiers are a thinking ladder (low / medium / high / xhigh). Re-point any seat per host with `task.agentModelOverrides` in `~/.omp/agent/config.yml` (or `/agents`) — it beats the agent file's `model:`, applies on the next dispatch, and a bare model keeps the agent's `thinkingLevel:` while an explicit `:level` replaces it.
36
+
37
+ Never use the bundled `task` agent for an SDD seat: it resolves to `modelRoles.task` (else the session model), which may be weaker than `sdd-implementer`. If `task.enableEffort` is on, `effort: "hi"` on a dispatch raises that one subagent's thinking without changing its model — the only accepted values are `"lo"`, `"med"`, `"hi"`.
38
+
39
+ ## Task lists
40
+
41
+ omp ships a built-in `todo` tool (`init`, `start`, `done`, `rm`, `drop`, `block`, `unblock`, `append`, `view`). Use it for all task tracking. Do not use Superpowers plan files, Markdown checklists, or a repo-local `TODO.md` for this. Older Superpowers docs may refer to `TodoWrite`; treat that as the `todo` tool.