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

Function getPromptForCommand

src/skills/bundled/updateConfig.ts:452–473  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

450 allowedTools: ['Read'],
451 userInvocable: true,
452 async getPromptForCommand(args) {
453 if (args.startsWith('[hooks-only]')) {
454 const req = args.slice('[hooks-only]'.length).trim()
455 let prompt = HOOKS_DOCS + '\n\n' + HOOK_VERIFICATION_FLOW
456 if (req) {
457 prompt += `\n\n## Task\n\n${req}`
458 }
459 return [{ type: 'text', text: prompt }]
460 }
461
462 // Generate schema dynamically to stay in sync with types
463 const jsonSchema = generateSettingsSchema()
464
465 let prompt = UPDATE_CONFIG_PROMPT
466 prompt += `\n\n## Full Settings JSON Schema\n\n\`\`\`json\n${jsonSchema}\n\`\`\``
467
468 if (args) {
469 prompt += `\n\n## User Request\n\n${args}`
470 }
471
472 return [{ type: 'text', text: prompt }]
473 },
474 })
475}
476

Callers

nothing calls this directly

Calls 1

generateSettingsSchemaFunction · 0.85

Tested by

no test coverage detected