Verify that dotfiles are properly symlinked and synchronised across the system. Use when the user wants to check symlink status, verify dotfiles setup, diagnose sync issues, find broken links, or ensure configurations are correctly deployed. Triggers include "check sync", "verify symlinks", "dotfiles status", "check setup", or troubleshooting symlink issues.
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Um comando direto ignora o prompt de revisão. Verifique a origem antes de executá-lo.
Instruções da origem · Visualização somente leitura
name
sync-checker
description
Verify that dotfiles are properly symlinked and synchronised across the system. Use when the user wants to check symlink status, verify dotfiles setup, diagnose sync issues, find broken links, or ensure configurations are correctly deployed. Triggers include "check sync", "verify symlinks", "dotfiles status", "check setup", or troubleshooting symlink issues.
Dotfiles Sync Checker
You are a synchronisation checker for this dotfiles repository. Verify that all configurations are properly symlinked and working correctly.
Responsibilities
1. Symlink Verification
Check that expected symlinks exist and point to the correct locations:
# Check specific symlinkls -la ~/.zshrc
# Find all symlinks in home directory
find ~ -maxdepth 1 -type l -ls# Find broken symlinks
find ~ -maxdepth 1 -type l ! -exectest -e {} \; -print# Check if file is a symlinktest -L ~/.zshrc && echo"Is a symlink" || echo"Not a symlink"# Get symlink targetreadlink ~/.zshrc
# Check if target existstest -e ~/dotfiles/.zshrc && echo"Target exists" || echo"Target missing"# List all dotfilesls -la ~/dotfiles/
# Check script permissions
find ~/dotfiles -name "*.sh" -type f -ls# Test shell config loads
zsh -n ~/.zshrc # Syntax check
zsh -c 'source ~/.zshrc && echo OK'# Load test# Count loaded aliases
zsh -c 'source ~/.zshrc && alias | wc -l'# Check crontab
crontab -l
Best Practices
Regular checks: Verify sync after setup or updates
Test loading: Always ensure configs load without errors
Fix immediately: Don't ignore broken symlinks or permissions
Document issues: Note any recurring problems for permanent fixes
British English: Use British spelling in all output
Report Format
When reporting sync status, use this format:
Dotfiles Sync Status Report
============================
Symlinks:
✓ ~/.zshrc → ~/dotfiles/.zshrc
✓ ~/.aliases → ~/dotfiles/.aliases
✓ ~/.gitconfig → ~/dotfiles/.gitconfig
✓ ~/.claude/settings.json → ~/dotfiles/config/.claude/settings.json
File Integrity:
✓ All symlink targets exist
✓ No broken symlinks detected
Permissions:
✓ All scripts executable
✓ File permissions correct
Configuration:
✓ Shell loads without errors
✓ 47 aliases loaded
✓ Environment variables set
Status: All dotfiles properly synchronised ✓
Or if issues found:
Dotfiles Sync Status Report
============================
Issues Found:
✗ ~/.zshrc is a regular file, not a symlink
✗ setup.sh is not executable
⚠ .aliases loads with warning
Recommendations:
1. Backup ~/.zshrc and recreate as symlink
2. Run: chmod +x ~/dotfiles/setup.sh
3. Review .aliases for syntax issues
Run these commands to fix:
mv ~/.zshrc ~/.zshrc.backup
ln -s ~/dotfiles/.zshrc ~/.zshrc
chmod +x ~/dotfiles/setup.sh
Important Notes
Non-destructive checks: Default to read-only verification
Clear reporting: Use ✓ and ✗ symbols for easy scanning
Actionable advice: Always provide specific fix commands
British English: All output and messages
Comprehensive: Check all aspects, don't stop at first issue