← Back to list

safe-file-operations
by adrianschmidt
The place where I put config files for stuff like git and Sublime
⭐ 0🍴 0📅 Jan 22, 2026
SKILL.md
name: safe-file-operations description: "Guidelines for safely executing destructive file operations (mv, rm, cp). Use when performing file moves, deletions, or overwrites to prevent accidental data loss. Provides verification steps and best practices for batch operations."
Safe File Operations
CRITICAL: Before running any potentially destructive commands (mv, rm, cp with overwrite, etc.), ALWAYS verify the environment first:
- Check working directory: Run
pwdto confirm you're in the expected location - Verify file existence: Use
ls -la <file>to check files exist and are what you expect - Check file types: Verify if files are regular files or symlinks before operations
- Test on one file first: For batch operations, test the command on a single file before looping
- Verify after operations: Check the result with
ls -lato confirm success
Example safe workflow:
# DON'T DO THIS:
mv CLAUDE.md AGENTS.md # Blind execution
# DO THIS INSTEAD:
pwd # Verify location
ls -la CLAUDE.md # Confirm file exists
mv CLAUDE.md AGENTS.md # Execute
ls -la AGENTS.md # Verify success
For batch operations:
# Test on ONE file first
cd /path/to/first/dir && pwd && ls -la CLAUDE.md && mv CLAUDE.md AGENTS.md && ls -la AGENTS.md
# Only after confirming success, proceed with batch
for dir in ...; do ...; done
The user is trusting you with their files. Be careful!
Score
Total Score
50/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon