aix agent validate

aix agent validate

Validate an agent file

Synopsis

Validate an agent definition file for required fields and format.

Checks for required fields, valid YAML frontmatter, and common issues. Use –strict for additional checks beyond the basic requirements.

Exit codes: 0 - Valid agent (warnings OK) 1 - Invalid agent or validation errors

Examples:

Validate an agent file

aix agent validate ./AGENT.md

Strict validation

aix agent validate ./AGENT.md –strict

JSON output for CI/CD

aix agent validate ./AGENT.md –json

aix agent validate <path> [flags]

Options

  -h, --help     help for validate
      --json     output results as JSON
      --strict   enable strict validation mode

Options inherited from parent commands

      --log-file string     write logs to file in JSON format
      --log-format string   log format: text, json (default "text")
  -p, --platform strings    target platform(s): claude, opencode (default: all detected)
  -q, --quiet               suppress non-error output
  -v, --verbose count       increase verbosity level (e.g., -v, -vv)

SEE ALSO

Auto generated by spf13/cobra on 24-Jan-2026