shell-guard

by wcampbell · ★ 0 · updated 6 days ago

GuardsCommandsPromptAutomationwarnings

0

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

install shell-guard

Install

/plugin marketplace add wcampbell-dw/claude-plugins
/plugin install shell-guard@wcampbell

Then run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.

View source on GitHub

What it hooks into

From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.

Events
session.startcommand.runprompt.composetool.call
API calls
$.command.register$.env.get$.fs.exists$.fs.read$.fs.write$.process.run$.store.delete$.store.get$.store.set$.ui.log
Can see
Bash callsPowerShell calls
Reach
level 2 of 3 runs processeswrites filesreads filesreads env varspersists statedraws

Origin

How it got here
Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
Repository
github.com/wcampbell-dw/claude-plugins
Path in repo
plugins/shell-guard
Source commit
6a574bc the exact code the scan read
Author
wcampbell @wcampbell-dw
License
MIT-0
First published
Last pushed
First listed here

Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.

More from wcampbell-dw/claude-plugins

agent-spinners

wcampbell-dw/claude-plugins

Band above the prompt listing subagents and background tasks (Bash and PowerShell commands, monitors) with braille spinners while they run

★ 0BandsGuardsPrompt

statusline

wcampbell-dw/claude-plugins

Three-line Nerd Font status line: cwd and git, model and context, account and usage

★ 0CommandsAutomation

subagent-kit

wcampbell-dw/claude-plugins

Scoper (Haiku), implementer (Sonnet), reviewer (Sonnet, Opus for risky changes) and shipper (Haiku) subagents, with rules for when the main session delegates to them, an /issue skill that does the next step an issue's state label calls for (triage, research, a decision, chasing info, a runbook, or building it through to a PR, with a queue of issues shipped as a gh-stack stack of PRs), a /grill...

★ 0GuardsPromptAutomation