Skip to main content

batch

Execute a task across multiple files or directories in parallel

来源信息

仓库
HeshamFS/swarmweaver
最近来源活动
2026年4月1日 20:10
检测到的 SKILL.md 语言
英语
星标
3
分支
0

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
batch
description
Execute a task across multiple files or directories in parallel
when_to_use
When the same change needs to be applied to many files
context
fork
allowed-tools
Read, Edit, Write, Bash, Grep, Glob
arguments
pattern, task
# Batch Operation Apply the following task to all files matching the pattern. **Pattern**: ${pattern} **Task**: ${task} ## Steps 1. Find all files matching the pattern using Glob 2. For each file: a. Read the current content b. Apply the requested change c. Write the updated content 3. After all files are processed, run any relevant tests 4. Report: how many files were changed, what was done to each
在 GitHub 查看