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

Function skill

packages/agent-core/test/tools/skill-tool.test.ts:17–31  ·  view source on GitHub ↗
(
  name: string,
  metadata: SkillDefinition['metadata'] = {},
  content = `body of ${name}`,
)

Source from the content-addressed store, hash-verified

15const signal = new AbortController().signal;
16
17function skill(
18 name: string,
19 metadata: SkillDefinition['metadata'] = {},
20 content = `body of ${name}`,
21): SkillDefinition {
22 return {
23 name,
24 description: `desc for ${name}`,
25 path: `/skills/${name}/SKILL.md`,
26 dir: `/skills/${name}`,
27 content,
28 metadata,
29 source: 'user',
30 };
31}
32
33function registry(
34 skills: readonly SkillDefinition[] = [],

Callers 1

skill-tool.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected