README
This project uses a **Hub Architecture** for multi-agent orchestration. In this pattern:
$ npx -y skills add shahtuyakov/claude-setup --agent claude-codeShips with claude-setup. Installing the plugin gets this agent.
How it fires
How this agent gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
Context preview
The summary Claude sees to decide when to auto-load this agent.
This project uses a **Hub Architecture** for multi-agent orchestration. In this pattern:
Agent definition
README.mdAgent System Documentation
Hub Architecture
This project uses a **Hub Architecture** for multi-agent orchestration. In this pattern:
┌─────────────────────┐
│ Main Conversation │
│ (Hub) │
└──────────┬──────────┘
│
┌───────────────────┼───────────────────┐
│ │ │
▼ ▼ ▼
┌─────────────┐ ┌─────────────┐ ┌─────────────┐
│ Architect │ │ Frontend │ │ iOS │
└─────────────┘ └─────────────┘ └─────────────┘
│ │ │
│ │ │
▼ ▼ ▼
Returns delegation Returns delegation Returns delegation
requests to hub requests to hub requests to hubWhy Hub Architecture?
Subagents **cannot directly spawn other subagents** - this is a limitation of the current system. The Hub Architecture works around this by:
1. **Agents return structured delegation requests** instead of spawning agents 2. **The hub (main conversation) processes these requests** and spawns the requested agents 3. **Results are aggregated and returned** to the requesting agent
Available Agents
| Agent | Color | Skills | Purpose | |-------|-------|--------|---------| | **architect** | blue | node-backend, api-design-reviewer | Orchestrate multi-component tasks | | **database** | green | database-patterns | Schema, migrations, queries | | **backend** | red | node-backend, api-design-reviewer | APIs, business logic, auth | | **frontend** | cyan | react-patterns, frontend-design | React/Next.js UI | | **ios** | pink | swift-patterns | SwiftUI/iOS apps | | **designer** | yellow | design-patterns | Tokens, styling, themes | | **devops** | orange | devops-patterns | Docker, CI/CD, deployment |
Delegation Request Protocol
Single Agent Request
When an agent needs another agent's help:
{
"delegation_request": {
"agent": "database",
"reason": "Need schema before implementing API",
"prompt": "Create users table with email, password_hash",
"blocking": true
}
}Multi-Agent Request (Architect)
When orchestrating multiple agents:
{
"delegation_request": {
"type": "sequential",
"agents": [
{"agent": "database", "prompt": "Create schema", "depends_on": null},
{"agent": "backend", "prompt": "Create API", "depends_on": "database"},
{"agent": "frontend", "prompt": "Create UI", "depends_on": "backend"}
],
"parallel_groups": [["frontend", "ios"]],
"return_to": "architect"
}
}Workflow Example
1. User Request
"Add user authentication"
2. Invoke Architect
Task(subagent_type="architect", prompt="Add user authentication to the app")
3. Architect Returns Delegation Request
{
"plan": "Implement auth with JWT...",
"delegation_request": {
"type": "sequential",
"agents": [
{"agent": "database", "prompt": "Create users table"},
{"agent": "backend", "prompt": "Create auth endpoints"},
{"agent": "frontend", "prompt": "Create login form"}
],
"return_to": "architect"
}
}4. Hub Processes Request
Task(subagent_type="database", prompt="Create users table...")
// Wait for completion
Task(subagent_type="backend", prompt="Create auth endpoints. Database created: users table...")
// Wait for completion
Task(subagent_type="frontend", prompt="Create login form. Backend created: /api/auth/*...")
// Wait for completion
5. Hub Returns Results
Task(subagent_type="architect", prompt="Hub completed. Results:
- database: Created users table
- backend: Created auth endpoints
- frontend: Created login form
Continue with synthesis.")
6. Architect Synthesizes
"Authentication implemented:
- Database: users table with email, password_hash
- Backend: POST /auth/login, /auth/register
- Frontend: LoginForm, RegisterForm components"
State Management
Each agent maintains state in `.agents/[agent]/`:
.agents/
├── state.json # Current task, active agent
├── architect/
│ ├── current-plan.json # Active task plan (JSON format)
│ ├── decisions.md # Architectural decisions log
│ └── status.json # Agent status
├── database/
│ ├── notes.md # Schema decisions
│ └── status.json
├── backend/
│ ├── notes.md # API decisions
│ └── status.json
└── ...
Using the Hub Command
The `/hub` command processes delegation requests:
/hub The architect returned:
{
"delegation_request": {
"agent": "database",
"prompt": "Create users schema"
}
}Using the Skill
Load the `agent-orchestration` skill for patterns:
Skill(agent-orchestration)
Common Sequences
Web App: Designer → Database → Backend → Frontend → DevOps
iOS App: Designer → Database → Backend → iOS → DevOps
Cross-Platform: Designer → Database → Backend → [Frontend + iOS] → DevOps
API Only: Database → Backend → DevOps
UI Refresh: Designer → [Frontend + iOS]
Best Practices
1. **Always start with Architect** for multi-component tasks 2. **Use parallel groups** when agents don't depend on each other (frontend + ios) 3. **Keep prompts specific** - include exact requirements 4. **Reference context files** - `.agents/architect/current-plan.json` 5. **Handle failures gracefully** - check hub results for errors 6. **Limit nesting** - avoid more than 2 levels of delegation
Read more
Agent System Documentation
Hub Architecture
This project uses a **Hub Architecture** for multi-agent orchestration. In this pattern:
┌─────────────────────┐
│ Main Conversation │
│ (Hub) │
└──────────┬──────────┘
│
┌───────────────────┼───────────────────┐
│ │ │
▼ ▼ ▼
┌─────────────┐ ┌─────────────┐ ┌─────────────┐
│ Architect │ │ Frontend │ │ iOS │
└─────────────┘ └─────────────┘ └─────────────┘
│ │ │
│ │ │
▼ ▼ ▼
Returns delegation Returns delegation Returns delegation
requests to hub requests to hub requests to hubWhy Hub Architecture?
Subagents **cannot directly spawn other subagents** - this is a limitation of the current system. The Hub Architecture works around this by:
1. **Agents return structured delegation requests** instead of spawning agents 2. **The hub (main conversation) processes these requests** and spawns the requested agents 3. **Results are aggregated and returned** to the requesting agent
Available Agents
| Agent | Color | Skills | Purpose | |-------|-------|--------|---------| | **architect** | blue | node-backend, api-design-reviewer | Orchestrate multi-component tasks | | **database** | green | database-patterns | Schema, migrations, queries | | **backend** | red | node-backend, api-design-reviewer | APIs, business logic, auth | | **frontend** | cyan | react-patterns, frontend-design | React/Next.js UI | | **ios** | pink | swift-patterns | SwiftUI/iOS apps | | **designer** | yellow | design-patterns | Tokens, styling, themes | | **devops** | orange | devops-patterns | Docker, CI/CD, deployment |
Delegation Request Protocol
Single Agent Request
When an agent needs another agent's help:
{
"delegation_request": {
"agent": "database",
"reason": "Need schema before implementing API",
"prompt": "Create users table with email, password_hash",
"blocking": true
}
}Multi-Agent Request (Architect)
When orchestrating multiple agents:
{
"delegation_request": {
"type": "sequential",
"agents": [
{"agent": "database", "prompt": "Create schema", "depends_on": null},
{"agent": "backend", "prompt": "Create API", "depends_on": "database"},
{"agent": "frontend", "prompt": "Create UI", "depends_on": "backend"}
],
"parallel_groups": [["frontend", "ios"]],
"return_to": "architect"
}
}Workflow Example
1. User Request
"Add user authentication"
2. Invoke Architect
Task(subagent_type="architect", prompt="Add user authentication to the app")
3. Architect Returns Delegation Request
{
"plan": "Implement auth with JWT...",
"delegation_request": {
"type": "sequential",
"agents": [
{"agent": "database", "prompt": "Create users table"},
{"agent": "backend", "prompt": "Create auth endpoints"},
{"agent": "frontend", "prompt": "Create login form"}
],
"return_to": "architect"
}
}4. Hub Processes Request
Task(subagent_type="database", prompt="Create users table...") // Wait for completion Task(subagent_type="backend", prompt="Create auth endpoints. Database created: users table...") // Wait for completion Task(subagent_type="frontend", prompt="Create login form. Backend created: /api/auth/*...") // Wait for completion
5. Hub Returns Results
Task(subagent_type="architect", prompt="Hub completed. Results: - database: Created users table - backend: Created auth endpoints - frontend: Created login form Continue with synthesis.")
6. Architect Synthesizes
"Authentication implemented: - Database: users table with email, password_hash - Backend: POST /auth/login, /auth/register - Frontend: LoginForm, RegisterForm components"
State Management
Each agent maintains state in `.agents/[agent]/`:
.agents/ ├── state.json # Current task, active agent ├── architect/ │ ├── current-plan.json # Active task plan (JSON format) │ ├── decisions.md # Architectural decisions log │ └── status.json # Agent status ├── database/ │ ├── notes.md # Schema decisions │ └── status.json ├── backend/ │ ├── notes.md # API decisions │ └── status.json └── ...
Using the Hub Command
The `/hub` command processes delegation requests:
/hub The architect returned:
{
"delegation_request": {
"agent": "database",
"prompt": "Create users schema"
}
}Using the Skill
Load the `agent-orchestration` skill for patterns:
Skill(agent-orchestration)
Common Sequences
Web App: Designer → Database → Backend → Frontend → DevOps iOS App: Designer → Database → Backend → iOS → DevOps Cross-Platform: Designer → Database → Backend → [Frontend + iOS] → DevOps API Only: Database → Backend → DevOps UI Refresh: Designer → [Frontend + iOS]
Best Practices
1. **Always start with Architect** for multi-component tasks 2. **Use parallel groups** when agents don't depend on each other (frontend + ios) 3. **Keep prompts specific** - include exact requirements 4. **Reference context files** - `.agents/architect/current-plan.json` 5. **Handle failures gracefully** - check hub results for errors 6. **Limit nesting** - avoid more than 2 levels of delegation
A multi-agent orchestration framework for Claude Code. Build production software with 7 specialized AI agents that coordinate automatically through a Hub Architecture.
Repo: shahtuyakov/claude-setup
Other agents on claude-setup.
- architect
Orchestrator agent for software development. Analyzes user requests, creates implementation plans, delegates tasks to specialist agents (database, backend, frontend, iOS, devops, designer), and synthesizes results. Invoke this agent for any development task that requires
Open agent - backend
Backend development agent. Implements server-side code, APIs, business logic, and authentication. Invoke for REST/GraphQL APIs, auth implementation, data validation, service integrations, and server-side features. Works with Node.js (Express, NestJS, Fastify).
Open agent - database
Database development agent for data layer implementation. Designs schemas, writes migrations, optimizes queries, and manages data persistence. Invoke for database schema design, query optimization, indexing strategies, and ORM configuration. Works with PostgreSQL, MongoDB,
Open agent - designer
Designer agent for UI/UX patterns, design systems, and visual implementation. Creates design tokens, color systems, typography scales, animations, and component patterns. Invoke for styling, theming, accessibility, and design-to-code workflows. Works with Tailwind CSS 4,
Open agent - devops
DevOps agent for infrastructure, CI/CD, and deployment automation. Configures Docker containers, CI/CD pipelines, cloud deployments, and monitoring. Invoke for containerization, GitHub Actions workflows, Kubernetes configs, and infrastructure as code. Works with Docker, GitHub
Open agent - frontend
Frontend development agent for web applications. Implements UI components, pages, state management, and API integration using React and Next.js. Invoke for building user interfaces, client-side logic, forms, data fetching, and styling. Works with TypeScript, Tailwind CSS, and
Open agent

