Home / Claude Code mods / Security / shell-guard

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.

Updated 2026-11-22

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.

TypeClaude code mod
Authorwcampbell-dw
Repositorywcampbell-dw/claude-plugins
Popularityno public popularity data yet
CategorySecurity
SecurityReview before installing (60/100)
Rank#9,109 of 9,397 Claude Code mods; #916 in Security
LicenseMIT-0
Last commit2026-11-22
Hooks4 events
SeesBash calls, PowerShell calls
Draws onnothing

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.

CheckResult
No network accessPass
Starts processes outside the sandboxReview
Writes files or configReview
Reads environment variablesReview
Only sees the events it hooksPass
Doesn't drive ClaudePass
Validator reported problemsNote
Has an open-source licensePass

API calls in its code

CallWhat it means
$.command.register
$.env.getreads env vars
$.fs.existsreads files
$.fs.readreads files
$.fs.writewrites files
$.process.runruns processes
$.store.deletekeeps its own state
$.store.getkeeps its own state
$.store.setkeeps its own state
$.ui.logdraws interface

How do I install shell-guard?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. 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
  3. 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)