MCPcopy
hub / github.com/Fission-AI/OpenSpec / writeSkill

Function writeSkill

test/core/migration.test.ts:21–25  ·  view source on GitHub ↗
(projectPath: string, dirName: string)

Source from the content-addressed store, hash-verified

19}
20
21async function writeSkill(projectPath: string, dirName: string): Promise<void> {
22 const skillFile = path.join(projectPath, '.claude', 'skills', dirName, 'SKILL.md');
23 await fsp.mkdir(path.dirname(skillFile), { recursive: true });
24 await fsp.writeFile(skillFile, 'name: test\n', 'utf-8');
25}
26
27async function writeManagedCommand(projectPath: string, workflowId: string): Promise<void> {
28 const adapter = CommandAdapterRegistry.get('claude');

Callers 1

migration.test.tsFile · 0.70

Calls 1

writeFileMethod · 0.80

Tested by

no test coverage detected