/contributing skill incorrectly parses markdown as bash commands
Description
The /contributing skill fails with bash command errors when processing its own markdown content.
Error
Error: Bash command failed for pattern "!` after type/scope:
\`": [stderr]
(eval):1: command not found: after
(eval):3: command not found:
Root Cause
Line 175 in /Users/wgordon/.claude/commands/contributing.md:
Add `!` after type/scope:
The skill execution system is incorrectly treating this inline markdown as an executable bash command, passing it to eval.
Expected Behavior
Skills defined as markdown instruction files should be interpreted as prompts for Claude to follow, not as executable bash scripts.
Actual Behavior
The system is scanning the markdown for code-like patterns and attempting to execute fragments as shell commands.
Steps to Reproduce
- Have the default
/contributingskill installed at~/.claude/commands/contributing.md - Run
/contributingin any project - Observe the bash eval error on line 175
Workaround
Manually follow the skill instructions instead of using the /contributing command, or modify line 175 to avoid backtick-wrapped exclamation marks.
Environment
- OS: macOS Darwin 25.2.0
- Tool: Claude Code CLI
- Model: claude-sonnet-4-5@20250929[1m]
Additional Context
The skill file itself is valid markdown. The bug appears to be in the skill execution layer that processes these markdown files.
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗