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

Function testSkill

packages/agent-core/test/skill/parser.test.ts:299–314  ·  view source on GitHub ↗
(input: {
  readonly content: string;
  readonly metadata?: SkillDefinition['metadata'];
  readonly plugin?: SkillDefinition['plugin'];
})

Source from the content-addressed store, hash-verified

297}
298
299function testSkill(input: {
300 readonly content: string;
301 readonly metadata?: SkillDefinition['metadata'];
302 readonly plugin?: SkillDefinition['plugin'];
303}): SkillDefinition {
304 return {
305 name: 'review',
306 description: 'Review things',
307 path: '/skills/review/SKILL.md',
308 dir: '/skills/review',
309 content: input.content,
310 metadata: input.metadata ?? {},
311 source: 'user',
312 plugin: input.plugin,
313 };
314}

Callers 1

parser.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected