()
| 98 | /batch add type annotations to all untyped function parameters` |
| 99 | |
| 100 | export function registerBatchSkill(): void { |
| 101 | registerBundledSkill({ |
| 102 | name: 'batch', |
| 103 | description: |
| 104 | 'Research and plan a large-scale change, then execute it in parallel across 5–30 isolated worktree agents that each open a PR.', |
| 105 | whenToUse: |
| 106 | 'Use when the user wants to make a sweeping, mechanical change across many files (migrations, refactors, bulk renames) that can be decomposed into independent parallel units.', |
| 107 | argumentHint: '<instruction>', |
| 108 | userInvocable: true, |
| 109 | disableModelInvocation: true, |
| 110 | async getPromptForCommand(args) { |
| 111 | const instruction = args.trim() |
| 112 | if (!instruction) { |
| 113 | return [{ type: 'text', text: MISSING_INSTRUCTION_MESSAGE }] |
| 114 | } |
| 115 | |
| 116 | const isGit = await getIsGit() |
| 117 | if (!isGit) { |
| 118 | return [{ type: 'text', text: NOT_A_GIT_REPO_MESSAGE }] |
| 119 | } |
| 120 | |
| 121 | return [{ type: 'text', text: buildPrompt(instruction) }] |
| 122 | }, |
| 123 | }) |
| 124 | } |
| 125 |
no test coverage detected