Install
openclaw skills install obsidian-cleanerAutomatically clean up loose images and attachments in Obsidian vault root, moving them to the Attachments folder. Trigger when user says "clean obsidian", "clean attachments", or "整理附件".
openclaw skills install obsidian-cleanerA skill that automatically finds and moves loose images/attachments from your Obsidian vault root to the designated Attachments folder.
Trigger when user says:
.png, .jpg, .gif, .jpeg, .webp, .pdf, .docx)Attachments/ folder (creates if not exists)python obsidian_cleaner.py
python obsidian_cleaner.py --dry-run
python obsidian_cleaner.py --vault /path/to/Obsidian/Vault
python obsidian_cleaner.py --attachments "My Attachments"
Default vault path: ~/Documents/Obsidian Vault
Default attachments folder: Attachments/
🔍 Scanning /Users/skin/Documents/Obsidian Vault for loose attachments...
📁 Found 3 files:
├── screenshot_20240101.png
├── photo.jpg
└── diagram.gif
📦 Moving to Attachments/...
✅ Success!
├── screenshot_20240101.png → Attachments/screenshot_20240101.png
├── photo.jpg → Attachments/photo.jpg
└── diagram.gif → Attachments/diagram.gif
🎉 3 files moved. Vault is now clean!
Add to your HEARTBEAT.md or daily routine:
## Daily Obsidian Cleanup (Optional)
If you notice loose images in your vault root, run:
- "Clean Obsidian" - Automatically organize attachments