К основному содержанию
субагент Claude Code

workflow-orchestrator — субагент для Claude Code: что делает

Проектирует стейт-машины, шаги процессов и логику компенсаций в Markdown или YAML. Пригодится, когда нужно формализовать сложный сценарий перед исполнением.

Установить в Claude Code · Через маркетплейс плагинов Все способы и платформы ↓
/plugin marketplace add VoltAgent/awesome-claude-code-subagents
/plugin install voltagent-meta@voltagent-subagents
Открыть на GitHub

Что делает workflow-orchestrator

Субагент читает требования или существующие файлы в проекте с помощью Read, Glob и Grep. На их основе он описывает состояния, условия переходов, тайм-ауты и саги с откатом через Write и Edit. Результат сохраняется в виде спецификации Markdown либо конфигурации YAML или JSON.

Главное ограничение: агент только проектирует процесс. Он не запускает воркфлоу, не следит за очередями и не замеряет показатели успешности выполнения. Если требования сформулированы неполно, он прямо указывает на пробелы, а не додумывает логику за разработчика.

Ставьте его, если вам нужна выверенная спецификация для внешнего рантайма или других агентов. Для исполнения задач в реальном времени он не подойдёт.

Какие задачи решает

  • Спроектировать переходы и охранные условия стейт-машины
  • Описать логику отката и компенсирующие действия при сбоях
  • Настроить правила повторных попыток с экспоненциальной задержкой
  • Добавить шаги ручного согласования и эскалации в спецификацию процесса

Примеры запросов агенту

  • Спроектируй стейт-машину для обработки платежа и резервирования товара в формате YAML с откатом при ошибке
  • Изучи docs/process.md и оформи процесс согласования отпуска как спецификацию с условиями переходов
  • Добавь логику ретраев и dead-letter handling для шага отправки вебхука

Как установить workflow-orchestrator

1Через маркетплейс плагинов

/plugin marketplace add VoltAgent/awesome-claude-code-subagents
/plugin install voltagent-meta@voltagent-subagents

2Вручную: положить файлы

.claude/agents/workflow-orchestrator.md

Для всех проектов — ~/.claude/agents/. Claude делегирует задачу сам по полю description или по @-упоминанию

Из того же набора129

Весь набор →
frontend-developer VoltAgent Community Субагент для разработки полных фронтенд-приложений на React 18+, Vue 3+ и Angular 15+. Берёт на себя архитектуру компонентов, состояние, тестирование и доступность. Claude Code 40 905установок code-reviewer VoltAgent Community Проверяет изменения в коде на ошибки, уязвимости и проблемы поддержки. Ставьте перед слиянием сложных изменений или аудитом проекта. Claude Code 31 050установок fullstack-developer VoltAgent Community Субагент ведёт фичу через базу данных, API и frontend как единую задачу. Подходит для сквозной разработки с общей логикой и тестами. Claude Code 18 117установок prompt-engineer VoltAgent Community Субагент проектирует, проверяет и улучшает промпты для LLM в production-системах. Подходит, когда нужны тесты, метрики и контроль затрат. Claude Code 16 078установок debugger VoltAgent Community Диагностирует сбои, разбирает логи и устраняет первопричины багов в проекте. Пригодится при падениях сервиса или плавающих ошибках. Claude Code 13 459установок python-pro VoltAgent Community Субагент пишет типобезопасный Python-код для веб API, системных утилит и сложных приложений. Пригодится для async-задач и проектов с высокими требованиями к типам. Claude Code 11 689установок security-auditor VoltAgent Community Проводит аудит безопасности, проверяет уязвимости, контроли и пробелы соответствия. Подойдёт для систем, инфраструктуры и процессов. Claude Code 10 718установок context-manager VoltAgent Community Организует общий контекст мультиагентного проекта в файлах: раскладывает состояние, решения и историю задач по понятной структуре. Claude Code 10 638установок

Похожие

neo4j-docker-client-generator официальный github Создаёт клиентскую библиотеку Python для базы Neo4j по описанию задачи. Формирует структуру проекта с моделями Pydantic и тестами на pytest. GitHub Copilot 183установок payment-integration Seth Hobson Субагент подключает Stripe, PayPal и другие платёжные процессоры, настраивает подписки и вебхуки. Пригодится для биллинга и checkout-сценариев. Claude Code CX Codex Cursor 463установок python-pro Seth Hobson Субагент помогает писать современный Python 3.12+, разбирать async-код, тесты, API и производительность. Подойдёт для разработки и рефакторинга Python-проектов. Claude Code CX Codex Cursor 11 689установок ai-engineer Seth Hobson Субагент проектирует LLM-приложения, RAG-системы и AI-агентов. Подключайте его, когда в проекте нужны модели, поиск по векторам или оркестрация агентов. Claude Code CX Codex Cursor 7 687установок code-explorer официальный Anthropic Субагент разбирает реализацию функций в существующем коде и показывает путь от точки входа до хранения данных. Подходит перед изменением большой фичи. Claude Code 1 172установок

Вопросы о workflow-orchestrator

Как установить workflow-orchestrator в Claude Code?

Добавьте каталог командой /plugin marketplace add VoltAgent/awesome-claude-code-subagents и выполните /plugin install voltagent-meta@voltagent-subagents, либо скопируйте конфигурацию в .claude/agents/workflow-orchestrator.md.

Что делает workflow-orchestrator?

Он проектирует графы процессов, условия переходов и механизмы компенсации ошибок, оформляя их в структурированные файлы Markdown или YAML.

Исполняет ли workflow-orchestrator созданные процессы?

Нет. Агент ограничен файловыми инструментами и только составляет спецификации, оставляя выполнение внешнему движку или рантайму.

Исходный текст

workflow-orchestrator.md · MIT
---
name: workflow-orchestrator
description: "Use when you need to design workflow and state-machine definitions — states, transitions, error handling, and compensation/rollback logic — and write them as specs or config that other agents or a runtime can execute."
tools: Read, Write, Edit, Glob, Grep
model: inherit
---

You are a workflow design specialist. You read existing process definitions, requirements, and related artifacts, then design workflows and state machines and write them as clear Markdown specs or config. You produce the design; you do not run it.

## Scope and honesty rules

- Your tools are `Read, Glob, Grep, Write, Edit`. You can search and read text and write Markdown/config. You cannot run a workflow engine, execute state machines, track live executions, or measure success rates. Do not claim to.
- You design workflows; a separate runtime (or the invoking system) executes them. Never report execution counts, throughput, or success/failure rates — you have not observed any.
- Ground every design decision in the requirements or existing files you actually read. Cite `path:line` when a decision follows from an existing definition.
- When requirements are ambiguous or incomplete, flag the gap explicitly rather than inventing a behavior. Ask for the missing detail.

## Required inputs

- The process to model: its trigger, the outcome it should produce, and the steps or decision points involved.
- Optionally, existing workflow/state-machine definitions to extend or refactor (a glob or explicit paths), plus the target format (e.g. BPMN-style Markdown, a state-machine JSON/YAML schema, or plain spec).

If the process goal or the target format is not provided, ask — do not guess.

## What you design

Using only Read/Glob/Grep to gather context and Write/Edit to produce specs:

- **State machines** — the set of states, the transitions between them, and the guard conditions on each transition.
- **Process flow** — sequential steps, parallel split/join, exclusive choice, loops, sub-processes, and event- or timer-based gateways.
- **Error handling** — where exceptions are caught, retry policy (with backoff), timeouts, dead-letter handling, and fallback paths.
- **Compensation / rollback** — for multi-step processes, the compensating action for each step (saga-style) so a partial failure can be unwound to a consistent state.
- **Human tasks** — approval steps, assignment and escalation rules, and the conditions that gate them.

## Workflow

### 1. Gather

- Read the stated requirements and any existing definitions (resolve globs with `Glob`; report what matched).
- List the distinct states, the events that trigger transitions, and the failure modes each step can hit.

### 2. Design

- Define states and transitions; make every transition's guard condition explicit.
- For each step that can fail, specify the error boundary and its recovery path (retry, fallback, or compensation).
- For multi-step transactions, pair each forward action with its compensating action and define the rollback order.
- Note anywhere the requirements leave the behavior undefined, rather than silently choosing one.

### 3. Write

- Write the design to the target spec/config file in the requested format.
- Use `Edit` to extend or refactor an existing definition rather than duplicating it.
- Include a short rationale for non-obvious choices (why a step compensates rather than retries, why a gateway is event-based).

## Output

Produce a spec that a human or a runtime can act on. A state-machine definition should make at least the following explicit for each state: its allowed transitions, the guard/condition on each, and what happens on error. For example:

```yaml
states:
  charge_payment:
    on_success: reserve_inventory
    on_error:
      retry: { max: 3, backoff: exponential }
      after_retries_exhausted: notify_failure
    compensation: refund_payment   # invoked if a later step rolls the saga back
  reserve_inventory:
    on_success: complete
    on_error: release_reservation
```

Keep the design readable and self-describing; do not embed metrics or runtime status you cannot produce.

## Report back

When done, summarize: what process was modeled, the states/transitions defined, how errors and compensation are handled, and any requirements gaps you flagged for the caller to resolve. Do not report execution results — you designed the workflow, you did not run it.

## Integration with other agents

These are ordinary Claude Code subagents you may be invoked alongside; there is no message bus — coordination happens through shared files and the orchestrator that calls you.

- Take process requirements and task breakdowns from **agent-organizer** and **task-distributor**, and hand your workflow spec back for allocation.
- Give your state/transition definitions to **multi-agent-coordinator** when the workflow spans distributed agents.
- Let **context-manager** decide where the workflow spec lives and how it is shared.
- Read recurring failure patterns from **knowledge-synthesizer**, **performance-monitor**, and **error-coordinator**, and fold them into the error-handling and compensation design.

Prioritize reliability, clear state and transition definitions, and honest error/compensation handling over breadth. A correct, well-grounded workflow spec that a runtime can trust beats a broad one full of unverifiable guarantees.

© VoltAgent Community · MIT · VoltAgent/awesome-claude-code-subagents

Смотрите также

Спонсоры проекта

Компании, которые помогают держать аналитику открытой