skills/careful/SKILL.md
SAFETY MODE: Invoke with /careful when working with production systems, sensitive data, or when you want extra protection against destructive commands. Blocks rm -rf, DROP TABLE, git push --force, kubectl delete, and other dangerous operations. Use when debugging prod or working with critical systems.
npx skillsauth add globallayer/claude-code-skills carefulInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Activates safety guards that block potentially destructive commands. Use when working with production systems or sensitive data.
Invoke /careful when:
When activated, this skill instructs Claude to:
| Pattern | Risk | Alternative |
|---------|------|-------------|
| rm -rf | Recursive delete, no confirmation | rm -ri (interactive) |
| rm -r / | Delete entire filesystem | NEVER do this |
| rm -rf * | Delete all in directory | ls first, then specific files |
| rm -rf . | Delete current directory | Be specific about what to delete |
| > file | Truncate file to zero | Backup first: cp file file.bak |
| Pattern | Risk | Alternative |
|---------|------|-------------|
| git push --force | Overwrites remote history | git push --force-with-lease |
| git push -f | Same as above | git push --force-with-lease |
| git reset --hard | Discards all local changes | git stash first |
| git clean -fd | Deletes untracked files | git clean -fdn (dry run) |
| git checkout . | Discards all changes | git stash first |
| git branch -D | Force delete branch | git branch -d (safe delete) |
| Pattern | Risk | Alternative |
|---------|------|-------------|
| DROP TABLE | Deletes table permanently | Backup first, use transactions |
| DROP DATABASE | Deletes entire database | NEVER in production |
| TRUNCATE | Deletes all rows instantly | Use DELETE with WHERE |
| DELETE FROM x (no WHERE) | Deletes all rows | Add WHERE clause |
| UPDATE x SET (no WHERE) | Updates all rows | Add WHERE clause |
| Pattern | Risk | Alternative |
|---------|------|-------------|
| kubectl delete | Removes resources | kubectl delete --dry-run first |
| kubectl delete ns | Deletes namespace + all resources | NEVER in production |
| docker system prune -a | Removes all unused data | docker system prune (less aggressive) |
| docker rm -f $(docker ps -aq) | Force removes all containers | Stop gracefully first |
| Pattern | Risk | Alternative |
|---------|------|-------------|
| terraform destroy | Destroys infrastructure | terraform plan -destroy first |
| aws s3 rm --recursive | Deletes S3 bucket contents | Enable versioning first |
| heroku apps:destroy | Destroys entire app | Export data first |
When /careful is active:
User: "Clean up the temp files"
Claude (without /careful):
> rm -rf /tmp/myapp/*
Done.
Claude (with /careful):
BLOCKED: rm -rf detected
This command would recursively delete all files in /tmp/myapp/
without confirmation.
Safer alternatives:
1. List first: ls -la /tmp/myapp/
2. Interactive: rm -ri /tmp/myapp/*
3. Specific files: rm /tmp/myapp/*.tmp
Do you want me to proceed with one of these alternatives,
or confirm the original command?
When this skill is active, Claude MUST:
This skill remains active for the entire session after invocation. To deactivate, start a new session or explicitly say "disable careful mode".
Works well with:
/deploy-railway - Extra safety during deployments/database-migrations - Protect against migration mistakes/commit - Prevent force-push accidentsIf you absolutely must run a blocked command:
To customize blocked patterns, create config.json in this skill directory:
{
"additional_blocks": [
"my-dangerous-script.sh",
"npm run nuke"
],
"allow_patterns": [
"rm -rf node_modules",
"rm -rf dist"
],
"confirmation_required": true,
"log_blocked_commands": true
}
rm -rf can destroy hours of workdevelopment
Analyze cryptographic code to detect operations that leak secret data through execution timing variations.
tools
Automate Confluence page creation, content search, space management, labels, and hierarchy navigation via Rube MCP (Composio). Always search tools first for current schemas.
development
Interactive installer for Everything Claude Code — guides users through selecting and installing skills and rules to user-level or project-level directories, verifies paths, and optionally optimizes installed files.
testing
Validates Conductor project artifacts for completeness, consistency, and correctness. Use after setup, when diagnosing issues, or before implementation to verify project context.