feat(skills): add /batch skill for parallel batch operations#3079
feat(skills): add /batch skill for parallel batch operations#3079
Conversation
Add a new built-in skill `/batch` that orchestrates large-scale parallel changes across multiple files. The skill automatically: - Discovers target files using glob patterns - Splits files into chunks for parallel processing - Launches multiple worker agents concurrently - Aggregates results with success/failure statistics - Supports --dry-run mode for preview Resolves #3043
📋 Review SummaryThis PR introduces a new 🔍 General Feedback
🎯 Specific Feedback🟡 High
🟢 Medium
🔵 Low
✅ Highlights
|
Code Coverage Summary
CLI Package - Full Text ReportCore Package - Full Text ReportFor detailed HTML reports, please see the 'coverage-reports-22.x-ubuntu-latest' artifact from the main CI run. |
| name: batch | ||
| description: Execute batch operations on multiple files in parallel. Use when you need to apply the same operation to many files at once. Examples - `/batch add JSDoc comments to all .ts files under src`, `/batch convert all .js files to .ts`, `/batch fix lint errors in src/components/*.tsx`. The command will automatically discover target files, split them into chunks, and process them in parallel using worker agents. | ||
| allowedTools: | ||
| - task |
There was a problem hiding this comment.
[Suggestion] This skill instructs the model to ask the user for clarification when the pattern is missing and to ask whether to proceed in dry-run mode, but allowedTools does not include ask_user_question. As written, those interaction paths are not executable. Either add ask_user_question here, or rewrite those steps to use a non-interactive fallback.
— gpt-5.4 via Qwen Code /review
- Extend chunking table to cover 51-100 files (now uses 5 chunks) - Clarify that `task` tool is the Agent tool for spawning workers - Add SKIPPED status to Agent Prompt Template output format - Shorten description field, move examples to body - Expand test file exclusion patterns (*.test.js, __tests__/, etc.) - Expand Dry-Run Mode section with detailed example output - Fix example math: "24 files → 3 chunks of ~8 each"
PR 反馈修复完成已根据自动化审查反馈修复以下问题: 🟡 High 优先级
🟢 Medium 优先级
🔵 Low 优先级
测试验证 |
Summary
/batchbuilt-in skill for orchestrating large-scale parallel file changes--dry-runmode for preview before actual changesTest Plan
Resolves #3043
🤖 Generated with Claude Code