mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-16 13:04:08 +00:00
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:
parent
67dbe7c6b7
commit
3c687b427e
2 changed files with 2 additions and 0 deletions
|
|
@ -14,6 +14,7 @@
|
|||
|
||||
- Fixed `pi update` not updating npm/git packages when called without arguments ([#1151](https://github.com/badlogic/pi-mono/issues/1151))
|
||||
- Fixed `models.json` validation requiring fields documented as optional. Model definitions now only require `id`; all other fields (`name`, `reasoning`, `input`, `cost`, `contextWindow`, `maxTokens`) have sensible defaults. ([#1146](https://github.com/badlogic/pi-mono/issues/1146))
|
||||
- Fixed models resolving relative paths in skill files from cwd instead of skill directory by adding explicit guidance to skills preamble ([#1136](https://github.com/badlogic/pi-mono/issues/1136))
|
||||
|
||||
## [0.50.9] - 2026-02-01
|
||||
|
||||
|
|
|
|||
|
|
@ -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>",
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue