@@ -14,7 +14,6 @@ import type { ToolParamName, ToolResponse, ToolUse, McpToolUse } from "../../sha
1414import { AskIgnoredError } from "../task/AskIgnoredError"
1515import { Task } from "../task/Task"
1616
17- import { fetchInstructionsTool } from "../tools/FetchInstructionsTool"
1817import { listFilesTool } from "../tools/ListFilesTool"
1918import { readFileTool } from "../tools/ReadFileTool"
2019import { readCommandOutputTool } from "../tools/ReadCommandOutputTool"
@@ -34,6 +33,7 @@ import { attemptCompletionTool, AttemptCompletionCallbacks } from "../tools/Atte
3433import { newTaskTool } from "../tools/NewTaskTool"
3534import { updateTodoListTool } from "../tools/UpdateTodoListTool"
3635import { runSlashCommandTool } from "../tools/RunSlashCommandTool"
36+ import { skillTool } from "../tools/SkillTool"
3737import { generateImageTool } from "../tools/GenerateImageTool"
3838import { applyDiffTool as applyDiffToolClass } from "../tools/ApplyDiffTool"
3939import { isValidToolName , validateToolUse } from "../tools/validateToolUse"
@@ -347,8 +347,6 @@ export async function presentAssistantMessage(cline: Task) {
347347 return readFileTool . getReadFileToolDescription ( block . name , block . nativeArgs )
348348 }
349349 return readFileTool . getReadFileToolDescription ( block . name , block . params )
350- case "fetch_instructions" :
351- return `[${ block . name } for '${ block . params . task } ']`
352350 case "write_to_file" :
353351 return `[${ block . name } for '${ block . params . path } ']`
354352 case "apply_diff" :
@@ -394,6 +392,8 @@ export async function presentAssistantMessage(cline: Task) {
394392 }
395393 case "run_slash_command" :
396394 return `[${ block . name } for '${ block . params . command } '${ block . params . args ? ` with args: ${ block . params . args } ` : "" } ]`
395+ case "skill" :
396+ return `[${ block . name } for '${ block . params . skill } '${ block . params . args ? ` with args: ${ block . params . args } ` : "" } ]`
397397 case "generate_image" :
398398 return `[${ block . name } for '${ block . params . path } ']`
399399 default :
@@ -760,13 +760,6 @@ export async function presentAssistantMessage(cline: Task) {
760760 pushToolResult,
761761 } )
762762 break
763- case "fetch_instructions" :
764- await fetchInstructionsTool . handle ( cline , block as ToolUse < "fetch_instructions" > , {
765- askApproval,
766- handleError,
767- pushToolResult,
768- } )
769- break
770763 case "list_files" :
771764 await listFilesTool . handle ( cline , block as ToolUse < "list_files" > , {
772765 askApproval,
@@ -870,6 +863,13 @@ export async function presentAssistantMessage(cline: Task) {
870863 pushToolResult,
871864 } )
872865 break
866+ case "skill" :
867+ await skillTool . handle ( cline , block as ToolUse < "skill" > , {
868+ askApproval,
869+ handleError,
870+ pushToolResult,
871+ } )
872+ break
873873 case "generate_image" :
874874 await checkpointSaveAndMark ( cline )
875875 await generateImageTool . handle ( cline , block as ToolUse < "generate_image" > , {
@@ -1049,7 +1049,6 @@ function containsXmlToolMarkup(text: string): boolean {
10491049 "codebase_search" ,
10501050 "edit_file" ,
10511051 "execute_command" ,
1052- "fetch_instructions" ,
10531052 "generate_image" ,
10541053 "list_files" ,
10551054 "new_task" ,
0 commit comments