Contents

OpenCode Support Implementation Plan

For agentic workers: REQUIRED SUB-SKILL: Use superpowers:executing-plans to implement this plan task-by-task.

Goal: Add full superpowers support for OpenCode.ai with a native JavaScript plugin that shares core functionality with the existing Codex implementation.

Architecture: Extract common skill discovery/parsing logic into lib/skills-core.js, refactor Codex to use it, then build OpenCode plugin using their native plugin API with custom tools and session hooks.

Tech Stack: Node.js, JavaScript, OpenCode Plugin API, Git worktrees


Phase 1: Create Shared Core Module

Task 1: Extract Frontmatter Parsing

Files:

  • Create: lib/skills-core.js
  • Reference: .codex/superpowers-codex (lines 40-74)

Step 1: Create lib/skills-core.js with extractFrontmatter function

 1#!/usr/bin/env node
 2
 3const fs = require('fs');
 4const path = require('path');
 5
 6/**
 7 * Extract YAML frontmatter from a skill file.
 8 * Current format:
 9 * ---
10 * name: skill-name
11 * description: Use when [condition] - [what it does]
12 * ---
13 *
14 * @param {string} filePath - Path to SKILL.md file
15 * @returns {{name: string, description: string}}
16 */
17function extractFrontmatter(filePath) {
18    try {
19        const content = fs.readFileSync(filePath, 'utf8');
20        const lines = content.split('\n');
21
22        let inFrontmatter = false;
23        let name = '';
24        let description = '';
25
26        for (const line of lines) {
27            if (line.trim() === '---') {
28                if (inFrontmatter) break;
29                inFrontmatter = true;
30                continue;
31            }
32
33            if (inFrontmatter) {
34                const match = line.match(/^(\w+):\s*(.*)$/);
35                if (match) {
36                    const [, key, value] = match;
37                    switch (key) {
38                        case 'name':
39                            name = value.trim();
40                            break;
41                        case 'description':
42                            description = value.trim();
43                            break;
44                    }
45                }
46            }
47        }
48
49        return { name, description };
50    } catch (error) {
51        return { name: '', description: '' };
52    }
53}
54
55module.exports = {
56    extractFrontmatter
57};

Step 2: Verify file was created

Run: ls -l lib/skills-core.js Expected: File exists

Step 3: Commit

 1git add lib/skills-core.js
 2git commit -m "feat: create shared skills core module with frontmatter parser"

Task 2: Extract Skill Discovery Logic

Files:

  • Modify: lib/skills-core.js
  • Reference: .codex/superpowers-codex (lines 97-136)

Step 1: Add findSkillsInDir function to skills-core.js

Add before module.exports:

 1/**
 2 * Find all SKILL.md files in a directory recursively.
 3 *
 4 * @param {string} dir - Directory to search
 5 * @param {string} sourceType - 'personal' or 'superpowers' for namespacing
 6 * @param {number} maxDepth - Maximum recursion depth (default: 3)
 7 * @returns {Array<{path: string, name: string, description: string, sourceType: string}>}
 8 */
 9function findSkillsInDir(dir, sourceType, maxDepth = 3) {
10    const skills = [];
11
12    if (!fs.existsSync(dir)) return skills;
13
14    function recurse(currentDir, depth) {
15        if (depth > maxDepth) return;
16
17        const entries = fs.readdirSync(currentDir, { withFileTypes: true });
18
19        for (const entry of entries) {
20            const fullPath = path.join(currentDir, entry.name);
21
22            if (entry.isDirectory()) {
23                // Check for SKILL.md in this directory
24                const skillFile = path.join(fullPath, 'SKILL.md');
25                if (fs.existsSync(skillFile)) {
26                    const { name, description } = extractFrontmatter(skillFile);
27                    skills.push({
28                        path: fullPath,
29                        skillFile: skillFile,
30                        name: name || entry.name,
31                        description: description || '',
32                        sourceType: sourceType
33                    });
34                }
35
36                // Recurse into subdirectories
37                recurse(fullPath, depth + 1);
38            }
39        }
40    }
41
42    recurse(dir, 0);
43    return skills;
44}

Step 2: Update module.exports

Replace the exports line with:

 1module.exports = {
 2    extractFrontmatter,
 3    findSkillsInDir
 4};

Step 3: Verify syntax

Run: node -c lib/skills-core.js Expected: No output (success)

Step 4: Commit

 1git add lib/skills-core.js
 2git commit -m "feat: add skill discovery function to core module"

Task 3: Extract Skill Resolution Logic

Files:

  • Modify: lib/skills-core.js
  • Reference: .codex/superpowers-codex (lines 212-280)

Step 1: Add resolveSkillPath function

Add before module.exports:

 1/**
 2 * Resolve a skill name to its file path, handling shadowing
 3 * (personal skills override superpowers skills).
 4 *
 5 * @param {string} skillName - Name like "superpowers:brainstorming" or "my-skill"
 6 * @param {string} superpowersDir - Path to superpowers skills directory
 7 * @param {string} personalDir - Path to personal skills directory
 8 * @returns {{skillFile: string, sourceType: string, skillPath: string} | null}
 9 */
10function resolveSkillPath(skillName, superpowersDir, personalDir) {
11    // Strip superpowers: prefix if present
12    const forceSuperpowers = skillName.startsWith('superpowers:');
13    const actualSkillName = forceSuperpowers ? skillName.replace(/^superpowers:/, '') : skillName;
14
15    // Try personal skills first (unless explicitly superpowers:)
16    if (!forceSuperpowers && personalDir) {
17        const personalPath = path.join(personalDir, actualSkillName);
18        const personalSkillFile = path.join(personalPath, 'SKILL.md');
19        if (fs.existsSync(personalSkillFile)) {
20            return {
21                skillFile: personalSkillFile,
22                sourceType: 'personal',
23                skillPath: actualSkillName
24            };
25        }
26    }
27
28    // Try superpowers skills
29    if (superpowersDir) {
30        const superpowersPath = path.join(superpowersDir, actualSkillName);
31        const superpowersSkillFile = path.join(superpowersPath, 'SKILL.md');
32        if (fs.existsSync(superpowersSkillFile)) {
33            return {
34                skillFile: superpowersSkillFile,
35                sourceType: 'superpowers',
36                skillPath: actualSkillName
37            };
38        }
39    }
40
41    return null;
42}

Step 2: Update module.exports

 1module.exports = {
 2    extractFrontmatter,
 3    findSkillsInDir,
 4    resolveSkillPath
 5};

Step 3: Verify syntax

Run: node -c lib/skills-core.js Expected: No output

Step 4: Commit

 1git add lib/skills-core.js
 2git commit -m "feat: add skill path resolution with shadowing support"

Task 4: Extract Update Check Logic

Files:

  • Modify: lib/skills-core.js
  • Reference: .codex/superpowers-codex (lines 16-38)

Step 1: Add checkForUpdates function

Add at top after requires:

 1const { execSync } = require('child_process');

Add before module.exports:

 1/**
 2 * Check if a git repository has updates available.
 3 *
 4 * @param {string} repoDir - Path to git repository
 5 * @returns {boolean} - True if updates are available
 6 */
 7function checkForUpdates(repoDir) {
 8    try {
 9        // Quick check with 3 second timeout to avoid delays if network is down
10        const output = execSync('git fetch origin && git status --porcelain=v1 --branch', {
11            cwd: repoDir,
12            timeout: 3000,
13            encoding: 'utf8',
14            stdio: 'pipe'
15        });
16
17        // Parse git status output to see if we're behind
18        const statusLines = output.split('\n');
19        for (const line of statusLines) {
20            if (line.startsWith('## ') && line.includes('[behind ')) {
21                return true; // We're behind remote
22            }
23        }
24        return false; // Up to date
25    } catch (error) {
26        // Network down, git error, timeout, etc. - don't block bootstrap
27        return false;
28    }
29}

Step 2: Update module.exports

 1module.exports = {
 2    extractFrontmatter,
 3    findSkillsInDir,
 4    resolveSkillPath,
 5    checkForUpdates
 6};

Step 3: Verify syntax

Run: node -c lib/skills-core.js Expected: No output

Step 4: Commit

 1git add lib/skills-core.js
 2git commit -m "feat: add git update checking to core module"

Phase 2: Refactor Codex to Use Shared Core

Task 5: Update Codex to Import Shared Core

Files:

  • Modify: .codex/superpowers-codex (add import at top)

Step 1: Add import statement

After the existing requires at top of file (around line 6), add:

 1const skillsCore = require('../lib/skills-core');

Step 2: Verify syntax

Run: node -c .codex/superpowers-codex Expected: No output

Step 3: Commit

 1git add .codex/superpowers-codex
 2git commit -m "refactor: import shared skills core in codex"

Task 6: Replace extractFrontmatter with Core Version

Files:

  • Modify: .codex/superpowers-codex (lines 40-74)

Step 1: Remove local extractFrontmatter function

Delete lines 40-74 (the entire extractFrontmatter function definition).

Step 2: Update all extractFrontmatter calls

Find and replace all calls from extractFrontmatter( to skillsCore.extractFrontmatter(

Affected lines approximately: 90, 310

Step 3: Verify script still works

Run: .codex/superpowers-codex find-skills | head -20 Expected: Shows list of skills

Step 4: Commit

 1git add .codex/superpowers-codex
 2git commit -m "refactor: use shared extractFrontmatter in codex"

Task 7: Replace findSkillsInDir with Core Version

Files:

  • Modify: .codex/superpowers-codex (lines 97-136, approximately)

Step 1: Remove local findSkillsInDir function

Delete the entire findSkillsInDir function definition (approximately lines 97-136).

Step 2: Update all findSkillsInDir calls

Replace calls from findSkillsInDir( to skillsCore.findSkillsInDir(

Step 3: Verify script still works

Run: .codex/superpowers-codex find-skills | head -20 Expected: Shows list of skills

Step 4: Commit

 1git add .codex/superpowers-codex
 2git commit -m "refactor: use shared findSkillsInDir in codex"

Task 8: Replace checkForUpdates with Core Version

Files:

  • Modify: .codex/superpowers-codex (lines 16-38, approximately)

Step 1: Remove local checkForUpdates function

Delete the entire checkForUpdates function definition.

Step 2: Update all checkForUpdates calls

Replace calls from checkForUpdates( to skillsCore.checkForUpdates(

Step 3: Verify script still works

Run: .codex/superpowers-codex bootstrap | head -50 Expected: Shows bootstrap content

Step 4: Commit

 1git add .codex/superpowers-codex
 2git commit -m "refactor: use shared checkForUpdates in codex"

Phase 3: Build OpenCode Plugin

Task 9: Create OpenCode Plugin Directory Structure

Files:

  • Create: .opencode/plugin/superpowers.js

Step 1: Create directory

Run: mkdir -p .opencode/plugin

Step 2: Create basic plugin file

 1#!/usr/bin/env node
 2
 3/**
 4 * Superpowers plugin for OpenCode.ai
 5 *
 6 * Provides custom tools for loading and discovering skills,
 7 * with automatic bootstrap on session start.
 8 */
 9
10const skillsCore = require('../../lib/skills-core');
11const path = require('path');
12const fs = require('fs');
13const os = require('os');
14
15const homeDir = os.homedir();
16const superpowersSkillsDir = path.join(homeDir, '.config/opencode/superpowers/skills');
17const personalSkillsDir = path.join(homeDir, '.config/opencode/skills');
18
19/**
20 * OpenCode plugin entry point
21 */
22export const SuperpowersPlugin = async ({ project, client, $, directory, worktree }) => {
23  return {
24    // Custom tools and hooks will go here
25  };
26};

Step 3: Verify file was created

Run: ls -l .opencode/plugin/superpowers.js Expected: File exists

Step 4: Commit

 1git add .opencode/plugin/superpowers.js
 2git commit -m "feat: create opencode plugin scaffold"

Task 10: Implement use_skill Tool

Files:

  • Modify: .opencode/plugin/superpowers.js

Step 1: Add use_skill tool implementation

Replace the plugin return statement with:

 1export const SuperpowersPlugin = async ({ project, client, $, directory, worktree }) => {
 2  // Import zod for schema validation
 3  const { z } = await import('zod');
 4
 5  return {
 6    tools: [
 7      {
 8        name: 'use_skill',
 9        description: 'Load and read a specific skill to guide your work. Skills contain proven workflows, mandatory processes, and expert techniques.',
10        schema: z.object({
11          skill_name: z.string().describe('Name of the skill to load (e.g., "superpowers:brainstorming" or "my-custom-skill")')
12        }),
13        execute: async ({ skill_name }) => {
14          // Resolve skill path (handles shadowing: personal > superpowers)
15          const resolved = skillsCore.resolveSkillPath(
16            skill_name,
17            superpowersSkillsDir,
18            personalSkillsDir
19          );
20
21          if (!resolved) {
22            return `Error: Skill "${skill_name}" not found.\n\nRun find_skills to see available skills.`;
23          }
24
25          // Read skill content
26          const fullContent = fs.readFileSync(resolved.skillFile, 'utf8');
27          const { name, description } = skillsCore.extractFrontmatter(resolved.skillFile);
28
29          // Extract content after frontmatter
30          const lines = fullContent.split('\n');
31          let inFrontmatter = false;
32          let frontmatterEnded = false;
33          const contentLines = [];
34
35          for (const line of lines) {
36            if (line.trim() === '---') {
37              if (inFrontmatter) {
38                frontmatterEnded = true;
39                continue;
40              }
41              inFrontmatter = true;
42              continue;
43            }
44
45            if (frontmatterEnded || !inFrontmatter) {
46              contentLines.push(line);
47            }
48          }
49
50          const content = contentLines.join('\n').trim();
51          const skillDirectory = path.dirname(resolved.skillFile);
52
53          // Format output similar to Claude Code's Skill tool
54          return `# ${name || skill_name}
55# ${description || ''}
56# Supporting tools and docs are in ${skillDirectory}
57# ============================================
58
59${content}`;
60        }
61      }
62    ]
63  };
64};

Step 2: Verify syntax

Run: node -c .opencode/plugin/superpowers.js Expected: No output

Step 3: Commit

 1git add .opencode/plugin/superpowers.js
 2git commit -m "feat: implement use_skill tool for opencode"

Task 11: Implement find_skills Tool

Files:

  • Modify: .opencode/plugin/superpowers.js

Step 1: Add find_skills tool to tools array

Add after the use_skill tool definition, before closing the tools array:

 1      {
 2        name: 'find_skills',
 3        description: 'List all available skills in the superpowers and personal skill libraries.',
 4        schema: z.object({}),
 5        execute: async () => {
 6          // Find skills in both directories
 7          const superpowersSkills = skillsCore.findSkillsInDir(
 8            superpowersSkillsDir,
 9            'superpowers',
10            3
11          );
12          const personalSkills = skillsCore.findSkillsInDir(
13            personalSkillsDir,
14            'personal',
15            3
16          );
17
18          // Combine and format skills list
19          const allSkills = [...personalSkills, ...superpowersSkills];
20
21          if (allSkills.length === 0) {
22            return 'No skills found. Install superpowers skills to ~/.config/opencode/superpowers/skills/';
23          }
24
25          let output = 'Available skills:\n\n';
26
27          for (const skill of allSkills) {
28            const namespace = skill.sourceType === 'personal' ? '' : 'superpowers:';
29            const skillName = skill.name || path.basename(skill.path);
30
31            output += `${namespace}${skillName}\n`;
32            if (skill.description) {
33              output += `  ${skill.description}\n`;
34            }
35            output += `  Directory: ${skill.path}\n\n`;
36          }
37
38          return output;
39        }
40      }

Step 2: Verify syntax

Run: node -c .opencode/plugin/superpowers.js Expected: No output

Step 3: Commit

 1git add .opencode/plugin/superpowers.js
 2git commit -m "feat: implement find_skills tool for opencode"

Task 12: Implement Session Start Hook

Files:

  • Modify: .opencode/plugin/superpowers.js

Step 1: Add session.started hook

After the tools array, add:

 1    'session.started': async () => {
 2      // Read using-superpowers skill content
 3      const usingSuperpowersPath = skillsCore.resolveSkillPath(
 4        'using-superpowers',
 5        superpowersSkillsDir,
 6        personalSkillsDir
 7      );
 8
 9      let usingSuperpowersContent = '';
10      if (usingSuperpowersPath) {
11        const fullContent = fs.readFileSync(usingSuperpowersPath.skillFile, 'utf8');
12        // Strip frontmatter
13        const lines = fullContent.split('\n');
14        let inFrontmatter = false;
15        let frontmatterEnded = false;
16        const contentLines = [];
17
18        for (const line of lines) {
19          if (line.trim() === '---') {
20            if (inFrontmatter) {
21              frontmatterEnded = true;
22              continue;
23            }
24            inFrontmatter = true;
25            continue;
26          }
27
28          if (frontmatterEnded || !inFrontmatter) {
29            contentLines.push(line);
30          }
31        }
32
33        usingSuperpowersContent = contentLines.join('\n').trim();
34      }
35
36      // Tool mapping instructions
37      const toolMapping = `
38**Tool Mapping for OpenCode:**
39When skills reference tools you don't have, substitute OpenCode equivalents:
40- \`TodoWrite\` → \`update_plan\` (your planning/task tracking tool)
41- \`Task\` tool with subagents → Use OpenCode's subagent system (@mention syntax or automatic dispatch)
42- \`Skill\` tool → \`use_skill\` custom tool (already available)
43- \`Read\`, \`Write\`, \`Edit\`, \`Bash\` → Use your native tools
44
45**Skill directories contain supporting files:**
46- Scripts you can run with bash tool
47- Additional documentation you can read
48- Utilities and helpers specific to that skill
49
50**Skills naming:**
51- Superpowers skills: \`superpowers:skill-name\` (from ~/.config/opencode/superpowers/skills/)
52- Personal skills: \`skill-name\` (from ~/.config/opencode/skills/)
53- Personal skills override superpowers skills when names match
54`;
55
56      // Check for updates (non-blocking)
57      const hasUpdates = skillsCore.checkForUpdates(
58        path.join(homeDir, '.config/opencode/superpowers')
59      );
60
61      const updateNotice = hasUpdates ?
62        '\n\n⚠️ **Updates available!** Run `cd ~/.config/opencode/superpowers && git pull` to update superpowers.' :
63        '';
64
65      // Return context to inject into session
66      return {
67        context: `<EXTREMELY_IMPORTANT>
68You have superpowers.
69
70**Below is the full content of your 'superpowers:using-superpowers' skill - your introduction to using skills. For all other skills, use the 'use_skill' tool:**
71
72${usingSuperpowersContent}
73
74${toolMapping}${updateNotice}
75</EXTREMELY_IMPORTANT>`
76      };
77    }

Step 2: Verify syntax

Run: node -c .opencode/plugin/superpowers.js Expected: No output

Step 3: Commit

 1git add .opencode/plugin/superpowers.js
 2git commit -m "feat: implement session.started hook for opencode"

Phase 4: Documentation

Task 13: Create OpenCode Installation Guide

Files:

  • Create: .opencode/INSTALL.md

Step 1: Create installation guide

 1# Installing Superpowers for OpenCode
 2
 3## Prerequisites
 4
 5- [OpenCode.ai](https://opencode.ai) installed
 6- Node.js installed
 7- Git installed
 8
 9## Installation Steps
10
11### 1. Install Superpowers Skills
12
13```bash
14# Clone superpowers skills to OpenCode config directory
15mkdir -p ~/.config/opencode/superpowers
16git clone https://github.com/obra/superpowers.git ~/.config/opencode/superpowers

2. Install the Plugin

The plugin is included in the superpowers repository you just cloned.

OpenCode will automatically discover it from:

  • ~/.config/opencode/superpowers/.opencode/plugin/superpowers.js

Or you can link it to the project-local plugin directory:

 1# In your OpenCode project
 2mkdir -p .opencode/plugin
 3ln -s ~/.config/opencode/superpowers/.opencode/plugin/superpowers.js .opencode/plugin/superpowers.js

3. Restart OpenCode

Restart OpenCode to load the plugin. On the next session, you should see:

You have superpowers.

Usage

Finding Skills

Use the find_skills tool to list all available skills:

use find_skills tool

Loading a Skill

Use the use_skill tool to load a specific skill:

use use_skill tool with skill_name: "superpowers:brainstorming"

Personal Skills

Create your own skills in ~/.config/opencode/skills/:

 1mkdir -p ~/.config/opencode/skills/my-skill

Create ~/.config/opencode/skills/my-skill/SKILL.md:

 1---
 2name: my-skill
 3description: Use when [condition] - [what it does]
 4---
 5
 6# My Skill
 7
 8[Your skill content here]

Personal skills override superpowers skills with the same name.

Updating

 1cd ~/.config/opencode/superpowers
 2git pull

Troubleshooting

Plugin not loading

  1. Check plugin file exists: ls ~/.config/opencode/superpowers/.opencode/plugin/superpowers.js
  2. Check OpenCode logs for errors
  3. Verify Node.js is installed: node --version

Skills not found

  1. Verify skills directory exists: ls ~/.config/opencode/superpowers/skills
  2. Use find_skills tool to see what's discovered
  3. Check file structure: each skill should have a SKILL.md file

Tool mapping issues

When a skill references a Claude Code tool you don't have:

  • TodoWrite → use update_plan
  • Task with subagents → use @mention syntax to invoke OpenCode subagents
  • Skill → use use_skill tool
  • File operations → use your native tools

Getting Help


**Step 2: Verify file created**

Run: `ls -l .opencode/INSTALL.md`
Expected: File exists

**Step 3: Commit**

```bash
git add .opencode/INSTALL.md
git commit -m "docs: add opencode installation guide"

Task 14: Update Main README

Files:

  • Modify: README.md

Step 1: Add OpenCode section

Find the section about supported platforms (search for "Codex" in the file), and add after it:

 1### OpenCode
 2
 3Superpowers works with [OpenCode.ai](https://opencode.ai) through a native JavaScript plugin.
 4
 5**Installation:** See [.opencode/INSTALL.md](.opencode/INSTALL.md)
 6
 7**Features:**
 8- Custom tools: `use_skill` and `find_skills`
 9- Automatic session bootstrap
10- Personal skills with shadowing
11- Supporting files and scripts access

Step 2: Verify formatting

Run: grep -A 10 "### OpenCode" README.md Expected: Shows the section you added

Step 3: Commit

 1git add README.md
 2git commit -m "docs: add opencode support to readme"

Task 15: Update Release Notes

Files:

  • Modify: RELEASE-NOTES.md

Step 1: Add entry for OpenCode support

At the top of the file (after the header), add:

 1## [Unreleased]
 2
 3### Added
 4
 5- **OpenCode Support**: Native JavaScript plugin for OpenCode.ai
 6  - Custom tools: `use_skill` and `find_skills`
 7  - Automatic session bootstrap with tool mapping instructions
 8  - Shared core module (`lib/skills-core.js`) for code reuse
 9  - Installation guide in `.opencode/INSTALL.md`
10
11### Changed
12
13- **Refactored Codex Implementation**: Now uses shared `lib/skills-core.js` module
14  - Eliminates code duplication between Codex and OpenCode
15  - Single source of truth for skill discovery and parsing
16
17---
18

Step 2: Verify formatting

Run: head -30 RELEASE-NOTES.md Expected: Shows your new section

Step 3: Commit

 1git add RELEASE-NOTES.md
 2git commit -m "docs: add opencode support to release notes"

Phase 5: Final Verification

Task 16: Test Codex Still Works

Files:

  • Test: .codex/superpowers-codex

Step 1: Test find-skills command

Run: .codex/superpowers-codex find-skills | head -20 Expected: Shows list of skills with names and descriptions

Step 2: Test use-skill command

Run: .codex/superpowers-codex use-skill superpowers:brainstorming | head -20 Expected: Shows brainstorming skill content

Step 3: Test bootstrap command

Run: .codex/superpowers-codex bootstrap | head -30 Expected: Shows bootstrap content with instructions

Step 4: If all tests pass, record success

No commit needed - this is verification only.


Task 17: Verify File Structure

Files:

  • Check: All new files exist

Step 1: Verify all files created

Run:

 1ls -l lib/skills-core.js
 2ls -l .opencode/plugin/superpowers.js
 3ls -l .opencode/INSTALL.md

Expected: All files exist

Step 2: Verify directory structure

Run: tree -L 2 .opencode/ (or find .opencode -type f if tree not available) Expected:

.opencode/
├── INSTALL.md
└── plugin/
    └── superpowers.js

Step 3: If structure correct, proceed

No commit needed - this is verification only.


Task 18: Final Commit and Summary

Files:

  • Check: git status

Step 1: Check git status

Run: git status Expected: Working tree clean, all changes committed

Step 2: Review commit log

Run: git log --oneline -20 Expected: Shows all commits from this implementation

Step 3: Create summary document

Create a completion summary showing:

  • Total commits made
  • Files created: lib/skills-core.js, .opencode/plugin/superpowers.js, .opencode/INSTALL.md
  • Files modified: .codex/superpowers-codex, README.md, RELEASE-NOTES.md
  • Testing performed: Codex commands verified
  • Ready for: Testing with actual OpenCode installation

Step 4: Report completion

Present summary to user and offer to:

  1. Push to remote
  2. Create pull request
  3. Test with real OpenCode installation (requires OpenCode installed)

Testing Guide (Manual - Requires OpenCode)

These steps require OpenCode to be installed and are not part of the automated implementation:

  1. Install skills: Follow .opencode/INSTALL.md
  2. Start OpenCode session: Verify bootstrap appears
  3. Test find_skills: Should list all available skills
  4. Test use_skill: Load a skill and verify content appears
  5. Test supporting files: Verify skill directory paths are accessible
  6. Test personal skills: Create a personal skill and verify it shadows core
  7. Test tool mapping: Verify TodoWrite → update_plan mapping works

Success Criteria

  • lib/skills-core.js created with all core functions
  • .codex/superpowers-codex refactored to use shared core
  • Codex commands still work (find-skills, use-skill, bootstrap)
  • .opencode/plugin/superpowers.js created with tools and hooks
  • Installation guide created
  • README and RELEASE-NOTES updated
  • All changes committed
  • Working tree clean