yaml-agent-format

Define Claude Code agents in YAML with Zod schema validation.

7|4|Updated Feb 26, 2026
One-click install
npx skills add https://github.com/MadAppGang/magus --skill yaml-agent-format
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: yaml-agent-format
Source: https://github.com/MadAppGang/magus/tree/main/plugins/agentdev/skills/yaml-agent-format
Command: npx skills add https://github.com/MadAppGang/magus --skill yaml-agent-format

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires yaml, zod, and includes references (resource) components.

What problem does it solve?

This Skill provides a structured, machine-parseable YAML format as an alternative to Markdown for defining Claude Code agents, simplifying programmatic generation and validation.

Core Features & Use Cases

  • YAML Schema Definition: Offers a clear schema for agent properties like name, role, tools, instructions, and examples.
  • Conversion Utilities: Includes patterns and examples for converting between Markdown and YAML agent formats.
  • Validation Tools: Demonstrates schema validation using Zod for ensuring agent definition integrity.
  • Use Case: You need to programmatically generate dozens of simple agents for a new feature. Using the YAML format and provided validation scripts ensures consistency and reduces errors compared to manual Markdown creation.

Quick Start

Use the yaml-agent-format skill to convert the markdown agent definition located at '/path/to/your/agent.md' into its YAML equivalent.

Frequently Asked Questions about yaml-agent-format

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert Claude Code agent definitions from Markdown to YAML?

To convert Markdown agent definitions to YAML, you use the provided conversion utilities that transform unstructured text into a machine-parseable schema. This allows programmatic generation and schema validation for automated workflows.

What is the best way to programmatically generate Claude Code agents at scale?

The best way to generate agents at scale is defining them with a structured YAML schema. This format enables programmatic generation and ensures consistency across dozens of agents while reducing manual definition errors.

Does Zod validation work with YAML agent schemas for Claude Code?

Yes, Zod validation works with YAML agent schemas by enforcing data integrity for defined agent properties like name, role, tools, and instructions. This ensures your structured YAML definitions meet required schema constraints before deployment.

When do I need a YAML format instead of Markdown for agent definitions?

You need a YAML format instead of Markdown when building automated workflows that require machine-parseable agent definitions. YAML provides structured, data-centric properties that simplify programmatic generation and validation compared to manual Markdown creation.

Can I define agent properties like tools and instructions using a YAML schema?

Yes, you can define agent properties like name, role, tools, instructions, and examples using a clear YAML schema. This structured approach provides a machine-parseable alternative for creating consistent Claude Code agents.

Are there limitations to using YAML for Claude Code agent definitions?

YAML agent definitions require dependency management with libraries like yaml and zod, adding setup overhead compared to native Markdown. However, this approach is necessary for achieving structured validation and programmatic generation in automated environments.