Skip to content

fix: add strict YAML validation for plugin frontmatter#399

Merged
tmchow merged 1 commit intomainfrom
feat/fix-skill-triggers
Mar 26, 2026
Merged

fix: add strict YAML validation for plugin frontmatter#399
tmchow merged 1 commit intomainfrom
feat/fix-skill-triggers

Conversation

@tmchow
Copy link
Collaborator

@tmchow tmchow commented Mar 26, 2026

Prevents unquoted colons in frontmatter descriptions from breaking install --to opencode/codex (fixes #351, fixes #349). Three lightweight layers:

  1. CI test — validates every agent/skill markdown file across both plugins parses with strict YAML. Any future unquoted colon fails the build.
  2. Better error messageparseFrontmatter now catches YAML errors and re-throws with the file path and a hint: "quote frontmatter values containing colons". Previously the raw js-yaml exception gave no file context.
  3. AGENTS.md checklist item — reminds contributors to quote descriptions containing colons.

Compound Engineering v2.54.1
🤖 Generated with Claude Opus 4.6 (1M context, extended thinking) via Claude Code

Adds a test suite that validates every agent and skill markdown file
in both plugins parses with strict YAML. Catches unquoted colons in
description fields before they reach users via install.

Also adds a checklist item to AGENTS.md reminding contributors to
quote descriptions containing colons.

Closes #351
@tmchow tmchow merged commit 0877b69 into main Mar 26, 2026
2 checks passed
@github-actions github-actions bot mentioned this pull request Mar 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Broken installation of skills for opencode and codex Bug: Frontend Skill Description broken

1 participant