Install
openclaw skills install file-sorter通用文件智能分类工具,支持多种分类规则:类型、大小、日期、关键词等。适用于需要批量整理文件的场景,如下载文件夹整理、照片归档、文档分类等。
openclaw skills install file-sorterfile-sorter organize ~/Downloads --by-type --output ~/Sorted
file-sorter organize ~/Downloads --by-size --output ~/Sorted
file-sorter organize ~/Downloads --by-date modified --output ~/Sorted
file-sorter organize ~/Downloads --by-type --preview
file-sorter undo ~/Sorted
可以在项目根目录创建 .file-sorter.json 配置默认选项:
{
"output_dir": "~/Sorted",
"action": "move",
"categories": {
"documents": [".pdf", ".doc"],
"images": [".jpg", ".png"]
},
"size_rules": {
"small": [0, 1048576],
"medium": [1048576, 104857600],
"large": [104857600, null]
},
"backup_original": true
}
# 按类型整理下载文件
file-sorter organize ~/Downloads --by-type --output ~/Downloads/Organized
# 按拍摄日期整理照片
file-sorter organize ~/Photos --by-date created --output ~/Photos/ByDate
# 找出所有大于 100MB 的文件
file-sorter organize ~/Videos --by-size --output ~/Videos/BySize