[PR #12435] fix: separate .claude and .agents skill loading flags #12432 #14214

Open
opened 2026-02-16 18:19:01 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/12435

State: open
Merged: No


Summary

Fixes bug where OPENCODE_DISABLE_CLAUDE_CODE=1 incorrectly disabled loading of skills from .agents/skills/ directory.

Problem

The flag hierarchy chained OPENCODE_DISABLE_EXTERNAL_SKILLS to inherit from OPENCODE_DISABLE_CLAUDE_CODE_SKILLS, causing both .claude and .agents directories to be disabled when only .claude was intended to be disabled.

Solution

  • Decoupled OPENCODE_DISABLE_EXTERNAL_SKILLS from OPENCODE_DISABLE_CLAUDE_CODE_SKILLS
  • Split external skill scanning into two independent checks:
    • .claude/skills/ → disabled by OPENCODE_DISABLE_CLAUDE_CODE or OPENCODE_DISABLE_EXTERNAL_SKILLS
    • .agents/skills/ → disabled only by OPENCODE_DISABLE_EXTERNAL_SKILLS

Verification

Built local and:

  • Confirmed OPENCODE_DISABLE_CLAUDE_CODE=1 only disables .claude/skills/
  • Confirmed OPENCODE_DISABLE_EXTERNAL_SKILLS=1 disables both directories

Fixes #12432

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/12435 **State:** open **Merged:** No --- # Summary Fixes bug where OPENCODE_DISABLE_CLAUDE_CODE=1 incorrectly disabled loading of skills from .agents/skills/ directory. # Problem The flag hierarchy chained OPENCODE_DISABLE_EXTERNAL_SKILLS to inherit from OPENCODE_DISABLE_CLAUDE_CODE_SKILLS, causing both .claude and .agents directories to be disabled when only .claude was intended to be disabled. # Solution - Decoupled OPENCODE_DISABLE_EXTERNAL_SKILLS from OPENCODE_DISABLE_CLAUDE_CODE_SKILLS - Split external skill scanning into two independent checks: - .claude/skills/ → disabled by OPENCODE_DISABLE_CLAUDE_CODE or OPENCODE_DISABLE_EXTERNAL_SKILLS - .agents/skills/ → disabled only by OPENCODE_DISABLE_EXTERNAL_SKILLS # Verification Built local and: - Confirmed OPENCODE_DISABLE_CLAUDE_CODE=1 only disables .claude/skills/ - Confirmed OPENCODE_DISABLE_EXTERNAL_SKILLS=1 disables both directories Fixes #12432
yindo added the pull-request label 2026-02-16 18:19:01 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#14214