Quote skill descriptions for YAML validation

Fix Claude plugin validation by quoting YAML description fields.

Also add a local validator guard for unquoted descriptions containing colon-space.
This commit is contained in:
Klotzkette
2026-05-19 11:41:17 -07:00
committed by GitHub
parent e43e5d6efe
commit bcbf7909b0
197 changed files with 199 additions and 196 deletions
+3
View File
@@ -173,6 +173,9 @@ function checkSkills() {
if (v === '|' || v === '>' || v.startsWith('|') || v.startsWith('>')) {
errors.push(`${rel(skill)}: description must be single-line (no | or > block style)`);
}
if (!['"', "'"].includes(v[0]) && /:\s/.test(v)) {
errors.push(`${rel(skill)}: quote description because plain YAML scalars cannot safely contain ": "`);
}
if (v.length > 1024) {
errors.push(`${rel(skill)}: description exceeds 1024 chars (${v.length})`);
}