MCPcopy
hub / github.com/EveryInc/compound-engineering-plugin / pluginDescription

Function pluginDescription

tests/codex-writer.test.ts:29–36  ·  view source on GitHub ↗
(relativePath: string)

Source from the content-addressed store, hash-verified

27}
28
29async function pluginDescription(relativePath: string): Promise<string> {
30 const raw = await fs.readFile(path.join(import.meta.dir, "..", relativePath), "utf8")
31 const { data } = parseFrontmatter(raw, relativePath)
32 if (typeof data.description !== "string") {
33 throw new Error(`Missing description in ${relativePath}`)
34 }
35 return data.description
36}
37
38function skillContent(name: string, description: string): string {
39 return `---\nname: ${name}\ndescription: ${JSON.stringify(description)}\n---\n\n# ${name}\n`

Callers 1

Calls 1

parseFrontmatterFunction · 0.90

Tested by

no test coverage detected