← Back to list

julien-troubleshooting-onedrive-reserved
by theflysurfer
Personal marketplace for developing and sharing custom Claude skills
⭐ 1🍴 0📅 Jan 21, 2026
SKILL.md
name: julien-troubleshooting-onedrive-reserved description: This skill should be used when the user reports OneDrive sync errors caused by Windows reserved filenames (NUL, CON, PRN, AUX, COM1-9, LPT1-9). It efficiently locates and removes these undeletable files using Git Bash. tags: [windows, onedrive, troubleshooting, files] version: 3.0.0
Delete Windows Reserved Names
Workflow
Step 1: Search for Reserved Files
Use fd for ultra-fast search (5-10x faster than find):
# Search reserved names (nul, null, con, prn, aux)
fd -t f -i "^(nul|null|con|prn|aux)$" "/c/Users/$USER/OneDrive/Coding/_Projets de code"
# Search short names (0-1 character)
fd -t f "^.$" "/c/Users/$USER/OneDrive/Coding/_Projets de code"
Alternative: Use bundled script scripts/find_reserved_names.sh for automated search.
Step 2: Display Results
Report findings to user:
- Total count
- Full paths
- Comparison with OneDrive's reported count
Step 3: Delete Files
Execute deletion with fd + xargs + rm -f:
# Delete reserved names
fd -t f -i "^(nul|null|con|prn|aux)$" "/c/Users/$USER/OneDrive/Coding/_Projets de code" -0 | xargs -0 -I{} rm -f '{}'
# Delete short names (0-1 char)
fd -t f "^.$" "/c/Users/$USER/OneDrive/Coding/_Projets de code" -0 | xargs -0 -I{} rm -f '{}'
Or delete individual files:
rm -f "/c/Users/$USER/path/to/file"
Step 4: Restart OneDrive
Execute OneDrive restart command:
powershell.exe -Command "Stop-Process -Name OneDrive -Force -ErrorAction SilentlyContinue; Start-Sleep -Seconds 2; Start-Process 'C:\Program Files\Microsoft OneDrive\OneDrive.exe'"
Step 5: Confirm Completion
Report to user:
- Number of files deleted
- OneDrive restart status
- Expected wait time (2-5 minutes)
Key Requirements
- Git Bash installed (https://git-scm.com/download/win)
- Use forward slashes
/in all paths - Quote paths containing spaces
- Use
$USERvariable for dynamic username
Bundled Resources
scripts/find_reserved_names.sh- Automated search script with targeted/full modesreferences/technical-notes.md- Technical explanation of why Git Bash worksreferences/troubleshooting.md- Common issues and solutions../../README.md- Complete user documentation../../delete-nul-gitbash.sh- Interactive deletion script (alternative)
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