[BUG] Skills with `disable-model-invocation: true` intermittently fail on user invocation in VS Code extension

Resolved 💬 3 comments Opened Apr 20, 2026 by zahardev Closed Apr 22, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

In the VS Code extension, skills with disable-model-invocation: true and user-invocable: true intermittently fail when explicitly invoked by the user via /command.

Observed behavior: Intermittently, skills with disable-model-invocation: true are not available for user invocation via /command. The skill either doesn't appear in the skills list provided to the model, or silently fails to invoke.

The issue does not always reproduce — sometimes the skill works correctly, sometimes it fails in the next session.

Expected behavior: disable-model-invocation should only prevent the model from auto-triggering the skill. Explicit user invocation via /command should always work regardless of this flag.

Workaround: Remove disable-model-invocation: true — works but the model may auto-trigger it.

Claude Model

Opus

Claude Code for VS Code version

2.1.107

Operating System

Ubuntu/Debian Linux

Additional Information

Previously reported as #24042 (auto-closed as stale, locked) and #21649 (closed as duplicate). The underlying issue remains unresolved.

What Should Happen?

disable-model-invocation should only prevent the model from auto-triggering the skill. Explicit user invocation via /command should always work regardless of this flag.

Error Messages/Logs

Steps to Reproduce

  1. Create a skill with frontmatter:

``yaml
---
name: my-skill
description: "A skill"
user-invocable: true
disable-model-invocation: true
---
``

  1. Type /my-skill in VS Code Claude Code extension
  2. Skill appears in autocomplete but fails on invocation

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.107

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

Other

Additional Information

_No response_

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗