MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / initializeSkillRegistry

Function initializeSkillRegistry

cli/src/utils/skill-registry.ts:22–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20 * - {projectRoot}/.agents/skills/ (project, overrides global)
21 */
22export async function initializeSkillRegistry(): Promise<void> {
23 const cwd = getProjectRoot() || process.cwd()
24
25 try {
26 // Load skills from both global (~/.agents/skills) and project directories
27 // The SDK handles merging, with project skills overriding global ones
28 skillsCache = await sdkLoadSkills({
29 cwd,
30 verbose: false,
31 })
32 } catch (error) {
33 logger.warn({ error }, 'Failed to load skills')
34 skillsCache = {}
35 }
36}
37
38// ============================================================================
39// Skills access

Callers 1

mainFunction · 0.90

Calls 1

getProjectRootFunction · 0.90

Tested by

no test coverage detected