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

Function estimateSkillFrontmatterTokens

src/skills/loadSkillsDir.ts:100–105  ·  view source on GitHub ↗
(skill: Command)

Source from the content-addressed store, hash-verified

98 * (name, description, whenToUse) since full content is only loaded on invocation.
99 */
100export function estimateSkillFrontmatterTokens(skill: Command): number {
101 const frontmatterText = [skill.name, skill.description, skill.whenToUse]
102 .filter(Boolean)
103 .join(' ')
104 return roughTokenCountEstimation(frontmatterText)
105}
106
107/**
108 * Gets a unique identifier for a file by resolving symlinks to a canonical path.

Callers 2

_temp3Function · 0.85
countSkillTokensFunction · 0.85

Calls 1

Tested by

no test coverage detected