Skill tool rejects a plugin command with disable-model-invocation: false
Description
Invoking the official code-review plugin (claude-plugins-official) via the Skill tool fails with:
Skill code-review cannot be used with Skill tool due to disable-model-invocation
But the plugin's own command file explicitly sets disable-model-invocation: false:
plugins/code-review/commands/code-review.md (frontmatter, lines 1-5):
---
allowed-tools: Bash(gh issue view:*), Bash(gh search:*), Bash(gh issue list:*), Bash(gh pr comment:*), Bash(gh pr diff:*), Bash(gh pr view:*), Bash(gh pr list:*)
description: Code review a pull request
disable-model-invocation: false
---
Reproduction
- Have the official
code-review@claude-plugins-officialplugin installed and enabled. - In a session, call the
Skilltool withskill: "code-review"(with or withoutargs). - Observe the error:
Skill code-review cannot be used with Skill tool due to disable-model-invocation.
Expected
Since the command's frontmatter sets disable-model-invocation: false, the Skill tool should be able to invoke it (per plugins/plugin-dev/skills/command-development/SKILL.md, which documents disable-model-invocation as controlling whether the SlashCommand tool can programmatically call the command, defaulting to false).
Actual
The Skill tool rejects the call outright, citing disable-model-invocation, contradicting the file's own declared value.
Suspected cause
code-review ships only a commands/code-review.md file — it has no skills/*/SKILL.md. It's possible the harness surfaces command-based plugin entries through the Skill tool's listing, but internally forces disable-model-invocation: true for command-type entries regardless of the command file's own frontmatter (which was designed to govern the separate SlashCommand tool, not the Skill tool). If so, this is either an unintended cross-tool inconsistency, or the Skill-tool-facing listing for command-based plugins needs its own explicit flag rather than reusing/misreading the command's disable-model-invocation value.
Environment
- Plugin:
code-review@claude-plugins-official - Install path observed:
~/.claude/plugins/cache/claude-plugins-official/code-review/unknown/commands/code-review.md - Workaround: invoking the literal slash command
/code-review(typed by the user) works as expected — only programmatic invocation via theSkilltool is affected.
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗