一键导入
garbage-collect
Manage files in /garbage folder for deletion
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Manage files in /garbage folder for deletion
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | garbage-collect |
| description | Manage files in /garbage folder for deletion |
Created: 2026-02-09-00-00 Last Updated: 2026-02-09-00-00
When you lack permissions to delete files directly, move them to /garbage folder. This command helps manage that folder.
When you want to delete a file but can't:
# Create garbage folder if it doesn't exist
mkdir -p garbage
# Move file to garbage
mv path/to/file.ext garbage/
# Or move entire directory
mv path/to/directory garbage/
Important: All files should be preserved in git history before moving to garbage.
Before moving files to garbage:
# Check if file is in git history
git log -- path/to/file.ext
# If not in git history, commit first
git add path/to/file.ext
git commit -m "Archive: [file.ext] before deletion"
# Then move to garbage
mv path/to/file.ext garbage/
# List files in garbage
ls -lh garbage/
# Show disk space used
du -sh garbage/
Ensure garbage folder is ignored:
# Add to .gitignore if not already there
grep -q "^garbage/$" .gitignore || echo "garbage/" >> .gitignore
The user will periodically run:
# Review garbage contents
ls -la garbage/
# Permanently delete garbage contents
rm -rf garbage/*
# Or delete entire garbage folder
rm -rf garbage/
Before moving anything to garbage:
git grep "filename"# 1. Verify file is in git
git log -- old-component.tsx
# 2. Search for references
git grep "old-component"
# 3. If no references and in git, move to garbage
mkdir -p garbage
mv src/components/old-component.tsx garbage/
# 4. Commit the deletion
git add -A
git commit -m "Remove old-component.tsx (moved to garbage)"
When moving many files:
# Create timestamped garbage subdirectory
GARBAGE_DATE=$(date +%Y%m%d-%H%M)
mkdir -p "garbage/${GARBAGE_DATE}"
# Move files with context
mv path/to/old-files/* "garbage/${GARBAGE_DATE}/"
# Create manifest
cat > "garbage/${GARBAGE_DATE}/MANIFEST.md" <<EOF
# Garbage Collection
**Date:** $(date +"%Y-%m-%d-%H-%M")
**Reason:** [Why these files were removed]
## Files Removed
$(ls -1 "garbage/${GARBAGE_DATE}/")
## Git References
These files are preserved in git history before this commit:
$(git log -1 --oneline)
EOF
This helps user understand what's in garbage when they review it.
Process autonomous task queue from do-work/ folder
Enter plan mode for complex tasks (pour energy into the plan for 1-shot implementation)
Initiate autonomous PR review process with Codex agent
Run comprehensive repo assessment with Codex (every 3 PRs)
Comprehensive security audit covering 10 threat categories
Install all automation for a new repo (git hooks + GitHub Actions)