Help us improve
Share bugs, ideas, or general feedback.
From core
Validate agent files, YAML frontmatter (including color attribute), and best practices
npx claudepluginhub talent-factory/claude-plugins --plugin coreHow this command is triggered — by the user, by Claude, or both
Slash command
/core:check-agents [agent-path] [--fix]This command is limited to the following tools:
The summary Claude sees in its command listing — used to decide when to auto-load this command
# Agent Validation Tool This command validates Claude Code agents for: - YAML frontmatter structure (including **color attribute**) - Markdown syntax - Agent-specific best practices - Documentation completeness ## Usage ## Validation Checks ### 1. YAML Frontmatter **Required**: - `name` (String, lowercase with hyphens, e.g., "code-reviewer") - `description` (String, 1-200 characters) - `color` (String, one of the permitted colors) **Optional**: - `category` (String, e.g., "quality-security", "specialized-domains") - `model` (String: "sonnet", "opus", "haiku") - `tools` (Array of ...
/agent-auditAudits code-review agents, skills, and hooks for structural compliance, producing a report table of FAIL/WARN items. Supports [file-path | --all] [--fix] for targeted audits and auto-fixes.
Share bugs, ideas, or general feedback.
This command validates Claude Code agents for:
# Validate a specific agent
/core:check-agents agents/claude/agents/code-reviewer.md
# Or without path for interactive selection
/core:check-agents
Required:
name (String, lowercase with hyphens, e.g., "code-reviewer")description (String, 1-200 characters)color (String, one of the permitted colors)Optional:
category (String, e.g., "quality-security", "specialized-domains")model (String: "sonnet", "opus", "haiku")tools (Array of tool names or comma-separated string)allowed-tools (Array of tool names)Format:
---
name: code-reviewer
description: Expert in code reviews with focus on quality and security
category: quality-security
model: sonnet
color: blue
tools: Read, Write, Grep
---
Permitted colors:
blue - Default for code/development agentsgreen - For testing/validation agentsred - For security/critical agentsyellow - For documentation agentspurple - For research/analysis agentsorange - For build/deployment agentscyan - For data/database agentsmagenta - For UI/UX agentsValidation:
Recommendations:
# Good
name: code-reviewer
category: quality-security
color: blue
# Good
name: test-automator
category: testing
color: green
# Missing
name: markdown-formatter
category: specialized-domains
# NO color attribute!
# Wrong color
name: security-auditor
color: pink # Not permitted
# Agent Name)Recommended structure:
# Agent Name
[Brief description]
## Role / Core Expertise
[What the agent can do]
## Activation / Approach
[When and how the agent is used]
## Process / Workflow
[Step-by-step procedure]
## Deliverables / Output
[What the agent produces]
Name:
code-reviewerCodeReviewer, code_reviewer.md)Description:
Documentation (Markdown body):
Category (optional, but recommended):
quality-security, specialized-domains, skill-builder, development, testingModel (optional):
sonnet - Default (balanced)opus - Complex taskshaiku - Fast, simple tasksWhen executing this command, proceed as follows:
Determine agent path:
.md files in claude/agents/ (recursive)Read file:
Parse YAML frontmatter:
---name, description, colorcategory, model, toolsColor attribute check:
Validate Markdown:
name in YAML (recommended)Validate name:
[a-z][a-z0-9-]*Output report
Compliant agent:
## Validation Report: code-reviewer
YAML Frontmatter: Valid
Color Attribute: blue (valid)
Markdown Structure: Valid
Name Convention: Valid
Best Practices: Compliant
### Details:
- Name: code-reviewer (matches filename)
- Description: "Expert in code reviews..." (91 chars)
- Category: quality-security
- Model: sonnet
- Color: blue (appropriate for code review)
Agent is fully compliant!
Agent with missing color:
## Validation Report: markdown-syntax-formatter
YAML Frontmatter: Valid (except color)
Color Attribute: MISSING
Markdown Structure: Valid
Name Convention: Valid
Best Practices: Partially compliant
### Issues to fix:
1. REQUIRED: Add 'color' field to YAML frontmatter
Recommended: color: yellow (documentation/formatting agent)
### Recommended fix:
```yaml
---
name: markdown-syntax-formatter
category: specialized-domains
description: Converts text with visual formatting...
color: yellow # ADD THIS LINE
---
Agent with invalid color:
## Validation Report: example-agent
YAML Frontmatter: Valid (except color)
Color Attribute: INVALID ("pink" not allowed)
Markdown Structure: Valid
Name Convention: Valid
### Issues to fix:
1. Color "pink" is not in allowed colors list
Change to one of: blue, green, red, yellow, purple, orange, cyan, magenta
### Recommended fix:
Choose appropriate color based on agent function:
- If code-related -> blue
- If testing-related -> green
- If security-related -> red
- If documentation-related -> yellow
- If research-related -> purple
Bulk validation (all agents):
## Bulk Validation Report: claude/agents/
Found 5 agent files:
code-reviewer.md - Fully compliant
markdown-syntax-formatter.md - Missing color
skill-documenter-agent.md - Missing color
skill-elicitation-agent.md - Missing color
skill-generator-agent.md - Missing color
### Summary:
- Total agents: 5
- Compliant: 1 (20%)
- Missing color: 4 (80%)
- Invalid color: 0 (0%)
- Other issues: 0 (0%)
### Agents needing color attribute:
1. markdown-syntax-formatter.md -> Recommended: yellow
2. skill-documenter-agent.md -> Recommended: yellow
3. skill-elicitation-agent.md -> Recommended: purple
4. skill-generator-agent.md -> Recommended: blue
### Quick fix script:
Would you like me to add the recommended colors to all agents?
After validation, optionally offer:
Auto-fix available!
Should I automatically add the missing color attributes?
[Yes] Add recommended colors
[No] Show report only
[Manual] Show me what to do
If "Yes":
name and descriptioncolor: [color] to YAML frontmatterThis command is useful:
Single agent with color:
/core:check-agents agents/claude/agents/code-reviewer.md
-> Fully compliant (color: blue)
Single agent without color:
/core:check-agents agents/claude/agents/markdown-syntax-formatter.md
-> Missing color attribute
-> Recommended: yellow (documentation agent)
Check all agents:
/core:check-agents
-> Found 5 agents, 4 missing color
-> [Show bulk report]
With auto-fix:
/core:check-agents --fix
-> Fixed 4 agents, added color attributes
-> [Show changes]
For orientation during auto-fix or manual assignment:
| Agent Type | Recommended Color | Examples |
|---|---|---|
| Code Review, Development | blue | code-reviewer, developer |
| Testing, Validation | green | test-automator, validator |
| Security, Critical | red | security-auditor, penetration-tester |
| Documentation, Writing | yellow | documenter, markdown-formatter |
| Research, Analysis | purple | researcher, analyst |
| Build, Deployment, CI/CD | orange | deployer, builder |
| Data, Database | cyan | data-engineer, db-optimizer |
| UI/UX, Design | magenta | ui-designer, ux-specialist |
Keywords for auto-detection: