fix(cli): stop loading .opencode config directories

This commit is contained in:
marius-kilocode
2026-06-24 17:01:32 +02:00
parent 117a0d6233
commit ef9b1dcec0
42 changed files with 245 additions and 203 deletions
+26 -10
View File
@@ -194,10 +194,12 @@ Just some content without YAML frontmatter.
provideTmpdirInstance(
(dir) =>
Effect.gen(function* () {
// kilocode_change start - load .kilo skills without falling back to .opencode
yield* Effect.promise(() =>
Bun.write(
path.join(dir, ".opencode", "skill", "manual-skill", "SKILL.md"),
`---
Promise.all([
Bun.write(
path.join(dir, ".kilo", "skill", "manual-skill", "SKILL.md"),
`---
name: manual-skill
---
@@ -205,8 +207,18 @@ name: manual-skill
Instructions here.
`,
),
),
Bun.write(
path.join(dir, ".opencode", "skill", "ignored-skill", "SKILL.md"),
`---
name: ignored-skill
description: This skill must not load.
---
`,
),
]),
)
// kilocode_change end
const skill = yield* Skill.Service
const list = discovered(yield* skill.all()) // kilocode_change
@@ -485,16 +497,18 @@ description: A skill in the .agents/skills directory.
# Agent Skill
`,
),
// kilocode_change start
Bun.write(
path.join(dir, ".opencode", "skill", "opencode-skill", "SKILL.md"),
path.join(dir, ".kilo", "skill", "opencode-skill", "SKILL.md"),
`---
name: opencode-skill
description: A skill in the .opencode/skill directory.
description: A skill in the .kilo/skill directory.
---
# OpenCode Skill
`,
),
// kilocode_change end
]),
)
@@ -532,26 +546,28 @@ description: A skill in the .agents/skills directory.
# Agent Skill
`,
),
// kilocode_change start
Bun.write(
path.join(dir, ".opencode", "skill", "agent-skill", "SKILL.md"),
path.join(dir, ".kilo", "skill", "agent-skill", "SKILL.md"),
`---
name: opencode-skill
description: A skill in the .opencode/skill directory.
description: A skill in the .kilo/skill directory.
---
# OpenCode Skill
`,
),
Bun.write(
path.join(dir, ".opencode", "skills", "agent-skill", "SKILL.md"),
path.join(dir, ".kilo", "skills", "agent-skill", "SKILL.md"),
`---
name: opencode-skill
description: A skill in the .opencode/skills directory.
description: A skill in the .kilo/skills directory.
---
# OpenCode Skill
`,
),
// kilocode_change end
]),
)