claude-code - 💡(How to fix) Fix Disabled plugin still appears in available skills and can be invoked [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#48022Fetched 2026-04-15 06:35:34
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Timeline (top)
labeled ×3commented ×1

Code Example

{
     "enabledPlugins": {
       "code-review@claude-plugins-official": false
     }
   }
RAW_BUFFERClick to expand / collapse

Bug

A plugin explicitly disabled in user-level settings (~/.claude/settings.json) is still listed in the available skills system reminder and can be invoked by the assistant.

Steps to Reproduce

  1. Disable a plugin in ~/.claude/settings.json:
    {
      "enabledPlugins": {
        "code-review@claude-plugins-official": false
      }
    }
  2. Start a conversation and ask for a code review.
  3. The disabled code-review skill still appears in the <system-reminder> skills list.
  4. The assistant invokes the skill despite it being disabled.

Expected Behavior

  • Disabled plugins should not appear in the available skills list injected into system reminders.
  • If a disabled skill is somehow invoked, the Skill tool should reject the call.

Actual Behavior

  • The disabled plugin appears in the skills list as if it were enabled.
  • The assistant invokes it without any guardrail preventing execution.

Notes

User-level settings should take precedence over project-level settings. The enabledPlugins: false directive at the user level was ignored entirely.

extent analysis

TL;DR

The issue can be resolved by ensuring that user-level settings are properly prioritized over project-level settings when loading plugins.

Guidance

  • Review the plugin loading logic to verify that user-level settings from ~/.claude/settings.json are correctly applied and take precedence over project-level settings.
  • Check for any potential caching issues that might cause outdated settings to be used, ensuring that changes to ~/.claude/settings.json are promptly reflected in the application.
  • Investigate the system reminder generation process to ensure it respects the enabled/disabled state of plugins as defined in user settings.
  • Consider adding a validation step before invoking a skill to check its enabled state, preventing disabled skills from being executed.

Example

No specific code example can be provided without more context on the plugin loading and system reminder generation logic. However, the fix might involve modifying the logic that loads plugins to prioritize user settings, similar to:

// Pseudo-code, actual implementation depends on the application's programming language and framework
if (userSettings.enabledPlugins[pluginName] === false) {
  // Skip loading or invoking the plugin
}

Notes

The solution assumes that the issue lies in the application's logic for handling user-level settings and plugin enablement. Without access to the specific codebase or more detailed information about the application's architecture, the guidance provided is based on general principles of settings precedence and plugin management.

Recommendation

Apply a workaround by manually removing or commenting out the disabled plugin from any project-level settings files until the root cause is identified and fixed, ensuring that user-level settings are respected. This approach allows for immediate mitigation of the issue while a more permanent solution is developed.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING