← 返回 Skills 市场
126
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install director-file-organizer
功能描述
Automatically organize, categorize, and clean up files. Use when user wants to (1) organize downloads or folders, (2) sort files by type/date/size, (3) find...
使用说明 (SKILL.md)
File Organizer
Automatically organize and manage file collections.
Core Functions
1. Sort by Type
Group files by extension:
/documents/ → .pdf, .doc, .docx, .txt
/images/ → .jpg, .png, .gif, .svg
/videos/ → .mp4, .mov, .avi
/archives/ → .zip, .rar, .7z
/audio/ → .mp3, .wav, .flac
/code/ → .js, .py, .html, .css
2. Sort by Date
Organize by modification time:
/2026/04/07/
/2026/04/06/
/2026/03/
3. Find Duplicates
import hashlib
def find_duplicates(path):
hashes = {}
for file in Path(path).rglob('*'):
if file.is_file():
h = hashlib.md5(file.read_bytes()).hexdigest()
hashes.setdefault(h, []).append(file)
return {h: f for h, f in hashes.items() if len(f) > 1}
4. Bulk Rename
Patterns:
prefix_001.jpg,prefix_002.jpg2026-04-07_description.jpgfile_v1.txt,file_v2.txt
5. Cleanup Old Files
from datetime import datetime, timedelta
def cleanup_old(path, days=90):
threshold = datetime.now() - timedelta(days=days)
for file in Path(path).rglob('*'):
if file.is_file() and datetime.fromtimestamp(file.stat().st_mtime) \x3C threshold:
file.unlink() # or move to trash
Workflow
- Scan - List all files in directory
- Analyze - Get metadata (type, date, size, hash)
- Plan - Show proposed organization
- Execute - Move/copy/rename files
- Report - Summary of changes
Safety Rules
- Always confirm before deleting or moving
- Use trash instead of permanent delete when possible
- Backup important files first
- Log all changes for undo capability
- Handle conflicts - ask about name collisions
安全使用建议
This skill appears to do what it says, but it reads and modifies arbitrary files and can permanently delete data. Before installing or running it: (1) restrict it to a specific test folder—do not give it system or home root paths; (2) run in 'scan/plan' or dry-run mode first and review the proposed changes; (3) require explicit confirmations for deletions and prefer moving to Trash/recycle bin rather than unlinking; (4) back up important data before use; (5) be cautious about very large files (the example loads files into memory for hashing) and permission errors; (6) if you need stronger safety, disable autonomous invocation so the agent cannot run it without your explicit approval.
功能分析
Type: OpenClaw Skill
Name: director-file-organizer
Version: 1.0.0
The skill bundle provides standard file management functionality such as sorting, duplicate detection, and cleanup. The Python logic and instructions in SKILL.md are consistent with the stated purpose and include explicit safety rules for the agent, such as requiring user confirmation before file deletion and suggesting the use of a trash system.
能力评估
Purpose & Capability
The name/description (organize, sort, find duplicates, bulk rename, clean up) matches the instructions: scanning directories, computing hashes, moving/renaming, and deleting files. No unrelated credentials, binaries, or installs are requested.
Instruction Scope
SKILL.md instructs the agent to recursively scan directory trees, read file contents (hashing), move/rename files, and delete old files. Those actions are appropriate for the stated purpose but are inherently destructive and require care: the examples rely on reading entire files into memory (md5 via read_bytes()), use file.unlink() for deletion (the doc suggests using trash but code shows permanent delete), and the safety rules are advisory ("Always confirm") rather than enforced. The code samples also omit some imports (e.g., Path from pathlib) and do not handle large files or permission errors.
Install Mechanism
Instruction-only skill with no install spec or downloaded artifacts. This minimizes supply-chain risk because nothing is written to disk by an installer.
Credentials
The skill requests no environment variables, credentials, or config paths. This is proportionate to a local file-management tool.
Persistence & Privilege
always:false (normal). The skill is allowed to be invoked autonomously by the agent (disable-model-invocation:false). Autonomous invocation combined with arbitrary filesystem operations can be risky if the agent is permitted to act without human confirmation; this is a platform-level consideration rather than an incoherence in the skill itself.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install director-file-organizer - 安装完成后,直接呼叫该 Skill 的名称或使用
/director-file-organizer触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release - organize files, find duplicates, bulk rename, cleanup
元数据
常见问题
File Organizer 是什么?
Automatically organize, categorize, and clean up files. Use when user wants to (1) organize downloads or folders, (2) sort files by type/date/size, (3) find... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 126 次。
如何安装 File Organizer?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install director-file-organizer」即可一键安装,无需额外配置。
File Organizer 是免费的吗?
是的,File Organizer 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
File Organizer 支持哪些平台?
File Organizer 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 File Organizer?
由 di5cip1e(@di5cip1e)开发并维护,当前版本 v1.0.0。
推荐 Skills