Skip to content
Back to skills

Careful

BSecurity

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.

  • 11 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 7, 2026
ai-agentsbashdockergitdatabase

Security analysis

B85/100
  • highPerforms destructive filesystem operations

Pro shows the line behind each finding and how to fix it

Scanned November 7, 2026

npx -y skills add brain-bootstrap/claude-code-brain-bootstrap --skill careful --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Careful?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Careful
[![Security: B — Skills Directory](https://www.skillsdirectory.com/api/skills/brain-bootstrap-careful/badge)](https://www.skillsdirectory.com/skills/brain-bootstrap-careful)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: careful
description: 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.
disable-model-invocation: true
user-invocable: true
hooks:
  PreToolUse:
    - matcher: "Bash"
      hooks:
        - type: command
          command: |
            INPUT=$(cat)
            CMD=$(echo "$INPUT" | jq -r '.tool_input.command // empty')
            if echo "$CMD" | grep -qiE 'rm\s+-rf\s+/|DROP\s+(TABLE|DATABASE)|git\s+push\s+--force|git\s+push\s+-f|kubectl\s+delete\s+namespace|docker\s+system\s+prune|npm\s+publish|pypi\s+upload'; then
              echo "🛑 BLOCKED by /careful: '$CMD' matches a dangerous command pattern"
              exit 2
            fi
---

# /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).

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.