agent-creator
Interactive agent builder: guides the user through defining a new agent as a behavioral spec, then generates the agent .md and installs it.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Interactive agent builder: guides the user through defining a new agent as a behavioral spec, then generates the agent .md and installs it.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Cross-repo investigation: research planning issues, break down into sub-issues, generate ralph session prompts per repo.
Three-phase QA orchestrator: parallel scan, interactive triage, guided fix.
Interactive feature builder with subagent delegation and approval gates.
Interactive rule builder: guides the user through defining a new rule as a constraint doc, then generates the rule .md and installs it.
Interactive skill builder: guides the user through defining a new skill as a structured SOP, then generates the SKILL.md and installs it.
Review code changes for architectural issues — module boundaries, coupling, and dependency direction.
| name | agent-creator |
| description | Interactive agent builder: guides the user through defining a new agent as a behavioral spec, then generates the agent .md and installs it. |
Build a new toolkit agent interactively. Agents are behavioral specifications — they define how an autonomous specialist thinks, analyzes, and reports. Not steps to execute, but a persona with responsibilities, analysis patterns, and output templates.
<agent-name> — name for the new agent (e.g., /agent-creator unreal-developer)domain:<tech> — create a domain-specific agent (e.g., /agent-creator domain:unreal)Generate a production-ready agent .md file following the toolkit's behavioral spec structure, install it into the project's .claude/agents/ directory (or templates/agents/domain/<tech>/ for domain agents).
Read — read existing agents for pattern referenceWrite — create the agent .md fileGlob — find existing agents to avoid collisions and study patternsBash — install to projectAgents follow a behavioral specification structure — fundamentally different from skills:
Frontmatter:
name, description, allowed_tools
Body:
1. Role Definition — who you ARE (one sentence persona)
2. Core Responsibilities — what you OWN (3-5 areas, not steps)
3. Analysis Process — how to THINK (phases with concrete guidance)
4. Output Format — exact template for findings/reports
5. Behavioral Constraints — scope limits, anti-patterns, hard rules
6. ECC Enrichments — optional advanced edge cases
Key distinctions from skills:
allowed_tools for access control — skills use APPROVAL GATEs/commandsAgent categories and their tool access patterns:
| Category | Tools | Writes Files? |
|---|---|---|
| Reviewer (code, security, perf) | Read, Glob, Grep, Bash | No |
| Planner (architecture, design) | Read, Glob, Grep, Bash | No |
| Implementer (build-fix, refactor) | Read, Glob, Grep, Bash, Edit, Write | Yes |
| Specialist (incident, domain) | Read, Glob, Grep, Bash + deep-think | Depends |
Parse $ARGUMENTS for agent name and type. If empty, ask:
"What agent do you want to create? Describe the role in 1-2 sentences."
Check for name collisions:
Glob: .claude/agents/*.md
Glob: templates/agents/**/*.md
Ask the user these questions (batch them):
Agent Definition Questionnaire:
- What role does this agent play? (e.g., "Unreal Engine C++ specialist")
- What category? (reviewer / planner / implementer / specialist)
- What are its 3-5 core responsibilities? (areas it owns)
- Should it modify files or only analyze? (determines tool access)
- What does its output look like? (report, checklist, diff suggestions)
- Is it domain-specific? (tied to a tech stack like Unreal, Unity, Rust)
- Does it need deep-think? (for complex reasoning, cross-module analysis)
If domain-specific (domain:<tech> argument or user says yes):
APPROVAL GATE: Present the interpreted agent spec. Wait for confirmation.
Read 2-3 existing agents in the same category for reference:
code-reviewer.md, security-reviewer.mdbuild-error-resolver.mdtemplates/agents/domain/planner.mdDesign the agent's sections:
Role Definition — one sentence: "You are a [role]. Your job is to [purpose]."
Core Responsibilities — 3-5 bullet points of what the agent owns.
allowed_tools — based on category:
[Read, Glob, Grep, Bash]mcp__leann-server__leann_searchmcp__deep-think__think, mcp__deep-think__reflect, mcp__deep-think__strategizeEdit, WriteAnalysis Process — 2-5 phases:
Output Format — design the exact report template:
Behavioral Constraints — hard limits:
ECC Enrichments — if the agent needs advanced patterns:
Present the full spec outline to the user.
APPROVAL GATE: Wait for user to approve. Accept modifications.
Generate the full agent .md file:
---
name: <agent-name>
description: "<role in one line>"
allowed_tools:
- Read
- Glob
- Grep
- Bash
- <additional tools>
---
# <Agent Title>
You are a <role>. Your job is to <purpose>.
## Core Responsibilities
1. <Responsibility 1>
2. <Responsibility 2>
3. <Responsibility 3>
## Analysis Process
### Phase 1: <Gather/Understand>
<steps with specific tool usage, grep patterns, file paths>
### Phase 2: <Analyze/Evaluate>
<domain-specific analysis guidance>
### Phase 3: <Report/Recommend>
<synthesis and output generation>
## Output Format
<exact template with severity levels, sections, metrics>
## Behavioral Constraints
- <constraint 1>
- <constraint 2>
- <scope boundary>
## ECC Enrichments
<advanced patterns, edge cases, special handling>
Present the generated content to the user.
APPROVAL GATE: User reviews the full agent definition. Accept edits before writing.
Determine install location:
.claude/agents/<agent-name>.md.claude/agents/<agent-name>.md (project) AND templates/agents/domain/<tech>/<agent-name>.md (toolkit source, if in toolkit repo)Write the file:
Write: .claude/agents/<agent-name>.md
If domain-specific, ask if the user wants to add it to the toolkit's detection:
"Want to add
<tech>detection to the installer? This would auto-install this agent for all future<tech>projects."
Verify:
Glob: .claude/agents/<agent-name>.md
Report:
"Agent installed:
.claude/agents/<agent-name>.md- Category: <reviewer/implementer/planner/specialist>
- Tools: <allowed_tools summary>
Claude will now use this agent when tasks match its responsibilities."
| Situation | Action |
|---|---|
| Agent name already exists | Warn, offer to overwrite or rename |
| User gives vague role description | Present 2-3 role interpretations |
| Too many responsibilities (>7) | Suggest splitting into two agents |
| Tool access too broad for category | Warn about principle of least privilege |
| Domain tech not in installer detection | Offer to add detection pattern |
name, description, allowed_toolsallowed_tools follows least-privilege for the category.claude/agents/<name>.md