fix(prompt): render skills without pi shape casts

This commit is contained in:
ZacharyZhang-NY committed 2026-04-22 18:39:56 -04:00
1 parent 9f35dc7446
commit dca148a125
2 files changed
+46 -19

No files matched your search

@@ -79,4 +79,20 @@ describe("buildSystemPrompt leadership classification", () => {
expect(prompt).toContain("New hires for your team should report to you by default");
expect(prompt).not.toContain("Operating Instructions (Individual Contributor)");
});
it("renders projected skills without pi skill shape casts", () => {
const prompt = buildSystemPrompt(buildCtx({
skills: [{
name: "ui<review>&qa",
description: "Use for A&B \"checks\" and 'snapshots'.",
filePath: "/tmp/skills/ui<review>&qa/SKILL.md",
baseDir: "/tmp/skills/ui<review>&qa",
}],
}));
expect(prompt).toContain("<available_skills>");
expect(prompt).toContain("<name>ui&lt;review&gt;&amp;qa</name>");
expect(prompt).toContain("<description>Use for A&amp;B &quot;checks&quot; and &apos;snapshots&apos;.</description>");
expect(prompt).toContain("<location>/tmp/skills/ui&lt;review&gt;&amp;qa/SKILL.md</location>");
});
});