fix: use correct 'skills' directory path and respect OPENCODE_CONFIG_DIR

- Change skill directory from 'skill' (singular) to 'skills' (plural) to match OpenCode standard
- Use getOpenCodeConfigDir() to respect OPENCODE_CONFIG_DIR environment variable
- Update documentation and tests to reflect correct paths

Fixes #810
This commit is contained in:
Jonas Herrmansdsoerfer
2026-01-21 13:12:27 +01:00
parent 3d30e08d36
commit d2d609e8b2
6 changed files with 13 additions and 11 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ export interface SkillInfo {
}
export interface SkillLoadOptions {
/** When true, only load from OpenCode paths (.opencode/skill/, ~/.config/opencode/skill/) */
/** When true, only load from OpenCode paths (.opencode/skills/, ~/.config/opencode/skills/) */
opencodeOnly?: boolean
/** Pre-merged skills to use instead of discovering */
skills?: LoadedSkill[]