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 | |
| parent | d7f47d350a5fb53014af8bd707420c811f82ac1f (diff) | |
Tighten cross-platform tool references
Diffstat (limited to '.opencode')
| -rw-r--r-- | .opencode/INSTALL.md | 7 | ||||
| -rw-r--r-- | .opencode/plugins/superpowers.js | 16 |
2 files changed, 14 insertions, 9 deletions
diff --git a/.opencode/INSTALL.md b/.opencode/INSTALL.md index 36d588b..080f043 100644 --- a/.opencode/INSTALL.md +++ b/.opencode/INSTALL.md @@ -45,7 +45,7 @@ Use OpenCode's native `skill` tool: ``` use skill tool to list skills -use skill tool to load superpowers/brainstorming +use skill tool to load brainstorming ``` ## Updating @@ -103,10 +103,11 @@ Skills speak in actions ("create a todo", "dispatch a subagent", "read a file"). - "Create a todo" / "mark complete in todo list" → `todowrite` - `Subagent (general-purpose):` template → `task` tool with `subagent_type: "general"` (or `"explore"` for codebase exploration) - "Invoke a skill" → OpenCode's native `skill` tool -- "Read a file" / "create a file" / "edit a file" → `read`, `write`, `edit` +- "Read a file" → `read` +- "Create a file" / "edit a file" / "delete a file" → `apply_patch` - "Run a shell command" → `bash` - "Search file contents" / "find files by name" → `grep`, `glob` -- "Fetch a URL" / "search the web" → `webfetch`, `websearch` +- "Fetch a URL" → `webfetch` ## Getting Help 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.`; |
