agentleFS
lodetomasilodetomasi/claude-code-skills-tools/.claude/skills/skill-validator/SKILL.md

skill-validator

Skill0 starsChanged 13 months agoMITView on GitHub

Validate Claude Code SKILL.md files for correct YAML frontmatter, structure, and markdown syntax

17 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use fetch-library-docs, browsing-with-playwright and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • Rehan-Ul-HaqSkill

    fetch-library-docs

    Fetches official documentation for external libraries and frameworks (React, Next.js, Prisma, FastAPI, Express, Tailwind, MongoDB, etc.) with 60-90% token savings via content-type filtering. Use this skill when implementing features using library APIs, debugging library-specific errors, troubleshooting configuration issues, installing or setting up frameworks, integrating third-party packages, upgrading between library versions, or looking up correct API patterns and best practices. Triggers automatically during coding work - fetch docs before writing library code to get correct patterns, not after guessing wrong.

    Also in 6 projects that use this

  • mjunaidcaSkill

    browsing-with-playwright

    Browser automation using Playwright MCP. Navigate websites, fill forms, click elements, take screenshots, and extract data. Use when tasks require web browsing, form submission, web scraping, UI testing, or any browser interaction. NOT when only fetching static content (use curl/wget instead).

    Also in 5 projects that use this

  • muhammad-anas35Skill

    skill-creator-pro

    Creates production-grade, reusable skills that extend Claude's capabilities. This skill should be used when users want to create a new skill, improve an existing skill, or build domain-specific intelligence. Gathers context from codebase, conversation, and authentic sources before creating adaptable skills.

    Also in 7 projects that use this

  • dazuckSkill

    interview

    Interview me about a plan to flesh out requirements before implementation. Asks non-obvious questions one at a time until all ambiguities are resolved.

    Also in 4 projects that use this

  • JetBrainsSkill

    doc-coauthoring

    Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision docs, or similar structured content. This workflow helps users efficiently transfer context, refine content through iteration, and verify the doc works for readers. Trigger when user mentions writing docs, creating proposals, drafting specs, or similar documentation tasks.

    Also in 4 projects that use this

  • GoogleSkill

    internal-comms

    A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill whenever asked to write some sort of internal communications (status reports, leadership updates, 3P updates, company newsletters, FAQs, incident reports, project updates, etc.).

    Also in 4 projects that use this

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 15 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    After creating new skills

    line 13
  2. Distinctive:

    Before committing skill changes

    line 14
  3. Distinctive:

    When troubleshooting skill loading issues

    line 15
  4. Distinctive:

    Run the validator on your skills directory:

    line 40

“Common” is measured: kept by at least 6 in 10 of the 15 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Skill Validator

Overview

Validates SKILL.md files in Claude Code skill directories to ensure proper YAML frontmatter format, required fields, document structure, and markdown syntax compliance.

When to Use

  • After creating new skills
  • Before committing skill changes
  • When troubleshooting skill loading issues
  • During skill repository maintenance

Validation Checks

1. YAML Frontmatter

  • Presence of opening/closing ---
  • Required field: name (lowercase, hyphens only, max 64 chars)
  • Required field: description (max 1024 chars)
  • Optional field: allowed-tools

2. Document Structure

  • Main heading (# Title)
  • Overview section
  • Capabilities section
  • Code examples present
  • Reasonable content length

3. Markdown Syntax

  • Valid code block languages
  • Broken links detection
  • Proper heading hierarchy

Usage

Run the validator on your skills directory:

python .claude/skills/skill-validator/skill-validator.py .claude/skills

Expected Output

Success:

🔍 Validating skills...
Found 17 skill files

==========================================================
SKILL VALIDATION REPORT
==========================================================

Validated 17 skills

✅ All skills are valid!

With Issues:

==========================================================
SKILL VALIDATION REPORT
==========================================================

❌ ERRORS (2):
  • aws-cost-analyzer/SKILL.md: Missing required field: description
  • python-profiler/SKILL.md: Name should be lowercase with hyphens

⚠️  WARNINGS (3):
  • java-profiler/SKILL.md: Missing ## Overview section
  • memory-analyzer/SKILL.md: Document seems short (45 lines)
  • tdd-workflow/SKILL.md: No code examples found

❌ Validation failed - please fix errors

Fixing Common Issues

Invalid Name Format

# ❌ BAD
name: PythonProfiler  # Uppercase
name: python_profiler # Underscores

# ✅ GOOD
name: python-profiler

Description Too Long

# ❌ BAD (>1024 chars)
description: This is a very long description that goes on and on...

# ✅ GOOD (<1024 chars)
description: Python profiling for CPU, memory, and performance analysis

Missing Required Sections

# Skill Name

## Overview
Brief description of what this skill does...

## Capabilities
What the skill can do:
- Feature 1
- Feature 2

Integration with CI/CD

GitHub Actions

name: Validate Skills

on: [push, pull_request]

jobs:
  validate:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: actions/setup-python@v4
        with:
          python-version: '3.x'
      - name: Validate Skills
        run: python .claude/skills/skill-validator/skill-validator.py .claude/skills

Exit Codes

  • 0: All skills valid
  • 1: Validation errors or warnings found

Implementation

The validator is implemented in Python and uses:

  • YAML parsing for frontmatter validation
  • Regex matching for name/description format validation
  • Markdown analysis for structure checking
  • Path traversal to find all SKILL.md files recursively

Run with:

# Validate all skills
python .claude/skills/skill-validator/skill-validator.py .claude/skills

# Show help
python .claude/skills/skill-validator/skill-validator.py

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.