batch

GitHub

协调跨代码库的大规模变更,通过并行工作树代理同时修改多个文件或模块。流程包括研究规划、并行执行及审查合并,确保变更安全可控并维持用户知情权。

.claude/skills/batch/SKILL.md keychat-io/keychat-app

触发场景

需要对大量文件进行相似的结构化修改 需要跨多个模块或文件并行实施大规模重构 执行涉及多个独立单元的大规模代码变更

安装

npx skills add keychat-io/keychat-app --skill batch -g -y
更多选项

非标准路径

npx skills add https://github.com/keychat-io/keychat-app/tree/main/.claude/skills/batch -g -y

不安装直接使用

npx skills use keychat-io/keychat-app@batch

指定 Agent (Claude Code)

npx skills add keychat-io/keychat-app --skill batch -a claude-code -g -y

安装 repo 全部 skill

npx skills add keychat-io/keychat-app --all -g -y

预览 repo 内 skill

npx skills add keychat-io/keychat-app --list

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

  1. Understand the requested change thoroughly
  2. Identify all files and modules that need modification
  3. Group changes into independent, parallelizable units (max 10 units)
  4. Present the plan to the user for approval before proceeding

Phase 2: Execute

  1. For each unit of work, launch an Agent with isolation: "worktree" to make the changes independently
  2. Run agents in parallel where possible (up to 5 concurrent agents)
  3. Each agent should:
    • Make the required changes
    • Run relevant tests or lint checks
    • Commit changes with a clear message

Phase 3: Review & Merge

  1. Collect results from all agents
  2. Report successes and failures
  3. For successful changes, present diffs for user review
  4. 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

同 Skill 集合

.claude/skills/architecture/SKILL.md
.claude/skills/bootstrap/SKILL.md
.claude/skills/flutter-check/SKILL.md
.claude/skills/generate/SKILL.md
.claude/skills/lint/SKILL.md
.claude/skills/pods/SKILL.md
.claude/skills/clean/SKILL.md
.claude/skills/run/SKILL.md
.claude/skills/rust-build/SKILL.md
.claude/skills/test/SKILL.md

元信息

文件数
0
版本
0cdb462
Hash
5aea73a6
收录时间
2026-07-05 10:51

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-01 08:25
浙ICP备14020137号-1 $访客地图$