本文へ移動
cccskills
無料GitHub で公開

agent-creator

Guide for creating effective Claude Code agents. This skill should be used when users want to create a new agent (or update an existing agent) that configures Claude with specialized system prompts, tool restrictions, model selection, and MCP/skill integrations.

インストール方法を見る

含まれるファイル(2)

  • SKILL.md7.2 KB
  • metadata.json836 B

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Agent Creator

This skill provides guidance for creating effective Claude Code agents.

About Agents

Agents are Markdown files with YAML frontmatter that configure Claude Code with specialized behavior. They can be used in two ways:

  1. Main Agent (claude --agent name) - Starts Claude Code as this persona
  2. Subagent (Task tool) - Spawns a focused worker that reports back

Unlike skills (which inject knowledge into context), agents fundamentally change who Claude is for that session - the system prompt, available tools, and even the model.

When to Create an Agent

Use CaseCreate Agent?Alternative
Specialized persona with restricted toolsYes-
Domain expert needing specific MCPs/skillsYes-
Cost optimization (haiku for simple tasks)Yes-
Orchestrator that delegates to sub-agentsYes-
Adding domain knowledge to contextNoCreate a skill
One-off task instructionsNoDirect prompting
Reusable scripts/assetsNoCreate a skill

Agent vs Skill Decision

  • Agent: Changes who Claude is (persona, tools, model)
  • Skill: Changes what Claude knows (knowledge, procedures, scripts)

Agents can load skills. Skills cannot become agents.

Agent Anatomy

File Location

Agents are stored as .md files in:

  • ~/.claude/agents/ - User-level (global, all projects)
  • .claude/agents/ - Project-level (repo-specific, higher precedence)

Required Structure

---
name: agent-name
description: "When to use this agent. Be specific about triggers."
---

System prompt content goes here.

All Configuration Options

FieldRequiredTypeDescription
nameYesstringUnique ID (lowercase, hyphens only)
descriptionYesstringWhen/why to invoke this agent
toolsNolistRestrict to specific tools only
modelNostringhaiku, sonnet, opus, or omit to inherit
permissionModeNostringdefault, acceptEdits, plan, bypassPermissions
skillsNolistAuto-load specific skills

Tool Restriction

Omitting tools grants all available tools. Specifying it creates a whitelist:

tools:
  - Read
  - Grep
  - Glob

Common tools: Read, Write, Edit, Glob, Grep, Bash, Task, WebSearch, WebFetch, TodoWrite

See references/tool-catalog.md for the complete catalog with use cases.

Agent Creation Process

Step 1: Define the Agent's Purpose

Before writing, answer:

  1. What is this agent's specialty? (one clear focus)
  2. When should it be invoked? (specific triggers)
  3. What tools does it need? (minimum viable set)
  4. What model fits the task? (haiku=fast/cheap, sonnet=balanced, opus=complex)
  5. What MCPs or skills should it load?

Step 2: Initialize the Agent

Run the initialization script to scaffold the agent file:

python ~/.claude/skills/agent-creator/scripts/init_agent.py <agent-name> [--path <directory>]

Default path is ~/.claude/agents/ (user-level). Use .claude/agents/ for project-level.

Step 3: Write the System Prompt

The system prompt (Markdown body after frontmatter) defines the agent's behavior. Follow Opus 4.5 prompting best practices from references/opus-prompting.md.

System Prompt Structure

---
name: example-agent
description: "..."
---

[Role statement - who this agent is]

## Capabilities
[What this agent can do]

## Guidelines
[How to approach tasks]

## Workflow
[Step-by-step process if applicable]

Writing Style

  • Use imperative form: "Analyze the code" not "You should analyze the code"
  • Be explicit and specific: State exactly what to do
  • Add context for why: Explain reasoning behind guidelines
  • Include concrete examples: Show expected behavior
  • Keep it focused: One clear specialty, not a generalist

Step 4: Configure Tools and Model

Match tools to the agent's purpose:

Agent TypeRecommended ToolsModel
ResearcherRead, Grep, Glob, WebSearch, WebFetchsonnet
Code ReviewerRead, Grep, Glob, Bashsonnet
Writer/EditorRead, Write, Editsonnet
Quick SearchGrep, Glob, Readhaiku
Complex AnalysisRead, Grep, Glob, Taskopus
OrchestratorTask, Read, TodoWriteopus

Step 5: Add MCP/Skill Integrations

For agents that need external capabilities:

skills:
  - ui-styling
  - docs-seeker

Reference skills in the system prompt:

## Available Skills

Use the `ui-styling` skill for shadcn components and Tailwind.
Use the `docs-seeker` skill for finding library documentation.

For MCP tools, mention them explicitly in the system prompt so the agent knows they're available.

Step 6: Test and Iterate

  1. Test as main agent: claude --agent your-agent
  2. Test as subagent: Use Task tool to spawn it
  3. Verify tool restrictions: Ensure it only uses allowed tools
  4. Check persona consistency: Does it maintain character?
  5. Validate triggers: Does the description accurately predict usage?

Opus 4.5 Prompting Guidelines

Claude Opus 4.5 has specific characteristics that affect agent design. See references/opus-prompting.md for full details.

Key Points

  1. Dial back aggressive language - Replace "CRITICAL/MUST" with normal phrasing
  2. Avoid "think" - Use "consider", "evaluate", "reflect" when extended thinking is off
  3. Be explicit about action - "Implement changes" vs "suggest changes"
  4. Include anti-over-engineering guidance - Opus tends to add unnecessary abstractions
  5. Examples matter - Opus follows examples precisely, ensure they're correct
  6. Parallel tool calling - Explicitly encourage when tools are independent

Anti-Over-Engineering Snippet

Include this in agents that write code:

Avoid over-engineering. Only make changes directly requested or clearly necessary.
Keep solutions simple and focused. Do not add features, refactor code, or make
improvements beyond what was asked.

Agent Patterns

See references/agent-patterns.md for common archetypes:

  • Researcher - Read-only exploration and analysis
  • Specialist - Domain expert with focused tools
  • Reviewer - Code/content review without editing
  • Builder - Focused creation with write access
  • Orchestrator - Delegates to sub-agents
  • Quick Responder - Fast, cheap responses with haiku

Validation Checklist

Before finalizing an agent:

  • Name is lowercase with hyphens only
  • Description clearly states when to use the agent
  • Tools are minimal but sufficient for the task
  • Model matches complexity needs (haiku/sonnet/opus)
  • System prompt uses imperative form
  • No "CRITICAL/MUST" aggressive language
  • Includes anti-over-engineering guidance if writes code
  • Examples in prompt are accurate and helpful
  • Tested as both main agent and subagent

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Use when you need to install the embedded robot agents into either .cursor/agents or .claude/agents, selecting the destination interactively and copying the embedded agent definitions from project assets. This should trigger for requests such as Install embedded agents; Bootstrap .cursor/agents; Bootstrap .claude/agents; Copy robot agents. Part of cursor-rules-java project

日本語の概要は準備中です。原文の説明を表示しています。

majiayu000/claude-skill-registry-data262026年10月11日 更新

Use when you need to generate an AGENTS.md file for a Java repository — covering project conventions, tech stack, file structure, commands, Git workflow, and contributor boundaries — through a modular, step-based interactive process that adapts to your specific project needs. This should trigger for requests such as Create AGENTS.md; Update AGENTS.md file; Add agent instructions. Part of cursor-rules-java project

日本語の概要は準備中です。原文の説明を表示しています。

majiayu000/claude-skill-registry-data262026年10月11日 更新

Expert legal research agent for finding and scraping expungement data state by state. Knows authoritative sources, URL patterns, Firecrawl configuration, and 2026 legal landscape. Activate on "find expungement data", "scrape state laws", "legal research", "court URLs", "statute sources", "Clean Slate laws", "automatic expungement research". NOT for interpreting laws (use national-expungement-expert), building UI, or legal advice.

日本語の概要は準備中です。原文の説明を表示しています。

majiayu000/claude-skill-registry-data262026年10月11日 更新

Generated by Gremlin Forge Meta-Agent 🍆👾⚡

日本語の概要は準備中です。原文の説明を表示しています。

majiayu000/claude-skill-registry-data262026年10月11日 更新

Work autonomously without waiting for hand-holding — complete tasks end-to-end without asking for permission at every step.

日本語の概要は準備中です。原文の説明を表示しています。

majiayu000/claude-skill-registry-data262026年10月11日 更新

abmahnung

無料

Entwurf einer BAG-konformen Abmahnung im Arbeitsrecht – konkrete Schilderung der Pflichtverletzung, klare Verhaltenserwartung, ausdrückliche Sanktionsandrohung. Use when AG eine verhaltensbedingte Sanktion vor einer Kündigung dokumentieren muss oder AN die Wirksamkeit einer empfangenen Abmahnung prüft.

日本語の概要は準備中です。原文の説明を表示しています。

majiayu000/claude-skill-registry-data262026年10月11日 更新

majiayu000 のスキルをすべて見る

このスキルの問題を報告する