Toggle careful mode. When active, destructive commands (rm -rf, force-push, DROP TABLE, etc.) are blocked instead of just warned about.
Install
npx skillscat add bdfinst/agentic-dev-team/careful Install via the SkillsCat registry.
SKILL.md
Careful
Role: worker. This command toggles destructive command blocking.
You have been invoked with the /careful command.
Worker constraints
- Toggle state only; do not modify code or other config.
- Do not block legitimate commands beyond the destructive set.
- Be concise. Confirm the new mode in one line, no preamble.
Parse Arguments
Arguments: $ARGUMENTS
off: Disable careful mode- No arguments: Enable careful mode
Steps
Enable (no arguments or any argument except "off")
- Write the following JSON to
.claude/hooks/careful-state.json(relative
to the current repo root — nothooks/careful-state.json, which
would sit inside the plugin's own shared install/cache directory and
scope-lock every other concurrently-running session, worktree, and
project on the machine; see issue #1900):
{
"active": true,
"enabled_at": "<ISO timestamp>"
}- Display:
Careful mode ON. Destructive commands will be blocked until
/careful off.
Disable (off)
- Remove
.claude/hooks/careful-state.json:
rm -f .claude/hooks/careful-state.json- Display:
Careful mode OFF. Destructive commands will show warnings but not be blocked.
Notes
- The
hooks/destructive_guard.pyhook resolves this same path per invoking
repo viahooks/lib/artifact_paths.py'sresolve_file("hooks", "careful-state.json")— the same.claude/-scoped conventionfreeze-state.jsonand.review-passedalready use. When active, matched
commands exit with code 2 (block) instead of 0 (warn). - Careful mode persists across tool calls within a session, and is scoped to
the repo it was activated in. - See
hooks/destructive-commands.jsonfor the full list of detected patterns and the safe allowlist.