claudemods

All Claude Code modsZulut30/claude-mode

command-guard

A Claude Code mod in Zulut30/claude-mode

Safety net for dangerous commands: before rm -r, git push --force, reset --hard and the like, shows what would be lost and asks Run or Cancel

command-guard reaches L2 (writes or runs) by its classified calls and passed claude plugin validate on Claude Code 2.1.302.

Install hint

/plugin install command-guard --marketplace Zulut30/claude-mode

From the repository's own marketplace. Confirm the plugin name in the repository's README before installing. Mods need Claude Code 2.1.287 or later.

Access

L2 Writes or runsother: $.state.get, other: $.state.set, runs processes, reads files, reads env vars, persists state, draws

Validation

Passed on Claude Code 2.1.302

View the source on GitHub Back to the list

What the scan recorded

Observed events
Bash calls, PowerShell calls
Hooks
session.start, command.run {command=guard}, tool.call {tool=Bash}, tool.call {tool=PowerShell}
API calls
$.clock.now, $.command.register, $.env.get, $.fs.list, $.fs.stat, $.process.run, $.session.cwd, $.state.get, $.state.set, $.store.get, $.store.set, $.ui.ask, $.ui.toast
Validation on 2.1.302
Passed
Scanned revision
5d7e58a1aef6
Marketplace passed
claude-mode

These are the hooks and API calls reported by claude plugin validate. Access levels describe the widest reach of those calls and are not safety ratings. Validation is a static check, not a runtime test, and a passing result does not prove that a mod works or is safe. How the scan works.

More from Zulut30/claude-mode

Badge for your README

Reach badge for command-guard Validation badge for command-guard

Authors can show the latest scan result in their README. Each badge links to this page.

[![reach](https://raw.githubusercontent.com/karanb192/awesome-claude-code-mods/main/badges/Zulut30--claude-mode--command-guard-reach.svg)](https://mods.aidojo.si/mods/Zulut30--claude-mode--command-guard/)
[![validates](https://raw.githubusercontent.com/karanb192/awesome-claude-code-mods/main/badges/Zulut30--claude-mode--command-guard-validates.svg)](https://mods.aidojo.si/mods/Zulut30--claude-mode--command-guard/)