Skip to content

Commit 44e4bd6

Browse files
mcj-coderclaude
andauthored
feat: Add skill structure validation script and CI job (#389)
* docs(plans): add skill structure validation implementation plan Refs: #388 * feat(scripts): add skill structure validation foundation Refs: #388 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * feat(scripts): add required file validation Validates SKILL.md, *.test.md, and references/README.md existence. Refs: #388 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * feat(scripts): add frontmatter validation Validates name and description fields, ensures name matches directory. Refs: #388 * feat(scripts): add required section validation Validates Overview, When to Use, and Core Workflow sections exist. Note: Some skills don't currently meet this standard. Refs: #388 * feat(package): add validate:skills npm script Refs: #388 * feat(ci): add skill structure validation job Validates all skills have required files, frontmatter, and sections. Refs: #388 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * chore(ci): make skill-validation non-blocking temporarily Until existing skills are updated to comply with SKILL-FORMAT.md, the validation job should not block PRs. Refs: #388 * chore: trigger CI rerun Refs: #388 --------- Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 27e8151 commit 44e4bd6

File tree

4 files changed

+823
-0
lines changed

4 files changed

+823
-0
lines changed

.github/workflows/ci.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,25 @@ jobs:
4242
find . -name '*.md' -not -path './node_modules/*' -not -path './.git/*' -not -path './.worktrees/*' | \
4343
xargs -n 1 npx markdown-link-check --config .markdown-link-check.json --quiet
4444
45+
skill-validation:
46+
name: Skill Structure Validation
47+
runs-on: ubuntu-latest
48+
continue-on-error: true # TODO: Remove once skills comply with SKILL-FORMAT.md
49+
steps:
50+
- uses: actions/checkout@v4
51+
52+
- name: Setup Node.js
53+
uses: actions/setup-node@v4
54+
with:
55+
node-version: "20"
56+
cache: "npm"
57+
58+
- name: Install dependencies
59+
run: npm ci
60+
61+
- name: Validate skill structure
62+
run: npm run validate:skills
63+
4564
danger:
4665
name: DangerJS PR Validation
4766
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)