Agent Development

Create autonomous agent configurations with frontmatter, system prompts, and triggering examples for Claude Code plugins.

Updated Aug 7, 2026
One-click install
npx skills add https://github.com/valeratrades/plugin-dev --skill agent-development-valeratrades
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: Agent Development
Source: https://github.com/valeratrades/plugin-dev/tree/main/skills/agent-development
Command: npx skills add https://github.com/valeratrades/plugin-dev --skill agent-development-valeratrades

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Building autonomous agents for Claude Code plugins requires precise frontmatter fields, well-structured system prompts, and reliable triggering examples, and mistakes in any of these cause agents to trigger incorrectly or behave unpredictably. ## Core Features & Use Cases - Agent File Structure Guidance: Defines the complete Markdown format with YAML frontmatter covering name, description, model, color, and tools fields with validation rules. - AI-Assisted Generation: Provides the exact agent creation system prompt from Claude Code to generate agent configurations as JSON and convert them into agent files. - Validation and Testing: Includes a validate-agent.sh script that checks frontmatter structure, field constraints, and system prompt quality, plus guidance for testing triggering conditions. - Use Case: When you need a code review agent for your plugin, describe the requirement, generate the configuration with the AI-assisted prompt, save it as agents/code-reviewer.md, and validate it with the included script. ## Quick Start Ask the AI to create an agent for reviewing code quality in your Claude Code plugin using the agent development guidance.

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 agent for a Claude Code plugin?▼

Create a Markdown file in the plugin's agents/ directory with YAML frontmatter containing name, description, model, and color fields, followed by a system prompt body. You can generate the configuration with AI assistance or write it manually, then validate it with the validate-agent.sh script.

What frontmatter fields are required in an agent file?▼

Agent files require name, description, model, and color fields, with tools being optional. The name must be 3-50 lowercase characters with hyphens, the description must include triggering conditions with example blocks, and model is typically set to inherit.

How do I make an agent trigger reliably in Claude Code?▼

Write a description field starting with triggering conditions and include 2-4 example blocks showing context, user message, assistant response, and commentary explaining why the agent triggers. Cover both explicit requests and proactive triggering scenarios with varied phrasings.

Can I restrict which tools an agent can access?▼

Yes, the optional tools frontmatter field accepts an array of tool names like Read, Write, Grep, and Bash to limit agent access. If omitted, the agent has access to all tools, but restricting to the minimum needed follows the principle of least privilege.

Why is my agent not triggering when expected?▼

Triggering failures usually come from descriptions lacking concrete examples, missing context in example blocks, or commentary that does not explain the triggering logic. Add more examples covering different user phrasings and ensure examples show the assistant invoking the agent.

What are the limits for agent system prompt length?▼

System prompts must be between 20 and 10,000 characters, with 500-3,000 characters recommended for standard agents. Prompts should use second person, define clear responsibilities and process steps, and specify the expected output format.