recycle-bin
Recover accidentally deleted files from the recycle bin.
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Menu
Recover accidentally deleted files from the recycle bin.
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Basé sur la classification professionnelle SOC
Bootstrap an implementation plan and coordinate a parallel team of named agents using native Agent Teams.
Semantic documentation architect. Analyzes PROSE CONTENT to organize by concept affinity, eliminate contradictions in explanations, and consolidate scattered ideas.
Use for searching code, finding code patterns, refactoring, and analyzing code structure. NEVER use Grep for Python code.
| name | recycle-bin |
| description | Recover accidentally deleted files from the recycle bin. |
Recover accidentally deleted files from the recycle bin. Use this skill proactively when you detect that a file has been deleted and may need to be recovered.
Use this skill when:
/recycle-bin list # List all recoverable files
/recycle-bin recover <id> # Recover to original location
/recycle-bin recover <id> --to <path> # Recover to different location
/recycle-bin recover <id> --force # Overwrite if destination exists
/recycle-bin purge <id> # Permanently delete from trash
/recycle-bin status # Check if hook is installed
To see what files can be recovered:
python3 .claude/scripts/manage-recycle-bin.py list
This shows:
To recover a file to its original location:
python3 .claude/scripts/manage-recycle-bin.py recover <recovery_id>
To recover to a different location:
python3 .claude/scripts/manage-recycle-bin.py recover <recovery_id> --to /path/to/new/location
To overwrite an existing file:
python3 .claude/scripts/manage-recycle-bin.py recover <recovery_id> --force
When you notice:
You should:
To verify the recycle bin hook is active:
python3 .claude/scripts/manage-recycle-bin.py status
If not installed, suggest: /recycle-bin install
The hook NEVER allows deletion of:
.trash/ directories - Prevents loss of recoverable filesCLAUDE_PROJECT_DIR - Prevents system damageIf a file cannot be safely moved to trash, deletion is BLOCKED (not allowed).
When installed, the recycle bin hook:
rm, unlink, and trash commands.claude/bonfire/[plan]/.trash/The hook does NOT protect files in (deletions proceed normally):
node_modules/, .git/, __pycache__/dist/, build/, .next/, .nuxt/.venv/, venv/, .tox/, coverage/.claude/bonfire/[plan]/.trash/[recovery_id]-[filename]/content (the file) and metadata.jsonClaude: I notice the config.py file was deleted but is needed for the build.
Let me check if it can be recovered.
> python3 .claude/scripts/manage-recycle-bin.py list
Recoverable Files
============================================
Recovery ID Original Name Deleted At Type Path
abc12345 config.py 2026-01-16T10:30:00 file ...src/config.py
--------------------------------------------
Claude: Found it. Let me recover the config.py file.
> python3 .claude/scripts/manage-recycle-bin.py recover abc12345
FILE RECOVERED
Original: /path/to/src/config.py
Restored: /path/to/src/config.py
Claude: I've recovered src/config.py to its original location.
The build should work now.
The hook requires bashlex for bash command parsing:
pip install bashlex