MCPcopy Index your code
hub / github.com/codeaashu/claude-code / formatTaskAsPrompt

Function formatTaskAsPrompt

src/hooks/useTaskListWatcher.ts:213–221  ·  view source on GitHub ↗

* Format a task as a prompt for Claude to work on.

(task: Task)

Source from the content-addressed store, hash-verified

211 * Format a task as a prompt for Claude to work on.
212 */
213function formatTaskAsPrompt(task: Task): string {
214 let prompt = `Complete all open tasks. Start with task #${task.id}: \n\n ${task.subject}`
215
216 if (task.description) {
217 prompt += `\n\n${task.description}`
218 }
219
220 return prompt
221}
222

Callers 1

useTaskListWatcherFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected