Skip to content

Conversation

@dicksontsai
Copy link
Contributor

@dicksontsai dicksontsai commented Feb 5, 2026

What

Adds a GitHub Actions workflow that validates YAML frontmatter in .md files changed by a PR. Only runs when PRs touch files in agents/, skills/, or commands/ directories.

Validation script

The script (.github/scripts/validate-frontmatter.ts) parses YAML frontmatter and checks required fields:

File type Checks
Agents (agents/*.md) name and description must be present and parseable
Skills (skills/*/SKILL.md) description must be present
Commands (commands/*.md) description must be present and parseable

Values containing special YAML characters ({}[]*&#\!|>%@) are auto-quoted before parsing.

Usage

# Validate specific files (used by CI)
bun .github/scripts/validate-frontmatter.ts file1.md file2.md

# Scan entire directory
bun .github/scripts/validate-frontmatter.ts

Context

See #337 for the frontmatter fixes that motivated this CI check.

Adds a GitHub Actions workflow that validates frontmatter in agent,
skill, and command .md files changed by a PR. Checks:

- Agents: name and description are present and parseable
- Skills: description is present (required for Skill tool discovery)
- Commands: description is present and parseable

The workflow only runs when PRs touch files in agents/, skills/, or
commands/ directories, and only validates the changed files.
@dicksontsai dicksontsai force-pushed the dickson/validate-frontmatter-ci branch from 37336b3 to 25617fd Compare February 5, 2026 00:21
@dicksontsai dicksontsai marked this pull request as ready for review February 5, 2026 00:21
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.

2 participants