Better skill dir resolution, closes #1171

This commit is contained in:
Mario Zechner 2026-02-02 00:33:51 +01:00
parent 0a26db53ef
commit 5d6a7d6c34

View file

@ -263,7 +263,7 @@ export function formatSkillsForPrompt(skills: Skill[]): string {
const lines = [ const lines = [
"\n\nThe following skills provide specialized instructions for specific tasks.", "\n\nThe following skills provide specialized instructions for specific tasks.",
"Use the read tool to load a skill's file when the task matches its description.", "Use the read tool to load a skill's file when the task matches its description.",
"Relative paths inside skill files are resolved from the skill directory (parent of the location path).", "When a skill file references a relative path, resolve it against the skill directory (parent of SKILL.md / dirname of the path) and use that absolute path in tool commands.",
"", "",
"<available_skills>", "<available_skills>",
]; ];