orchestration-workflow
БесплатноБез исполняемых скриптовНе проверенGuide for working with the multi-agent orchestration system in DEVS. Use this when asked to modify task orchestration, agent coordination, or workflow…
Об этом скилле
Orchestration Workflow for DEVS
The DEVS orchestration system coordinates multiple AI agents to complete complex tasks autonomously.
Architecture Overview
User Request → WorkflowOrchestrator → TaskAnalyzer → Agent Execution → Validation
↓
Strategy Selection
(single-pass / multi-pass)
↓
Team Building → Coordinated Execution → Artifact Creation
Core Components
WorkflowOrchestrator (src/lib/orchestrator.ts)
Central coordination hub that:
- Prevents duplicate processing via prompt hashing
- Selects execution strategy based on complexity
- Manages agent recruitment and team building
- Handles error recovery and retries
TaskAnalyzer (src/lib/task-analyzer.ts)
LLM-powered analysis that:
- Breaks down complex prompts into requirements
- Assesses task complexity (simple/complex)
- Identifies required skills
- Generates subtasks with dependencies
RequirementValidator (src/lib/requirement-validator.ts)
Validates task deliverables against requirements:
- Functional requirements (feature implementation)
- Non-functional requirements (performance, usability)
- Constraints (technology, time, resources)
Execution Strategies
Single-Pass Strategy
For simple tasks that one agent can complete:
async function executeSinglePass(task: Task, agent: Agent): Promise<void> {
// 1. Execute with enhanced context
const result = await executeTaskWithAgent(task, agent, task.description)
// 2. Create artifact from result
await createArtifact({
taskId: task.id,
agentId: agent.id,
type: 'deliverable',
content: result,
})
// 3. Validate against requirements
const validation = await validateRequirements(task, [artifact])
// 4. Handle validation failures
if (!validation.allSatisfied) {
await createRefinementTask(task, validation.failures)
}
}
Multi-Pass Strategy
For complex tasks requiring multiple agents:
async function executeMultiPass(task: Task): Promise<void> {
// 1. Break down into subtasks
const subtasks = await taskAnalyzer.breakdown(task)
// 2. Build specialized team
const team = await buildTeam(subtasks)
// 3. Execute with dependency resolution
await coordinateTeamExecution(subtasks, team)
// 4. Validate all deliverables
const validation = await validateAllRequirements(task, subtasks)
}
Team Coordination
async function coordinateTeamExecution(
tasks: Task[],
team: Agent[],
): Promise<void> {
const executedTasks = new Set<string>()
while (executedTasks.size < tasks.length) {
// Find tasks with satisfied dependencies
const readyTasks = tasks.filter(
(task) =>
!executedTasks.has(task.id) &&
task.dependencies.every((depId) => executedTasks.has(depId)),
)
// Execute in parallel batches
const batch = readyTasks.slice(0, team.length)
await Promise.all(
batch.map((task, index) => {
const agent = team[index % team.length]
return executeTaskWithAgent(task, agent, task.description)
}),
)
batch.forEach((task) => executedTasks.add(task.id))
}
}
Context Sharing
The ContextBroker enables inter-agent communication:
import { ContextBroker } from '@/lib/context-broker'
// Agent publishes context
await ContextBroker.publish({
type: 'finding',
agentId: agent.id,
content: 'Discovered that the API requires authentication',
keywords: ['api', 'authentication', 'security'],
})
// Another agent retrieves relevant context
const relevantContext = await ContextBroker.getRelevant(['api', 'design'])
Task States
type TaskStatus = 'pending' | 'in_progress' | 'completed' | 'failed'
State transitions:
pending→in_progress(when assigned to agent)in_progress→completed(when validated successfully)in_progress→failed(when validation fails after retries)failed→in_progress(when retry initiated)
Requirement Types
interface Requirement {
id: string
type: 'functional' | 'non-functional' | 'constraint'
description: string
priority: 'must' | 'should' | 'could' | 'wont'
source: 'explicit' | 'implicit' | 'inferred'
validationStatus?: 'satisfied' | 'pending' | 'failed'
evidence?: string[]
}
Creating Custom Orchestration Logic
When extending orchestration:
import { WorkflowOrchestrator } from '@/lib/orchestrator'
import { TaskAnalyzer } from '@/lib/task-analyzer'
import { getAgentById, createAgent } from '@/stores/agentStore'
async function customOrchestration(prompt: string): Promise<void> {
// 1. Analyze the task
const analysis = await TaskAnalyzer.analyze(prompt)
// 2. Find or create suitable agent
let agent = await findAgentWithSkills(analysis.requiredSkills)
if (!agent) {
agent = await createAgent({
name: 'Dynamic Agent',
role: analysis.sugges
Установить orchestration-workflow в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл orchestration-workflow?
Guide for working with the multi-agent orchestration system in DEVS. Use this when asked to modify task orchestration, agent coordination, or workflow execution.
Как установить скилл orchestration-workflow?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл orchestration-workflow запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic