用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tomevault-io/skills-registry --skill careful-delete命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | careful-delete |
| description | | Use when this capability is needed. |
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) |
Database operations:
DROP TABLE, DROP DATABASEDELETE FROM without WHERE (or with broad WHERE)TRUNCATEGit operations:
git push --force (especially to main/master)git branch -D (force delete)git reset --hardgit clean -fdCloud/Infrastructure:
Keywords in user request:
<phase_blast_radius> If pre-mortem skill installed: Invoke with focus on "what could go wrong."
If not installed:
## Blast Radius Assessment
**What's being deleted:**
- [ ] Specific items: [list them]
- [ ] Estimated count: [number of files/rows/resources]
- [ ] Size/scope: [GB, row count, etc.]
**Affected systems:**
- [ ] Production data at risk?
- [ ] Other services depend on this?
- [ ] Users will be affected?
- [ ] Backups exist?
**Recovery options:**
- [ ] Can be restored from backup: [Yes/No, how long]
- [ ] Can be recreated: [Yes/No, effort required]
- [ ] Truly irreversible: [Yes/No]
**Risk level:** [Low / Medium / High / STOP]
GATE: Do not proceed if:
If high risk: Suggest safer alternatives first. </phase_blast_radius>
<phase_confirm> If you-sure skill installed: Invoke it now.
If not installed:
Present the confirmation checklist:
## Confirmation Required
**You are about to:**
[Exact command or operation]
**This will delete:**
- [Item 1]
- [Item 2]
- [Item N]
**This action is:** [Reversible / Irreversible]
**Backup status:** [Verified / Not verified / No backup]
---
⚠️ Type the following to confirm:
"I confirm deletion of [specific thing] with [consequence]"
Example: "I confirm deletion of users table with loss of 50k records"
GATE: Do not proceed without:
If user tries to skip: Repeat the requirement. This gate exists for a reason. </phase_confirm>
<phase_execute> After confirmation received:
## Execution Log
**Timestamp:** [ISO 8601]
**Command:** [exact command run]
**Output:**
[captured output]
**Status:** [Success / Failed / Partial]
</phase_execute>
<phase_document> If retrospective skill installed: Invoke for significant deletions.
If not installed, capture minimally:
## Deletion Record
**Date:** [date]
**What was deleted:** [brief description]
**Why:** [reason]
**Deleted by:** [who requested]
**Recovery possible:** [Yes/No]
For routine deletions (temp files, test data): Skip this phase. For significant deletions (production data, important branches): Always document. </phase_document>
## Careful Delete: [Brief description]
### Blast Radius
- Deleting: [what]
- Count: [how many]
- Reversible: [Yes/No]
- Backup: [status]
### Confirmation
User confirmed: "[their confirmation phrase]"
### Execution
- Command: `[command]`
- Timestamp: [time]
- Result: [success/failure]
### Record
[Brief note if significant deletion]
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: ~400MB
Affected systems:
- Production data - but confirmed migrated to Redis
- Other services depend on this - checked, none reference it
- Users affected - no, sessions now in Redis
- Backups exist - daily backup from 6 hours ago
Recovery: Can restore from backup within 30 minutes if needed
Risk level: Medium (production table, but verified unused)
Phase 2 - Confirm:
You are about to run:
DROP TABLE user_sessions;This will permanently delete:
- 2.3 million session records
- 400MB of data
This 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:
- Table
user_sessionsdropped- 2.3M records removed
- Reason: Migrated to Redis, table no longer used
- Backup available: daily_backup_20240115
Converted and distributed by TomeVault — claim your Tome and manage your conversions.