(skill: Command)
| 98 | * (name, description, whenToUse) since full content is only loaded on invocation. |
| 99 | */ |
| 100 | export 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. |
no test coverage detected