Skip to content

fix(pr-review): flag legacy skill metadata#108

Draft
jordelmir wants to merge 1 commit into
MiniMax-AI:mainfrom
jordelmir:codex/skill-frontmatter-legacy-hints
Draft

fix(pr-review): flag legacy skill metadata#108
jordelmir wants to merge 1 commit into
MiniMax-AI:mainfrom
jordelmir:codex/skill-frontmatter-legacy-hints

Conversation

@jordelmir

Copy link
Copy Markdown

What

Improves the PR review skill validator so malformed SKILL.md files with name: and description: outside YAML frontmatter get a specific actionable error instead of the generic missing-frontmatter message.

It also tightens frontmatter extraction so the opening and closing --- markers must be standalone marker lines.

Why

MiniMax/Mavis skill loaders depend on YAML frontmatter metadata. A common legacy shape looks like:

# Skill: Example
name: example
description: Example trigger text.

That format is easy to miss during review, but downstream agents can index those skills with empty descriptions or stale metadata. This validator change catches the exact pattern and tells contributors how to fix it.

Validation

  • python3 .claude/skills/pr-review/scripts/validate_skills.py --path <tmp legacy fixture> fails with the new targeted message.
  • python3 .claude/skills/pr-review/scripts/validate_skills.py still reports the existing baseline failure in skills/minimax-multimodal-toolkit (name: mmx-cli does not match the directory). I verified the same failure exists on origin/main before this patch.

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.

1 participant