careful

Activate safety guards for the session. Use /careful before critical operations — blocks rm -rf, DROP TABLE, git push --force, kubectl delete namespace, docker system prune via PreToolUse hook.

SKILL.md

GitHub

/careful — Session Safety Guards

When this skill is active, the following commands are blocked via a PreToolUse hook:

Pattern Reason
rm -rf / Prevents filesystem destruction
DROP TABLE / DROP DATABASE Prevents data loss
git push --force / git push -f Prevents history rewriting
kubectl delete namespace Prevents cluster destruction
docker system prune Prevents image/volume loss
npm publish / pypi upload Prevents accidental publication

How It Works

The PreToolUse hook intercepts every Bash command and checks it against blocked patterns. If a match is found, the command is blocked (exit code 2) and a warning is injected.

When to Use

Activate before:

  • Working on production infrastructure
  • Running migration scripts
  • Handling sensitive data operations
  • Any task where a typo could be catastrophic

Deactivate by starting a new session (hooks are session-scoped).