MCPcopy
hub / github.com/anomalyco/opencode / write

Function write

packages/core/test/skill.test.ts:30–39  ·  view source on GitHub ↗
(directory: string, name: string, description: string)

Source from the content-addressed store, hash-verified

28)
29
30function write(directory: string, name: string, description: string) {
31 return fs.writeFile(
32 path.join(directory, name, "SKILL.md"),
33 `---
34name: ${name}
35description: ${description}
36---
37# ${name}`,
38 )
39}
40
41describe("SkillV2", () => {
42 it.live("registers sources and resolves later source precedence", () =>

Callers 1

skill.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected