agent-patterns

Document agent frontmatter metadata spec and discovery patterns for .claude/agents/*.md files.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/Kiwi-Home/ai-coding-resources --skill agent-patterns-kiwi-home
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agent-patterns
Source: https://github.com/Kiwi-Home/ai-coding-resources/tree/main/plugins/coding-workflows/skills/agent-patterns
Command: npx skills add https://github.com/Kiwi-Home/ai-coding-resources --skill agent-patterns-kiwi-home

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Documents agent frontmatter metadata spec and patterns for creating project-specific agents. Use when: creating agents, understanding agent discovery, or configuring agent metadata.

Core Features & Use Cases

  • Discover agents by scanning .claude/agents/*.md files and reading their YAML frontmatter to enable dynamic, policy-driven agent dispatch.
  • Provide a canonical frontmatter schema and discovery workflow that helps teams generate and validate agents efficiently.
  • Use cases include creating new agents, understanding agent discovery, and configuring agent metadata for workflows.

Quick Start

Create a new agent by adding a .claude/agents/*.md file with proper YAML frontmatter and a body describing its behavior.

Frequently Asked Questions about agent-patterns

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

FAQPage Schema
What is agent frontmatter and how does agent discovery work?

Agent frontmatter is YAML metadata in .claude/agents/*.md files that enables dynamic agent discovery. The system scans these files to read frontmatter schemas and dispatch agents across projects based on policy rules.

How do I create a new agent with proper YAML frontmatter?

To create a new agent, add a .claude/agents/*.md file containing valid YAML frontmatter and a body describing its behavior. The frontmatter must satisfy the schema, discovery rules, and tool configuration requirements.

Can I use agent frontmatter patterns to configure project-specific agent metadata?

Yes, agent frontmatter patterns document the metadata spec for creating project-specific agents. You configure agent metadata by writing YAML frontmatter that defines discovery rules and tool configurations for your workflows.

What's the best way to validate agent frontmatter against the discovery schema?

The canonical frontmatter schema and discovery workflow provided by this approach helps teams generate and validate agents efficiently. You ensure validation by satisfying frontmatter schema, discovery rules, and tool configuration requirements.

Why does my agent discovery workflow fail to dispatch agents dynamically?

Agent discovery fails when .claude/agents/*.md files lack proper YAML frontmatter or do not satisfy discovery rules and tool configuration requirements. Configuring frontmatter metadata according to the schema enables policy-driven dynamic dispatch.

Do I need specific dependencies to support generator workflows with agent frontmatter?

No specific dependencies are required to support generator workflows with agent frontmatter. Documenting the frontmatter metadata spec and patterns dynamically enables agent creation, configuration, and dispatch across projects.