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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user