Browse Source

fix: rename skill tools to avoid collision with OpenCode built-in

Renamed plugin's skill/skill_mcp to omo_skill/omo_skill_mcp to prevent
overwriting OpenCode's built-in skill tool which provides dynamic skill
discovery from .claude/skills/ and .opencode/skill/ directories.
Alvin Unreal 2 months ago
parent
commit
ba5e6021ca
3 changed files with 6 additions and 6 deletions
  1. 2 2
      README.md
  2. 1 1
      src/agents/orchestrator.ts
  3. 3 3
      src/tools/skill/tools.ts

+ 2 - 2
README.md

@@ -350,8 +350,8 @@ Skills are specialized capabilities that combine MCP servers with specific instr
 
 | Tool | Description |
 |------|-------------|
-| `skill` | Loads a skill (e.g., `playwright`) and provides its instructions and available MCP tools |
-| `skill_mcp` | Invokes a specific tool from an MCP server managed by a skill |
+| `omo_skill` | Loads a skill (e.g., `playwright`) and provides its instructions and available MCP tools |
+| `omo_skill_mcp` | Invokes a specific tool from an MCP server managed by a skill |
 
 #### Key Features
 - **Browser Automation**: Full Playwright capabilities (browsing, clicking, typing, scraping).

+ 1 - 1
src/agents/orchestrator.ts

@@ -55,7 +55,7 @@ background_task(agent="librarian", prompt="How does library X handle Y")
 - Use background tasks for research or search while you continue working.
 
 ## Skills
-- For browser-related tasks (verification, screenshots, scraping, testing), call the "skill" tool with name "playwright" before taking action. Use relative filenames for screenshots (e.g., 'screenshot.png'); they are saved within subdirectories of '/tmp/playwright-mcp-output/'. Use the "skill_mcp" tool to invoke browser actions with camelCase parameters: skillName, mcpName, toolName, and toolArgs.
+- For browser-related tasks (verification, screenshots, scraping, testing), call the "omo_skill" tool with name "playwright" before taking action. Use relative filenames for screenshots (e.g., 'screenshot.png'); they are saved within subdirectories of '/tmp/playwright-mcp-output/'. Use the "omo_skill_mcp" tool to invoke browser actions with camelCase parameters: skillName, mcpName, toolName, and toolArgs.
 </Delegation>
 
 <Workflow>

+ 3 - 3
src/tools/skill/tools.ts

@@ -92,7 +92,7 @@ async function formatMcpCapabilities(
 
     sections.push("");
     sections.push(
-      `Use \`skill_mcp\` tool with \`mcp_name="${serverName}"\` to invoke.`
+      `Use \`omo_skill_mcp\` tool with \`mcp_name="${serverName}"\` to invoke.`
     );
     sections.push("");
   }
@@ -102,7 +102,7 @@ async function formatMcpCapabilities(
 
 export function createSkillTools(
   manager: SkillMcpManager
-): { skill: ToolDefinition; skill_mcp: ToolDefinition } {
+): { omo_skill: ToolDefinition; omo_skill_mcp: ToolDefinition } {
   const skills = getBuiltinSkills();
   const description =
     SKILL_TOOL_DESCRIPTION + (skills.length > 0 ? formatSkillsXml(skills) : "");
@@ -193,5 +193,5 @@ export function createSkillTools(
     },
   });
 
-  return { skill, skill_mcp };
+  return { omo_skill: skill, omo_skill_mcp: skill_mcp };
 }