MCPcopy Create free account
hub / github.com/cli/cli / IsSpecCompliant

Function IsSpecCompliant

internal/skills/discovery/discovery.go:1120–1128  ·  view source on GitHub ↗

IsSpecCompliant checks if a skill name matches the strict agentskills.io spec.

(name string)

Source from the content-addressed store, hash-verified

1118
1119// IsSpecCompliant checks if a skill name matches the strict agentskills.io spec.
1120func IsSpecCompliant(name string) bool {
1121 if len(name) == 0 || len(name) > 64 {
1122 return false
1123 }
1124 if strings.Contains(name, "--") {
1125 return false
1126 }
1127 return specNamePattern.MatchString(name)
1128}

Callers 3

discoverSkillsFunction · 0.92
publishRunFunction · 0.92
TestIsSpecCompliantFunction · 0.85

Calls 1

ContainsMethod · 0.80

Tested by 1

TestIsSpecCompliantFunction · 0.68