Command Palette

Search for a command to run...

Назад к скиллам
скилл № 42910

agent-creator

Use this skill when architecting new Claude Code agents following Anthropic best practices. Guides through YAML frontmatter creation, agent structure…

БесплатноБез исполняемых скриптов
diegosouzapwот diegosouzapw★ 68 звёзд на GitHub

Установить agent-creator в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Agent Creator Skill

Purpose: Guide creation of Claude Code agents following Anthropic official best practices.

When to use: Creating new agents, refactoring existing agents, validating agent structure.


🎯 Core Principles

Agent Structure Philosophy

  • Minimal agents (~150 lines): Only identity, role, boundaries, and skill invocation
  • Comprehensive skills: All technical procedures, workflows, and references
  • Progressive disclosure: Metadata → Agent .md → SKILL.md → References (on demand)
  • Mandatory skill invocation: Agents MUST invoke their skill before work

Separation of Concerns

Agent .md (150 lines)           Skill SKILL.md (varies)
├─ YAML frontmatter             ├─ Technical workflows
├─ Identity & role              ├─ Context7 checkpoints
├─ Authority & boundaries       ├─ MCP integrations
├─ Workspace isolation          ├─ Best practices
├─ Mandatory skill call         ├─ Code patterns
└─ Quick reference              └─ References/ (on demand)

📋 6-PHASE WORKFLOW

PHASE 1: Discovery & Analysis

Objective: Understand the agent's purpose and role in the system.

Steps:

  1. Identify the agent's primary responsibility
  2. Determine where it fits in the workflow (Architect → Test → Implementer → Supabase → UI/UX)
  3. Define clear trigger scenarios (when should this agent activate?)
  4. List exclusive authorizations (what ONLY this agent can do)
  5. Define strict prohibitions (what this agent must NEVER do)

Questions to answer:

  • What problem does this agent solve?
  • What are its inputs and outputs?
  • Which other agents does it interact with?
  • What are its success criteria?

Deliverable: Written notes on agent's role, triggers, and boundaries


PHASE 2: Context7 Research (MANDATORY)

Objective: Consult official Anthropic documentation for latest best practices.

⚠️ CRITICAL: You MUST query Context7 before creating or refactoring agents.

Required queries:

# Query 1: General agent best practices
mcp__context7__resolve-library-id "claude code"
mcp__context7__get-library-docs "/anthropics/claude-code" topic="custom agents creation best practices"

# Query 2: Agent templates and examples
mcp__context7__resolve-library-id "claude code templates"
mcp__context7__get-library-docs "/davila7/claude-code-templates" topic="agent creation yaml structure examples"

# Query 3: YAML frontmatter validation (if uncertain)
mcp__context7__get-library-docs "/anthropics/claude-code" topic="yaml frontmatter agent configuration"

What to look for:

  • ✅ Latest YAML frontmatter requirements
  • ✅ Agent file structure changes
  • ✅ Description formatting patterns
  • ✅ Example agent implementations
  • ✅ Validation rules and common mistakes

Reference documents (consult if Context7 unavailable):

  • references/context7-queries.md - Pre-built query patterns
  • references/yaml-frontmatter-guide.md - YAML validation rules

Deliverable: Notes on any differences from existing patterns, new requirements


PHASE 3: YAML Frontmatter Design

Objective: Create valid, descriptive YAML frontmatter for the agent.

Required fields:

---
name: {agent-name}          # kebab-case REQUIRED
description: ...            # Trigger + examples REQUIRED
model: sonnet               # Default REQUIRED
color: {color}              # Visual ID REQUIRED
---

Description structure (CRITICAL):

Use this agent when {trigger scenario}. Specializes in {expertise}.
Examples:
<example>
Context: {situation}
user: '{request}'
assistant: '{response}'
<commentary>{reasoning}</commentary>
</example>
<example>
Context: {another situation}
user: '{another request}'
assistant: '{another response}'
<commentary>{more reasoning}</commentary>
</example>

Naming conventions:

  • Name: kebab-case (test-architect, ui-ux-expert, supabase-data-specialist)
  • Color: Match role type (see references/color-conventions.md)
    • red = Architect/Chief
    • blue = Testing/QA
    • yellow = Implementation
    • green = Data/Database
    • pink = UI/UX
    • purple = Security/Review
    • orange = DevOps/Infrastructure

Examples reference: assets/yaml-examples.yml

Validation checklist:

  • Name is kebab-case (lowercase-with-hyphens)
  • Description starts with "Use this agent when..."
  • Description has 2-3 <example> blocks
  • Each example has Context, user, assistant, <commentary>
  • Model is "sonnet"
  • Color matches role convention
  • YAML syntax is valid (no unescaped colons)

Deliverable: Complete YAML frontmatter block


PHASE 4: Agent Body Structure

Objective: Create the minimal ~150 line agent body following standard structure.

Template: Use assets/agent-minimal-template.md as base.

Required sections (in order):

1. IDENTITY & ROLE

# IDENTITY & ROLE

You are the **{Agent Title}**—{one-sentence mission}.

## Core Mission

{2-3 paragraphs explaining:
 - What t
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • metadata.json

FAQ

Что делает скилл agent-creator?

Use this skill when architecting new Claude Code agents following Anthropic best practices. Guides through YAML frontmatter creation, agent structure definition, role boundaries, and validation. Critical for creating minimal agent files (~150 lines) with proper skill invocations. Examples: <example>Context: User wants to create a new agent for security auditing user: "Create a security-auditor agent" assistant: "I'll use the agent-creator skill to build this agent following Anthropic best practices" <commentary>New agent creation requires the agent-creator skill to ensure proper structure and YAML frontmatter.</commentary></example> <example>Context: Existing agent file is too verbose and needs refactoring user: "The architect agent is 2000 lines, refactor it to minimal structure" assistant: "I'll use the agent-creator skill to refactor this into a minimal ~150 line agent with a separate skill file" <commentary>Agent refactoring requires the agent-creator skill to separate identity from technical procedures.</commentary></example>

Как установить скилл agent-creator?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл agent-creator запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить agent-creator с