AGENT SKILL
file-organizer
Organize files in a folder by rules (date, extension, naming patterns).
- License 许可
- MIT
- 最近更新
- 2026-09-12
- Stars
- ★ 2
- Forks
- 1
01 前言 Front Matter
- mode
- instructions
- name
- file-organizer
- name_zh
- 文件整理
- version
- 1.1.0
- approval
- explicit-before-write
- category
- ops
- description
- Organize files in a folder by rules (date, extension, naming patterns).
- permissions
- { "network": false, "read_dirs": [ "workspace" ], "write_dirs": [ "workspace" ] }
- description_zh
- 按日期、扩展名或命名规则整理文件夹中的文件。
- channel_capabilities
- [ "files" ]
03 SKILL.md 正文
file-organizer
English: Organize files in a folder by rules (date, extension, naming patterns). 中文:按规则(日期、扩展名、命名模式)整理文件夹。
When to use
Use when:
- The user wants to sort, categorize, or reorganize files in a directory.
- Organization rules include date-based, extension-based, or naming-pattern-based grouping.
Do not use when:
- The user wants to delete files (this skill never deletes).
- The task involves files outside the authorized workspace directory.
- The user wants to reorganize git-tracked source code (suggest git mv instead).
Workflow
- Confirm the exact source directory and organization rule with the user.
- Produce a dry-run table:
source → destination → reason. - Detect collisions, hidden files, symlinks, and paths outside the authorized directory.
- Ask for explicit approval before any rename or move.
- Apply changes in bounded batches and write
file-organizer-manifest.jsonwith completed operations. - Verify every source/destination pair and report skipped files.
Quality contract
- Never delete files as part of organization.
- Never follow symlinks outside the authorized directory.
- Preserve extensions and avoid overwriting existing destinations.
- Require explicit user approval before any write operation.
- Write a manifest (
file-organizer-manifest.json) recording every completed operation for auditability.
Failure recovery
- If a batch fails, stop and use the manifest to describe a safe rollback.
- If collisions are detected, report them and skip conflicting files rather than overwriting.
- If the source directory does not exist or is not accessible, report the error and ask the user to verify the path.
- If symlinks point outside the authorized directory, skip them and list them separately.
04 同仓库更多 Skills
weekly-report-ab-market-stub
暂无简介
★ 2
report-csv-ab-market-stub
暂无简介
★ 2
office-pptx-ab-market-stub
暂无简介
★ 2
novel-writer-ab-market-stub
暂无简介
★ 2
meeting-minutes-ab-market-stub
暂无简介
★ 2
md-to-pdf-ab-market-stub
暂无简介
★ 2