Agent skill
validate-coaches
Validates coach markdown files for required frontmatter fields, sections, and naming conventions
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/validate-coaches
SKILL.md
Validate Coaches Skill
CLAUDE: When this skill is invoked with /validate-coaches, validate all coach files in the coaches/ directory.
Purpose
Validates coach definition markdown files for schema compliance, required fields, section structure, and naming conventions.
Usage
/validate-coaches
Validation Steps
Step 1: Find All Coach Files
find coaches -name "*-coach.md" -type f
Step 2: For Each File, Validate
CLAUDE: Read each coach file and verify:
Frontmatter Validation (Required Fields)
name: Must be kebab-case, must match filename (without-coach.md)title: Must be present and non-emptycategory: Must be one of:training,nutrition,recovery,mobility,recipes,custom
Frontmatter Validation (Optional Fields)
tags: Must be an array if presentvisibility: Must be one of:tenant,public,private(defaults totenant)prerequisites.providers: Array of provider names if presentprerequisites.min_activities: Number if presentprerequisites.activity_types: Array of activity types if present
Section Validation (Required)
## Purpose- Must exist, must have content## Instructions- Must exist, must have content
Section Validation (Optional)
## When to Use## Example Inputs## Example Outputs## Success Criteria## Related Coaches
Step 3: Category Directory Check
# Each file should be in the correct category directory
# training/*.md should have category: training
# nutrition/*.md should have category: nutrition
# etc.
Manual Validation Commands
List All Coach Files
find coaches -name "*-coach.md" -type f | sort
Check Frontmatter Syntax
# For each file, extract and validate YAML frontmatter
head -20 coaches/training/marathon-coach.md
Verify Naming Convention
# Filename should be: {name}-coach.md
# Frontmatter name should match
Load Coaches into Database
cargo run --bin seed-coaches
This command will fail if any coach file is malformed.
Validation Checklist
For each coach file:
- Filename follows
{name}-coach.mdpattern - Has valid YAML frontmatter between
---markers -
namefield matches filename (without.md) -
titlefield is present -
categoryfield is valid -
## Purposesection exists with content -
## Instructionssection exists with content - File is in correct category directory
Success Criteria
- All coach files pass validation
cargo run --bin seed-coachescompletes without errors- No orphaned coach files (files without proper frontmatter)
- Category directories match frontmatter category values
Example Valid Coach File
---
name: example-coach
title: Example Coach
category: training
tags: [example, demo]
visibility: tenant
---
## Purpose
Brief description of what this coach specializes in.
## Instructions
You are an expert coach specializing in [area].
Related Skills
test-intelligence-algorithms- Algorithm validation
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?