What is shell-guard?
shell-guard is a Claude Code mod by wcampbell-dw that refuses Bash and PowerShell commands that break on Windows, installs az shims that skip cmd.exe, and adds Windows shell rules to the system prompt. It is listed under Security and has no public popularity data yet.
| Type | Claude code mod |
|---|---|
| Author | wcampbell-dw |
| Repository | wcampbell-dw/claude-plugins |
| Popularity | no public popularity data yet |
| Category | Security |
| Security | Review before installing (60/100) |
| Rank | #9,109 of 9,397 Claude Code mods; #916 in Security |
| License | MIT-0 |
| Last commit | 2026-11-22 |
| Hooks | 4 events |
| Sees | Bash calls, PowerShell calls |
| Draws on | nothing |
Is shell-guard safe to install?
shell-guard scores 60/100 on the MCPMods security check: Review before installing. Things to review: starts processes outside the sandbox; writes files or config; reads environment variables. It passed 4 of 8 checks.
Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.
| Check | Result |
|---|---|
| No network access | Pass |
| Starts processes outside the sandbox | Review |
| Writes files or config | Review |
| Reads environment variables | Review |
| Only sees the events it hooks | Pass |
| Doesn't drive Claude | Pass |
| Validator reported problems | Note |
| Has an open-source license | Pass |
API calls in its code
| Call | What it means |
|---|---|
$.command.register | |
$.env.get | reads env vars |
$.fs.exists | reads files |
$.fs.read | reads files |
$.fs.write | writes files |
$.process.run | runs processes |
$.store.delete | keeps its own state |
$.store.get | keeps its own state |
$.store.set | keeps its own state |
$.ui.log | draws interface |
How do I install shell-guard?
- Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
claude --version
- Read its footprint. This lists every event it hooks and every API call it makes, without running it.
git clone https://github.com/wcampbell-dw/claude-plugins claude plugin validate ./claude-plugins/plugins/shell-guard
- Install it. Run this in your terminal, then /reload-plugins in an open session.
claude plugin marketplace add wcampbell-dw/claude-plugins && claude plugin install shell-guard@wcampbell
Or ask Claude to set it up
Paste this into Claude Code and it installs shell-guard for you:
Install the "shell-guard" Claude Code mod from https://github.com/wcampbell-dw/claude-plugins/tree/main/plugins/shell-guard. Run claude plugin validate on it first and show me what it can access before you enable it.
More from wcampbell-dw/claude-plugins
This repository has 4 Claude Code mods on MCPMods.
- agent-spinners: Band above the prompt listing subagents and background tasks (Bash and PowerShell commands, monitors) with braille spinn (Low risk)
- statusline: Three-line Nerd Font status line: cwd and git, model and context, account and usage (Review before installing)
- subagent-kit: Scoper (Haiku), implementer (Sonnet), reviewer (Sonnet, Opus for risky changes) and shipper (Haiku) subagents, with rule (Low risk)