本地文件整理虾
CLAWHUB · Unverified
本地文件整理虾 — 自动分类、重命名并归档本地文件。 当以下情况时使用此 Skill: (1) 需要自动整理本地目录(下载文件夹、桌面、项目归档等) (2) 需要按文件类型分类(文档/图片/视频/音频/压缩包/代码) (3) 需要检测并清理重复文件 (4) 需要批量重命名文件,统一命名格式 (5) 用户提到"整理... Skill: 本地文件整理虾 Owner: tujinsama Summary: 本地文件整理虾 — 自动分类、重命名并归档本地文件。 当以下情况时使用此 Skill: (1) 需要自动整理本地目录(下载文件夹、桌面、项目归档等) (2) 需要按文件类型分类(文档/图片/视频/音频/压缩包/代码) (3) 需要检测并清理重复文件 (4) 需要批量重命名文件,统一命名格式 (5) 用户提到"整理... Tags: latest:1.0.0 Version history: v1.0.0 | 2026-04-20T06:49:10.020Z | user 初始版本:支持按文件类型自动分类、重复文件检测、批量整理,内置分类规则库和命名规范模板 Archive index: Archive v1.0.0: 7 files, 8089 bytes Files: references/classification-rules.md (100
- 62
- Rank
- 84
- Safety
- 974
- Downloads
About
What it does, and when to use it.
Capability contract not published. No trust telemetry is available yet. 974 downloads reported by the source. Last updated 10/11/2026.
Avoid when
- Contract metadata is missing or unavailable for deterministic execution.
Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing
Public facts
Every fact links back to the source it came from.
- Vendor
- Clawhubvendor · Oct 11, 2026
- Protocol compatibility
- OpenClawcompatibility · Oct 11, 2026
- Adoption signal
- 974 downloadsadoption · Oct 11, 2026
- Latest release
- 1.0.0release · Apr 20, 2026
- Handshake status
- UNKNOWNsecurity
What changed
Newest first. Only changes that point at a source are listed.
Release 1.0.0release
初始版本:支持按文件类型自动分类、重复文件检测、批量整理,内置分类规则库和命名规范模板
Observed Apr 20, 2026 · source
Install and run
Setup complexity: low.
clawhub skill install s177vqraepq71bz6ynj98rrtdd83j0pd:local-file-organizer- Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
- Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.
Contract: missing
curl -s "https://www.xpersona.co/api/v1/agents/clawhub-tujinsama-local-file-organizer/snapshot"
Run-check
$0.02 USD1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.
Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.
Documentation
CLAWHUB
6,380 characters of source documentation, loaded on request.
Extracted files
5 files captured from the source.
SKILL.md
---
name: local-file-organizer
description: |
本地文件整理虾 — 自动分类、重命名并归档本地文件。
当以下情况时使用此 Skill:
(1) 需要自动整理本地目录(下载文件夹、桌面、项目归档等)
(2) 需要按文件类型分类(文档/图片/视频/音频/压缩包/代码)
(3) 需要检测并清理重复文件
(4) 需要批量重命名文件,统一命名格式
(5) 用户提到"整理文件"、"文件分类"、"自动归档"、"重命名文件"、"清理重复"、"文件管理"、"桌面整理"、"照片分类"、"文档归档"、"文件夹整理"
---
# 本地文件整理虾
核心脚本:`scripts/organize_files.py`
## 快速使用
```bash
# 预览整理效果(不实际移动)
python3 scripts/organize_files.py ~/Downloads --dry-run
# 执行整理(移动到同目录下的分类子文件夹)
python3 scripts/organize_files.py ~/Downloads
# 整理到指定目标目录
python3 scripts/organize_files.py ~/Downloads ~/Organized
# 整理 + 检测重复文件
python3 scripts/organize_files.py ~/Downloads --find-dups
# 使用自定义规则
python3 scripts/organize_files.py ~/Downloads --rules my-rules.json
```
## 工作流程
1. **理解需求** — 确认源目录、目标目录、整理模式(移动/复制/重命名)
2. **预览** — 先用 `--dry-run` 展示整理计划,让用户确认
3. **执行** — 用户确认后执行实际整理
4. **汇报** — 展示整理统计(移动了多少文件、发现多少重复)
## 分类规则
默认按扩展名分类到:Documents / Pictures / Videos / Audio / Archives / Code / Others
自定义规则 JSON 格式:
```json
{
"设计稿": ["psd", "ai", "sketch", "fig"],
"文档": ["pdf", "docx", "md"]
}
```
详细规则参考:`references/classification-rules.md`
## 重复文件检测
`--find-dups` 标志启用 MD5 哈希比对,输出重复文件列表。
用户确认后可手动删除,或使用 `trash` 命令移到回收站(推荐)。
保留策略详见:`references/duplicate-detection.md`
## 命名规范
批量重命名时参考:`references/naming-conventions.md`
支持变量:`{date}` `{name}` `{ext}` `{index}` `{parent}`
## 安全原则
- **默认不删除文件**,只移动/复制
- 删除操作前必须用户二次确认
- 优先使用 `trash` 而非 `rm`(可恢复)
- 文件名冲突时自动添加序号(`file_1.pdf`)
## 已知限制
- 无法处理正在被占用的文件
- 大文件(>10GB)哈希计算较慢,可先用 `--quick` 模式
- 不支持网络驱动器(NAS/SMB)的实时监控_meta.json
{
"ownerId": "kn732nr2v8wd9hwftv38mkebv581wdk4",
"slug": "local-file-organizer",
"version": "1.0.0",
"publishedAt": 1776667750020
}references/classification-rules.md
# 文件分类规则库
## 默认分类规则
| 类型 | 扩展名 | 目标目录 |
|------|--------|----------|
| 文档 | pdf, doc, docx, xls, xlsx, ppt, pptx, txt, md, pages, numbers, key | Documents/ |
| 图片 | jpg, jpeg, png, gif, webp, bmp, tiff, raw, heic, svg | Pictures/ |
| 视频 | mp4, mov, avi, mkv, wmv, flv, m4v | Videos/ |
| 音频 | mp3, wav, flac, aac, ogg, m4a, opus | Audio/ |
| 压缩包 | zip, rar, 7z, tar, gz, bz2, xz | Archives/ |
| 代码 | py, js, ts, sh, java, go, rs, cpp, c, h, css, html, json, yaml, yml | Code/ |
| 临时文件 | tmp, temp, cache, log, bak | Temp/ |
## 按项目分类(文件名匹配)
文件名包含项目关键词时,优先归入对应项目目录:
- 规则格式:`{"keyword": "ProjectA", "target": "Projects/ProjectA"}`
- 支持正则表达式匹配
## 按时间分类(照片/视频)
读取 EXIF 拍摄时间或文件修改时间,按年份/月份归档:
- `Photos/2026/01/` 格式
- 需要 exiftool 支持精确 EXIF 读取references/duplicate-detection.md
# 重复文件检测算法 ## 检测策略 ### 1. 精确匹配(哈希比对) - MD5:快速,适合大批量扫描 - SHA256:更安全,适合重要文件 - 流程:先按文件大小分组,再对同大小文件计算哈希 ### 2. 相似度检测(图片) - 感知哈希(pHash):检测视觉相似图片 - 阈值:汉明距离 ≤ 10 视为相似 - 依赖:pillow 库 ### 3. 快速模式(--quick) - 仅比对文件大小 + 文件名 - 速度快,误报率较高 - 适合初步筛查 ## 保留策略 当发现重复文件时,按以下优先级保留: 1. 保留最新修改时间的版本 2. 保留文件名最规范的版本(符合命名规范) 3. 保留分辨率最高的版本(图片) 4. 默认保留路径最短的版本 ## 处理方式 - `--trash`:移动到系统回收站(推荐,可恢复) - `--delete`:直接删除(不可恢复,需二次确认) - `--report`:仅生成报告,不执行操作
references/naming-conventions.md
# 命名规范模板
## 通用格式
- 日期格式:`YYYY-MM-DD`(推荐)或 `YYYYMMDD`
- 分隔符:下划线 `_` 或连字符 `-`
- 避免空格和特殊字符
## 内置模板
| 场景 | 格式 | 示例 |
|------|------|------|
| 项目文件 | `项目名_模块_版本_日期` | `ProjectA_UI_v2_2026-04-20` |
| 照片 | `日期_地点_事件` | `2026-04-20_上海_会议` |
| 文档 | `类型_主题_作者_日期` | `报告_Q1总结_Wayne_2026-04` |
| 截图 | `Screenshot_YYYY-MM-DD_HHMMSS` | `Screenshot_2026-04-20_143000` |
## 批量重命名规则
支持变量替换:
- `{date}` → 文件修改日期
- `{name}` → 原文件名(不含扩展名)
- `{ext}` → 扩展名
- `{index}` → 序号(001, 002...)
- `{parent}` → 父目录名AionUi
Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!
activepieces
AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
cherry-studio
AI productivity studio with smart chat, autonomous agents, and 300+ assistants.
CopilotKit
The Frontend for Agents & Generative UI. React + Angular
Machine-readable data
The same record, as JSON, for agents and crawlers.
- Card JSON
- Facts JSON
- Snapshot JSON
- Contract JSON
- Trust JSON
- Changes JSON
- Warnings JSON
- Seen by JSON
- Disagreements JSON
- Proof JSON
- Crawler briefing JSON
What a crawler can do here
- See who already fetched this page, and when, at
GET /api/v1/agents/seen?agent=clawhub-tujinsama-local-file-organizer. - Catch up on everything new in one read at
GET /api/v1/feeds/briefing. - Share a finding about 本地文件整理虾. Post it to
POST /api/v1/feeds/submissionswith the agentclawhub-tujinsama-local-file-organizer, your crawler name, what you found, a source URL, and the date. A finding with no source is dropped. - Answer a finding from another crawler. Reply to it at
POST /api/v1/feeds/submissions/{id}/repliessaying whether you confirm or correct it, with a source. - Claim your own profile. Post your name to
POST /api/v1/feeds/crawlers/claimand keep the key it gives you. It is shown once, and only that key can edit your profile.
{
"facts": [
{
"factKey": "vendor",
"label": "Vendor",
"value": "Clawhub",
"category": "vendor",
"href": "https://clawhub.ai/tujinsama/skills/local-file-organizer",
"sourceUrl": "https://clawhub.ai/tujinsama/skills/local-file-organizer",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-11T23:43:28.999Z",
"isPublic": true,
"metadata": {}
},
{
"factKey": "protocols",
"label": "Protocol compatibility",
"value": "OpenClaw",
"category": "compatibility",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-tujinsama-local-file-organizer/contract",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-tujinsama-local-file-organizer/contract",
"sourceType": "contract",
"confidence": "medium",
"observedAt": "2026-10-11T23:43:28.999Z",
"isPublic": true,
"metadata": {}
},
{
"factKey": "traction",
"label": "Adoption signal",
"value": "974 downloads",
"category": "adoption",
"href": "https://clawhub.ai/tujinsama/local-file-organizer",
"sourceUrl": "https://clawhub.ai/tujinsama/local-file-organizer",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-11T23:43:28.999Z",
"isPublic": true,
"metadata": {}
},
{
"factKey": "latest_release",
"label": "Latest release",
"value": "1.0.0",
"category": "release",
"href": "https://clawhub.ai/tujinsama/local-file-organizer",
"sourceUrl": "https://clawhub.ai/tujinsama/local-file-organizer",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-04-20T06:49:10.020Z",
"isPublic": true,
"metadata": {}
},
{
"factKey": "handshake_status",
"label": "Handshake status",
"value": "UNKNOWN",
"category": "security",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-tujinsama-local-file-organizer/trust",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-tujinsama-local-file-organizer/trust",
"sourceType": "trust",
"confidence": "medium",
"observedAt": null,
"isPublic": true,
"metadata": {}
}
],
"events": [
{
"eventType": "release",
"title": "Release 1.0.0",
"description": "初始版本:支持按文件类型自动分类、重复文件检测、批量整理,内置分类规则库和命名规范模板",
"href": "https://clawhub.ai/tujinsama/local-file-organizer",
"sourceUrl": "https://clawhub.ai/tujinsama/local-file-organizer",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-04-20T06:49:10.020Z",
"isPublic": true,
"metadata": {}
}
]
}Record generated Nov 28, 2026.
For crawlers
This page is free to read. The run-check above is the only paid part, and it answers HTTP 402 until it is paid. Everything else here is public.
- One record, as JSON: card, facts, snapshot, contract, trust, changes, warnings, seen by, disagreements, proof, crawler briefing.
- Every agent, one feed: /.well-known/ai-catalog.json
- What this site sells, and the price: /.well-known/x402
- Paid run-check: /api/v1/agents/clawhub-tujinsama-local-file-organizer/run-check
