Token导航 LogoToken导航TokenDH.com
研究检索只读github未标认证来源可访问许可证需确认审计通过

smart-folder-organizer智能文件夹管理器

Agent Skill

smart-folder-organizer 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

654

周安装

27

GitHub Stars

1

下载量

214
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:smart-folder-organizer(智能文件夹管理器)
来源仓库:https://github.com/yuan-93/smart-folder-organizer-skill
仓库路径:skills/smart-folder-organizer
安装命令:
npx skills add https://github.com/yuan-93/smart-folder-organizer-skill --skill smart-folder-organizer
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/yuan-93/smart-folder-organizer-skill --skill smart-folder-organizer

简介

smart-folder-organizer 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中快速定位候选结果。

  • 适用于根据关键词或任务场景筛选候选结果的研究检索场景。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装并使用。
  • 安装前需确认权限范围和维护状态,注意可能触发联网或文件读写操作。
  • 建议结合原始 README 核验具体用法和功能边界。

SKILL.md

Smart Folder Organizer

This skill provides a structured workflow for tidying up disorganized directories while ensuring data safety.

Core Mandates

  1. Safety First: NEVER delete any file. Move files intended for deletion to specific subfolders within to_remove/ (e.g., to_remove/duplicates/ or to_remove/empty_folders/).
  2. Strict Scoping: Operate ONLY within the current directory and its subdirectories. Never move or access files in the parent directory (..).
  3. Preservation: If a file's category is ambiguous, move it to a Needs_Review/ folder rather than guessing incorrectly.
  4. Large Files: For any file larger than 20MB, skip deep content analysis (such as reading PDF text) to prevent memory issues. Move these unanalyzed large files to a dedicated Needs_Review/LargeFiles/ directory.
  5. Folder Handling: Recursively process all files within the current directory and its subdirectories. When moving files, place them in the categorized folders at the root level of the target directory (do not replicate the category structure inside every subfolder). Any empty subdirectories discovered or left behind must be moved to to_remove/empty_folders/.

Workflow

1. Smart Folder Detection

Before processing individual files, run scripts/detect_smart_folders.py <target_dir> to identify subdirectories that are already well-organized (e.g., git repositories, software projects, macOS app bundles).

  • Action: Move each detected folder to Others/ as a whole — do NOT descend into or reorganize its contents.
  • Logic: The script checks for project markers (.git/, package.json, Cargo.toml, Makefile, etc.) and app bundles (.app), returning a JSON list of matches with reasons.
  • Skip: All subsequent steps should ignore the Others/ directory.

2. Duplicate Detection

Run the find_duplicates.py script to identify identical files.

  • Action: Move identified duplicates to to_remove/duplicates/.
  • Logic: Use file hashes (SHA256) via the scripts/find_duplicates.py script for deterministic results.

3. General Categorization

Organize files by extension and common patterns:

  • Photos: Move to Photos/. (Screenshots to Photos/Screenshots/)
  • Videos: Move to Videos/.
  • Installers: Move to Installers/ (.dmg, .pkg, .exe, .msi).
  • Archives: Move to Archives/ (.zip, .rar, etc.).

4. Deep PDF Analysis

For PDF files, read the first few pages to determine the document type and extract metadata for renaming.

  • CRITICAL: Do NOT generate dynamic Python scripts to read PDFs. Instead, execute the scripts/extract_pdf_metadata.py script provided in this skill to extract text and analyze the document deterministically. The script uses pypdf with a sampling strategy (first 3 pages + last page) for fast and efficient classification.
  • IMPORTANT: Use Universal Semantic Reasoning for document classification. Modern AI models can understand dozens of languages (English, Chinese, Spanish, etc.); prioritize the *intent* of the document (e.g., "requesting payment") over specific English keywords like "Invoice". Refer to references/classification.md for semantic guidelines.
  • Multilingual Naming: For non-English documents, extract naming details (like [Vendor] or [Provider]) in their original script (e.g., Chinese characters). The standard date format yyyy-mm-dd remains unchanged.
  • Invoices: Rename to yyyy-mm-dd-[Vendor]-[Inv#-][Amount].pdf and move to Documents/Invoices/.
  • Bills: Rename to yyyy-mm-dd-[Provider]-[Service]-[Account#].pdf and move to Documents/Bills/.
  • Receipts: Rename to yyyy-mm-dd-[Store]-[TotalAmount].pdf and move to Documents/Receipts/.
  • Travel: Rename to yyyy-mm-dd-[Transport/Hotel]-[Confirmation#].pdf and move to Documents/Travel/.

5. Final Cleanup

  • Group writing documents (.docx, .doc, .pages, .odt) into Documents/Writing/.
  • Group spreadsheet files (.xlsx, .xls, .numbers, .ods, .csv) into Documents/Spreadsheets/.
  • Group presentation files (.ppt, .pptx, .key, .odp) into Documents/Presentations/.
  • Group audio files (.mp3, .wav, .flac, .m4a) into Audio/.
  • Group remaining documents into Needs_Review/Documents/ by sub-type if applicable.
  • If a PDF document was analyzed but the category is unknown, move it to Needs_Review/Unknown/.
  • Move any other unhandled files to Needs_Review/.

Resources

scripts/find_duplicates.py

A Python script that deterministically finds identical files. It uses SHA-256 hashing to compare file contents rather than relying on filenames or sizes, returning a JSON list of duplicates.

scripts/extract_pdf_metadata.py

A Python helper script that extracts text from a PDF using the pypdf library. Use this instead of rolling your own script. It uses a sampling strategy (first 3 pages and the last page) to provide efficient text extraction for document classification, returning the text in a JSON wrapper.

scripts/detect_smart_folders.py

A Python script that scans immediate subdirectories of a target folder for project markers (.git/, package.json, Cargo.toml, Makefile, etc.) and app bundles (.app). Returns a JSON list of detected "smart" folders that should be moved to Others/ without being broken apart.

references/classification.md

Contains detailed keyword lists and naming conventions for PDFs and other document types.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.1%
按下载量换算73

Claude

30.48%
按下载量换算65

Cursor

19.54%
按下载量换算42

Gemini CLI

8.78%
按下载量换算19

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills