Skip to content

feat: Add skill structure validation script and CI job #388

@mcj-coder

Description

@mcj-coder

Summary

Implement the structure validation automation recommended in the retrospective
(2026-01-16-skills-repository-improvement-plan.md).

Requirements

  1. Create validation script that checks:

    • Required files exist (SKILL.md, *.test.md)
    • Required sections present (Overview, When to Use, Core Workflow)
    • Frontmatter has required fields (name, description)
    • references/README.md exists if references/ directory exists
  2. Add validation to CI workflow

  3. Add npm script for local validation

Acceptance Criteria

  • Script created at scripts/validate-skill-structure.cjs (PR #389)
  • Script validates all structure requirements from SKILL-FORMAT.md (evidence)
  • Script has clear error messages with file paths and line numbers (evidence)
  • CI job added to .github/workflows/ci.yml (PR #389)
  • npm script added: npm run validate:skills (PR #389)
  • Validation script runs successfully on all 55 skills (evidence)
  • Lint passes (evidence)

Plan

See docs/plans/2026-01-16-skill-structure-validation.md

Note

The validation script correctly identifies 45 compliance issues in existing skills. This is expected behavior - the tooling is working as designed and will drive future compliance work. The CI job is set to continue-on-error: true temporarily.

Labels

enhancement, ci

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions