diff options
| author | Drew Ritter <drew@primeradiant.com> | 2026-05-13 17:29:04 -0700 |
|---|---|---|
| committer | Drew Ritter <drew@primeradiant.com> | 2026-06-16 10:09:43 -0700 |
| commit | f030d6ef88ae28946184d87f7d339743da757651 (patch) | |
| tree | 58f348fd4634b3663c368d9690b89c5fd13ec78b /.opencode/plugins | |
| parent | d7f47d350a5fb53014af8bd707420c811f82ac1f (diff) | |
Tighten cross-platform tool references
Diffstat (limited to '.opencode/plugins')
| -rw-r--r-- | .opencode/plugins/superpowers.js | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/.opencode/plugins/superpowers.js b/.opencode/plugins/superpowers.js index f2b95f2..423e5ed 100644 --- a/.opencode/plugins/superpowers.js +++ b/.opencode/plugins/superpowers.js @@ -1,7 +1,7 @@ /** * Superpowers plugin for OpenCode.ai * - * Injects superpowers bootstrap context via system prompt transform. + * Injects superpowers bootstrap context via message transform. * Auto-registers skills directory via config hook (no symlinks needed). */ @@ -74,11 +74,15 @@ export const SuperpowersPlugin = async ({ client, directory }) => { const { content } = extractAndStripFrontmatter(fullContent); const toolMapping = `**Tool Mapping for OpenCode:** -When skills reference tools you don't have, substitute OpenCode equivalents: -- \`TodoWrite\` → \`todowrite\` -- \`Task\` tool with subagents → Use OpenCode's subagent system (@mention) -- \`Skill\` tool → OpenCode's native \`skill\` tool -- \`Read\`, \`Write\`, \`Edit\`, \`Bash\` → Your native tools +When skills request actions, substitute OpenCode equivalents: +- Create or update todos → \`todowrite\` +- \`Subagent (general-purpose):\` → \`task\` with \`subagent_type: "general"\` +- Invoke a skill → OpenCode's native \`skill\` tool +- Read files → \`read\` +- Create, edit, or delete files → \`apply_patch\` +- Run shell commands → \`bash\` +- Search files → \`grep\`, \`glob\` +- Fetch a URL → \`webfetch\` Use OpenCode's native \`skill\` tool to list and load skills.`; |
