cas-bigdatalab/piflow/batch-collector
Claude Code and agent skill by cas-bigdatalab/piflow
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
批量文件清单采集器。扫描一个或多个本地文件/目录,或从任务列表加载路径, 按支持的扩展名生成文件元信息清单,供后续文本、表格、文档、图像等采集流程继续处理。 当用户需要批量盘点待采集文件、生成本地文件 manifest、统计输入文件类型或为后续采集算子准备文件清单时使用此 skill。
Install
npx vskill@latest install cas-bigdatalab/piflow/batch-collectorSKILL.md
Batch Collector 批量文件清单采集器
功能概述
本 skill 用于批量扫描本地文件或目录,生成“待采集文件清单”。它不会读取、清洗或解析文件正文,只记录文件路径、文件名、扩展名、大小、采集时间和任务序号等基础元信息。
它适合放在采集流程入口,用来把一批本地资源整理成统一 manifest,再交给 text_collector、table_collector、image_collector 等后续算子继续处理。
触发条件
当用户提出以下需求时,应使用本 skill:
- 批量盘点本地待采集文件
- 扫描一个或多个输入目录并生成文件清单
- 统计输入文件的扩展名分布
- 为后续采集/解析/校验流程准备 manifest
- 从任务列表批量加载待处理路径
不处理什么
- 不读取文件正文
- 不清洗文本内容
- 不解析 CSV、JSON、PDF、DOCX 等内部结构
- 不判断文件内容质量
- 不执行真实下载、爬取或远程采集
核心参数说明
必需参数
| 参数 | 说明 | |
|---|---|---|
--output | 输出文件路径 |
输入参数
| 参数 | 说明 | |
|---|---|---|
--input | 一个或多个文件/目录路径,与 --task_list 二选一 | |
--task_list | 任务列表文件,支持 json 或 txt,与 --input 二选一 |
可选参数
| 参数 | 默认值 | 说明 | |
|---|---|---|---|
--recursive | false | 是否递归扫描子目录 | |
--file_types | 脚本默认支持类型 | 指定允许采集的扩展名,如 txt csv pdf | |
--batch_size | 0 | 进度报告间隔,0 表示不按批次报告 | |
--output_format | jsonl | 输出格式:jsonl、json、csv 或 auto |
输入文件格式
目录输入
文本任务列表
JSON任务列表
输出格式
默认输出 JSONL,每行代表一个被采集到的文件:
字段含义:
| 字段 | 说明 | |
|---|---|---|
file_path | 相对输入根目录的文件路径 | |
filename | 文件名 | |
extension | 扩展名 | |
file_size | 文件字节数 | |
collected_at | 清单生成时间 | |
task_index | 当前文件序号 | |
total_tasks | 本次输出文件总数 |
使用方法
扫描单个目录
扫描多个路径
只采集指定扩展名
从任务列表加载路径
输出示例
命令行输出:
JSONL输出:
环境要求
本 skill 使用 Python 标准库实现,无需额外安装第三方依赖。请使用项目虚拟环境运行:
注意事项
--input和--task_list至少提供一个。--recursive true才会扫描子目录。--file_types只控制扩展名筛选,不检查文件内容是否真实符合该格式。- 输出清单中的
file_path是后续算子可继续读取的文件路径。 - 如果需要正文抽取、表格解析、图像检查或内容校验,应交给后续专用 skill。
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingworkspace/skills/batch_collector/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/cas-bigdatalab/piflow/batch-collector)