Skip to content

Agents Validator

The Agents validator checks Claude Code agent definitions for correctness, including names, descriptions, tools, and model configuration.

What It Checks

  • Agent frontmatter schema compliance
  • Required fields (name, description)
  • Name/filename consistency
  • Tool references
  • Model configuration
  • Skill references
  • Hook configuration
  • Body content length

Rules

This validator includes 12 rules. See the Agents rules category for the complete list.

RuleSeverityDescription
agent-nameerrorInvalid agent name format
agent-descriptionerrorMissing or invalid description
agent-modelerrorInvalid model configuration
agent-name-filename-mismatcherrorName does not match filename
agent-skills-not-founderrorReferenced skill not found
agent-body-too-shortwarnAgent body content below minimum length

CLI Usage

bash
# Validate all agents
claudelint validate-agents

# Verbose output
claudelint validate-agents --verbose

See Also