MCPcopy
hub / github.com/codeaashu/claude-code / getBuiltinPluginSkillCommands

Function getBuiltinPluginSkillCommands

src/plugins/builtinPlugins.ts:108–121  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

106 * Skills from disabled plugins are not returned.
107 */
108export function getBuiltinPluginSkillCommands(): Command[] {
109 const { enabled } = getBuiltinPlugins()
110 const commands: Command[] = []
111
112 for (const plugin of enabled) {
113 const definition = BUILTIN_PLUGINS.get(plugin.name)
114 if (!definition?.skills) continue
115 for (const skill of definition.skills) {
116 commands.push(skillDefinitionToCommand(skill))
117 }
118 }
119
120 return commands
121}
122
123/**
124 * Clear built-in plugins registry (for testing).

Callers 1

getSkillsFunction · 0.85

Calls 4

getBuiltinPluginsFunction · 0.85
skillDefinitionToCommandFunction · 0.85
getMethod · 0.65
pushMethod · 0.45

Tested by

no test coverage detected