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

Function writeSkill

packages/agent-core/test/harness/skill-session.test.ts:641–645  ·  view source on GitHub ↗
(name: string, lines: readonly string[])

Source from the content-addressed store, hash-verified

639 });
640
641 async function writeSkill(name: string, lines: readonly string[]): Promise<void> {
642 const dir = join(workDir, '.kimi-code', 'skills', name);
643 await mkdir(dir, { recursive: true });
644 await writeFile(join(dir, 'SKILL.md'), lines.join('\n'));
645 }
646
647 async function writeLegacyUserSkill(
648 userHomeDir: string,

Callers 1

Calls 2

mkdirFunction · 0.50
writeFileFunction · 0.50

Tested by

no test coverage detected