yaml-agent-format

yaml-agent-format is a skill for Claude Code, Codex from MadAppGang/claude-code. It costs 67 tokens per session (4,601 once invoked), scanned A, original, MIT.

A YAML-based format for defining Claude Code agents. YAML is a plain-text configuration format that uses indentation to describe structured data.

In plain words
What is it for?
Use it to create agents in YAML, convert Markdown agent definitions, or check whether YAML agent files follow a required schema.
Why use it?
It offers an alternative to Markdown for agent definitions and makes data-heavy definitions easier to parse, generate, and validate.

Skill for Claude CodeCodex

Part of the agentdev plugin — 5 skills, 5 commands, 3 agents shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/madappgang/claude-code/yaml-agent-format
Any agent
npx skills add MadAppGang/claude-code --skill yaml-agent-format
Clone the repo
git clone --depth 1 https://github.com/MadAppGang/claude-code

Made for: Claude Code, Codex.

Or install agentdev, the plugin that ships this one along with the rest of its 5 skills, 5 commands, 3 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for yaml-agent-format

README.md
[![agentmods](https://agentmods.dev/badge/skills/madappgang/claude-code/yaml-agent-format.svg)](https://agentmods.dev/skills/madappgang/claude-code/yaml-agent-format)
Your own site
<a href="https://agentmods.dev/skills/madappgang/claude-code/yaml-agent-format"><img src="https://agentmods.dev/badge/skills/madappgang/claude-code/yaml-agent-format.svg" alt="Measured on agentmods" height="20"></a>
Per session 67 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,601 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00067 $0.04601
Opus 5 $0.00034 $0.02301
Sonnet 5 $0.00013 $0.00920
Haiku 4.5 $0.00007 $0.00460

Measured 5d ago against content hash 88c5ce0ff65e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

yaml-agent-format scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/agentdev/skills/yaml-agent-format/SKILL.md · 859 lines

How it starts

The opening of the file, as written. The whole thing — 859 lines — stays where its author put it; the contents beside it link to each section on GitHub.

YAML Agent Format

Overview

Why YAML for Agents?

YAML provides an alternative format for defining Claude Code agents with several advantages:

Benefits:

  • Machine-parseable: Easy to validate, transform, and generate programmatically
  • Less verbose: No markdown headers, cleaner structure
  • Schema validation: Strong typing with JSON Schema or Zod
  • Tooling support: Better IDE autocomplete, linting, formatting
  • Data-first: Natural for configuration management

Trade-offs:

  • Less readable: Markdown is better for long-form documentation
  • Indentation-sensitive: YAML whitespace can be error-prone
  • No rich formatting: Can't use markdown tables, code blocks in descriptions

When to Use YAML vs Markdown

Use YAML when:

  • Generating agents programmatically
  • Agent definitions are data-heavy (many examples, tools, rules)
  • You need strong schema validation
  • Agent is simple and concise
  • Working in automation/CI pipelines

Use Markdown when:

  • Agent has extensive documentation needs
  • You want rich formatting (tables, diagrams, code examples)
  • Agent is tutorial-like with explanations
  • Human readability is priority
  • Agent includes narrative instructions

Compatibility with Claude Code

YAML agents are fully compatible with Claude Code:

  • Placed in agents/ directory with .agent.yaml extension
  • Registered in plugin.json identically to markdown agents
  • Loaded and executed the same way
  • Can mix YAML and markdown agents in same plugin

YAML Agent Schema

Complete Schema Definition

# Required fields
name: string                    # Agent name (kebab-case)
description: string             # Brief description (1-2 sentences)
version: string                 # Semver version (e.g., "1.0.0")

# Optional but recommended
role:
  identity: string              # Agent's role/identity
  expertise: string[]           # List of expertise areas
  mission: string               # Primary mission statement

tools: string[]                 # Available tools (Read, Write, Edit, Bash, etc.)

instructions:
  constraints: string[]         # Critical constraints/rules
  workflow:                     # Step-by-step workflow
    - phase: string             # Phase name
      objective: string         # Phase objective
      steps: string[]           # List of steps

knowledge:                      # Knowledge base entries
  - topic: string               # Knowledge topic
    content: string             # Knowledge content

examples:                       # Usage examples
  - name: string                # Example name
    user: string                # User message
    assistant: string           # Assistant response

formatting:
  style: string                 # Communication style
  templates:                    # Output templates
    success: string
    error: string

Read the full file on GitHub · 859 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 859 lines · 67 tokens per session scan A 88c5ce0ff65e

Subscribe to this mod's changes

yaml-agent-format is a skill published in the GitHub repository MadAppGang/claude-code (279 stars, last pushed 5mo ago), licensed MIT. It adds 67 tokens to every session and 4,601 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories