← 返回
内容创作

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 "整理附件".
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 "整理附件".
sparkingskin-tech
内容创作 clawhub v1.0.0 1 版本 99820.9 Key: 无需
★ 0
Stars
📥 1,115
下载
💾 82
安装
1
版本
#latest

概述

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

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 02:48 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

content-creation

YouTube

byungkyu
使用托管OAuth集成YouTube Data API,支持搜索视频、管理播放列表、获取频道数据及评论互动,适用于用户需要时使用此技能。
★ 142 📥 41,063
content-creation

Baidu Wenku AIPPT

ide-rea
使用百度文库 AI 智能生成 PPT,自动根据内容选择模板。
★ 66 📥 46,191
content-creation

AdMapix

fly0pants
广告情报与应用数据分析助手,支持搜索广告素材、分析应用排名、下载量、收入及市场洞察,用于广告素材和竞品分析。
★ 295 📥 136,480