Back to list
nkrebs13

validate-skills

by nkrebs13

0🍴 0📅 Jan 18, 2026

SKILL.md


name: validate-skills description: Validate all skills in the repository for proper structure, frontmatter, naming conventions, and required files. Use when you need to check skill quality before publishing or after making changes. version: "1.0.0" author: Nathan Krebs publish: true triggers:

  • /validate-skills
  • /validate-skills all

Validate Skills

Check all skills for proper structure, frontmatter, naming conventions, and required files.

Usage

/validate-skills           # Validate all skills in repository
/validate-skills <name>    # Validate specific skill

Validation Rules

1. Directory Structure

Each skill must have:

RequiredFilePurpose
SKILL.mdSkill definition with frontmatter
RecommendedREADME.mdHuman-readable documentation

Optional directories:

  • scripts/ - Supporting scripts
  • workflows/ - Sub-workflow definitions
  • references/ - Reference documentation

2. Frontmatter Validation

Required fields in SKILL.md:

---
name: skill-name        # Required: lowercase, hyphens only
description: ...        # Required: description for Claude
---

Optional fields:

version: "1.0.0"        # Recommended
author: Name            # Recommended
publish: true/false     # Default: true
triggers:               # Recommended
  - /skill-name
model: sonnet           # Optional

3. Naming Conventions

RuleValidInvalid
Lowercasemy-skillMy-Skill
Hyphen separatormy-skillmy_skill
Directory matches nameskills/foo/ with name: fooMismatch
No spacesmy-skillmy skill

4. Content Checks

  • SKILL.md has meaningful description (>20 chars)
  • No hardcoded personal paths (/Users/username/)
  • No secrets or API keys
  • Scripts are executable (if present)

Validation Workflow

  1. List all skills in ~/Personal/GithubSkills/skills/
  2. For each skill:
    • Check directory structure
    • Parse and validate frontmatter
    • Check naming conventions
    • Run content checks
  3. Generate report

Implementation

# List skills
ls ~/Personal/GithubSkills/skills/

# For each skill, parse frontmatter
python3 ~/Personal/GithubSkills/skills/sync-skills/scripts/parse_frontmatter.py ~/Personal/GithubSkills/skills/<name>/SKILL.md

# Check for secrets
python3 ~/Personal/GithubSkills/scripts/scan_secrets.py --directory ~/Personal/GithubSkills/skills/<name>

Output Format

## Skill Validation Report

### Summary
- Total skills: 5
- Passed: 4
- Failed: 1
- Warnings: 2

### Results

| Skill | Status | Issues |
|-------|--------|--------|
| asset-gen | ✓ Pass | - |
| audit-project | ✓ Pass | 1 warning |
| sync-skills | ✓ Pass | - |
| my-skill | ✗ Fail | Missing description |

### Details

#### audit-project
⚠ **Warning**: No README.md found

#### my-skill
✗ **Error**: Frontmatter missing required field: description

Error Levels

LevelMeaningBlocks Publish
ErrorCritical issueYes
WarningRecommended fixNo
InfoSuggestionNo

Score

Total Score

60/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon