AgentStack
SKILL verified MIT Self-run

File Organizer

skill-publisher-skill-claude-skill-file-organizer · by publisher-skill

文件整理器 - 按类型、日期、扩展名自动整理文件夹中的文件

No reviews yet
0 installs
2 views
0.0% view→install

Install

$ agentstack add skill-publisher-skill-claude-skill-file-organizer

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

Are you the author of File Organizer? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

File Organizer Skill

文件整理器,可以按类型、日期、扩展名自动整理文件夹中的文件。

功能特性

  • 按类型整理 - 自动识别文件类型(图片、文档、视频、音频等)
  • 按日期整理 - 按文件修改日期创建文件夹整理
  • 按扩展名整理 - 按文件扩展名分类整理
  • 预览模式 - 支持 dry-run 预览整理结果
  • 自动重命名 - 处理重名文件

使用方法

Python API

from skills.file_organizer import FileOrganizer

organizer = FileOrganizer()

# 按类型整理
stats = organizer.organize_by_type('/path/to/folder')

# 按日期整理
stats = organizer.organize_by_date('/path/to/folder')

# 按扩展名整理
stats = organizer.organize_by_extension('/path/to/folder')

# 预览模式(不实际移动)
stats = organizer.organize_by_type('/path/to/folder', dry_run=True)

# 获取摘要
summary = organizer.get_summary()

API 参考

FileOrganizer 类

__init__()

初始化文件整理器

organize_by_type(source_dir, target_dir=None, dry_run=False)

按文件类型整理

参数:

  • source_dir: 源目录路径
  • target_dir: 目标目录路径(默认同源目录)
  • dry_run: 是否仅预览(True/False)
organize_by_date(source_dir, target_dir=None, date_format="%Y-%m", dry_run=False)

按日期整理

参数:

  • date_format: 日期格式,如 "%Y-%m" 或 "%Y-%m-%d"
organize_by_extension(source_dir, target_dir=None, dry_run=False)

按扩展名整理

get_summary()

获取操作摘要统计

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.