OpenClaw自动化文件管理助手,用于批量文件操作、智能分类、重复文件清理、文件重命名、目录同步等任务。当用户需要整理文件、批量重命名、清理重复文件、同步目录或自动化文件工作流时使用此技能。
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install file-manager-1-0-0或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install file-manager-1-0-0⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/file-manager-1-0-0/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: file-manager description: OpenClaw自动化文件管理助手,用于批量文件操作、智能分类、重复文件清理、文件重命名、目录同步等任务。当用户需要整理文件、批量重命名、清理重复文件、同步目录或自动化文件工作流时使用此技能。 ---
organize)按文件类型、日期、大小或自定义规则自动分类文件。
# 按文件类型分类
python scripts/organize.py <source_dir> --by-type
# 按日期分类 (年/月/日)
python scripts/organize.py <source_dir> --by-date --date-format year/month
# 按文件大小分类
python scripts/organize.py <source_dir> --by-size --size-ranges "10MB,100MB,1GB"
batch_rename)支持正则表达式、序列号、日期等模式的重命名。
# 添加前缀/后缀
python scripts/batch_rename.py <pattern> --prefix "IMG_" --suffix "_2024"
# 使用正则替换
python scripts/batch_rename.py "IMG_(\d+)" --replace "Photo_\1"
# 序列号重命名
python scripts/batch_rename.py "*.jpg" --sequence --start 1 --pad 4
deduplicate)基于内容哈希检测并处理重复文件。
# 扫描并列出重复文件
python scripts/deduplicate.py <directory> --scan-only
# 删除重复文件(保留最旧/最新)
python scripts/deduplicate.py <directory> --keep oldest --action delete
# 移动重复文件到隔离目录
python scripts/deduplicate.py <directory> --action move --to <quarantine_dir>
sync)双向或单向目录同步,支持排除模式和增量同步。
# 单向同步 (源 → 目标)
python scripts/sync.py <source> <target> --mirror
# 双向同步
python scripts/sync.py <dir1> <dir2> --bidirectional
# 排除特定文件
python scripts/sync.py <source> <target> --exclude "*.tmp,*.log,.git"
watch)监控目录变化并触发动作。
# 监控并记录变化
python scripts/watch.py <directory> --log changes.log
# 监控并自动执行命令
python scripts/watch.py <directory> --on-change "python scripts/organize.py {path}"
场景1: 整理下载文件夹
# 自动分类下载的文件
python scripts/organize.py ~/Downloads --by-type --move
场景2: 清理重复照片
# 找出并删除重复照片,保留高质量版本
python scripts/deduplicate.py ~/Pictures --compare-resolution --keep best
场景3: 批量整理项目文件
# 按日期整理并按类型分类
python scripts/organize.py ./projects --by-date --by-type --date-format year/month
场景4: 自动备份工作目录
# 同步到备份目录,排除临时文件
python scripts/sync.py ~/Work ~/Backups/Work --exclude "node_modules,.git,*.tmp"
本 skill 依赖以下 Python 包:
pip install tqdm colorama
或使用 requirements.txt(如果存在):
pip install -r requirements.txt
---
直接查看脚本帮助获取详细参数:
python scripts/<script>.py --help安装 File Manager 1.0.0 后,可以对 AI 说这些话来触发它
Help me get started with File Manager 1.0.0
Explains what File Manager 1.0.0 does, walks through the setup, and runs a quick demo based on your current project
Use File Manager 1.0.0 to openClaw automated file management assistant is used for batch file...
Invokes File Manager 1.0.0 with the right parameters and returns the result directly in the conversation
What can I do with File Manager 1.0.0 in my documents & notes workflow?
Lists the top use cases for File Manager 1.0.0, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/file-manager-1-0-0/ 目录(个人级,所有项目可用),或 .claude/skills/file-manager-1-0-0/(项目级)。重启 AI 客户端后,用 /file-manager-1-0-0 主动调用,或让 AI 根据上下文自动发现并使用。
File Manager 1.0.0 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
File Manager 1.0.0 可免费安装使用。请查阅仓库了解许可证信息。
OpenClaw自动化文件管理助手,用于批量文件操作、智能分类、重复文件清理、文件重命名、目录同步等任务。当用户需要整理文件、批量重命名、清理重复文件、同步目录或自动化文件工作流时使用此技能。
File Manager 1.0.0 属于「Documents & Notes」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my documents & notes tasks using File Manager 1.0.0
Identifies repetitive steps in your workflow and sets up File Manager 1.0.0 to handle them automatically