Skip to content

[FEATURE]: Add a switch to disable automatic skill directory discovery #15396

Closed

Description

@howmanysmall

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

OpenCode currently auto-loads skills from several directories, including project and global locations (.opencode/skills, ~/.config/opencode/skills, .claude/skills, ~/.claude/skills, .agents/skills, and ~/.agents/skills).

I use OpenCode alongside other tools and need stricter control over what gets loaded. Please add a single config/env option that disables directory-based skill auto-discovery, so skills are only loaded when explicitly configured.

A couple possible interfaces:

{
  "skills": {
    "auto_discovery": false
  }
}

Or an env var such as:

OPENCODE_DISABLE_SKILL_AUTO_DISCOVERY=1

Why this would help:

  • Prevents cross-tool skill leakage into OpenCode
  • Avoids accidentally loading incompatible SKILL.md files
  • Makes behavior predictable in shared repos, CI, and automation

Related issues I checked:

Those are related, but I could not find one that asks for a global "do not auto-load skills from any directory" switch.

Activity

  1. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Feb 27, 2026
  2. howmanysmall commented on Feb 27, 2026

    @howmanysmall
    Author

    Just saw the other issue had a resolution in the comments, whoops.

    For anyone seeing this, you can do direnv with export OPENCODE_DISABLE_CLAUDE_CODE_SKILLS=true to avoid having to call that every single time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

coreAnything pertaining to core functionality of the application (opencode server stuff)

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions