carefullisted
Install: claude install-skill manastalukdar/ai-devstudio
# Careful
I'll catch destructive commands before they run and give you a moment to confirm — or choose a safer path. Inspired by gstack's careful skill.
## Token Optimization
**Expected range**: 100–300 tokens per intercept, 20 tokens (no destructive pattern detected)
**Patterns used**: Grep-based pattern matching, early exit (no match), progressive disclosure (warning → alternatives)
**Early exit**: If no destructive pattern is found in the proposed command, exit immediately without comment.
## When to Use
Invoke before running a command you're unsure about, or configure as a pre-execution hook:
```bash
/careful rm -rf dist/
/careful git push --force
/careful "DROP TABLE users;"
```
Or paste a multi-line script and I'll scan the whole thing.
## Step 1 — Scan for Destructive Patterns
Match the input against known high-risk patterns:
```bash
# Filesystem destruction
rm -rf | rmdir | shred | find.*-delete | find.*-exec rm
# Git irreversible operations
git push --force | git push -f | git reset --hard | git clean -fd | git rebase.*--force
git branch -D | git tag -d | git reflog expire
# Database
DROP TABLE | DROP DATABASE | TRUNCATE | DELETE FROM.*WHERE 1=1 | DELETE FROM.*no WHERE
# Process/infrastructure
kill -9 | pkill -9 | killall
docker rm -f | docker system prune | kubectl delete.*--force
terraform destroy | ansible.*state=absent
# Package/dependency
npm run clean | pip uninstall -y | pip install --force-reinstall
rm.*node_modules | rm.*__pycache__ | rm.*\.v