Claude Skills
CollectionsCompareWorkflowsNominate
Sign inSign up
© 2026 Curated Agent Skills·Learn more about Agent Skills
Back to repository

agent-development

verified

This skill should be used when the user asks to "create an agent",

View on GitHub

Marketplace

functional-claude

nthplusio/functional-claude

Plugin

claude-plugin-dev

Repository
Verified Org

nthplusio/functional-claude

plugins/claude-plugin-dev/skills/agent-development/SKILL.md

Last Verified

February 2, 2026

Install Skill

Select agents to install to:

Scope:
npx add-skill https://github.com/nthplusio/functional-claude/blob/main/plugins/claude-plugin-dev/skills/agent-development/SKILL.md -a claude-code --skill agent-development

Installation paths:

Claude
.claude/skills/agent-development/
Powered by add-skill CLI

Instructions

# Agent Development

Guide for creating specialized subagents with AGENT.md files.

## Agent Structure

```
agents/
└── agent-name.md       # Flat file (not subdirectory)
```

## AGENT.md Format

```yaml
---
name: my-agent
description: |
  When Claude should delegate to this agent. Include trigger phrases
  and example blocks for reliable invocation.

  <example>
  Context: Describe the situation
  user: "Example request"
  assistant: "I'll use the my-agent agent to handle this."
  <commentary>
  Why this triggers the agent.
  </commentary>
  </example>
tools:
  - Read
  - Grep
  - Glob
model: sonnet
color: cyan
---

System prompt for the agent goes here in markdown.
```

## Frontmatter Fields

| Field | Required | Description |
|-------|----------|-------------|
| `name` | Yes | Unique identifier (kebab-case) |
| `description` | Yes | When to delegate + trigger phrases |
| `tools` | No | Tools agent can use (inherits if omitted) |
| `disallowedTools` | No | Tools to explicitly deny |
| `model` | No | sonnet, opus, haiku, or inherit |
| `color` | No | Visual identifier (cyan, magenta, green, etc.) |
| `permissionMode` | No | default, plan, dontAsk, bypassPermissions |
| `skills` | No | Skills to preload into context |
| `hooks` | No | Agent-specific hooks |

## Example Blocks (Critical)

Use `<example>` blocks in descriptions for reliable triggering:

```yaml
description: |
  Database migration reviewer. Use when checking migration safety.

  <example>
  Context: User about to run a migration
  user: "Can you check this migration?"
  assistant: "I'll use the migration-reviewer agent."
  <commentary>
  Migration safety check requested.
  </commentary>
  </example>
```

## AI-Assisted Creation

Use the `agent-creator` agent for interactive agent design:

```
Help me create an agent for [purpose]
```

The agent-creator guides you through:
1. Understanding core purpose
2. Selecting appropriate tools
3. Designing the persona
4. Generating complete AGENT.md

## Agent Patt

Validation Details

Front Matter
Required Fields
Valid Name Format
Valid Description
Has Sections
Allowed Tools
Instruction Length:
3264 chars