From b621d4550beb559bc65f622cf75d2cc81387a64c Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sun, 18 Jan 2026 21:30:27 +0000 Subject: [PATCH] chore: tighten skills prompt rules --- src/agents/system-prompt.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/agents/system-prompt.ts b/src/agents/system-prompt.ts index fb354b441..22fd92f83 100644 --- a/src/agents/system-prompt.ts +++ b/src/agents/system-prompt.ts @@ -20,8 +20,12 @@ function buildSkillsSection(params: { const trimmed = params.skillsPrompt?.trim(); if (!trimmed || params.isMinimal) return []; return [ - "## Skills", - `Skills provide task-specific instructions. Use \`${params.readToolName}\` to load the SKILL.md at the location listed for that skill.`, + "## Skills (mandatory)", + "Before replying: scan entries.", + `- If exactly one skill clearly applies: read its SKILL.md at with \`${params.readToolName}\`, then follow it.`, + "- If multiple could apply: choose the most specific one, then read/follow it.", + "- If none clearly apply: do not read any SKILL.md.", + "Constraints: never read more than one skill up front; only read after selecting.", trimmed, "", ];