MCPcopy
hub / github.com/npmx-dev/npmx.dev / validateSkill

Function validateSkill

server/utils/skills.ts:157–166  ·  view source on GitHub ↗
(frontmatter: SkillFrontmatter)

Source from the content-addressed store, hash-verified

155 * Validate skill frontmatter and return warnings.
156 */
157export function validateSkill(frontmatter: SkillFrontmatter): SkillWarning[] {
158 const warnings: SkillWarning[] = []
159 if (!frontmatter.license) {
160 warnings.push({ type: 'warning', message: 'No license specified' })
161 }
162 if (!frontmatter.compatibility) {
163 warnings.push({ type: 'warning', message: 'No compatibility info' })
164 }
165 return warnings
166}
167
168/**
169 * Fetch skill list with frontmatter for discovery endpoint.

Callers 1

fetchSkillsListFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected