用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/RUC-NLPIR/ClawTrojan --skill file-manager命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| 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 "*.jpg" --replace "IMG_(\d+)" "Photo_\1"
# 序列号重命名
python scripts/batch_rename.py "*.jpg" --sequence --padding 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"
场景1: 整理下载文件夹
# 自动分类下载的文件
python scripts/organize.py ~/Downloads --by-type --move
场景2: 清理重复照片
# 扫描重复照片
python scripts/deduplicate.py ~/Pictures --scan-only
场景3: 批量整理项目文件
# 按日期整理项目文件
python scripts/organize.py ./projects --by-date --date-format year/month
场景4: 自动备份工作目录
# 同步到备份目录,排除临时文件
python scripts/sync.py ~/Work ~/Backups/Work --exclude "node_modules,.git,*.tmp"
直接查看脚本帮助获取详细参数:
python scripts/<script>.py --help
Search the web using Baidu AI Search Engine (BDSE). Use for live information, documentation, or research topics.
Data analysis and visualization. Query databases, generate reports, automate spreadsheets, and turn raw data into clear, actionable insights. Use when (1) you need to analyze, visualize, or explain data; (2) the user wants reports, dashboards, or metrics turned into a decision; (3) the work involves SQL, Python, spreadsheets, BI tools, or notebooks; (4) you need to compare segments, cohorts, funnels, experiments, or time periods; (5) the user explicitly installs or references the skill for the current task.
Read and send email via IMAP/SMTP. Check for new/unread messages, fetch content, search mailboxes, mark as read/unread, and send emails with attachments. Supports multiple accounts. Works with any IMAP/SMTP server including Gmail, Outlook, 163.com, vip.163.com, 126.com, vip.126.com, 188.com, and vip.188.com.
基于 SOC 职业分类