@@ -102,7 +102,6 @@ describe("buildSystemPrompt", () => {
102102 "Inspect code and files primarily through shell commands",
103103 );
104104 expect(prompt).toContain("invoke `mc-edit` via shell");
105- expect(prompt).toContain("scan the skills list below");
106105 expect(prompt).toContain("never guess unknown state");
107106 });
108107
@@ -168,12 +167,16 @@ describe("buildSystemPrompt", () => {
168167 );
169168
170169 const prompt = buildSystemPrompt("mock", tmpDir, fakeHome);
171- expect(prompt).toContain("# Available skills (metadata only)");
170+ expect(prompt).toContain("# Skills");
172171 expect(prompt).toContain(
173- "Use `listSkills` to browse and `readSkill` to load one SKILL.md on demand.",
172+ "call `readSkill` with that skill name before doing anything else",
174173 );
175- expect(prompt).toContain("- deploy: Deploy safely (local,");
176- expect(prompt).toContain(".agents/skills/deploy/SKILL.md)");
174+ expect(prompt).toContain("Check ALL skills against the current task");
175+ expect(prompt).toContain("<available_skills>");
176+ expect(prompt).toContain("<name>deploy</name>");
177+ expect(prompt).toContain("<description>Deploy safely</description>");
178+ expect(prompt).toContain(".agents/skills/deploy/SKILL.md</location>");
179+ expect(prompt).toContain("<source>local</source>");
177180 expect(prompt).not.toContain("Detailed body");
178181 });
179182
@@ -186,7 +189,9 @@ describe("buildSystemPrompt", () => {
186189 );
187190
188191 const prompt = buildSystemPrompt("mock", tmpDir, fakeHome);
189- expect(prompt).toContain("- release: Ship releases (global,");
192+ expect(prompt).toContain("<name>release</name>");
193+ expect(prompt).toContain("<description>Ship releases</description>");
194+ expect(prompt).toContain("<source>global</source>");
190195 expect(prompt).not.toContain("Release body");
191196 });
192197 });