From mk
Safety guardrails that warn before destructive commands like rm -rf, DROP TABLE, force-push, git reset --hard, kubectl delete. Active per session, user can override.
How this skill is triggered — by the user, by Claude, or both
Slash command
/mk:carefulWhen to use
Use when working in prod or with destructive commands — warns before rm -rf, DROP TABLE, force-push. NOT for scoping edits to a directory (see mk:freeze).
This skill is limited to the following tools:
Bashbash ${CLAUDE_SKILL_DIR}/bin/check-careful.shThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Safety mode is now **active**. Every bash command will be checked for destructive
Safety mode is now active. Every bash command will be checked for destructive patterns before running. If a destructive command is detected, you'll be warned and can choose to proceed or cancel.
mkdir -p .claude/memory
echo '{"skill":"careful","ts":"'$(date -u +%Y-%m-%dT%H:%M:%SZ)'","repo":"'$(basename "$(git rev-parse --show-toplevel 2>/dev/null)" 2>/dev/null || echo "unknown")'"}' >> .claude/memory/skill-usage.jsonl 2>/dev/null || true
See references/destructive-patterns.md for full pattern list.
The hook reads the command from the tool input JSON, checks it against the
patterns above, and returns permissionDecision: "ask" with a warning message
if a match is found. You can always override the warning and proceed.
To deactivate, end the conversation or start a new one. Hooks are session-scoped.
mk:careful is invokedrm or drop in file content, not commands → Check command context, not just string presencenpx claudepluginhub ngocsangyem/meowkit --plugin mkWarns before destructive commands like rm -rf, DROP TABLE, force-push. Activates when user requests careful mode or safety mode. Useful for prod or shared environments.
Screens all bash commands for destructive patterns (rm -rf, git push --force, DROP TABLE, etc.) and blocks them with an explanation. Useful in sensitive production environments.
Prevents destructive operations via three modes: cautious (warns on dangerous commands like rm -rf, git push --force, SQL drops), lockdown (restricts edits to one directory), and clear (removes restrictions). Uses PreToolUse hooks for Bash, Edit, and Write.