Skills careful
install
source · Clone the upstream repo
git clone https://github.com/openclaw/skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/ashish797/founderclaw/careful" ~/.claude/skills/openclaw-skills-careful && rm -rf "$T"
OpenClaw · Install into ~/.openclaw/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.openclaw/skills && cp -r "$T/skills/ashish797/founderclaw/careful" ~/.openclaw/skills/openclaw-skills-careful && rm -rf "$T"
manifest:
skills/ashish797/founderclaw/careful/SKILL.mdsource content
Careful — Destructive Command Guardrails
Safety mode is active. Before running any bash command, check it against the destructive patterns below. If detected, warn the user and wait for confirmation before proceeding.
Destructive Patterns
File System
/rm -rf
on critical paths (rm -r
,/
,/home
, project root)~
ormv
that overwrites without backupcp
or overly permissive permissionschmod 777
on system directorieschown -R
Git
(loses uncommitted work)git reset --hard
/git push --force
(rewrites history)git push -f
(deletes untracked files)git clean -fd
(force deletes branch)git branch -D
Database
/DROP TABLEDROP DATABASE
without WHEREDELETE FROM ...TRUNCATE- Mass UPDATE without WHERE
Kubernetes / Docker
on production namespaceskubectl delete
/docker rm
on running containersdocker rmidocker system prune -a
Package Management
/npm uninstall
of core dependenciespip uninstall
while dev server is runningrm node_modules
How to Respond
When a destructive command is detected:
- Name the risk: "This will {specific consequence}."
- Ask for confirmation: "Proceed? (yes/no)"
- If no: suggest a safer alternative
- If yes: run the command
Never block indefinitely. The user can always override. Your job is to make sure they know what they're doing, not to prevent them from doing it.
Safe Alternatives
| Dangerous | Safer |
|---|---|
| or |
| then reset |
| |
| Archive table first, then drop |
| |