IsSpecCompliant checks if a skill name matches the strict agentskills.io spec.
(name string)
| 1118 | |
| 1119 | // IsSpecCompliant checks if a skill name matches the strict agentskills.io spec. |
| 1120 | func 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 | } |