Loading...
Loading...
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "multi-agent", "agent swarm", "coordinator agent", "worker agent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", "agents that communicate", "parallel agents", or needs guidance on agent structure, system prompts, triggering conditions, subagent orchestration, or multi-agent swarm development for Claude Code.
npx skill4agent add clubmediterranee/ai-core agent-creator| Type | Official Name | Communication | Use When |
|---|---|---|---|
| A | Subagent | Hierarchical (parent spawns child) | Autonomous task, delegated by an orchestrator |
| B | Multi-Agent Swarm | Peer-to-peer via sessions (tmux) | Coordinated agents that message each other |
.claude/agents/~/.claude/agents/skills/my-skill/agents/created-at: YYYY-MM-DD
created-by: "Firstname Lastname <email@example.com>"
credits: https://... # Optional — only if derived from external workcreated-by| Field | Required | Values | Notes |
|---|---|---|---|
| Yes | | 3–50 chars, start/end alphanumeric |
| Yes | Text + | Primary triggering mechanism |
| No | | Default: |
| No | | UI identifier |
| No | Array of tool names | Omit = all tools |
| No | Array of tool names | Explicitly deny |
| No | | Override permission prompts |
| No | Integer | Cap agentic turns |
| No | | Run without blocking current session |
| No | | Reasoning effort level |
| No | | Isolated git worktree environment |
| No | | Persistent memory scope |
| No | Array of skill paths | Pre-loaded skills at startup |
skills1. Glob: **/SKILL.md (search both skills/ and .claude/skills/, wherever they live)
2. For each result, read the `name` and `description` fields from the frontmatter
3. Based on the agent's domain, propose the relevant onesskills:
- skills/react-best-practices
- skills/typescript-advanced-types---
created-at: YYYY-MM-DD
created-by: "Firstname Lastname <email@example.com>"
name: my-agent
description: Use this agent when [conditions]. Examples:
<example>
Context: [Situation]
user: "[Request]"
assistant: "[Response using this agent]"
<commentary>
[Why this agent triggers here]
</commentary>
</example>
model: inherit
color: blue
tools: ["Read", "Grep", "Glob"]
---
You are [role] specializing in [domain].
**Your Core Responsibilities:**
1. [Primary responsibility]
2. [Secondary responsibility]
**Process:**
1. [Step 1]
2. [Step 2]
**Output Format:**
[What to produce and how to structure it]# Natural language — Claude decides
Use the my-agent subagent to analyze the codebase
# @-mention — forces this specific agent for one task
@"my-agent (agent)" check the auth moduletools: Agent(worker, researcher), Read, Bashdescription<example>references/triggering-examples.mdYou are...You will...references/system-prompt-design.mdCoordinator session (e.g. "team-leader")
├── Worker session A ("auth-agent") → works on Task 3.5
├── Worker session B ("db-agent") → works on Task 4.2
└── Worker session C ("api-agent") → works on Task 5.1
↕ communicate via tmux send-keys.claude/multi-agent-swarm.local.md---
agent_name: auth-agent
task_number: 3.5
pr_number: TBD
coordinator_session: team-leader
enabled: true
dependencies: ["Task 3.4"]
additional_instructions: "Use JWT, not sessions"
---
# Task Assignment: Implement Authentication
## Requirements
- JWT token generation and validation
- Refresh token flow
## Success Criteria
- Auth endpoints pass all tests
- PR created and CI green
## Coordination
Depends on Task 3.4 (user model).
Report status to coordinator session 'team-leader'.| Field | Required | Description |
|---|---|---|
| Yes | Identifier for this agent in the swarm |
| Yes | Task ordering (e.g. |
| Yes | tmux session name of the coordinator |
| Yes | |
| No | Associated PR number |
| No | Task IDs that must complete first |
| No | Per-agent override instructions |
Stop.claude/settings.jsonexamples/complete-agent-examples.mdsettings.jsonnotify-coordinator.shYou are the coordinator of a multi-agent swarm managing parallel development tasks.
**Your Core Responsibilities:**
1. Assign tasks to worker agents via their tmux sessions
2. Track task dependencies — only assign a task when its dependencies are complete
3. Handle worker notifications (agents message you when idle)
4. Consolidate completed work into a final report
**Coordination Process:**
1. Maintain a backlog of pending tasks with their dependencies
2. When a worker becomes idle: identify the next unblocked task and assign it
3. To assign a task: tmux send-keys -t <session> "<task description>" Enter
4. When all tasks complete: produce a summary of all PRs and outcomes
**State:** Track which tasks are pending/in-progress/done, and which session owns each.examples/complete-agent-examples.mdDoes the agent need to message other running Claude Code sessions?
├── No → Type A: Subagent
│ .claude/agents/my-agent.md
└── Yes → Type B: Multi-Agent Swarm
.claude/multi-agent-swarm.local.md---
created-at: 2026-03-31
created-by: "Name <email>"
name: my-agent
description: Use this agent when... Examples: <example>...</example>
model: inherit
---
You are an agent that does X.
1. Step one
2. Step two
Output: [what to produce]references/system-prompt-design.mdreferences/triggering-examples.md<example>references/agent-creation-system-prompt.mdexamples/complete-agent-examples.mdexamples/agent-creation-prompt.md