Skip to content

Plugin preventing skills from working at all #9

@coandco

Description

@coandco

Hi! I'm trying to use opencode-lazy-loader, but I'm running into an issue where the LLM claims there are no skills available when the plugin is loaded. For reference, I have two skills in my ~/.config/opencode/skills: read-pdf and hello-world. read-pdf has an embedded MCP server for opencode-lazy-loader to use, while hello-world is a basic skill that tells it to print "Hello, world!".

Without opencode-lazy-loader in my opencode.jsonc, running /skill hello-world works fine:

/skill hello-world
Thinking: The user is invoking a skill using the /skill command. This is a way to load specialized instructions and workflows for specific tasks. The user wants to use the hello-world skill, which according to the description is used for "printing hello world, demonstrate basic output operations, or show the simplest program in any programming language."
Let me load this skill to see what it contains.
→ Skill "hello-world"
Thinking: The skill has loaded and it basically says to respond with "Hello, World!" when asked. The user invoked the skill, but now I should just greet them with "Hello, World!" as that's what this skill is for.
Hello, World!

However, once I add the "plugin": ["opencode-lazy-loader"] line to my opencode.jsonc and restart opencode, it fails to load any skills at all via the skill tool:

/skill hello-world
Thinking: The user wants to use the hello-world skill. Let me load it first to see what it does.
→ Skill "hello-world"
Skill "hello-world" not found. Available skills: none
Thinking: It seems the skill wasn't found. Let me check what skills are available. From the environment info, I can see there are two skills mentioned:
1. hello-world - at file:///home/developer/.config/opencode/skills/hello-world/SKILL.md
2. read-pdf - at file:///home/developer/.config/opencode/skills/read-pdf/SKILL.md
Let me try to read the skill file directly to understand what it does.
→ Read /home/developer/.config/opencode/skills/hello-world/SKILL.md 
Thinking: The user invoked the hello-world skill. According to the skill instructions, when asked to print "Hello, World!", I should respond with "Hello, World!".
The user used the /skill hello-world command, which means they want me to use that skill. Based on the skill definition, this skill is for "when the user asks to print hello world, demonstrate basic output operations, or show the simplest program in any programming language."
The instructions say: "When asked to print 'Hello, World!': - Do what they ask: Respond with 'Hello, World!'"
So I should simply output "Hello, World!"
Hello, World!

With the hello-world skill, it gets around it by doing a direct file read, which is fine as far as it goes. However, when I try to use the read-pdf skill (with embedded pdf-reader-mcp MCP server defined), it fails because neither the skill tool nor the skill_mcp tool are in a working state, and thus it can't invoke the MCP associated with the tool.

What steps can I take to diagnose this and figure out why it's not working?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions