obsidian-cleaner

Automatically 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 "整理附件".

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "obsidian-cleaner" with this command: npx skills add sparkingskin-tech/obsidian-cleaner

Obsidian Attachment Cleaner

A skill that automatically finds and moves loose images/attachments from your Obsidian vault root to the designated Attachments folder.

When to Use

Trigger when user says:

  • "Clean Obsidian"
  • "Clean attachments"
  • "整理附件"
  • "Move images to attachments"
  • "Obsidian 清理"

Features

  • Auto-discovery: Finds loose files (.png, .jpg, .gif, .jpeg, .webp, .pdf, .docx)
  • Safe move: Moves files to Attachments/ folder (creates if not exists)
  • Dry run: Preview what will be moved before executing
  • Detailed report: Shows exactly what was moved and where

Usage

Quick Clean (Auto-detect)

python obsidian_cleaner.py

Dry Run (Preview Only)

python obsidian_cleaner.py --dry-run

Specify Vault Path

python obsidian_cleaner.py --vault /path/to/Obsidian/Vault

Custom Attachments Folder

python obsidian_cleaner.py --attachments "My Attachments"

How It Works

  1. Scans Obsidian vault root for loose attachment files
  2. Checks if Attachments folder exists (creates if missing)
  3. Moves each file to the Attachments folder
  4. Reports what was moved and any errors

Configuration

Default vault path: ~/Documents/Obsidian Vault

Default attachments folder: Attachments/

Example Output

🔍 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!

Integration

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

Notes

  • Only moves files, doesn't delete anything
  • Won't overwrite existing files (skips with warning)
  • Case-insensitive file extension matching
  • Safe to run multiple times

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Dex

Manage your Dex personal CRM — search, create, and update contacts, log interaction notes, set follow-up reminders, organize contacts with tags and groups, a...

Registry SourceRecently Updated
5620ocruzv
General

pumpmarket skill

Predict pump.fun token graduations (YES/NO) on Solana mainnet via PumpMarket parimutuel betting markets.

Registry SourceRecently Updated
General

maxhub-weibo

微博/Weibo平台微博热搜、话题、用户与博文数据采集。当用户提到微博、weibo、热搜、超话、话题等相关需求时激活此Skill。

Registry SourceRecently Updated
General

Context Resume

Reconstructs your full working context when you return to a task after an interruption — meeting, lunch, sleep, weekend, or three-week vacation. Not session...

Registry SourceRecently Updated