fix: add missing load_skills parameter to hook-injected delegate_task examples
This commit is contained in:
@@ -34,9 +34,9 @@ RECOMMENDED: Use task with explore/librarian agents for better results:
|
|||||||
|
|
||||||
\`\`\`
|
\`\`\`
|
||||||
// Parallel exploration - fire multiple agents simultaneously
|
// Parallel exploration - fire multiple agents simultaneously
|
||||||
task(agent="explore", prompt="Find all files matching pattern X")
|
task(subagent_type="explore", load_skills=[], prompt="Find all files matching pattern X")
|
||||||
task(agent="explore", prompt="Search for implementation of Y")
|
task(subagent_type="explore", load_skills=[], prompt="Search for implementation of Y")
|
||||||
task(agent="librarian", prompt="Lookup documentation for Z")
|
task(subagent_type="librarian", load_skills=[], prompt="Lookup documentation for Z")
|
||||||
|
|
||||||
// Then continue your work while they run in background
|
// Then continue your work while they run in background
|
||||||
// System will notify you when each completes
|
// System will notify you when each completes
|
||||||
|
|||||||
@@ -203,6 +203,7 @@ But for any substantial changes, USE \`task\`.
|
|||||||
\`\`\`
|
\`\`\`
|
||||||
task(
|
task(
|
||||||
category="...",
|
category="...",
|
||||||
|
load_skills=[],
|
||||||
prompt="[specific single task with clear acceptance criteria]"
|
prompt="[specific single task with clear acceptance criteria]"
|
||||||
)
|
)
|
||||||
\`\`\`
|
\`\`\`
|
||||||
|
|||||||
@@ -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:
|
If anything fails while closing this out, resume the same session immediately:
|
||||||
\`\`\`typescript
|
\`\`\`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.**
|
**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:**
|
**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)}`
|
${buildReuseHint(sessionId)}`
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ export function createTaskResumeInfoHook() {
|
|||||||
|
|
||||||
output.output =
|
output.output =
|
||||||
outputText.trimEnd() +
|
outputText.trimEnd() +
|
||||||
`\n\nto continue: task(session_id="${sessionId}", prompt="...")`
|
`\n\nto continue: task(session_id="${sessionId}", load_skills=[], prompt="...")`
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ describe("createTaskResumeInfoHook", () => {
|
|||||||
const output = {
|
const output = {
|
||||||
title: "task",
|
title: "task",
|
||||||
output:
|
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: {},
|
metadata: {},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user