command-guard
by Zulut30 · ★ 0 · updated 5 days ago
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
Install
/plugin marketplace add Zulut30/claude-mode/plugin install command-guard@claude-modeThen run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.
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.runtool.call- 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- Can see
Bash callsPowerShell calls- Reach
- level 2 of 3 other: $.state.getother: $.state.setruns processesreads 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/Zulut30/claude-mode
- Path in repo
en/command-guard- Source commit
5d7e58athe exact code the scan read- Author
- @Zulut30
- License
- No license declared — ask the author before reusing code.
- 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 Zulut30/claude-mode
command-deck
Zulut30/claude-mode
Commands pane: the main Claude Code slash commands, each with a short note on why to use it and a ▶ button to run it in one click
context-inspector
Zulut30/claude-mode
Context pane: what fills the context window, which MCP servers, skills and memory files use it, and what you can free up
git-branches
Zulut30/claude-mode
GitLens-style Branches pane: local and remote branches, ahead/behind, working-tree changes, GitHub pull requests and recent commits
mod-switch
Zulut30/claude-mode
The Mods pane: switches for your other mods — Next suggestions, the command safety net, the band's columns and where the roadmap shows; each mod is switched by its own command
next-steps
Zulut30/claude-mode
After Claude replies, 2–3 likely next prompts above the input: 1–3 or a click drafts one, 0 hides them
roadmap
Zulut30/claude-mode
Roadmap pane: task stages top to bottom (context → implementation → checks → tests → push → deploy), marked automatically from Claude's actions
usage-band
Zulut30/claude-mode
Band above the prompt: context fill, memory files, subscription limits (5h and week), model response speed and a prompt-cache timer; hide the columns you don't need with /band