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 52acb37478
commit 1a4106120d
6 changed files with 13 additions and 11 deletions
@@ -5,7 +5,7 @@ import { tmpdir } from "os"
import type { LoadedSkill } from "./types"
const TEST_DIR = join(tmpdir(), "async-loader-test-" + Date.now())
const SKILLS_DIR = join(TEST_DIR, ".opencode", "skill")
const SKILLS_DIR = join(TEST_DIR, ".opencode", "skills")
function createTestSkill(name: string, content: string, mcpJson?: object): string {
const skillDir = join(SKILLS_DIR, name)