All Agent Engineering

Claude Code skills: controlling who can invoke them

Separate disable-model-invocation from user-invocable, then inspect discovery, manual invocation and tool permissions.

AINavWritten / Updated
On this page

At a glance

The goal is to make a project skill callable through the intended entry. The official skills page was checked and original frontmatter fixtures were inspected locally. No skill was installed into or run by Claude Code. Invocation controls do not replace tool permission settings.

Runtime and applicability

Article type
Spec file
Verified
Applies to
  • Claude Code Applies to Claude Code as documented; version, model and environment prerequisites are stated in the body.

File locations

PathScopeHow it is read
.claude/skills/review-note/SKILL.mdProject skill file; frontmatter controls invocation entry points.After discovery, Claude Code uses invocation controls to determine whether users or the model can invoke it.

When to use

  • When a reusable workflow should be manual-only, or reference knowledge should be hidden from the slash menu.

When not to use

  • For blocking file or network actions, inspect permission rules separately; invocation fields alone are insufficient.

Each field controls a different entry

disable-model-invocation: true prevents Claude from invoking the skill on its own. user-invocable: false hides it from the slash menu and prevents typed /name invocation. Defaults are false and true respectively, allowing both user and model invocation. Hiding the menu is not disabling model invocation. Specify the entry you intend to preserve before setting its field.

Write a manual-only fixture

The original fixture is review-note/SKILL.md. Its frontmatter sets name: review-note, description: Review a supplied note and disable-model-invocation: true. The body asks for source checks in a supplied note and contains no deployment or sending command. Keep the user-invocable default. The docs also say disable-model-invocation prevents preloading into subagents and session-scoped scheduled tasks prompted with the skill, so it is more than a menu display setting.

Separate invocation eligibility from tool authorization

The docs say allowed-tools grants the listed tools access without per-use approval during the invoking turn, with the grant cleared on the next user message. Other tools remain governed by permissions. The fixture declares no allowed-tools and does not establish read-only isolation. Effective availability also depends on discovery and settings skillOverrides. Inspect the actual menu and settings rather than assuming that a written file must be callable.

Verify entry points without real side effects

Only fixture frontmatter syntax and the intended Boolean combinations were inspected locally. Claude Code discovery and loading were not checked. Before adoption, use a harmless exercise to verify that /review-note enters the intended prompt, then inspect automatic invocation eligibility. One non-invocation does not establish that the model can never invoke it. Stop if entry behavior differs and inspect fields, discovery and overrides rather than widening tool permissions.

Sources

All links are official pages; verification dates are listed per source, and links point to the version checked.

  1. Anthropic · Extend Claude with skills

Found an error? Tell us →