fix: allow model to invoke Skill tool for review commands

Set disableModelInvocation to false so the model can use the Skill tool
to load review/security-review skills as instructed by locale templates.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
kingboung 2026-05-12 17:01:12 +08:00
parent 7565ad59a4
commit 09bbfb77e1

View File

@ -34,7 +34,7 @@ function registerReviewSkill(
description, description,
whenToUse: description, whenToUse: description,
userInvocable: true, userInvocable: true,
disableModelInvocation: true, disableModelInvocation: false,
allowedTools: ALLOWED_TOOLS, allowedTools: ALLOWED_TOOLS,
files, files,
async getPromptForCommand(args) { async getPromptForCommand(args) {