Agent Development

Create and validate Claude Code plugin agent configurations with YAML frontmatter.

1|Updated Mar 29, 2026
One-click install
npx skills add https://github.com/dmedina-dev/dev-forge --skill agent-development-dmedina-dev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Agent Development
Source: https://github.com/dmedina-dev/dev-forge/tree/main/plugins/forge-plugin-dev/skills/agent-development
Command: npx skills add https://github.com/dmedina-dev/dev-forge --skill agent-development-dmedina-dev

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Authoring reliable autonomous agents for Claude Code plugins is complex and error-prone. This Skill centralizes guidance on agent file structure, system prompt design, triggering examples, model and color choices, and validation so authors can create agents that activate correctly and behave predictably.

Core Features & Use Cases

  • Agent file format & validation: Clear frontmatter requirements (name, description with examples, model, color, optional tools) and a validation script to ensure compliance.
  • System prompt design: Templates and patterns for writing second-person, structured system prompts with responsibilities, process steps, output format, and edge cases.
  • Triggering examples & testing: Best practices for <example> blocks to ensure reliable proactive and reactive triggering, plus guidance for testing and iteration.
  • Use Case: When adding a code-reviewer or test-generator agent to a plugin, follow the guidance to craft descriptive triggering examples, choose model/color/tools, write a precise system prompt, and validate the agent file before adding it to agents/.

Quick Start

Create an agent by writing YAML frontmatter with name, a description that includes 2–4 <example> blocks, model and color fields, add the system prompt after the frontmatter, and run the scripts/validate-agent.sh script to verify the file.

Frequently Asked Questions about Agent Development

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

FAQPage Schema
How do I create an autonomous agent configuration for a Claude Code plugin?

To create an autonomous agent, write YAML frontmatter with name, description, model, and color fields, add a second-person system prompt, and run a validation script to verify compliance before adding it to your plugin's agents directory.

What is the correct format for Claude Code agent frontmatter and system prompts?

Valid Claude Code agent frontmatter requires name, description, model, and color fields. System prompts must be written in the second person and include structured responsibilities, process steps, output format, and edge case handling.

How do I write triggering examples for autonomous agents to ensure reliable activation?

Write triggering examples by adding 2 to 4 concrete <example> blocks directly inside the agent description field. These blocks ensure reliable proactive and reactive triggering when the agent needs to activate during plugin workflows.

Why does my Claude Code agent fail validation checks?

Agent validation fails when required YAML fields like name, description, model, or color are missing, when concrete <example> trigger blocks are absent, or when the system prompt is not written in the second person.

Can I restrict tools and select specific models when building Claude Code agents?

Yes, you can restrict tools and select specific models by configuring the optional tools field and model field within the agent YAML frontmatter during the Claude Code agent authoring and review workflow.

What is the best way to test and iterate on autonomous agent triggering behavior?

The best way to test autonomous agent triggering is to follow established best practices for <example> blocks, verify proactive and reactive triggering scenarios, and run the validation script to iterate on the agent file before final deployment.