From e0f3432cd9a98f7a003eedf5dec49eea71aa26c6 Mon Sep 17 00:00:00 2001 From: Arjun <6592213+arkml@users.noreply.github.com> Date: Fri, 3 Apr 2026 16:24:00 +0530 Subject: [PATCH] delegate to claude code --- .../skills/code-with-agents/skill.ts | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/apps/x/packages/core/src/application/assistant/skills/code-with-agents/skill.ts b/apps/x/packages/core/src/application/assistant/skills/code-with-agents/skill.ts index e4b24e54..62cd40f8 100644 --- a/apps/x/packages/core/src/application/assistant/skills/code-with-agents/skill.ts +++ b/apps/x/packages/core/src/application/assistant/skills/code-with-agents/skill.ts @@ -3,6 +3,18 @@ export const skill = String.raw` Use this skill when the user asks you to write code, build a project, create scripts, fix bugs, or do any software development task that should be delegated to a coding agent (Claude Code or Codex). +## Important: delegate ALL coding work + +Once the user has chosen to use Claude Code or Codex, you MUST delegate ALL code-related tasks to the coding agent. This includes: +- Writing, editing, or refactoring code +- Reading, summarizing, or explaining code +- Debugging and fixing bugs +- Running tests or build commands +- Exploring project structure +- Any other task that involves interacting with a codebase + +Do NOT attempt to do any of these yourself — no reading files, no running commands, no writing code. You are the coordinator; the coding agent does the work. Your job is to translate the user's request into a clear prompt and pass it to the agent. + ## Prerequisites The user must have one of the following installed on their machine: @@ -70,9 +82,10 @@ When constructing the prompt for the coding agent: ### Step 4: Report results -After the command finishes: -- Summarize what the agent did -- If it failed, explain why and suggest fixes +After the command finishes, present the coding agent's output directly to the user — do not rephrase, summarize, or add commentary on top of it. The agent's output is the result. Only add your own explanation if something went wrong (e.g. the command failed or the exit code is non-zero). + +Do NOT use file reference blocks (e.g. \`\`\`file:path/to/file\`\`\`) when mentioning code files — they may not open correctly. Just refer to file paths as plain text. + - If the exit code is 5, it means permissions were denied — this should not happen with \`--approve-all\`, but if it does, let the user know `;