diff options
| author | Claude <noreply@anthropic.com> | 2025-11-23 23:37:53 +0000 |
|---|---|---|
| committer | Claude <noreply@anthropic.com> | 2025-11-23 23:37:53 +0000 |
| commit | 6ecd72c5bfb8b08cc529d7a86965de4cbe0781e5 (patch) | |
| tree | 8f86538b310551a8a5ae9a244b656e9b8ab2ecf6 /.opencode/plugin | |
| parent | f600f969f5cccd975ff07d0768ad72b124c7e781 (diff) | |
fix: address code review issues in opencode support branch
- Fix test runner exiting early due to ((var++)) returning 1 with set -e
- Remove duplicate frontmatter stripping in superpowers-codex, use shared skillsCore.stripFrontmatter()
- Remove unused promptsDir/promptFile variables from opencode plugin
- Derive superpowers skills path from __dirname for better install flexibility
- Simplify test-skills-core.sh by removing failing ESM import attempt
Diffstat (limited to '.opencode/plugin')
| -rw-r--r-- | .opencode/plugin/superpowers.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/.opencode/plugin/superpowers.js b/.opencode/plugin/superpowers.js index 79ceccf..784c151 100644 --- a/.opencode/plugin/superpowers.js +++ b/.opencode/plugin/superpowers.js @@ -17,10 +17,9 @@ const __dirname = path.dirname(fileURLToPath(import.meta.url)); export const SuperpowersPlugin = async ({ project, client, $, directory, worktree }) => { const homeDir = os.homedir(); const projectSkillsDir = path.join(directory, '.opencode/skills'); - const superpowersSkillsDir = path.join(homeDir, '.config/opencode/superpowers/skills'); + // Derive superpowers skills dir from plugin location (works for both symlinked and local installs) + const superpowersSkillsDir = path.resolve(__dirname, '../../skills'); const personalSkillsDir = path.join(homeDir, '.config/opencode/skills'); - const promptsDir = path.join(homeDir, '.config/opencode/prompts'); - const promptFile = path.join(promptsDir, 'superpowers.txt'); return { tool: { |
