MCPcopy Create free account
hub / github.com/codeaashu/claude-code / registerBatchSkill

Function registerBatchSkill

src/skills/bundled/batch.ts:100–124  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

98 /batch add type annotations to all untyped function parameters`
99
100export 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

Callers 1

initBundledSkillsFunction · 0.85

Calls 1

registerBundledSkillFunction · 0.85

Tested by

no test coverage detected