Skip to content
Back to skills

File Batch Processor

ASecurity

一键批量处理所有文件:重命名、压缩图片、转 PDF、自动分类整理,无需安装任何软件,小龙虾本地运行,安全无广告,职场 / 学生 / 店主必备神器!使用场景:批量文件重命名、批量图片压缩、批量转 PDF、按类型自动分类整理。适用于Windows系统,新手友好,办公效率提升神器。

  • 21 stars
  • 0 votes
  • 0 copies
  • 8 views
  • Added September 7, 2026
documentationpythonbash

Security analysis

A100/100

Pro scans all 15 files and shows the line behind each finding

Scanned September 7, 2026

npx -y skills add modbender/skill-library-mcp --skill file-batch-processor --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of File Batch Processor?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for File Batch Processor
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/modbender-file-batch-processor/badge)](https://www.skillsdirectory.com/skills/modbender-file-batch-processor)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: file-batch-processor
description: "一键批量处理所有文件:重命名、压缩图片、转 PDF、自动分类整理,无需安装任何软件,小龙虾本地运行,安全无广告,职场 / 学生 / 店主必备神器!使用场景:批量文件重命名、批量图片压缩、批量转 PDF、按类型自动分类整理。适用于Windows系统,新手友好,办公效率提升神器。"
---

# 文件批量处理大师

## 🎯 核心功能

1. **批量文件重命名** - 支持多种命名模式(序号、日期、前缀后缀等)
2. **批量图片压缩** - JPEG/PNG格式智能压缩,保持质量
3. **批量转 PDF** - 图片、文本文件一键转PDF
4. **自动分类整理** - 按文件类型(文档、图片、音频、视频、压缩包)自动归类

## 🚀 快速开始

### 基本工作流程
```bash
# 1. 选择要处理的文件夹
# 2. 选择处理功能(可多选)
# 3. 配置参数(如重命名规则、压缩质量)
# 4. 执行处理
# 5. 查看结果报告
```

## 📁 目录结构

```
file-batch-processor/
├── SKILL.md (当前文件)
├── scripts/
│   ├── batch_rename.py
│   ├── image_compress.py  
│   ├── convert_to_pdf.py
│   └── auto_organize.py
└── references/
    ├── naming_patterns.md
    ├── compression_guide.md
    └── file_types.md
```

## 🔧 功能详解

### 1. 批量文件重命名
- **支持模式**:
  - 序号模式:`文件_001.jpg`, `文件_002.jpg`
  - 日期模式:`20240302_照片1.jpg`
  - 前缀/后缀添加:`备份_文件.docx`, `文件_副本.pdf`
  - 批量替换:`旧名称` → `新名称`

### 2. 批量图片压缩
- **支持格式**:JPEG, PNG
- **压缩选项**:
  - 质量级别:高(90%)、中(70%)、低(50%)
  - 尺寸调整:原始尺寸、50%、30%
  - 批量处理:支持1000+文件

### 3. 批量转 PDF
- **支持源文件**:
  - 图片文件(JPG, PNG, BMP等)
  - 文本文件(TXT, MD)
  - Office文档(需配合其他工具)

### 4. 自动分类整理
- **分类规则**:
  - 📄 文档类:.doc, .docx, .pdf, .txt, .md
  - 🖼️ 图片类:.jpg, .jpeg, .png, .bmp, .gif
  - 🎵 音频类:.mp3, .wav, .aac
  - 🎥 视频类:.mp4, .avi, .mkv
  - 📦 压缩包:.zip, .rar, .7z
  - 📁 其他:剩余文件

## 🎨 技能图标
- 推荐图标:文件夹/工具类图标
- 颜色方案:蓝色系(专业可靠)+ 绿色(效率提升)

## 🎯 使用场景
- 📁 整理手机下载的大量照片
- 📊 处理工作中的一批文档
- 🛒 店主整理商品图片
- 🎓 学生整理学习资料
- 💼 职场人士提高办公效率

## ⚙️ 技术实现
- **平台**:Windows(最通用)
- **依赖**:Python 3.8+, Pillow, PyPDF2, pdfkit(可选)
- **安全**:本地运行,无网络请求,无数据上传

## 📝 注意事项
- 处理前建议备份重要文件
- 大文件批量处理可能需要较长时间
- 压缩图片时建议先测试小样本

## 📚 参考资料
- [naming_patterns.md] - 详细命名模式说明
- [compression_guide.md] - 图片压缩技术指南  
- [file_types.md] - 文件类型识别规则

> 💡 提示:本技能设计为"开箱即用",新手也能轻松上手,是职场、学生、店主的必备效率神器!

Files in this skill

  • SKILL.md3.3 KB
  • TEST_RESULTS.txt1 KB
  • TEST_RESULTS_2026-03-03.txt3.4 KB
  • references/compression_guide.md1.6 KB
  • references/file_types.md1.9 KB
  • references/naming_patterns.md1.3 KB
  • scripts/auto_organize.py2.9 KB
  • scripts/batch_rename.py4 KB
  • scripts/convert_to_pdf.py4.5 KB
  • scripts/image_compress.py3.9 KB
  • simple_test.py1.1 KB
  • test_compress/readme.txt139 B
  • test_output/文档/document.txt139 B
  • test_sample.txt139 B
  • test_validation.py3.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in documentation →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.