elliotjlt/claude-skill-potions/careful-delete
Claude Code and agent skill by elliotjlt/claude-skill-potions
- community
Checking that the SKILL.md file is still in the repository.
Before any destructive or irreversible operation (rm -rf, DROP TABLE, DELETE, force push, branch deletion, truncate), orchestrate a safety cycle: assess blast radius → confirm explicitly → document what happened. Chains pre-mortem and you-sure with built-in documentation. No dangerous operation executes without ceremony.
Install
npx vskill@latest install elliotjlt/claude-skill-potions/careful-deleteSKILL.md
Careful Delete
<purpose> An elixir for dangerous operations. Destructive commands are irreversible - there's no undo for rm -rf, no rollback for a force push to main. This chains risk assessment → explicit confirmation → documentation, adding just enough friction to prevent "oops" moments that ruin your day. </purpose>
Prerequisites
This elixir works best with these skills installed:
| Skill | Purpose | If Missing | |
|---|---|---|---|
| pre-mortem | Blast radius assessment | Falls back to built-in checklist | |
| you-sure | Explicit confirmation gate | Falls back to built-in confirmation | |
| retrospective | Document what happened | Skipped (optional) |
When To Activate
<triggers> File operations:
rm -rfrm -ron directories- Deleting multiple files
- Emptying directories
Database operations:
DROP TABLE,DROP DATABASEDELETE FROMwithout WHERE (or with broad WHERE)TRUNCATE- Schema migrations that drop columns/tables
Git operations:
git push --force(especially to main/master)git branch -D(force delete)git reset --hardgit clean -fd- Deleting remote branches
Cloud/Infrastructure:
- Deleting cloud resources
- Terminating instances
- Removing DNS records
- Revoking credentials
Keywords in user request:
- "delete all", "remove everything", "wipe", "nuke"
- "force push", "hard reset"
- "drop the table", "truncate"
</triggers>
Instructions
Phase 1: Assess Blast Radius
<phase_blast_radius> If pre-mortem skill installed: Invoke with focus on "what could go wrong."
If not installed:
GATE: Do not proceed if:
- Risk level is "STOP"
- Production data at risk AND no backup verified
- You can't list exactly what will be deleted
- Blast radius is unclear
If high risk: Suggest safer alternatives first. </phase_blast_radius>
Phase 2: Confirm Explicitly
<phase_confirm> If you-sure skill installed: Invoke it now.
If not installed:
Present the confirmation checklist:
GATE: Do not proceed without:
- User typing the exact confirmation phrase
- NOT just "yes" or "confirm" or "do it"
- The confirmation must include WHAT is being deleted
If user tries to skip: Repeat the requirement. This gate exists for a reason. </phase_confirm>
Phase 3: Execute
<phase_execute> After confirmation received:
- Execute the exact command discussed (no modifications)
- Capture the output
- Note the timestamp
[captured output]
</phase_execute>
Phase 4: Document (Brief)
<phase_document> If retrospective skill installed: Invoke for significant deletions.
If not installed, capture minimally:
For routine deletions (temp files, test data): Skip this phase. For significant deletions (production data, important branches): Always document. </phase_document>
Output Format
NEVER
- Execute destructive commands without explicit confirmation
- Accept "yes" or "do it" as confirmation (require specific phrase)
- Proceed when blast radius is unclear
- Skip confirmation because "it's just test data" (verify first)
- Run broader deletion than what was confirmed
- Assume backups exist without verification
ALWAYS
- List exactly what will be deleted before asking for confirmation
- Require confirmation phrase that includes the specific thing being deleted
- Verify backup status for important data
- Capture execution output
- Suggest safer alternatives when risk is high
Example
User: "Delete the old user sessions table, we migrated to Redis"
Phase 1 - Blast Radius:
Blast Radius Assessment:What's being deleted:- Table:user_sessions- Estimated rows: 2.3 million- Size: ~400MBAffected systems:- [x] Production data - but confirmed migrated to Redis- [ ] Other services depend on this - checked, none reference it- [ ] Users affected - no, sessions now in Redis- [x] Backups exist - daily backup from 6 hours agoRecovery: Can restore from backup within 30 minutes if neededRisk level: Medium (production table, but verified unused)
Phase 2 - Confirm:
You are about to run:```sqlDROP TABLE user_sessions;```This will permanently delete:- 2.3 million session records- 400MB of dataThis action is: Irreversible (but restorable from backup)⚠️ Type to confirm:"I confirm deletion of user_sessions table with 2.3M records"
User: "I confirm deletion of user_sessions table with 2.3M records"
Phase 3 - Execute:
Execution Log:- Timestamp: 2024-01-15T14:32:00Z- Command:DROP TABLE user_sessions;- Output:Query OK, 0 rows affected (0.45 sec)- Status: Success
Phase 4 - Document:
Deletion Record:- Tableuser_sessionsdropped- 2.3M records removed- Reason: Migrated to Redis, table no longer used- Backup available: daily_backup_20240115
Security
- Security scanPassed, 98 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/careful-delete/SKILL.md
Popularity
- Repository stars
- 51
- Repository forks
- 2
- 7-day trend score
- 20
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 27 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/elliotjlt/claude-skill-potions/careful-delete)