بنقرة واحدة
skill-md-validator
Validates SKILL.md files for format, completeness, and best practices
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Validates SKILL.md files for format, completeness, and best practices
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Automated API testing assistant for REST and GraphQL endpoints
Backend development expert specializing in API design, microservices, database architecture, and system performance. Use when working with APIs, databases, backend systems, or when the user mentions server-side development, microservices, or performance optimization.
Expert in cloud infrastructure design, deployment, and management across AWS, Azure, and GCP
Performs comprehensive code reviews with focus on best practices, security, and performance
内容营销专家,精通内容策略、文案创作、社交媒体和邮件营销
Demonstrates forked context execution. This skill runs in an isolated sub-agent context with its own conversation history and tool access.
| name | skill-md-validator |
| description | Validates SKILL.md files for format, completeness, and best practices |
| version | 1.0.0 |
| author | Documentation Team <docs@example.com> |
| tags | ["validation","documentation","quality","tooling"] |
| dependencies | [] |
A utility for validating SKILL.md files to ensure they follow best practices and are complete.
name: - Skill name (required)description: - Skill description (required)version: - Semantic version (required)------./validate_skill.sh path/to/SKILL.md
for skill in examples/.claude/skills/*/SKILL.md; do
echo "Validating $skill..."
./validate_skill.sh "$skill"
echo
done
# .github/workflows/validate-skills.yml
name: skill-md-validator
on: [push, pull_request]
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Validate SKILL.md files
run: |
for skill in examples/.claude/skills/*/SKILL.md; do
./examples/.claude/skills/skill-validator/validate_skill.sh "$skill"
done
🔍 Validating code-reviewer/SKILL.md...
✅ YAML frontmatter starts correctly
✅ YAML frontmatter formatted correctly
✅ Found required field: name:
✅ Found required field: description:
✅ Found required field: version:
✅ Content present (2540 characters)
✅ Contains Markdown headers
🎉 Validation complete! SKILL.md looks good.
🔍 Validating bad-example/SKILL.md...
❌ Missing YAML frontmatter start (---)
Validation failed. Please fix the issues above.
Start with YAML frontmatter
---
name: "My Skill"
description: "What this skill does"
version: "1.0.0"
---
Add meaningful content
Follow naming conventions
Include metadata
❌ Error: Missing required field: name:
Fix: Add the name field to YAML frontmatter
---
name: skill-md-validator
---
❌ Error: YAML parsing error
Fix: Ensure proper YAML syntax
- Use spaces for indentation (not tabs)
- Quote strings with special characters
- Properly format lists
⚠️ Warning: Content seems very short (< 50 chars)
Fix: Add more detailed instructions and examples
#!/bin/bash
# .git/hooks/pre-commit
for file in $(git diff --cached --name-only | grep SKILL.md); do
if ! ./examples/.claude/skills/skill-validator/validate_skill.sh "$file"; then
echo "❌ Validation failed for $file"
exit 1
fi
done
# Makefile
.PHONY: validate-skills
validate-skills:
@echo "Validating all SKILL.md files..."
@for skill in examples/.claude/skills/*/SKILL.md; do \
./examples/.claude/skills/skill-validator/validate_skill.sh "$$skill"; \
done
You can extend this validator to check for:
Custom fields
if ! grep -q "author:" "$SKILL_FILE"; then
echo "⚠️ Warning: Missing author field"
fi
Code examples
if ! grep -q '```' "$SKILL_FILE"; then
echo "⚠️ Warning: No code examples found"
fi
Tag conventions
tags=$(sed -n '/^---$/,/^---$/p' "$SKILL_FILE" | grep "^tags:" | tail -n +1)
if [ -z "$tags" ]; then
echo "⚠️ Warning: No tags defined"
fi