MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / claudeCodeSkillDirs

Function claudeCodeSkillDirs

src/integrations/claude-plugins.ts:85–98  ·  view source on GitHub ↗
(cwd: string)

Source from the content-addressed store, hash-verified

83
84/** Extra skill roots contributed by Claude Code, lowest-precedence first. */
85export async function claudeCodeSkillDirs(cwd: string): Promise<ClaudeAssetDir[]> {
86 if (disabled()) return [];
87 const dirs: ClaudeAssetDir[] = [];
88 try {
89 for (const p of await relevantPluginPaths(cwd)) {
90 dirs.push({ dir: path.join(p.path, 'skills'), origin: 'plugin', plugin: p.name });
91 }
92 } catch (e: any) {
93 logger.debug('claudeCodeSkillDirs: plugin scan failed', { err: e?.message });
94 }
95 dirs.push({ dir: path.join(claudeHome(), 'skills'), origin: 'user' });
96 dirs.push({ dir: path.join(cwd, '.claude', 'skills'), origin: 'project' });
97 return dirs;
98}
99
100/** Extra command roots contributed by Claude Code, lowest-precedence first. */
101export async function claudeCodeCommandDirs(cwd: string): Promise<ClaudeAssetDir[]> {

Callers 2

loadSkillsFunction · 0.85

Calls 5

disabledFunction · 0.85
relevantPluginPathsFunction · 0.85
claudeHomeFunction · 0.85
debugMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected