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

Function getPromptForCommand

src/skills/bundled/batch.ts:110–122  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

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

nothing calls this directly

Calls 1

buildPromptFunction · 0.70

Tested by

no test coverage detected