Skill loading evaluates file content against bash permission patterns

Resolved 💬 3 comments Opened Mar 22, 2026 by maxcollie-mavencare Closed Mar 26, 2026

Description

When using the Skill tool to load a skill (e.g., /writing-bash), the skill file content appears to be evaluated against bash command permission patterns. If the SKILL.md body contains characters like ! inside backtick code spans, the permission check fails with:

Bash command permission check failed for pattern "!` conditionals and `": This command requires approval

Reproduction

  1. Create a skill with a SKILL.md that contains text like:

``
breaking
if ! conditionals and != comparisons
``

  1. Invoke the skill via the Skill tool or /skill-name
  2. Observe the bash permission check error

Expected Behavior

Skill file content should not be evaluated against bash command permission patterns. The Skill tool reads a markdown file — its content is documentation, not bash commands.

Workaround

Rephrase the SKILL.md content to avoid ! inside backtick code spans. For example:

breaking negation conditionals and not-equal comparisons

Environment

  • Claude Code CLI
  • macOS (Darwin 25.2.0)
  • Model: claude-opus-4-6

View original on GitHub ↗

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