mirror of
https://github.com/obra/superpowers.git
synced 2026-04-30 22:19:05 +08:00
Compare commits
10 Commits
codex/pri-
...
codex/pri-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3d7b32ba57 | ||
|
|
772332a476 | ||
|
|
e795530c23 | ||
|
|
28fd7a8192 | ||
|
|
831f6f977c | ||
|
|
5745f0ea99 | ||
|
|
b1c15fd9f8 | ||
|
|
abb801b7ef | ||
|
|
88eb6679ae | ||
|
|
9b3045a8fa |
@@ -36,6 +36,9 @@
|
|||||||
"I've got an idea for something I'd like to build.",
|
"I've got an idea for something I'd like to build.",
|
||||||
"Let's add a feature to this project."
|
"Let's add a feature to this project."
|
||||||
],
|
],
|
||||||
|
"websiteURL": "https://github.com/obra/superpowers",
|
||||||
|
"privacyPolicyURL": "https://docs.github.com/en/site-policy/privacy-policies/github-general-privacy-statement",
|
||||||
|
"termsOfServiceURL": "https://docs.github.com/en/site-policy/github-terms/github-terms-of-service",
|
||||||
"brandColor": "#F59E0B",
|
"brandColor": "#F59E0B",
|
||||||
"composerIcon": "./assets/superpowers-small.svg",
|
"composerIcon": "./assets/superpowers-small.svg",
|
||||||
"logo": "./assets/app-icon.png",
|
"logo": "./assets/app-icon.png",
|
||||||
|
|||||||
@@ -1,67 +0,0 @@
|
|||||||
# Installing Superpowers for Codex
|
|
||||||
|
|
||||||
Enable superpowers skills in Codex via native skill discovery. Just clone and symlink.
|
|
||||||
|
|
||||||
## Prerequisites
|
|
||||||
|
|
||||||
- Git
|
|
||||||
|
|
||||||
## Installation
|
|
||||||
|
|
||||||
1. **Clone the superpowers repository:**
|
|
||||||
```bash
|
|
||||||
git clone https://github.com/obra/superpowers.git ~/.codex/superpowers
|
|
||||||
```
|
|
||||||
|
|
||||||
2. **Create the skills symlink:**
|
|
||||||
```bash
|
|
||||||
mkdir -p ~/.agents/skills
|
|
||||||
ln -s ~/.codex/superpowers/skills ~/.agents/skills/superpowers
|
|
||||||
```
|
|
||||||
|
|
||||||
**Windows (PowerShell):**
|
|
||||||
```powershell
|
|
||||||
New-Item -ItemType Directory -Force -Path "$env:USERPROFILE\.agents\skills"
|
|
||||||
cmd /c mklink /J "$env:USERPROFILE\.agents\skills\superpowers" "$env:USERPROFILE\.codex\superpowers\skills"
|
|
||||||
```
|
|
||||||
|
|
||||||
3. **Restart Codex** (quit and relaunch the CLI) to discover the skills.
|
|
||||||
|
|
||||||
## Migrating from old bootstrap
|
|
||||||
|
|
||||||
If you installed superpowers before native skill discovery, you need to:
|
|
||||||
|
|
||||||
1. **Update the repo:**
|
|
||||||
```bash
|
|
||||||
cd ~/.codex/superpowers && git pull
|
|
||||||
```
|
|
||||||
|
|
||||||
2. **Create the skills symlink** (step 2 above) — this is the new discovery mechanism.
|
|
||||||
|
|
||||||
3. **Remove the old bootstrap block** from `~/.codex/AGENTS.md` — any block referencing `superpowers-codex bootstrap` is no longer needed.
|
|
||||||
|
|
||||||
4. **Restart Codex.**
|
|
||||||
|
|
||||||
## Verify
|
|
||||||
|
|
||||||
```bash
|
|
||||||
ls -la ~/.agents/skills/superpowers
|
|
||||||
```
|
|
||||||
|
|
||||||
You should see a symlink (or junction on Windows) pointing to your superpowers skills directory.
|
|
||||||
|
|
||||||
## Updating
|
|
||||||
|
|
||||||
```bash
|
|
||||||
cd ~/.codex/superpowers && git pull
|
|
||||||
```
|
|
||||||
|
|
||||||
Skills update instantly through the symlink.
|
|
||||||
|
|
||||||
## Uninstalling
|
|
||||||
|
|
||||||
```bash
|
|
||||||
rm ~/.agents/skills/superpowers
|
|
||||||
```
|
|
||||||
|
|
||||||
Optionally delete the clone: `rm -rf ~/.codex/superpowers`.
|
|
||||||
@@ -14,10 +14,14 @@ Add superpowers to the `plugin` array in your `opencode.json` (global or project
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
Restart OpenCode. That's it — the plugin auto-installs and registers all skills.
|
Restart OpenCode. The plugin installs through OpenCode's plugin manager and
|
||||||
|
registers all skills.
|
||||||
|
|
||||||
Verify by asking: "Tell me about your superpowers"
|
Verify by asking: "Tell me about your superpowers"
|
||||||
|
|
||||||
|
OpenCode uses its own plugin install. If you also use Claude Code, Codex, or
|
||||||
|
another harness, install Superpowers separately for each one.
|
||||||
|
|
||||||
## Migrating from the old symlink-based install
|
## Migrating from the old symlink-based install
|
||||||
|
|
||||||
If you previously installed superpowers using `git clone` and symlinks, remove the old setup:
|
If you previously installed superpowers using `git clone` and symlinks, remove the old setup:
|
||||||
@@ -46,7 +50,10 @@ use skill tool to load superpowers/brainstorming
|
|||||||
|
|
||||||
## Updating
|
## Updating
|
||||||
|
|
||||||
Superpowers updates automatically when you restart OpenCode.
|
OpenCode installs Superpowers through a git-backed package spec. Some OpenCode
|
||||||
|
and Bun versions pin that resolved git dependency in a lockfile or cache, so a
|
||||||
|
restart may not pick up the newest Superpowers commit. If updates do not appear,
|
||||||
|
clear OpenCode's package cache or reinstall the plugin.
|
||||||
|
|
||||||
To pin a specific version:
|
To pin a specific version:
|
||||||
|
|
||||||
@@ -64,6 +71,26 @@ To pin a specific version:
|
|||||||
2. Verify the plugin line in your `opencode.json`
|
2. Verify the plugin line in your `opencode.json`
|
||||||
3. Make sure you're running a recent version of OpenCode
|
3. Make sure you're running a recent version of OpenCode
|
||||||
|
|
||||||
|
### Windows install issues
|
||||||
|
|
||||||
|
Some Windows OpenCode builds have upstream installer issues with git-backed
|
||||||
|
plugin specs, including cache paths for `git+https` URLs and Bun not finding
|
||||||
|
`git.exe` even when it works in a normal terminal. If OpenCode cannot install
|
||||||
|
the plugin, try installing with system npm and pointing OpenCode at the local
|
||||||
|
package:
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
npm install superpowers@git+https://github.com/obra/superpowers.git --prefix "$HOME\.config\opencode"
|
||||||
|
```
|
||||||
|
|
||||||
|
Then use the installed package path in `opencode.json`:
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"plugin": ["~/.config/opencode/node_modules/superpowers"]
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
### Skills not found
|
### Skills not found
|
||||||
|
|
||||||
1. Use `skill` tool to list what's discovered
|
1. Use `skill` tool to list what's discovered
|
||||||
|
|||||||
105
README.md
105
README.md
@@ -2,6 +2,10 @@
|
|||||||
|
|
||||||
Superpowers is a complete software development methodology for your coding agents, built on top of a set of composable skills and some initial instructions that make sure your agent uses them.
|
Superpowers is a complete software development methodology for your coding agents, built on top of a set of composable skills and some initial instructions that make sure your agent uses them.
|
||||||
|
|
||||||
|
## Quickstart
|
||||||
|
|
||||||
|
Give your agent Superpowers: [Claude Code](#claude-code), [Codex CLI](#codex-cli), [Codex App](#codex-app), [Factory Droid](#factory-droid), [Gemini CLI](#gemini-cli), [OpenCode](#opencode), [Cursor](#cursor), [GitHub Copilot CLI](#github-copilot-cli).
|
||||||
|
|
||||||
## How it works
|
## How it works
|
||||||
|
|
||||||
It starts from the moment you fire up your coding agent. As soon as it sees that you're building something, it *doesn't* just jump into trying to write code. Instead, it steps back and asks you what you're really trying to do.
|
It starts from the moment you fire up your coding agent. As soon as it sees that you're building something, it *doesn't* just jump into trying to write code. Instead, it steps back and asks you what you're really trying to do.
|
||||||
@@ -26,96 +30,127 @@ Thanks!
|
|||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
**Note:** Installation differs by platform.
|
Installation differs by harness. If you use more than one, install Superpowers separately for each one.
|
||||||
|
|
||||||
### Claude Code Official Marketplace
|
### Claude Code
|
||||||
|
|
||||||
Superpowers is available via the [official Claude plugin marketplace](https://claude.com/plugins/superpowers)
|
Superpowers is available via the [official Claude plugin marketplace](https://claude.com/plugins/superpowers)
|
||||||
|
|
||||||
Install the plugin from Anthropic's official marketplace:
|
#### Official Marketplace
|
||||||
|
|
||||||
|
- Install the plugin from Anthropic's official marketplace:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
/plugin install superpowers@claude-plugins-official
|
/plugin install superpowers@claude-plugins-official
|
||||||
```
|
```
|
||||||
|
|
||||||
### Claude Code (Superpowers Marketplace)
|
#### Superpowers Marketplace
|
||||||
|
|
||||||
The Superpowers marketplace provides Superpowers and some other related plugins for Claude Code.
|
The Superpowers marketplace provides Superpowers and some other related plugins for Claude Code.
|
||||||
|
|
||||||
In Claude Code, register the marketplace first:
|
- Register the marketplace:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
/plugin marketplace add obra/superpowers-marketplace
|
/plugin marketplace add obra/superpowers-marketplace
|
||||||
```
|
```
|
||||||
|
|
||||||
Then install the plugin from this marketplace:
|
- Install the plugin from this marketplace:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
/plugin install superpowers@superpowers-marketplace
|
/plugin install superpowers@superpowers-marketplace
|
||||||
```
|
```
|
||||||
|
|
||||||
### OpenAI Codex CLI
|
### Codex CLI
|
||||||
|
|
||||||
- Open plugin search interface
|
Superpowers is available via the [official Codex plugin marketplace](https://github.com/openai/plugins).
|
||||||
|
|
||||||
|
- Open the plugin search interface:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
/plugins
|
/plugins
|
||||||
```
|
```
|
||||||
|
|
||||||
Search for Superpowers
|
- Search for Superpowers:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
superpowers
|
superpowers
|
||||||
```
|
```
|
||||||
|
|
||||||
Select `Install Plugin`
|
- Select `Install Plugin`.
|
||||||
|
|
||||||
### OpenAI Codex App
|
### Codex App
|
||||||
|
|
||||||
|
Superpowers is available via the [official Codex plugin marketplace](https://github.com/openai/plugins).
|
||||||
|
|
||||||
- In the Codex app, click on Plugins in the sidebar.
|
- In the Codex app, click on Plugins in the sidebar.
|
||||||
- You should see `Superpowers` in the Coding section.
|
- You should see `Superpowers` in the Coding section.
|
||||||
- Click the `+` next to Superpowers and follow the prompts.
|
- Click the `+` next to Superpowers and follow the prompts.
|
||||||
|
|
||||||
|
### Factory Droid
|
||||||
|
|
||||||
### Cursor (via Plugin Marketplace)
|
- Register the marketplace:
|
||||||
|
|
||||||
In Cursor Agent chat, install from marketplace:
|
|
||||||
|
|
||||||
```text
|
|
||||||
/add-plugin superpowers
|
|
||||||
```
|
|
||||||
|
|
||||||
or search for "superpowers" in the plugin marketplace.
|
|
||||||
|
|
||||||
### OpenCode
|
|
||||||
|
|
||||||
Tell OpenCode:
|
|
||||||
|
|
||||||
```
|
|
||||||
Fetch and follow instructions from https://raw.githubusercontent.com/obra/superpowers/refs/heads/main/.opencode/INSTALL.md
|
|
||||||
```
|
|
||||||
|
|
||||||
**Detailed docs:** [docs/README.opencode.md](docs/README.opencode.md)
|
|
||||||
|
|
||||||
### GitHub Copilot CLI
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
copilot plugin marketplace add obra/superpowers-marketplace
|
droid plugin marketplace add https://github.com/obra/superpowers
|
||||||
copilot plugin install superpowers@superpowers-marketplace
|
```
|
||||||
|
|
||||||
|
- Install the plugin:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
droid plugin install superpowers@superpowers
|
||||||
```
|
```
|
||||||
|
|
||||||
### Gemini CLI
|
### Gemini CLI
|
||||||
|
|
||||||
|
- Install the extension:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
gemini extensions install https://github.com/obra/superpowers
|
gemini extensions install https://github.com/obra/superpowers
|
||||||
```
|
```
|
||||||
|
|
||||||
To update:
|
- Update later:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
gemini extensions update superpowers
|
gemini extensions update superpowers
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### OpenCode
|
||||||
|
|
||||||
|
OpenCode uses its own plugin install; install Superpowers separately even if you
|
||||||
|
already use it in another harness.
|
||||||
|
|
||||||
|
- Tell OpenCode:
|
||||||
|
|
||||||
|
```
|
||||||
|
Fetch and follow instructions from https://raw.githubusercontent.com/obra/superpowers/refs/heads/main/.opencode/INSTALL.md
|
||||||
|
```
|
||||||
|
|
||||||
|
- Detailed docs: [docs/README.opencode.md](docs/README.opencode.md)
|
||||||
|
|
||||||
|
### Cursor
|
||||||
|
|
||||||
|
- In Cursor Agent chat, install from marketplace:
|
||||||
|
|
||||||
|
```text
|
||||||
|
/add-plugin superpowers
|
||||||
|
```
|
||||||
|
|
||||||
|
- Or search for "superpowers" in the plugin marketplace.
|
||||||
|
|
||||||
|
### GitHub Copilot CLI
|
||||||
|
|
||||||
|
- Register the marketplace:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
copilot plugin marketplace add obra/superpowers-marketplace
|
||||||
|
```
|
||||||
|
|
||||||
|
- Install the plugin:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
copilot plugin install superpowers@superpowers-marketplace
|
||||||
|
```
|
||||||
|
|
||||||
## The Basic Workflow
|
## The Basic Workflow
|
||||||
|
|
||||||
1. **brainstorming** - Activates before writing code. Refines rough ideas through questions, explores alternatives, presents design in sections for validation. Saves design document.
|
1. **brainstorming** - Activates before writing code. Refines rough ideas through questions, explores alternatives, presents design in sections for validation. Saves design document.
|
||||||
|
|||||||
@@ -1,126 +0,0 @@
|
|||||||
# Superpowers for Codex
|
|
||||||
|
|
||||||
Guide for using Superpowers with OpenAI Codex via native skill discovery.
|
|
||||||
|
|
||||||
## Quick Install
|
|
||||||
|
|
||||||
Tell Codex:
|
|
||||||
|
|
||||||
```
|
|
||||||
Fetch and follow instructions from https://raw.githubusercontent.com/obra/superpowers/refs/heads/main/.codex/INSTALL.md
|
|
||||||
```
|
|
||||||
|
|
||||||
## Manual Installation
|
|
||||||
|
|
||||||
### Prerequisites
|
|
||||||
|
|
||||||
- OpenAI Codex CLI
|
|
||||||
- Git
|
|
||||||
|
|
||||||
### Steps
|
|
||||||
|
|
||||||
1. Clone the repo:
|
|
||||||
```bash
|
|
||||||
git clone https://github.com/obra/superpowers.git ~/.codex/superpowers
|
|
||||||
```
|
|
||||||
|
|
||||||
2. Create the skills symlink:
|
|
||||||
```bash
|
|
||||||
mkdir -p ~/.agents/skills
|
|
||||||
ln -s ~/.codex/superpowers/skills ~/.agents/skills/superpowers
|
|
||||||
```
|
|
||||||
|
|
||||||
3. Restart Codex.
|
|
||||||
|
|
||||||
4. **For subagent skills** (optional): Skills like `dispatching-parallel-agents` and `subagent-driven-development` require Codex's multi-agent feature. Add to your Codex config:
|
|
||||||
```toml
|
|
||||||
[features]
|
|
||||||
multi_agent = true
|
|
||||||
```
|
|
||||||
|
|
||||||
### Windows
|
|
||||||
|
|
||||||
Use a junction instead of a symlink (works without Developer Mode):
|
|
||||||
|
|
||||||
```powershell
|
|
||||||
New-Item -ItemType Directory -Force -Path "$env:USERPROFILE\.agents\skills"
|
|
||||||
cmd /c mklink /J "$env:USERPROFILE\.agents\skills\superpowers" "$env:USERPROFILE\.codex\superpowers\skills"
|
|
||||||
```
|
|
||||||
|
|
||||||
## How It Works
|
|
||||||
|
|
||||||
Codex has native skill discovery — it scans `~/.agents/skills/` at startup, parses SKILL.md frontmatter, and loads skills on demand. Superpowers skills are made visible through a single symlink:
|
|
||||||
|
|
||||||
```
|
|
||||||
~/.agents/skills/superpowers/ → ~/.codex/superpowers/skills/
|
|
||||||
```
|
|
||||||
|
|
||||||
The `using-superpowers` skill is discovered automatically and enforces skill usage discipline — no additional configuration needed.
|
|
||||||
|
|
||||||
## Usage
|
|
||||||
|
|
||||||
Skills are discovered automatically. Codex activates them when:
|
|
||||||
- You mention a skill by name (e.g., "use brainstorming")
|
|
||||||
- The task matches a skill's description
|
|
||||||
- The `using-superpowers` skill directs Codex to use one
|
|
||||||
|
|
||||||
### Personal Skills
|
|
||||||
|
|
||||||
Create your own skills in `~/.agents/skills/`:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
mkdir -p ~/.agents/skills/my-skill
|
|
||||||
```
|
|
||||||
|
|
||||||
Create `~/.agents/skills/my-skill/SKILL.md`:
|
|
||||||
|
|
||||||
```markdown
|
|
||||||
---
|
|
||||||
name: my-skill
|
|
||||||
description: Use when [condition] - [what it does]
|
|
||||||
---
|
|
||||||
|
|
||||||
# My Skill
|
|
||||||
|
|
||||||
[Your skill content here]
|
|
||||||
```
|
|
||||||
|
|
||||||
The `description` field is how Codex decides when to activate a skill automatically — write it as a clear trigger condition.
|
|
||||||
|
|
||||||
## Updating
|
|
||||||
|
|
||||||
```bash
|
|
||||||
cd ~/.codex/superpowers && git pull
|
|
||||||
```
|
|
||||||
|
|
||||||
Skills update instantly through the symlink.
|
|
||||||
|
|
||||||
## Uninstalling
|
|
||||||
|
|
||||||
```bash
|
|
||||||
rm ~/.agents/skills/superpowers
|
|
||||||
```
|
|
||||||
|
|
||||||
**Windows (PowerShell):**
|
|
||||||
```powershell
|
|
||||||
Remove-Item "$env:USERPROFILE\.agents\skills\superpowers"
|
|
||||||
```
|
|
||||||
|
|
||||||
Optionally delete the clone: `rm -rf ~/.codex/superpowers` (Windows: `Remove-Item -Recurse -Force "$env:USERPROFILE\.codex\superpowers"`).
|
|
||||||
|
|
||||||
## Troubleshooting
|
|
||||||
|
|
||||||
### Skills not showing up
|
|
||||||
|
|
||||||
1. Verify the symlink: `ls -la ~/.agents/skills/superpowers`
|
|
||||||
2. Check skills exist: `ls ~/.codex/superpowers/skills`
|
|
||||||
3. Restart Codex — skills are discovered at startup
|
|
||||||
|
|
||||||
### Windows junction issues
|
|
||||||
|
|
||||||
Junctions normally work without special permissions. If creation fails, try running PowerShell as administrator.
|
|
||||||
|
|
||||||
## Getting Help
|
|
||||||
|
|
||||||
- Report issues: https://github.com/obra/superpowers/issues
|
|
||||||
- Main documentation: https://github.com/obra/superpowers
|
|
||||||
@@ -12,10 +12,14 @@ Add superpowers to the `plugin` array in your `opencode.json` (global or project
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
Restart OpenCode. The plugin auto-installs via Bun and registers all skills automatically.
|
Restart OpenCode. The plugin installs through OpenCode's plugin manager and
|
||||||
|
registers all skills.
|
||||||
|
|
||||||
Verify by asking: "Tell me about your superpowers"
|
Verify by asking: "Tell me about your superpowers"
|
||||||
|
|
||||||
|
OpenCode uses its own plugin install. If you also use Claude Code, Codex, or
|
||||||
|
another harness, install Superpowers separately for each one.
|
||||||
|
|
||||||
### Migrating from the old symlink-based install
|
### Migrating from the old symlink-based install
|
||||||
|
|
||||||
If you previously installed superpowers using `git clone` and symlinks, remove the old setup:
|
If you previously installed superpowers using `git clone` and symlinks, remove the old setup:
|
||||||
@@ -78,7 +82,10 @@ Create project-specific skills in `.opencode/skills/` within your project.
|
|||||||
|
|
||||||
## Updating
|
## Updating
|
||||||
|
|
||||||
Superpowers updates automatically when you restart OpenCode. The plugin is re-installed from the git repository on each launch.
|
OpenCode installs Superpowers through a git-backed package spec. Some OpenCode
|
||||||
|
and Bun versions pin that resolved git dependency in a lockfile or cache, so a
|
||||||
|
restart may not pick up the newest Superpowers commit. If updates do not appear,
|
||||||
|
clear OpenCode's package cache or reinstall the plugin.
|
||||||
|
|
||||||
To pin a specific version, use a branch or tag:
|
To pin a specific version, use a branch or tag:
|
||||||
|
|
||||||
@@ -112,6 +119,26 @@ Skills written for Claude Code are automatically adapted for OpenCode:
|
|||||||
2. Verify the plugin line in your `opencode.json` is correct
|
2. Verify the plugin line in your `opencode.json` is correct
|
||||||
3. Make sure you're running a recent version of OpenCode
|
3. Make sure you're running a recent version of OpenCode
|
||||||
|
|
||||||
|
### Windows install issues
|
||||||
|
|
||||||
|
Some Windows OpenCode builds have upstream installer issues with git-backed
|
||||||
|
plugin specs, including cache paths for `git+https` URLs and Bun not finding
|
||||||
|
`git.exe` even when it works in a normal terminal. If OpenCode cannot install
|
||||||
|
the plugin, try installing with system npm and pointing OpenCode at the local
|
||||||
|
package:
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
npm install superpowers@git+https://github.com/obra/superpowers.git --prefix "$HOME\.config\opencode"
|
||||||
|
```
|
||||||
|
|
||||||
|
Then use the installed package path in `opencode.json`:
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"plugin": ["~/.config/opencode/node_modules/superpowers"]
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
### Skills not found
|
### Skills not found
|
||||||
|
|
||||||
1. Use OpenCode's `skill` tool to list available skills
|
1. Use OpenCode's `skill` tool to list available skills
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
"hooks": {
|
"hooks": {
|
||||||
"sessionStart": [
|
"sessionStart": [
|
||||||
{
|
{
|
||||||
"command": "./hooks/session-start"
|
"command": "./hooks/run-hook.cmd session-start"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,7 +4,8 @@
|
|||||||
#
|
#
|
||||||
# Sync this superpowers checkout → prime-radiant-inc/openai-codex-plugins.
|
# Sync this superpowers checkout → prime-radiant-inc/openai-codex-plugins.
|
||||||
# Clones the fork fresh into a temp dir, rsyncs tracked upstream plugin content
|
# Clones the fork fresh into a temp dir, rsyncs tracked upstream plugin content
|
||||||
# (including committed Codex files under .codex-plugin/ and assets/), commits,
|
# (including committed Codex files under .codex-plugin/ and assets/), preserves
|
||||||
|
# OpenAI-owned marketplace metadata already in the destination plugin, commits,
|
||||||
# pushes a sync branch, and opens a PR.
|
# pushes a sync branch, and opens a PR.
|
||||||
# Path/user agnostic — auto-detects upstream from script location.
|
# Path/user agnostic — auto-detects upstream from script location.
|
||||||
#
|
#
|
||||||
@@ -223,6 +224,7 @@ fi
|
|||||||
DEST="$DEST_REPO/$DEST_REL"
|
DEST="$DEST_REPO/$DEST_REL"
|
||||||
PREVIEW_REPO="$DEST_REPO"
|
PREVIEW_REPO="$DEST_REPO"
|
||||||
PREVIEW_DEST="$DEST"
|
PREVIEW_DEST="$DEST"
|
||||||
|
SYNC_SOURCE=""
|
||||||
|
|
||||||
overlay_destination_paths() {
|
overlay_destination_paths() {
|
||||||
local repo="$1"
|
local repo="$1"
|
||||||
@@ -291,7 +293,7 @@ apply_to_preview_checkout() {
|
|||||||
mkdir -p "$PREVIEW_DEST"
|
mkdir -p "$PREVIEW_DEST"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rsync "${RSYNC_ARGS[@]}" "$UPSTREAM/" "$PREVIEW_DEST/"
|
rsync "${RSYNC_ARGS[@]}" "$SYNC_SOURCE/" "$PREVIEW_DEST/"
|
||||||
}
|
}
|
||||||
|
|
||||||
preview_checkout_has_changes() {
|
preview_checkout_has_changes() {
|
||||||
@@ -316,6 +318,36 @@ for pat in "${EXCLUDES[@]}"; do RSYNC_ARGS+=(--exclude="$pat"); done
|
|||||||
append_git_ignored_directory_excludes
|
append_git_ignored_directory_excludes
|
||||||
append_git_ignored_file_excludes
|
append_git_ignored_file_excludes
|
||||||
|
|
||||||
|
copy_preserved_destination_metadata() {
|
||||||
|
local destination="$1"
|
||||||
|
local source="$2"
|
||||||
|
local path
|
||||||
|
local rel
|
||||||
|
|
||||||
|
[[ -d "$destination/skills" ]] || return 0
|
||||||
|
|
||||||
|
while IFS= read -r -d '' path; do
|
||||||
|
rel="${path#"$destination"/}"
|
||||||
|
mkdir -p "$source/$(dirname "$rel")"
|
||||||
|
cp -p "$path" "$source/$rel"
|
||||||
|
done < <(find "$destination/skills" -path '*/agents/openai.yaml' -type f -print0)
|
||||||
|
}
|
||||||
|
|
||||||
|
prepare_sync_source() {
|
||||||
|
local destination="$1"
|
||||||
|
|
||||||
|
[[ -n "$CLEANUP_DIR" ]] || CLEANUP_DIR="$(mktemp -d)"
|
||||||
|
|
||||||
|
SYNC_SOURCE="$CLEANUP_DIR/source-overlay"
|
||||||
|
rm -rf "$SYNC_SOURCE"
|
||||||
|
mkdir -p "$SYNC_SOURCE"
|
||||||
|
|
||||||
|
rsync "${RSYNC_ARGS[@]}" "$UPSTREAM/" "$SYNC_SOURCE/" >/dev/null
|
||||||
|
copy_preserved_destination_metadata "$destination" "$SYNC_SOURCE"
|
||||||
|
}
|
||||||
|
|
||||||
|
prepare_sync_source "$PREVIEW_DEST"
|
||||||
|
|
||||||
# =============================================================================
|
# =============================================================================
|
||||||
# Dry run preview (always shown)
|
# Dry run preview (always shown)
|
||||||
# =============================================================================
|
# =============================================================================
|
||||||
@@ -331,7 +363,7 @@ if [[ $BOOTSTRAP -eq 1 ]]; then
|
|||||||
fi
|
fi
|
||||||
echo ""
|
echo ""
|
||||||
echo "=== Preview (rsync --dry-run) ==="
|
echo "=== Preview (rsync --dry-run) ==="
|
||||||
rsync "${RSYNC_ARGS[@]}" --dry-run --itemize-changes "$UPSTREAM/" "$PREVIEW_DEST/"
|
rsync "${RSYNC_ARGS[@]}" --dry-run --itemize-changes "$SYNC_SOURCE/" "$PREVIEW_DEST/"
|
||||||
echo "=== End preview ==="
|
echo "=== End preview ==="
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
@@ -368,7 +400,7 @@ echo "Syncing upstream content..."
|
|||||||
if [[ $BOOTSTRAP -eq 1 ]]; then
|
if [[ $BOOTSTRAP -eq 1 ]]; then
|
||||||
mkdir -p "$DEST"
|
mkdir -p "$DEST"
|
||||||
fi
|
fi
|
||||||
rsync "${RSYNC_ARGS[@]}" "$UPSTREAM/" "$DEST/"
|
rsync "${RSYNC_ARGS[@]}" "$SYNC_SOURCE/" "$DEST/"
|
||||||
|
|
||||||
# Bail early if nothing actually changed
|
# Bail early if nothing actually changed
|
||||||
cd "$DEST_REPO"
|
cd "$DEST_REPO"
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ Skills use Claude Code tool names. When you encounter these in a skill, use your
|
|||||||
|-----------------|------------------|
|
|-----------------|------------------|
|
||||||
| `Task` tool (dispatch subagent) | `spawn_agent` (see [Named agent dispatch](#named-agent-dispatch)) |
|
| `Task` tool (dispatch subagent) | `spawn_agent` (see [Named agent dispatch](#named-agent-dispatch)) |
|
||||||
| Multiple `Task` calls (parallel) | Multiple `spawn_agent` calls |
|
| Multiple `Task` calls (parallel) | Multiple `spawn_agent` calls |
|
||||||
| Task returns result | `wait` |
|
| Task returns result | `wait_agent` |
|
||||||
| Task completes automatically | `close_agent` to free slot |
|
| Task completes automatically | `close_agent` to free slot |
|
||||||
| `TodoWrite` (task tracking) | `update_plan` |
|
| `TodoWrite` (task tracking) | `update_plan` |
|
||||||
| `Skill` tool (invoke a skill) | Skills load natively — just follow the instructions |
|
| `Skill` tool (invoke a skill) | Skills load natively — just follow the instructions |
|
||||||
@@ -22,7 +22,12 @@ Add to your Codex config (`~/.codex/config.toml`):
|
|||||||
multi_agent = true
|
multi_agent = true
|
||||||
```
|
```
|
||||||
|
|
||||||
This enables `spawn_agent`, `wait`, and `close_agent` for skills like `dispatching-parallel-agents` and `subagent-driven-development`.
|
This enables `spawn_agent`, `wait_agent`, and `close_agent` for skills like `dispatching-parallel-agents` and `subagent-driven-development`.
|
||||||
|
|
||||||
|
Legacy note: Codex builds before `rust-v0.115.0` exposed spawned-agent
|
||||||
|
waiting as `wait`. Current Codex uses `wait_agent` for spawned agents. The
|
||||||
|
`wait` name now belongs to code-mode `exec/wait`, which resumes a yielded exec
|
||||||
|
cell by `cell_id`; it is not the spawned-agent result tool.
|
||||||
|
|
||||||
## Named agent dispatch
|
## Named agent dispatch
|
||||||
|
|
||||||
@@ -65,10 +70,11 @@ specified in the instructions above.
|
|||||||
|
|
||||||
### When this workaround can be removed
|
### When this workaround can be removed
|
||||||
|
|
||||||
This approach compensates for Codex's plugin system not yet supporting an `agents`
|
This approach compensates for Codex not yet exposing plugin-packaged custom
|
||||||
field in `plugin.json`. When `RawPluginManifest` gains an `agents` field, the
|
agents as named `spawn_agent` targets. OpenAI plugin examples can include
|
||||||
plugin can symlink to `agents/` (mirroring the existing `skills/` symlink) and
|
plugin-level `agents/` directories, but skills still need to read those prompts
|
||||||
skills can dispatch named agent types directly.
|
and spawn a built-in agent role. When Codex exposes plugin agents as callable
|
||||||
|
named agent types, this manual prompt-loading workaround can be removed.
|
||||||
|
|
||||||
## Environment Detection
|
## Environment Detection
|
||||||
|
|
||||||
|
|||||||
@@ -14,11 +14,29 @@ Skills use Claude Code tool names. When you encounter these in a skill, use your
|
|||||||
| `Skill` tool (invoke a skill) | `activate_skill` |
|
| `Skill` tool (invoke a skill) | `activate_skill` |
|
||||||
| `WebSearch` | `google_web_search` |
|
| `WebSearch` | `google_web_search` |
|
||||||
| `WebFetch` | `web_fetch` |
|
| `WebFetch` | `web_fetch` |
|
||||||
| `Task` tool (dispatch subagent) | No equivalent — Gemini CLI does not support subagents |
|
| `Task` tool (dispatch subagent) | `@agent-name` (see [Subagent support](#subagent-support)) |
|
||||||
|
|
||||||
## No subagent support
|
## Subagent support
|
||||||
|
|
||||||
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`.
|
Gemini CLI supports subagents natively via the `@` syntax. Use the built-in `@generalist` agent to dispatch any task — it has access to all tools and follows the prompt you provide.
|
||||||
|
|
||||||
|
When a skill says to dispatch a named agent type, use `@generalist` with the full prompt from the skill's prompt template:
|
||||||
|
|
||||||
|
| Skill instruction | Gemini CLI equivalent |
|
||||||
|
|-------------------|----------------------|
|
||||||
|
| `Task tool (superpowers:implementer)` | `@generalist` with the filled `implementer-prompt.md` template |
|
||||||
|
| `Task tool (superpowers:spec-reviewer)` | `@generalist` with the filled `spec-reviewer-prompt.md` template |
|
||||||
|
| `Task tool (superpowers:code-reviewer)` | `@code-reviewer` (bundled agent) or `@generalist` with the filled review prompt |
|
||||||
|
| `Task tool (superpowers:code-quality-reviewer)` | `@generalist` with the filled `code-quality-reviewer-prompt.md` template |
|
||||||
|
| `Task tool (general-purpose)` with inline prompt | `@generalist` with your inline prompt |
|
||||||
|
|
||||||
|
### Prompt filling
|
||||||
|
|
||||||
|
Skills provide prompt templates with placeholders like `{WHAT_WAS_IMPLEMENTED}` or `[FULL TEXT of task]`. Fill all placeholders and pass the complete prompt as the message to `@generalist`. The prompt template itself contains the agent's role, review criteria, and expected output format — `@generalist` will follow it.
|
||||||
|
|
||||||
|
### Parallel dispatch
|
||||||
|
|
||||||
|
Gemini CLI supports parallel subagent dispatch. When a skill asks you to dispatch multiple independent subagent tasks in parallel, request all of those `@generalist` or named subagent tasks together in the same prompt. Keep dependent tasks sequential, but do not serialize independent subagent tasks just to preserve a simpler history.
|
||||||
|
|
||||||
## Additional Gemini CLI tools
|
## Additional Gemini CLI tools
|
||||||
|
|
||||||
|
|||||||
@@ -135,8 +135,7 @@ EOF
|
|||||||
|
|
||||||
# Note: We use a longer timeout since this is integration testing
|
# Note: We use a longer timeout since this is integration testing
|
||||||
# Use --allowed-tools to enable tool usage in headless mode
|
# Use --allowed-tools to enable tool usage in headless mode
|
||||||
# IMPORTANT: Run from superpowers directory so local dev skills are available
|
PROMPT="Execute the implementation plan at docs/superpowers/plans/implementation-plan.md using the subagent-driven-development skill.
|
||||||
PROMPT="Change to directory $TEST_PROJECT and then execute the implementation plan at docs/superpowers/plans/implementation-plan.md using the subagent-driven-development skill.
|
|
||||||
|
|
||||||
IMPORTANT: Follow the skill exactly. I will be verifying that you:
|
IMPORTANT: Follow the skill exactly. I will be verifying that you:
|
||||||
1. Read the plan once at the beginning
|
1. Read the plan once at the beginning
|
||||||
@@ -147,9 +146,14 @@ IMPORTANT: Follow the skill exactly. I will be verifying that you:
|
|||||||
|
|
||||||
Begin now. Execute the plan."
|
Begin now. Execute the plan."
|
||||||
|
|
||||||
echo "Running Claude (output will be shown below and saved to $OUTPUT_FILE)..."
|
PLUGIN_DIR=$(cd "$SCRIPT_DIR/../.." && pwd)
|
||||||
|
|
||||||
|
# Run claude from inside the test project so its session JSONL lands in a
|
||||||
|
# project-specific directory under ~/.claude/projects/, isolated from any
|
||||||
|
# other concurrent claude sessions.
|
||||||
|
echo "Running Claude (plugin-dir: $PLUGIN_DIR, cwd: $TEST_PROJECT)..."
|
||||||
echo "================================================================================"
|
echo "================================================================================"
|
||||||
cd "$SCRIPT_DIR/../.." && timeout 1800 claude -p "$PROMPT" --allowed-tools=all --add-dir "$TEST_PROJECT" --permission-mode bypassPermissions 2>&1 | tee "$OUTPUT_FILE" || {
|
cd "$TEST_PROJECT" && timeout 1800 claude -p "$PROMPT" --plugin-dir "$PLUGIN_DIR" --allowed-tools=all --permission-mode bypassPermissions 2>&1 | tee "$OUTPUT_FILE" || {
|
||||||
echo ""
|
echo ""
|
||||||
echo "================================================================================"
|
echo "================================================================================"
|
||||||
echo "EXECUTION FAILED (exit code: $?)"
|
echo "EXECUTION FAILED (exit code: $?)"
|
||||||
@@ -161,13 +165,17 @@ echo ""
|
|||||||
echo "Execution complete. Analyzing results..."
|
echo "Execution complete. Analyzing results..."
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
# Find the session transcript
|
# Find the session transcript. Because we ran claude from $TEST_PROJECT (a
|
||||||
# Session files are in ~/.claude/projects/-<working-dir>/<session-id>.jsonl
|
# unique tmp dir), its sessions live in their own ~/.claude/projects/ folder
|
||||||
WORKING_DIR_ESCAPED=$(echo "$SCRIPT_DIR/../.." | sed 's/\//-/g' | sed 's/^-//')
|
# and we can pick the most-recent one without racing other concurrent sessions.
|
||||||
SESSION_DIR="$HOME/.claude/projects/$WORKING_DIR_ESCAPED"
|
# Resolve the real path because macOS mktemp returns /var/... but claude
|
||||||
|
# normalizes it to /private/var/... when naming the project dir.
|
||||||
# Find the most recent session file (created during this test run)
|
TEST_PROJECT_REAL=$(cd "$TEST_PROJECT" && pwd -P)
|
||||||
SESSION_FILE=$(find "$SESSION_DIR" -name "*.jsonl" -type f -mmin -60 2>/dev/null | sort -r | head -1)
|
# Claude normalizes the cwd to a directory name by replacing every non-alphanumeric
|
||||||
|
# character with `-` (so `_`, `.`, `/` all become `-`).
|
||||||
|
SESSION_DIR="$HOME/.claude/projects/$(echo "$TEST_PROJECT_REAL" | sed 's|[^a-zA-Z0-9]|-|g')"
|
||||||
|
# `|| true` prevents pipefail killing the script if ls gets SIGPIPE'd by head.
|
||||||
|
SESSION_FILE=$(ls -t "$SESSION_DIR"/*.jsonl 2>/dev/null | head -1 || true)
|
||||||
|
|
||||||
if [ -z "$SESSION_FILE" ]; then
|
if [ -z "$SESSION_FILE" ]; then
|
||||||
echo "ERROR: Could not find session transcript file"
|
echo "ERROR: Could not find session transcript file"
|
||||||
@@ -194,9 +202,9 @@ else
|
|||||||
fi
|
fi
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
# Test 2: Subagents were used (Task tool)
|
# Test 2: Subagents were used (Agent / Task tool — name varies by harness version)
|
||||||
echo "Test 2: Subagents dispatched..."
|
echo "Test 2: Subagents dispatched..."
|
||||||
task_count=$(grep -c '"name":"Task"' "$SESSION_FILE" || echo "0")
|
task_count=$(grep -cE '"name":"(Agent|Task)"' "$SESSION_FILE" || echo "0")
|
||||||
if [ "$task_count" -ge 2 ]; then
|
if [ "$task_count" -ge 2 ]; then
|
||||||
echo " [PASS] $task_count subagents dispatched"
|
echo " [PASS] $task_count subagents dispatched"
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -73,6 +73,19 @@ assert_matches() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
assert_not_matches() {
|
||||||
|
local haystack="$1"
|
||||||
|
local pattern="$2"
|
||||||
|
local description="$3"
|
||||||
|
|
||||||
|
if printf '%s' "$haystack" | grep -Eq -- "$pattern"; then
|
||||||
|
fail "$description"
|
||||||
|
echo " did not expect to match: $pattern"
|
||||||
|
else
|
||||||
|
pass "$description"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
assert_path_absent() {
|
assert_path_absent() {
|
||||||
local path="$1"
|
local path="$1"
|
||||||
local description="$2"
|
local description="$2"
|
||||||
@@ -244,6 +257,22 @@ EOF
|
|||||||
commit_fixture "$repo" "Initial destination fixture"
|
commit_fixture "$repo" "Initial destination fixture"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
add_openai_agent_metadata_fixture() {
|
||||||
|
local repo="$1"
|
||||||
|
|
||||||
|
mkdir -p "$repo/plugins/superpowers/skills/example/agents"
|
||||||
|
|
||||||
|
cat > "$repo/plugins/superpowers/skills/example/agents/openai.yaml" <<'EOF'
|
||||||
|
interface:
|
||||||
|
display_name: "Example"
|
||||||
|
short_description: "Destination-owned OpenAI metadata"
|
||||||
|
EOF
|
||||||
|
|
||||||
|
git -C "$repo" add plugins/superpowers/skills/example/agents/openai.yaml
|
||||||
|
|
||||||
|
commit_fixture "$repo" "Add OpenAI agent metadata fixture"
|
||||||
|
}
|
||||||
|
|
||||||
dirty_tracked_destination_skill() {
|
dirty_tracked_destination_skill() {
|
||||||
local repo="$1"
|
local repo="$1"
|
||||||
|
|
||||||
@@ -261,6 +290,7 @@ write_synced_destination_fixture() {
|
|||||||
"$repo/plugins/superpowers/.codex-plugin" \
|
"$repo/plugins/superpowers/.codex-plugin" \
|
||||||
"$repo/plugins/superpowers/.private-journal" \
|
"$repo/plugins/superpowers/.private-journal" \
|
||||||
"$repo/plugins/superpowers/assets" \
|
"$repo/plugins/superpowers/assets" \
|
||||||
|
"$repo/plugins/superpowers/skills/example/agents" \
|
||||||
"$repo/plugins/superpowers/skills/example"
|
"$repo/plugins/superpowers/skills/example"
|
||||||
|
|
||||||
cat > "$repo/plugins/superpowers/.codex-plugin/plugin.json" <<EOF
|
cat > "$repo/plugins/superpowers/.codex-plugin/plugin.json" <<EOF
|
||||||
@@ -282,12 +312,19 @@ EOF
|
|||||||
Fixture content.
|
Fixture content.
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
cat > "$repo/plugins/superpowers/skills/example/agents/openai.yaml" <<'EOF'
|
||||||
|
interface:
|
||||||
|
display_name: "Example"
|
||||||
|
short_description: "Destination-owned OpenAI metadata"
|
||||||
|
EOF
|
||||||
|
|
||||||
printf 'tracked keep\n' > "$repo/plugins/superpowers/.private-journal/keep.txt"
|
printf 'tracked keep\n' > "$repo/plugins/superpowers/.private-journal/keep.txt"
|
||||||
|
|
||||||
git -C "$repo" add \
|
git -C "$repo" add \
|
||||||
plugins/superpowers/.codex-plugin/plugin.json \
|
plugins/superpowers/.codex-plugin/plugin.json \
|
||||||
plugins/superpowers/assets/app-icon.png \
|
plugins/superpowers/assets/app-icon.png \
|
||||||
plugins/superpowers/assets/superpowers-small.svg \
|
plugins/superpowers/assets/superpowers-small.svg \
|
||||||
|
plugins/superpowers/skills/example/agents/openai.yaml \
|
||||||
plugins/superpowers/skills/example/SKILL.md \
|
plugins/superpowers/skills/example/SKILL.md \
|
||||||
plugins/superpowers/.private-journal/keep.txt
|
plugins/superpowers/.private-journal/keep.txt
|
||||||
|
|
||||||
@@ -415,6 +452,7 @@ main() {
|
|||||||
local help_output
|
local help_output
|
||||||
local script_source
|
local script_source
|
||||||
local dirty_skill_path
|
local dirty_skill_path
|
||||||
|
local noop_openai_metadata_path
|
||||||
|
|
||||||
echo "=== Test: sync-to-codex-plugin dry-run regression ==="
|
echo "=== Test: sync-to-codex-plugin dry-run regression ==="
|
||||||
|
|
||||||
@@ -443,6 +481,7 @@ main() {
|
|||||||
|
|
||||||
init_repo "$dest"
|
init_repo "$dest"
|
||||||
write_destination_fixture "$dest"
|
write_destination_fixture "$dest"
|
||||||
|
add_openai_agent_metadata_fixture "$dest"
|
||||||
checkout_fixture_branch "$dest" "$dest_branch"
|
checkout_fixture_branch "$dest" "$dest_branch"
|
||||||
dirty_tracked_destination_skill "$dest"
|
dirty_tracked_destination_skill "$dest"
|
||||||
|
|
||||||
@@ -490,6 +529,7 @@ main() {
|
|||||||
preview_section="$(printf '%s\n' "$preview_output" | sed -n '/^=== Preview (rsync --dry-run) ===$/,/^=== End preview ===$/p')"
|
preview_section="$(printf '%s\n' "$preview_output" | sed -n '/^=== Preview (rsync --dry-run) ===$/,/^=== End preview ===$/p')"
|
||||||
stale_preview_section="$(printf '%s\n' "$stale_preview_output" | sed -n '/^=== Preview (rsync --dry-run) ===$/,/^=== End preview ===$/p')"
|
stale_preview_section="$(printf '%s\n' "$stale_preview_output" | sed -n '/^=== Preview (rsync --dry-run) ===$/,/^=== End preview ===$/p')"
|
||||||
dirty_skill_path="$dirty_apply_dest/plugins/superpowers/skills/example/SKILL.md"
|
dirty_skill_path="$dirty_apply_dest/plugins/superpowers/skills/example/SKILL.md"
|
||||||
|
noop_openai_metadata_path="$noop_apply_dest/plugins/superpowers/skills/example/agents/openai.yaml"
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Preview assertions..."
|
echo "Preview assertions..."
|
||||||
@@ -505,6 +545,7 @@ main() {
|
|||||||
assert_not_contains "$preview_output" "Overlay file (.codex-plugin/plugin.json) will be regenerated" "Preview omits overlay regeneration note"
|
assert_not_contains "$preview_output" "Overlay file (.codex-plugin/plugin.json) will be regenerated" "Preview omits overlay regeneration note"
|
||||||
assert_not_contains "$preview_output" "Assets (superpowers-small.svg, app-icon.png) will be seeded from" "Preview omits assets seeding note"
|
assert_not_contains "$preview_output" "Assets (superpowers-small.svg, app-icon.png) will be seeded from" "Preview omits assets seeding note"
|
||||||
assert_contains "$preview_section" "skills/example/SKILL.md" "Preview reflects dirty tracked destination file"
|
assert_contains "$preview_section" "skills/example/SKILL.md" "Preview reflects dirty tracked destination file"
|
||||||
|
assert_not_matches "$preview_section" "\\*deleting +skills/example/agents/openai\\.yaml" "Preview preserves destination-owned OpenAI agent metadata"
|
||||||
assert_current_branch "$dest" "$dest_branch" "Preview leaves destination checkout on its original branch"
|
assert_current_branch "$dest" "$dest_branch" "Preview leaves destination checkout on its original branch"
|
||||||
assert_branch_absent "$dest" "sync/superpowers-*" "Preview does not create sync branch in destination checkout"
|
assert_branch_absent "$dest" "sync/superpowers-*" "Preview does not create sync branch in destination checkout"
|
||||||
|
|
||||||
@@ -542,6 +583,9 @@ Locally modified fixture content." "Dirty local apply preserves tracked working-
|
|||||||
assert_contains "$noop_apply_output" "No changes — embedded plugin was already in sync with upstream" "Clean no-op local apply reports no changes"
|
assert_contains "$noop_apply_output" "No changes — embedded plugin was already in sync with upstream" "Clean no-op local apply reports no changes"
|
||||||
assert_current_branch "$noop_apply_dest" "$noop_apply_dest_branch" "Clean no-op local apply leaves destination checkout on its original branch"
|
assert_current_branch "$noop_apply_dest" "$noop_apply_dest_branch" "Clean no-op local apply leaves destination checkout on its original branch"
|
||||||
assert_branch_absent "$noop_apply_dest" "sync/superpowers-*" "Clean no-op local apply does not create sync branch in destination checkout"
|
assert_branch_absent "$noop_apply_dest" "sync/superpowers-*" "Clean no-op local apply does not create sync branch in destination checkout"
|
||||||
|
assert_file_equals "$noop_openai_metadata_path" "interface:
|
||||||
|
display_name: \"Example\"
|
||||||
|
short_description: \"Destination-owned OpenAI metadata\"" "Clean no-op local apply preserves OpenAI agent metadata"
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Missing manifest assertions..."
|
echo "Missing manifest assertions..."
|
||||||
|
|||||||
Reference in New Issue
Block a user