
validate-agent-files
by JBurlison
Meta Prompting to generate AI instructions, agents, skills & prompts
SKILL.md
name: validate-agent-files description: Validates GitHub Copilot customization files (agents, skills, prompts, instructions) for correct format and structure. Use when checking if agent files are properly configured, troubleshooting agent issues, or before committing new customization files.
Validate Agent Files
Validates that agent, skill, prompt, and instruction files follow the correct format and structure.
When to Use
- Before committing new agents, skills, prompts, or instructions
- When an agent isn't behaving as expected
- To audit existing customization files for issues
- After modifying any
.githubcustomization files
Validation Process
Step 1: Identify File Type
Determine the type based on location and extension:
.github/agents/*.md→ Agent file.github/skills/*/SKILL.md→ Skill file.github/prompts/*.prompt.md→ Prompt file.github/instructions/*.instructions.md→ Instruction file
Step 2: Apply Type-Specific Validation
Agent File Validation (.github/agents/*.md)
Required Structure:
---
name: agent-name
description: When to use this agent (should include examples)
---
[System prompt body]
Supported Frontmatter Attributes:
name(required) - Agent identifierdescription(required) - When/how to use, with examplestools- List of allowed toolsmodel- Specific model to usehandoffs- Other agents this can delegate to
Checks:
- ✓ YAML frontmatter present with
---delimiters - ✓
namefield exists and is non-empty - ✓
descriptionfield exists (recommend 50+ characters with examples) - ✓ Body content exists after frontmatter
- ✓ If
toolsspecified, they are valid tool names
Common Issues:
- Missing
---delimiters - Empty or minimal description
- No usage examples in description
- Body content missing or too brief
Skill File Validation (.github/skills/*/SKILL.md)
Required Structure:
---
name: skill-name
description: What this skill does and when to use it.
---
[Skill instructions body]
Supported Frontmatter Attributes:
name(required) - Must match parent directory name, lowercase with hyphensdescription(required) - Max 1024 chars, describes function and triggerslicense(optional) - License informationcompatibility(optional) - Environment requirementsmetadata(optional) - Key-value pairs for additional infoallowed-tools(optional) - Space-delimited pre-approved tools
Checks:
- ✓ File is named
SKILL.mdinside a directory - ✓
namematches parent directory name exactly - ✓
nameis lowercase, alphanumeric with hyphens only - ✓
namedoesn't start/end with hyphen or have consecutive hyphens - ✓
descriptionis 1-1024 characters - ✓ Body content provides clear instructions
Common Issues:
namedoesn't match directory name- Uppercase characters in name
- Description too vague (should include trigger keywords)
- Missing instructions in body
Prompt File Validation (.github/prompts/*.prompt.md)
Required Structure:
---
mode: agent
description: What this prompt does
---
[Prompt template with {{variables}}]
Supported Frontmatter Attributes:
mode(optional) - One of:agent(default),ask,edit,generatetools(optional) - Available tools for this promptdescription(optional but recommended) - What the prompt accomplishes
Checks:
- ✓ File has
.prompt.mdextension - ✓ If
modepresent, it's a valid value - ✓ Variables use
{{variableName}}syntax - ✓ Body content exists (the prompt itself)
Common Issues:
- Wrong extension (
.mdinstead of.prompt.md) - Invalid
modevalue - Undefined variables in template
Instruction File Validation (.github/instructions/*.instructions.md)
Required Structure:
---
applyTo: "**/*.ts"
---
[Contextual instructions]
Supported Frontmatter Attributes:
applyTo(required) - Glob pattern(s) for when instructions apply
Checks:
- ✓ File has
.instructions.mdextension - ✓
applyTofield exists - ✓
applyTocontains valid glob pattern(s) - ✓ Body content provides meaningful guidance
Common Issues:
- Wrong extension
- Missing
applyTofield - Invalid glob syntax
- Empty or minimal instructions
Output Format
## Validation: [filename]
**Type:** [Agent|Skill|Prompt|Instruction]
**Status:** ✅ Valid | ⚠️ Warnings | ❌ Invalid
### Issues
- [Issue 1 with line number if applicable]
- [Issue 2]
### Recommendations
- [Suggestion for improvement]
Batch Validation
When validating all files, provide summary:
## Validation Summary
| Type | Total | Valid | Warnings | Invalid |
|------|-------|-------|----------|---------|
| Agents | X | X | X | X |
| Skills | X | X | X | X |
| Prompts | X | X | X | X |
| Instructions | X | X | X | X |
### Files Requiring Attention
- [List files with issues]
Score
Total Score
Based on repository quality metrics
SKILL.mdファイルが含まれている
ライセンスが設定されている
100文字以上の説明がある
GitHub Stars 100以上
3ヶ月以内に更新がある
10回以上フォークされている
オープンIssueが50未満
プログラミング言語が設定されている
1つ以上のタグが設定されている
Reviews
Reviews coming soon