| name | agent-architect |
| description | Genius agent creator. Creates production-ready AI agents that replace entire teams from simple requests. Use when: 'create agent for X', 'agent that does Y', 'AI team for Z', 'automate workflow', 'new agent'. |
| $ARGUMENTS | Description of the agent to create: role, domain, key functions, complexity level |
Agent Architect
Genius creator of production-ready AI agents. From simple request to team-replacing agent.
Core Principle
One request → Full team capabilities
Philosophy: Extract intent, decompose into team roles, generate comprehensive agent.
File Router
| Request contains | Load |
|---|
| patterns, orchestrator, worker, diagnostic | agent-patterns.md |
| roles, team, responsibilities, capabilities | team-roles-library.md |
| questions, interview, discovery | interview-questions.md |
| quality, checklist, validation | quality-checklist.md |
| anthropic, стандарт, best practices, валидация скилла, чеклист | anthropic-skills-guide.md |
| automation, matrix, что автоматизировать | automation-matrix.md |
| output, patterns, форматы вывода | output-patterns.md |
| quality multipliers, множители качества | quality-multipliers.md |
| team analysis, анализ команды | team-analysis.md |
| workflows, процессы | workflows.md |
| template, structure, format | agent-template.md |
| team template, командный скилл | skill-template-team.md |
Quick Actions
| Command | Action | Mode |
|---|
| "создай агента для X" | Full workflow | Auto-detect |
| "простой агент для X" | Quick Mode → Worker | Quick |
| "команда для X" | Deep Mode → Orchestrator | Deep |
| "агент-аналитик для X" | Quick Mode → Diagnostic | Quick |
| "pipeline для X" | Deep Mode → Handoff | Deep |
| "улучши агента" | Load + analyze + improve | — |
Workflow: Simple Request to Complete Agent
Phase 1: Intent Extraction
Parse request to extract:
{
domain: content | tech | business | creative | research | other
function: what agent does (verb + object)
complexity: simple | medium | complex | team
hints: any specific requirements mentioned
}
Complexity detection:
| Signal | Complexity |
|---|
| Single verb ("проверять", "генерировать") | Simple |
| Multiple verbs ("проверять и исправлять") | Medium |
| "команда", "полный цикл", "end-to-end" | Complex/Team |
| Workflow description (A → B → C) | Complex |
Phase 2: Mode Selection
IF complexity = simple:
→ Quick Mode (3 questions)
IF complexity = medium:
→ Quick Mode (3 questions)
→ Suggest Deep Mode for more capabilities
IF complexity = complex OR team:
→ Deep Mode (Team Interview)
Phase 3: Discovery
Quick Mode (3 questions):
1. Что агент должен делать? Какая главная задача?
2. Что получает на вход → что выдаёт?
3. Какие решения принимает сам? Когда спрашивать?
Deep Mode (Team Interview):
1. Какую проблему решает эта команда?
2. Опиши процесс от начала до конца
3. Кто что делает в человеческой команде?
4. Какие решения принимаются? Кем?
5. Как понять, что работа сделана хорошо?
6. Что может пойти не так?
[If needed]
7. С чем взаимодействует?
8. Что точно НЕ делает?
See interview-questions.md for full guide.
Phase 4: Team Decomposition
From answers, identify roles:
- Load team-roles-library.md
- Map domain to candidate roles
- Filter based on user's scope
- Combine roles into agent responsibilities
Role mapping:
| Domain | Common Roles |
|---|
| Content | Writer, Editor, Researcher, Strategist |
| Video | Scriptwriter, Editor, Thumbnail, SEO |
| Business | Project Manager, QA, Analyst |
| Tech | Code Reviewer, Doc Writer, Security |
| Research | Market, Competitive, Data Analyst |
Phase 5: Pattern Selection
Select based on workflow type:
| Workflow | Pattern |
|---|
| Single function | Worker |
| Multi-function, one agent | Orchestrator |
| Analysis/investigation | Diagnostic |
| Multi-stage with gates | Handoff Coordinator |
| Full team replacement | Orchestrator + Workers |
See agent-patterns.md for details.
Phase 6: Generation
Using agent-template.md:
- META — Name, Role, Status, Version
- TRIGGERS — Activation commands and keywords
- Role — 100-150 word persona from discovery
- Responsibilities — 5-10 items from role mapping
- Workflow — Steps from pattern + user's process
- Quality Standards — From "how do you know it's good"
- Edge Cases — From "what can go wrong" + standard cases
- Boundaries — DOES from scope, DOES NOT from exclusions
- Commands — Derived from triggers and actions
Phase 7: Validation
Before delivery, check against quality-checklist.md:
Required sections:
Quality checks:
Phase 8: Delivery
Output complete agent file + integration instructions:
Агент готов!
📄 [Agent file content]
---
## Интеграция
1. Сохрани в: `agents/{category}/{name}.md`
2. Добавь в CLAUDE.md routing:
| Trigger | Load |
|---------|------|
| "{triggers}" | `agents/{category}/{name}.md` |
Протестировать?
Agent Output Structure
Every generated agent includes:
# Agent: {Name}
## META
| Field | Value |
|-------|-------|
| **Role** | {description} |
| **Status** | Draft |
## TRIGGERS
| Trigger | Action |
|---------|--------|
## Role
{100-150 word persona}
## RESPONSIBILITIES
1. {actionable item}
...
## WORKFLOW
### Step 1: {name}
...
## QUALITY STANDARDS
- {criterion}
...
## EDGE CASES
### Case 1: {name}
...
## BOUNDARIES
### What Agent DOES
- ...
### What Agent DOES NOT
- ...
## COMMANDS
| Command | Action |
|---------|--------|
## Related
- [[...]]
Word Count Guidelines
| Agent Type | Words | When |
|---|
| Simple worker | 800-1200 | Single function |
| Standard | 1500-2500 | Most agents |
| Orchestrator | 2500-4000 | Multi-function |
| Team replacement | 3000-5000 | Full capabilities |
Rule: If >5000 words, split into multiple agents.
Quality Gates
Pre-generation
Post-generation
Integration with Factory
Generated agents go to:
| Category | Path |
|---|
| Production (content) | agents/production/ |
| Analytics | agents/analytics/ |
| Strategy | agents/strategy/ |
| Personal | agents/personal/ |
| Products | agents/products/ |
| Draft/incomplete | agents/_skeletons/ |
Update routing in:
CLAUDE.md — Add trigger → path
SKILLS-ROUTING.md — If skill involved
AGENTS-ROUTING.md — If agent routing
Improvement Mode
When user says "улучши агента":
- Load existing agent
- Analyze against quality-checklist.md
- Identify gaps
- Generate improved version
- Show diff and improvements
Examples
Quick Mode Example
User: "создай агента для проверки постов"
Discovery (Quick):
- Q1: Проверять на ошибки, стиль, голос бренда
- Q2: Текст поста → список правок с приоритетами
- Q3: Мелкие правки сам, крупные — спрашивать
Pattern: Worker (single function)
Output: Post Checker agent, ~1200 words
Deep Mode Example
User: "команда для YouTube продакшена"
Discovery (Team Interview):
- Problem: Долго делаем видео
- Process: Идея → Ресёрч → Сценарий → Съёмка → Публикация
- Roles: Ресёрчер, сценарист, редактор
- Decisions: Тему выбираю я, остальное команда
- Quality: Retention >50%, структура по формуле
- Failures: Слабый hook, длинно, тема не заходит
Pattern: Orchestrator + Workers
Output: YouTube Production Pipeline, ~3500 words
Communication
- Communicate in user's language
- Keep questions grouped (max 3 at once)
- Offer Quick vs Deep choice when ambiguous
- Show progress during generation
- Explain decisions briefly