Developer uses hook to block third-party Skills from executing shell commands in Claude Code
11/26/2026 — 11/27, 00:18·1 sources (all)·1 reports (all)
Key takeaways
- A developer pointed out on DEV Community that Claude Code Skills execute inline or code-block shell commands on load and paste the output in…
Background & analysis
On November 26, 2026, a developer published a post on DEV Community about how Skills behave when loaded in Claude Code. According to the author, a Skill can run shell commands while it loads, before Claude has read a single line of it, with the output pasted into the skill text and the commands themselves invisible to Claude. The author says he uses this deliberately as a cheap way to drop git status or the current branch into a skill without spending a tool call on it.
The same feature, he notes, works just as well inside somebody else's skill: clone a repo, type the skill's name, and a command runs with no prompt and nothing to approve. In response he built a hook for it, which he says locks the behavior down in about two minutes so that third-party skills no longer execute commands without warning. The post does not describe how the hook is implemented, how broadly it applies, or any reaction it received; the matter currently rests at the author publishing the approach and his explanation.
AI-generated from 1 reports · updated 3 days ago
Related AI tools
- Heat index
- 25
- All sources
- 1
- All reports
- 1
- First seen
- 3 days ago
Reports on this story headlines open the original
A developer on DEV Community points out that Claude Code skills can run shell commands while loading, before Claude reads the skill text, and the output is pasted in without Claude seeing the command. The author built a hook to block this behavior for third-party skills, locking it down in about two minutes.
DEV Community · AIAI score 53
Other stories people are talking about
- Heat index 63Developer says bulk-installed Skills crowd out Claude Code's context window1 sources
- Heat index 49Developer releases Claude Code skill legwork to offload mechanical edits1 sources
- Heat index 27Claude Code 2.1.332 lets MCP servers ship Skills directly1 sources
- Heat index 62Connecting Claude Code to local Ollama models1 sources
- Heat index 166Claude Code adds /ship command for automated PR review3 sources
How is heat calculated?About the methodHide
Heat counts how many independent sources covered a story in the last 48 hours: one source counts once no matter how many posts it published, decaying with a 24-hour half-life. What ranks first is what many people are talking about.
This page aggregates public feeds. Headlines and summaries are machine-organized and remain the property of the original authors; verify important facts at the source. If you believe a headline or summary infringes your rights, email the contact address in the footer with the page URL and basis of your claim, and we will remove or replace it after review.
- Surge
- Discussion rising fast
- New
- First report within 6 hours
- Rising
- Still gathering discussion

