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

Function hasSubSkillEnabled

packages/agent-core/src/skill/scanner.ts:422–434  ·  view source on GitHub ↗
(skill: SkillDefinition)

Source from the content-addressed store, hash-verified

420}
421
422function hasSubSkillEnabled(skill: SkillDefinition): boolean {
423 const nested = skill.metadata['metadata'];
424 const nestedFlag =
425 typeof nested === 'object' && nested !== null
426 ? (nested as Record<string, unknown>)['has-sub-skill'] === true ||
427 (nested as Record<string, unknown>)['hasSubSkill'] === true
428 : false;
429 return (
430 skill.metadata['has-sub-skill'] === true ||
431 skill.metadata['hasSubSkill'] === true ||
432 nestedFlag
433 );
434}
435
436async function defaultIsDir(p: string): Promise<boolean> {
437 try {

Callers 1

walkSkillDirFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected