MCPcopy Index your code
hub / github.com/codeaashu/claude-code / getSkillsPath

Function getSkillsPath

src/skills/loadSkillsDir.ts:78–94  ·  view source on GitHub ↗
(
  source: SettingSource | 'plugin',
  dir: 'skills' | 'commands',
)

Source from the content-addressed store, hash-verified

76 * Returns a claude config directory path for a given source.
77 */
78export function getSkillsPath(
79 source: SettingSource | 'plugin',
80 dir: 'skills' | 'commands',
81): string {
82 switch (source) {
83 case 'policySettings':
84 return join(getManagedFilePath(), '.claude', dir)
85 case 'userSettings':
86 return join(getClaudeConfigHomeDir(), dir)
87 case 'projectSettings':
88 return `.claude/${dir}`
89 case 'plugin':
90 return 'plugin'
91 default:
92 return ''
93 }
94}
95
96/**
97 * Estimates token count for a skill based on frontmatter only

Callers 2

getSourceSubtitleFunction · 0.85
getWatchablePathsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected