Agent

Agent Development for Claude Code Plugins

by anthropics/claude-code

This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent…

Skill content

Agent Development for Claude Code Plugins

Overview

Agents are autonomous subprocesses that handle complex, multi-step tasks independently. Understanding agent structure, triggering conditions, and system prompt design enables creating powerful autonomous capabilities.

Key concepts:

- Agents are FOR autonomous work, commands are FOR user-initiated actions

- Markdown file format with YAML frontmatter

- Triggering via description field with examples

- System prompt defines agent behavior

- Model and color customization

Agent File Structure

Complete Format