mirror of
https://github.com/Klotzkette/claude-fuer-deutsches-recht
synced 2026-06-09 10:03:19 +00:00
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:
@@ -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})`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user