feat(skill): enable customize-opencode by default, link full schema (#26899)

This commit is contained in:
Kit Langton
2026-05-11 13:13:41 -04:00
committed by GitHub
parent 25b12ed754
commit df386bd651
5 changed files with 48 additions and 43 deletions
+10 -10
View File
@@ -63,7 +63,7 @@ Instructions here.
)
const skill = yield* Skill.Service
const list = yield* skill.all()
const list = (yield* skill.all()).filter((s) => s.location !== "<built-in>")
expect(list.length).toBe(1)
const item = list.find((x) => x.name === "test-skill")
expect(item).toBeDefined()
@@ -133,7 +133,7 @@ description: Second test skill.
)
const skill = yield* Skill.Service
const list = yield* skill.all()
const list = (yield* skill.all()).filter((s) => s.location !== "<built-in>")
expect(list.length).toBe(2)
expect(list.find((x) => x.name === "skill-one")).toBeDefined()
expect(list.find((x) => x.name === "skill-two")).toBeDefined()
@@ -157,7 +157,7 @@ Just some content without YAML frontmatter.
)
const skill = yield* Skill.Service
expect(yield* skill.all()).toEqual([])
expect((yield* skill.all()).filter((s) => s.location !== "<built-in>")).toEqual([])
}),
{ git: true },
),
@@ -182,7 +182,7 @@ Instructions here.
)
const skill = yield* Skill.Service
const list = yield* skill.all()
const list = (yield* skill.all()).filter((s) => s.location !== "<built-in>")
expect(list.length).toBe(1)
const item = list.find((x) => x.name === "manual-skill")
expect(item).toBeDefined()
@@ -212,7 +212,7 @@ description: A skill in the .claude/skills directory.
)
const skill = yield* Skill.Service
const list = yield* skill.all()
const list = (yield* skill.all()).filter((s) => s.location !== "<built-in>")
expect(list.length).toBe(1)
const item = list.find((x) => x.name === "claude-skill")
expect(item).toBeDefined()
@@ -235,7 +235,7 @@ description: A skill in the .claude/skills directory.
yield* Effect.promise(() => createGlobalSkill(tmp.path))
yield* Effect.gen(function* () {
const skill = yield* Skill.Service
const list = yield* skill.all()
const list = (yield* skill.all()).filter((s) => s.location !== "<built-in>")
expect(list.length).toBe(1)
expect(list[0].name).toBe("global-test-skill")
expect(list[0].description).toBe("A global skill from ~/.claude/skills for testing.")
@@ -251,7 +251,7 @@ description: A skill in the .claude/skills directory.
() =>
Effect.gen(function* () {
const skill = yield* Skill.Service
expect(yield* skill.all()).toEqual([])
expect((yield* skill.all()).filter((s) => s.location !== "<built-in>")).toEqual([])
}),
{ git: true },
),
@@ -275,7 +275,7 @@ description: A skill in the .agents/skills directory.
)
const skill = yield* Skill.Service
const list = yield* skill.all()
const list = (yield* skill.all()).filter((s) => s.location !== "<built-in>")
expect(list.length).toBe(1)
const item = list.find((x) => x.name === "agent-skill")
expect(item).toBeDefined()
@@ -314,7 +314,7 @@ This skill is loaded from the global home directory.
yield* Effect.gen(function* () {
const skill = yield* Skill.Service
const list = yield* skill.all()
const list = (yield* skill.all()).filter((s) => s.location !== "<built-in>")
expect(list.length).toBe(1)
expect(list[0].name).toBe("global-agent-skill")
expect(list[0].description).toBe("A global skill from ~/.agents/skills for testing.")
@@ -355,7 +355,7 @@ description: A skill in the .agents/skills directory.
)
const skill = yield* Skill.Service
const list = yield* skill.all()
const list = (yield* skill.all()).filter((s) => s.location !== "<built-in>")
expect(list.length).toBe(2)
expect(list.find((x) => x.name === "claude-skill")).toBeDefined()
expect(list.find((x) => x.name === "agent-skill")).toBeDefined()