Sign in
Explore
Skills · SkillEveryday codingTesting & SecurityGuardrails & permissionsReviewed

careful

Warns before destructive commands such as rm -rf, DROP TABLE, force-push and git reset --hard. The user can override each warning.

Kind
Skill
Works with
Claude Code
Source
garrytan/gstack @ 01593aa67c94
Path
careful/SKILL.md
Jobs
Guardrails
Topics
Guardrails & permissions

Credit

Made by
garrytan
Original
github.com/garrytan/gstack/blob/01593aa67c94780528e8f5121e473…
License
MIT

Listed by Skill Manifest; not made by us.

InstallCopy it from the source repository, or sign in and let the assistant adapt it for your project.
Install factsScanned 3 Nov 2026
Adds
  • .claude/skills/careful/ (the skill folder)
  • 2 other files in the folder: bin/check-careful.sh, bin/hook-extract.sh
Runs scripts
Yes
  • bin/check-careful.sh
  • bin/hook-extract.sh
  • allowed-tools includes Bash
  • shell block in the text
Uses the network
Yes
  • curl / wget (bin/check-careful.sh)
  • git clone / pull / push (bin/check-careful.sh)
Needs secrets
None found
Reads environment variables
  • BASH_SOURCE
  • INPUT
  • EXTRACT_RC
  • CMD
  • IFS
  • VAR
Reads outside the project
  • $HOME/.claude/skills/gstack/careful/bin/check-careful.sh (SKILL.md)
  • ~/.gstack/analytics (SKILL.md)
  • ~/.gstack/analytics/skill-usage.jsonl (SKILL.md)
  • /var/data (SKILL.md)
  • and 4 more
Calls other skills
  • /freeze
  • /guard
  • /unfreeze
  • /investigate
  • /analytics
Value without its scripts
High
  • The main file never tells the agent to run a bundled script, so the text works without them.
  • bin/check-careful.sh: check-careful.sh — PreToolUse hook for /careful skill
  • bin/hook-extract.sh: hook-extract.sh — SHARED JSON helpers for gstack PreToolUse hooks.
Source revision
01593aa67c94
Licence
MIT
Last activity
27 Nov 2026
Source changed after the scan
Yes
  • Last push 27 Nov 2026, scanned 3 Nov 2026; read it again before you rely on this scan
Review
Reviewed

Found by a static scan of the stored text; nothing is run. “None found” is not a guarantee, so read what you install before you run it.

<!-- AUTO-GENERATED from SKILL.md.tmpl — do not edit directly -->
<!-- Regenerate: bun run gen:skill-docs -->


## When to invoke this skill

Warns before rm -rf, DROP TABLE,
force-push, git reset --hard, kubectl delete, and similar destructive operations.
User can override each warning. Use when touching prod, debugging live systems,
or working in a shared environment. Use when asked to "be careful", "safety mode",
"prod mode", or "careful mode".

# /careful — Destructive Command Guardrails

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.

```bash
mkdir -p ~/.gstack/analytics
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")'"}'  >> ~/.gstack/analytics/skill-usage.jsonl 2>/dev/null || true
```

## What's protected

| Pattern | Example | Risk |
|---------|---------|------|
| `rm -rf` / `rm -r` / `rm --recursive` | `rm -rf /var/data` | Recursive delete |
| `DROP TABLE` / `DROP DATABASE` | `DROP TABLE users;` | Data loss |
…