You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Skill tool incorrectly parses markdown content as shell commands #13655
The Skill tool incorrectly interprets markdown content within skill files (.md) as shell commands, causing activation failures when the markdown contains certain characters like backtick-wrapped exclamation marks.
Steps to Reproduce
Create a skill file (SKILL.md) with the following markdown content:
## Quick Reference Checklist-[ ] No `!` non-null assertions
-[ ] All function parameters have types
Try to activate the skill using the Skill tool
Observe the error
Expected Behavior
The Skill tool should read and display the markdown content of the skill file without attempting to parse it as shell commands.
Actual Behavior
The Skill tool fails with this error:
Bash command permission check failed for pattern "!` non-null assertions
- [ ] All function parameters have types
...
`": This command uses shell operators that require approval for safety
Analysis
The tool appears to be:
Extracting text between backticks in the markdown
Interpreting the extracted text as potential bash commands
Flagging the ! character (bash history expansion operator) as a dangerous shell operator
The problematic pattern is the markdown checkbox syntax combined with inline code:
This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.
Activity
github-actions commentedon Dec 11, 2025
Found 2 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
github-actions commentedon Jan 10, 2026
This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.
StudioLE commentedon Jan 31, 2026
I'm also experiencing this when documenting Rust conventions in a skill file.
The original markdown had:
The
//!syntax tripped claude, possibly it treated it as bash history expansionMy workaround was to remove the backticks entirely and just write it in plain English but it's rather concerning that claude isn't escaping input.
Possibly related to: #13932
techjoec commentedon Feb 8, 2026
Still affected in v2.1.37 + systematic test results
Confirmed this bug still occurs in Claude Code 2.1.37.
New test results
I created a test repo with skills containing various backtick-wrapped shell metacharacters to isolate the problem:
`echo hello`,`foo_bar`,`code``$HOME`,`$(whoami)`,`$``echo hello; echo world`,`;``home/user\file`,`\`,`\n```, ```!`Only the exclamation mark
!in backticks triggers this error.Reproduction
Test repo:
github.com/techjoe/claude-skill-escape-testingError on v2.1.37:
This confirms the issue is specifically bash history expansion triggered by
!, not a general problem with shell metacharacters in markdown.github-actions commentedon Mar 8, 2026
Closing for now — inactive for too long. Please open a new issue if this is still relevant.
github-actions commentedon Mar 17, 2026
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.