Skip to content

Commit d788599

Browse files
authored
feat(claude-code-skill-loader): add base directory context (#103)
Include base directory information in skill template wrapper for improved context and file resolution during skill loading. 🤖 GENERATED WITH ASSISTANCE OF [OhMyOpenCode](https://github.com/code-yeongyu/oh-my-opencode)
1 parent 2b368ad commit d788599

File tree

1 file changed

+3
-0
lines changed
  • src/features/claude-code-skill-loader

1 file changed

+3
-0
lines changed

src/features/claude-code-skill-loader/loader.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ function loadSkillsFromDir(skillsDir: string, scope: SkillScope): LoadedSkillAsC
3636
const formattedDescription = `(${scope} - Skill) ${originalDescription}`
3737

3838
const wrappedTemplate = `<skill-instruction>
39+
Base directory for this skill: ${resolvedPath}/
40+
File references (@path) in this skill are relative to this directory.
41+
3942
${body.trim()}
4043
</skill-instruction>
4144

0 commit comments

Comments
 (0)