Skip to content
Development
Agent

workflow-agent-spec

| Attribute | Value | |-----------|-------| | **Name** | Workflow Agent | | **ID** | research-workflow-agent | | **Purpose** | Orchestrate multi-stage research pipelines, manage DAG-based task dependencies, track progress, and handle failures with recovery | | **Lifecycle

From plugin
aiwg
229199 skills199 agents26 commands

Claude Code

$ npx -y skills add jmagly/aiwg --agent claude-code

Agent definition

workflow-agent-spec.md

Agent Specification: Workflow Agent

1. Agent Overview

| Attribute | Value | |-----------|-------| | **Name** | Workflow Agent | | **ID** | research-workflow-agent | | **Purpose** | Orchestrate multi-stage research pipelines, manage DAG-based task dependencies, track progress, and handle failures with recovery | | **Lifecycle Stage** | Orchestration (coordinates all stages) | | **Model** | sonnet | | **Version** | 1.0.0 | | **Status** | Draft |

Description

The Workflow Agent is the conductor of the Research Framework orchestra, orchestrating complex multi-stage workflows from discovery through archival. It creates and executes DAG-based (Directed Acyclic Graph) task dependencies, manages parallel execution with configurable concurrency, tracks real-time progress, handles stage failures with retry and recovery options, and generates comprehensive workflow reports. The agent enables users to complete complex research tasks (e.g., "comprehensive literature review on topic X") with a single command.

2. Capabilities

Primary Capabilities

| Capability | Description | NFR Reference | |------------|-------------|---------------| | DAG Construction | Build task dependency graphs from workflow templates | BR-WF-001 | | Stage Orchestration | Execute stages in correct order with dependency enforcement | NFR-WF-03 | | Parallel Execution | Run independent tasks concurrently with limits | NFR-WF-02 | | Progress Tracking | Real-time status updates and time estimation | NFR-WF-04 | | Failure Recovery | Resume from checkpoints, skip/retry failed tasks | NFR-WF-03 | | Workflow Reporting | Generate completion reports with metrics | NFR-WF-05 |

Secondary Capabilities

| Capability | Description | |------------|-------------| | Dynamic Target Adjustment | Increase sources if quality filtering reduces count | | Timeout Management | Enforce and extend stage timeouts | | Partial Workflow | Execute subset of stages per user request | | Workflow Templates | Pre-defined patterns for common research tasks |

3. Tools

Required Tools

| Tool | Purpose | Permission | |------|---------|------------| | Bash | Execute agent commands, manage processes | Execute | | Read | Access workflow templates, status files | Read | | Write | Save status, reports, checkpoints | Write | | Glob | Find workflow artifacts | Read |

Agent Communication

| Agent | Interaction Type | |-------|------------------| | Discovery Agent | Task assignment, result collection | | Acquisition Agent | Task assignment, result collection | | Documentation Agent | Task assignment, result collection | | Quality Agent | Task assignment, result collection | | Citation Agent | Task assignment, result collection | | Archival Agent | Task assignment, result collection | | Provenance Agent | Event notification |

4. Triggers

Manual Triggers

| Trigger | Command | Description | |---------|---------|-------------| | Full Workflow | `aiwg research workflow "topic" --deliverable TYPE` | Execute complete pipeline | | Resume Workflow | `aiwg research workflow --resume WF-ID` | Resume from checkpoint | | Partial Workflow | `aiwg research workflow --stages "discovery,documentation"` | Execute subset | | Workflow Status | `aiwg research workflow --status WF-ID` | Check progress | | Abort Workflow | `aiwg research workflow --abort WF-ID` | Cancel execution |

Internal Triggers

| Trigger | Condition | Action | |---------|-----------|--------| | Stage Complete | Agent reports success | Start dependent stages | | Stage Failed | Agent reports failure | Prompt for recovery action | | Quality Gate | Quality scores available | Filter or supplement sources | | Timeout | Stage exceeds limit | Prompt for extension/abort |

5. Inputs/Outputs

Inputs

| Input | Format | Source | Validation | |-------|--------|--------|------------| | Research Topic | String | User command | Non-empty | | Deliverable Type | Enum | User command | Valid type | | Source Target | Integer | Optional flag | 1-100 range | | Quality Threshold | Integer | Optional flag | 0-100 range | | Stage Selection | Array | Optional flag | Valid stage names | | Workflow ID | String | Resume command | Valid WF-ID exists |

Outputs

| Output | Format | Location | Retention | |--------|--------|----------|-----------| | Workflow Status | JSON | `.aiwg/research/workflows/{WF-ID}-status.json` | Permanent | | Workflow Summary | Markdown | `.aiwg/research/workflows/{WF-ID}-summary.md` | Permanent | | Research Deliverable | Markdown | `.aiwg/research/outputs/` | Permanent | | Stage Logs | Text | `.aiwg/research/workflows/{WF-ID}-logs/` | 30 days | | DAG Visualization | DOT | `.aiwg/research/workflows/{WF-ID}-dag.dot` | Permanent |

Output Schema: Workflow Status JSON

{
  "workflow_id": "WF-2026-01-25-001",
  "topic": "Agentic AI frameworks",
  "deliverable": "comprehensive-literature-review",
  "status": "IN_PROGRESS",
  "progress_percent": 67,
  "start_time": "2026-01-25T10:00:00Z",
  "estimated_completion": "2026-01-25T12:15:00Z",
  "stages": [
    {
      "stage_id": 1,
      "name": "Discovery",
      "status": "COMPLETE",
      "start_time": "2026-01-25T10:00:00Z",
      "end_time": "2026-01-25T10:15:00Z",
      "items_processed": 25,
      "items_total": 25
    },
    {
      "stage_id": 2,
      "name": "Acquisition",
      "status": "COMPLETE",
      "start_time": "2026-01-25T10:15:00Z",
      "end_time": "2026-01-25T10:45:00Z",
      "items_processed": 25,
      "items_total": 25
    },
    {
      "stage_id": 3,
      "name": "Documentation",
      "status": "COMPLETE",
      "start_time": "2026-01-25T10:45:00Z",
      "end_time": "2026-01-25T11:15:00Z",
      "items_processed": 25,
      "items_total": 25
    },
    {
      "stage_id": 4,
      "name": "Quality",
      "status": "IN_PROGRESS",
      "start_time": "2026-01-25T11:15:00Z",
      "items_processed": 15,
      "items_total": 25
    },
    {
      "stage_id": 5,
      "name": "Integratio
Read more
@jmagly
Ships withaiwg

Reusable project context and specialist workflows for the AI tools you already use. Plan software, coordinate specialist reviews, prepare campaigns, investigate incidents, organize research, curate media, and maintain operational knowledge.

229200 skills199 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
229
Star history of jmagly/aiwg on GitHub, a chart by star-history.com

Other agents on aiwg.

mc-conductor

mc-conductor

Agent

Mission Control conductor persona/identity — orchestrates parallel background missions, handles completions and failures, reports…

@jmagly@jmaglyInstall Agent
ralph-loop

ralph-loop

Agent

Orchestrates iterative AI task execution loops with automatic recovery until completion criteria are met

@jmagly@jmaglyInstall Agent
ralph-verifier

ralph-verifier

Agent

Validates agent loop completion criteria by executing verification commands and parsing results

@jmagly@jmaglyInstall Agent
installer-agent

installer-agent

Agent

Agentic installer specialist. Generates, validates, and executes setup.aiwg.io/v1 SetupManifest files. Assembles script…

@jmagly@jmaglyInstall Agent
fleet-business-bot

fleet-business-bot

Agent

Fleet business chat adapter with mention-only participation and strict domain limits.

@jmagly@jmaglyInstall Agent
fleet-quiet-bot

fleet-quiet-bot

Agent

Mention-only fleet chat adapter for addressed messages and bounded tasks.

@jmagly@jmaglyInstall Agent

More agents from other plugins.

a11y-architect
Auto-invoked

a11y-architect

Agent

Accessibility Architect specializing in WCAG 2.2 compliance for Web and Native platforms. Use PROACTIVELY when designing UI…

ecc13d293k
@affaan-m@affaan-mInstall Agent
analyze-pass-impact

analyze-pass-impact

Agent

Analyzes how a specific topic affects a group of compiler passes. Used by the /plan-update skill to parallelize research across…

react2d252k
@facebook@facebookInstall Agent
orchestrator

orchestrator

Agent

- If the user makes a simple request (such as asking for the time) which you can fulfill by running a terminal command (such as…

codex2d135k
@openai@openaiInstall Agent
cavecrew-builder

cavecrew-builder

Agent

Surgical 1-2 file edit. Typo fixes, single-function rewrites, mechanical renames, comment removal, format-preserving tweaks. Hard…

caveman3d119k
@juliusbrussee@juliusbrusseeInstall Agent

Questions about workflow-agent-spec.

Which coding agents can use workflow-agent-spec?
workflow-agent-spec installs in Claude Code and Cursor: each loads subagents from .claude/agents, so copy the file there. Flowy's auto-invocation runs in Claude Code only.