文件整理

Move files into category folders with conflict-free, reversible operations.

Updated Apr 14, 2026
One-click install
npx skills add https://github.com/novolei/if2Ai --skill -novolei
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: 文件整理
Source: https://github.com/novolei/if2Ai/tree/main/src-tauri/resources/bundled-skills/file-skill
Command: npx skills add https://github.com/novolei/if2Ai --skill -novolei

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

文件整理技能解决了在桌面和大量文件中快速、稳定地实现安全归类的问题,确保不会删除或覆盖原始文件,并提供完整的操作日志与回撤能力。

Core Features & Use Cases

  • 智能扫描与关键词/语义匹配:自动将文件归入已有文件夹,或基于命名模式归类。
  • 按频率或文件类型自动分类:不常用与常用分类,以及按图片、文档、表格等类型整理。
  • 完整的操作日志和一键回撤:随时查看变更并撤销。

Quick Start

Use the skill to initialize phase1 on the target directory to start sorting, then optionally run phase2 for the fallback categorization and use rollback if needed.

Frequently Asked Questions about 文件整理

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I organize my desktop files without accidentally deleting anything?

Automated file organization safely moves items into category folders using keyword and semantic matching without deleting anything. It enforces conflict-free moves and permission checks to guarantee your original files remain intact.

Can I rollback file classification changes if files are moved to the wrong folder?

Yes, you can rollback file classification changes. The skill records detailed operation logs for every move and provides a one-click rollback function through Windows PowerShell or macOS Bash scripts to safely restore the original directory structure.

Does the file classification skill work on both Windows and macOS?

Yes, the file classification skill works on both Windows and macOS. It supports cross-platform desktop and team work directory organization by executing phase-based fallback scripts natively through Windows PowerShell and macOS Bash.

What is the best way to clean up a messy work directory without losing data?

The best way to clean up a messy work directory without losing data is using a phase-based file sorting approach. It applies initial keyword placement, semantic matching, and size-based filtering to safely move files into existing category folders.

How to handle file naming conflicts when sorting files into category folders?

To handle file naming conflicts when sorting files, the organization process enforces conflict-free moves and permission checks. It ensures files are safely placed into category folders without overwriting existing documents during the automated fallback categorization phases.

Why do some files remain unsorted after running desktop organization scripts?

Some files remain unsorted after running desktop organization scripts because the skill applies size-based filtering to skip certain items and uses phase-based fallbacks. You can optionally run phase2 to attempt further semantic fallback categorization on remaining items.