Repository navigation
validate: enforce required SKILL.md sections, description length cap, frontmatter YAML shape - #12
Closed
sergiobuilds wants to merge 1 commit into
Closed
sergiobuilds wants to merge 1 commit into
sergiobuilds wants to merge 1 commit into
Conversation
… frontmatter YAML shape Adds three checks to scripts/validate-skills.sh: - Required structural sections in every SKILL.md — Goal, Workflow, Rules, Verification. All 17 shipped skills already carry these four; enforcing them keeps new skills aligned with the shared skeleton instead of drifting into ad-hoc layouts. - Frontmatter description length cap (soft: 800 chars). Longer values signal a paragraph and should be tightened. Chosen above the current maximum (661, factchk) so no existing skill regresses. - Frontmatter YAML shape check — the block between '---' delimiters must contain at least one 'key: value' line. Catches empty or malformed frontmatter early, before it reaches the plugin loader. Rationale — the three checks were derived by empirical measurement of the current 17 SKILL.md files: all four sections are shared, description max is 661 chars, frontmatter is always the key:value form. Each check codifies an existing invariant so the next drift shows up in CI, not at install time.
sergiobuilds
force-pushed
the
pr-a-validate-strengthen
branch
from
July 15, 2026 12:53
0eec305 to
edd5b68
Compare
Contributor
Author
|
Rebased onto latest Cold-read flagged the PR body's "17 skills, max 661 chars (factchk)" as potentially stale under current HEAD. Re-measured:
Script unchanged from the original commit — the three checks compose cleanly with the upstream additions to PR body updated with the current numbers. |
Owner
|
Landed in |
LilMGenius
approved these changes
Jul 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Three additional checks in
scripts/validate-skills.sh, each derived by empirical measurement of the current 17 SKILL.md files so no existing skill regresses.Checks added
1. Required structural sections
Every
SKILL.mdmust contain## Goal,## Workflow,## Rules,## Verification.All 17 shipped skills already carry the four sections. Enforcing them keeps new skills aligned with the shared skeleton instead of drifting into ad-hoc layouts.
2. Frontmatter description length cap
Soft limit of 800 chars on
description:. Chosen above the current maximum (661,factchk) so no existing skill regresses. A longer value signals a paragraph and should be tightened.3. Frontmatter YAML shape
The block between
---delimiters must contain at least onekey: valueline. Catches empty or malformed frontmatter before it reaches the plugin loader.Verification
All 17 existing skills pass. Only new drift (a SKILL.md missing a section, a runaway description, or a broken frontmatter block) will trigger the new checks.