From 8bde294978b362e5aa16d154d4fe3482a1961311 Mon Sep 17 00:00:00 2001 From: ewjin Date: Fri, 27 Mar 2026 10:56:49 +0900 Subject: [PATCH] fix: add missing load_skills parameter to hook-injected delegate_task examples --- src/hooks/agent-usage-reminder/constants.ts | 6 +++--- src/hooks/atlas/system-reminder-templates.ts | 1 + src/hooks/atlas/verification-reminders.ts | 4 ++-- src/hooks/task-resume-info/hook.ts | 2 +- src/hooks/task-resume-info/index.test.ts | 2 +- 5 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/hooks/agent-usage-reminder/constants.ts b/src/hooks/agent-usage-reminder/constants.ts index d49b92b54..86ee5a87b 100644 --- a/src/hooks/agent-usage-reminder/constants.ts +++ b/src/hooks/agent-usage-reminder/constants.ts @@ -34,9 +34,9 @@ RECOMMENDED: Use task with explore/librarian agents for better results: \`\`\` // Parallel exploration - fire multiple agents simultaneously -task(agent="explore", prompt="Find all files matching pattern X") -task(agent="explore", prompt="Search for implementation of Y") -task(agent="librarian", prompt="Lookup documentation for Z") +task(subagent_type="explore", load_skills=[], prompt="Find all files matching pattern X") +task(subagent_type="explore", load_skills=[], prompt="Search for implementation of Y") +task(subagent_type="librarian", load_skills=[], prompt="Lookup documentation for Z") // Then continue your work while they run in background // System will notify you when each completes diff --git a/src/hooks/atlas/system-reminder-templates.ts b/src/hooks/atlas/system-reminder-templates.ts index c45d3f88c..abb364de4 100644 --- a/src/hooks/atlas/system-reminder-templates.ts +++ b/src/hooks/atlas/system-reminder-templates.ts @@ -203,6 +203,7 @@ But for any substantial changes, USE \`task\`. \`\`\` task( category="...", + load_skills=[], prompt="[specific single task with clear acceptance criteria]" ) \`\`\` diff --git a/src/hooks/atlas/verification-reminders.ts b/src/hooks/atlas/verification-reminders.ts index 80217798d..fae1f01f1 100644 --- a/src/hooks/atlas/verification-reminders.ts +++ b/src/hooks/atlas/verification-reminders.ts @@ -29,7 +29,7 @@ Your completion will NOT be recorded until you complete ALL of the following: If anything fails while closing this out, resume the same session immediately: \`\`\`typescript -task(session_id="${sessionId}", prompt="fix: checkbox not recorded correctly") +task(session_id="${sessionId}", load_skills=[], prompt="fix: checkbox not recorded correctly") \`\`\` **Your completion is NOT tracked until the checkbox is marked in the plan file.** @@ -47,7 +47,7 @@ ${VERIFICATION_REMINDER} **If ANY verification fails, use this immediately:** \`\`\` -task(session_id="${sessionId}", prompt="fix: [describe the specific failure]") +task(session_id="${sessionId}", load_skills=[], prompt="fix: [describe the specific failure]") \`\`\` ${buildReuseHint(sessionId)}` diff --git a/src/hooks/task-resume-info/hook.ts b/src/hooks/task-resume-info/hook.ts index 567e58734..4eb65dc8f 100644 --- a/src/hooks/task-resume-info/hook.ts +++ b/src/hooks/task-resume-info/hook.ts @@ -30,7 +30,7 @@ export function createTaskResumeInfoHook() { output.output = outputText.trimEnd() + - `\n\nto continue: task(session_id="${sessionId}", prompt="...")` + `\n\nto continue: task(session_id="${sessionId}", load_skills=[], prompt="...")` } return { diff --git a/src/hooks/task-resume-info/index.test.ts b/src/hooks/task-resume-info/index.test.ts index dcb591962..200e29af0 100644 --- a/src/hooks/task-resume-info/index.test.ts +++ b/src/hooks/task-resume-info/index.test.ts @@ -87,7 +87,7 @@ describe("createTaskResumeInfoHook", () => { const output = { title: "task", output: - 'Done.\nSession ID: ses_abc123\nto continue: task(session_id="ses_abc123", prompt="...")', + 'Done.\nSession ID: ses_abc123\nto continue: task(session_id="ses_abc123", load_skills=[], prompt="...")', metadata: {}, }