凡自治之物 · LGD 治理学 · 创造术家族 | 评测协议:见平台质量门禁规范
English
When to use
Use this skill when a directory holds a mix of file extensions with no clear classification logic, making everyday lookup or batch processing slow. It fits project setup, document archiving and desktop cleanup — any moment where media, documents and code files need to be standardized into categories before bulk work. It is especially suited to the safe workflow of validating the plan (e.g. making sure key files are not moved by mistake) before any real change is executed.
Usage
The core command is dir-organizer. It acts on the current working directory by default; parameters let you point at a target path or pick a behavior mode. Key parameters: --preview produces a classification report without moving anything; --apply performs the actual migration into the preset subdirectories. Under the hood the skill wraps the dir_organizer.py script, so no extra Python installation is required to run the organizing logic.
Workflow
Step 1: confirm the target folder path and enter it, making sure it holds the mixed file set to be sorted. Step 2: run the command without the move flag to analyze it, and read the generated classification statistics and suggested directory structure. Step 3: manually check the preview report — verify that the categorization rules match expectations, especially the matching of audio/video and archive types. Step 4: run the command with --apply to trigger the internal Python script's actual rename-and-move flow. Step 5: inspect the subfolders under the root and confirm every target file has landed in the right type container with nothing left behind.
Evidence & safety statement
- Evidence: TBD (no evaluation / badge link yet; update here once it is produced)
- Version: 1.0.5
- Security: no independent security scan has been performed (TBD); the conclusion is pending and no endorsement is given until it is completed.
中文
何时用
本技能适用于文件目录内混杂多种扩展名且缺乏清晰分类逻辑,导致日常检索或批量处理效率低下时。当用户处于项目初始化、资料归档或桌面清理等阶段,需要批量将媒体、文档及代码文件进行标准化归类前使用。此外,该技能特别适合希望先验证整理方案准确性(例如确保不会误移动关键文件)再执行实际变更的安全需求场景。
用法
核心调用命令为 dir-organizer,默认作用于当前工作目录,支持通过参数指定目标路径或行为模式。主要参数包括 --preview 用于生成分类报告而不移动文件,以及 --apply 用于直接执行文件迁移操作至预设子目录。技能底层封装了 dir_organizer.py 脚本逻辑,无需用户额外安装 Python 环境即可直接执行内部整理功能。
流程
第一步:确认目标文件夹路径并进入该目录,确保其中包含需整理的混合文件集合。第二步:使用不带移动参数的命令运行分析,查看系统生成的分类统计及建议的目录结构。第三步:人工核对预览报告中文件归类规则是否符合预期,特别是音视频、压缩包等类型的匹配度。第四步:执行带 --apply 参数的指令,触发内部 Python 脚本启动实际的文件重命名与移动流程。第五步:进入根目录检查子文件夹状态,确认所有目标文件已无遗漏地归位至对应类型容器内。
证据与安全声明
- 证据:TBD(暂无评测/徽章链接;产生后在此更新实际链接)
- 版本:1.0.5
- 安全:未做独立安全扫描(TBD),结论待补;补全前不作推荐背书。
