Agent Skills
› keychat-io/keychat-app
› batch
batch
GitHub用于在代码库中并行执行大规模变更。通过隔离的工作区代理,将修改分组为独立单元并行处理,涵盖研究计划、并行执行及审查合并阶段,确保高效且安全的批量代码更新。
触发场景
需要对多个文件或模块应用相似更改
需要大规模重构或批量更新代码
安装
npx skills add keychat-io/keychat-app --skill batch -g -y
SKILL.md
Frontmatter
{
"name": "batch",
"invoke": "user",
"description": "Orchestrate large-scale changes across the codebase using parallel worktree agents. Use when you need to apply similar changes to many files or modules simultaneously."
}
Batch
Research and plan a large-scale change, then execute it in parallel across isolated worktree agents.
Workflow
Phase 1: Research & Plan
- Understand the requested change thoroughly
- Identify all files and modules that need modification
- Group changes into independent, parallelizable units (max 10 units)
- Present the plan to the user for approval before proceeding
Phase 2: Execute
- For each unit of work, launch an Agent with
isolation: "worktree"to make the changes independently - Run agents in parallel where possible (up to 5 concurrent agents)
- Each agent should:
- Make the required changes
- Run relevant tests or lint checks
- Commit changes with a clear message
Phase 3: Review & Merge
- Collect results from all agents
- Report successes and failures
- For successful changes, present diffs for user review
- Help merge changes back to the main branch
Rules
- Always get user approval before executing changes
- Never modify more than what was requested
- If a unit fails, continue with others and report the failure
- Keep the user informed of progress throughout
版本历史
- 294d00d 当前 2026-07-05 10:51


