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

Function skill

packages/agent-core/test/tools/skill-tool-dispatch.test.ts:16–26  ·  view source on GitHub ↗
(name: string, metadata: SkillDefinition['metadata'] = {})

Source from the content-addressed store, hash-verified

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

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected