home / skills / ruvnet / ruflo / workflow-automation

workflow-automation skill

/.agents/skills/workflow-automation

This skill creates and executes reusable multi-step workflows to automate complex tasks and coordinate agent orchestration across environments.

npx playbooks add skill ruvnet/ruflo --skill workflow-automation

Review the files below or copy the command above to add this skill to your agents.

Files (1)
SKILL.md
1.7 KB
---
name: workflow-automation
description: >
  Workflow creation, execution, and template management. Automates complex multi-step processes with agent coordination.
  Use when: automating processes, creating reusable workflows, orchestrating multi-step tasks.
  Skip when: simple single-step tasks, ad-hoc operations.
---

# Workflow Automation Skill

## Purpose
Create and execute automated workflows for complex multi-step processes.

## When to Trigger
- Multi-step automated processes
- Reusable workflow creation
- Complex task orchestration
- CI/CD pipeline setup

## Commands

### Create Workflow
```bash
npx claude-flow workflow create --name "deploy-flow" --template ci
```

### Execute Workflow
```bash
npx claude-flow workflow execute --name "deploy-flow" --env production
```

### List Workflows
```bash
npx claude-flow workflow list
```

### Export Template
```bash
npx claude-flow workflow export --name "deploy-flow" --format yaml
```

### View Status
```bash
npx claude-flow workflow status --name "deploy-flow"
```

## Built-in Templates

| Template | Description |
|----------|-------------|
| `ci` | Continuous integration pipeline |
| `deploy` | Deployment workflow |
| `test` | Testing workflow |
| `release` | Release automation |
| `review` | Code review workflow |

## Workflow Structure
```yaml
name: example-workflow
steps:
  - name: analyze
    agent: researcher
    task: "Analyze requirements"
  - name: implement
    agent: coder
    depends: [analyze]
    task: "Implement solution"
  - name: test
    agent: tester
    depends: [implement]
    task: "Write and run tests"
```

## Best Practices
1. Define clear step dependencies
2. Use appropriate agent types per step
3. Include validation gates
4. Export workflows for reuse

Overview

This skill automates creation, execution, and management of multi-step workflows and templates. It coordinates agent roles to run complex processes, enabling reusable pipelines for CI/CD, deployments, testing, and release tasks. Use it to reduce manual orchestration and enforce consistent, auditable workflows.

How this skill works

You define workflows as ordered steps with named agents, tasks, and dependency links. The skill creates, lists, exports, executes, and watches workflow status, handling agent coordination, validation gates, and environment-specific execution. Built-in templates accelerate common scenarios like CI, deploy, test, and release.

When to use it

  • Orchestrating complex multi-step processes with dependent tasks
  • Creating reusable workflow templates for teams or projects
  • Automating CI/CD pipelines and deployment pipelines
  • Coordinating multiple agent roles (researcher, coder, tester)
  • Enforcing validation gates and auditability in processes

Best practices

  • Define explicit step names and clear depends arrays to avoid race conditions
  • Map each step to an appropriate agent role (e.g., coder for implementation, tester for validation)
  • Include validation or approval gates before critical transitions (deploy, release)
  • Export templates (YAML) for reuse, versioning, and code review
  • Test workflows in a staging environment before production execution

Example use cases

  • Create a CI workflow that runs analysis, implementation checks, unit tests, and reporting
  • Deploy application to production with pre-deploy validation and rollback gates
  • Automate release pipelines that tag builds, generate release notes, and publish artifacts
  • Coordinate multi-agent investigations where researcher analyzes data, coder implements fixes, and tester verifies results

FAQ

How do I run a saved workflow in a specific environment?

Execute the workflow with an environment flag to target production, staging, or custom environments so agents use environment-specific settings.

Can I export and share workflow templates?

Yes. Export workflows as YAML templates to version-control, review, and reuse across projects or teams.