Set up a PreToolUse hook in .claude/settings.json that blocks dangerous commands — rm -rf, force push, database drops, and others — before they execute. Teaches the pattern of safety hooks for any Claude Code project. Trigger words: safety, guard, block dangerous, protect, prevent destructive, safe mode, dangerous commands, risky operations.
$npx -y skills add jkheadley/instar --skill command-guardInstalls into the current project.
Run `npx skills use "https://github.com/jkheadley/instar" --skill "jkheadley/instar/command-guard"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/jkheadley/instar" that are relevant to the current task. Run `npx skills add "https://github.com/jkheadley/instar"` and select the relevant skills, then follow their instructions.