fix(skills): add path resolution guidance to skills preamble
Models were resolving relative paths in skill files from cwd instead of the skill directory. Added explicit instruction that relative paths are resolved from the skill directory (parent of the location path). Fixes #1136
This commit is contained in:
@@ -263,6 +263,7 @@ export function formatSkillsForPrompt(skills: Skill[]): string {
|
||||
const lines = [
|
||||
"\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.",
|
||||
"Relative paths inside skill files are resolved from the skill directory (parent of the location path).",
|
||||
"",
|
||||
"<available_skills>",
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user