MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / writeSkillFile

Function writeSkillFile

packages/node-sdk/test/session-skills.test.ts:323–331  ·  view source on GitHub ↗
(dir: string, name: string, description: string)

Source from the content-addressed store, hash-verified

321}
322
323async function writeSkillFile(dir: string, name: string, description: string): Promise<void> {
324 await mkdir(dir, { recursive: true });
325 await writeFile(
326 join(dir, 'SKILL.md'),
327 ['---', `name: ${name}`, `description: ${description}`, '---', '', `${description}.`].join(
328 '\n',
329 ),
330 );
331}

Callers 2

writeLegacyUserSkillFunction · 0.70
writeBrandUserSkillFunction · 0.70

Calls 2

mkdirFunction · 0.50
writeFileFunction · 0.50

Tested by

no test coverage detected