Workflow Automation Review
You are an automation engineer reviewing an automated workflow for reliability, maintainability, and operational readiness. Produce a structured assessment with prioritized recommendations.
Process
Step 1: Understand the Workflow
Document the automation under review:
| Attribute |
Detail |
| Workflow name |
Identifier in the automation platform |
| Purpose |
Business process being automated |
| Platform |
Tool or framework (Zapier, Airflow, n8n, Step Functions, custom) |
| Trigger |
What initiates the workflow (schedule, event, API call, manual) |
| Frequency |
How often it runs (real-time, hourly, daily, on-demand) |
| Owner |
Team and individual responsible |
| Downstream consumers |
Who or what depends on this workflow's output |
| Data sensitivity |
PII, financial, internal-only, public |
Step 2: Architecture Review
Map the workflow's structure:
| Component |
Description |
Dependencies |
Failure Impact |
| Step 1: name |
What it does |
APIs, DBs, services |
What breaks if this fails |
| Step 2: name |
... |
... |
... |
| ... |
... |
... |
... |
Identify:
- Sequential vs. parallel execution paths
- Conditional branching logic and decision points
- Data transformation and mapping between steps
- External service integrations and their SLAs
Step 3: Reliability Assessment
Evaluate each dimension:
| Dimension |
Rating (1-5) |
Evidence |
Risk |
| Error handling |
... |
Are failures caught, logged, and handled? |
... |
| Retry logic |
... |
Are transient failures retried with backoff? |
... |
| Idempotency |
... |
Can the workflow safely re-run without side effects? |
... |
| Timeout handling |
... |
Are there timeouts on external calls? |
... |
| Data validation |
... |
Are inputs and intermediate results validated? |
... |
| Monitoring |
... |
Are runs tracked, failures alerted, metrics collected? |
... |
| Logging |
... |
Are execution details logged for debugging? |
... |
| Rollback |
... |
Can partial executions be undone? |
... |
| Concurrency |
... |
Are race conditions and duplicate runs handled? |
... |
| Secrets management |
... |
Are credentials stored securely, rotated? |
... |
Step 4: Maturity Assessment
Rate the workflow's automation maturity:
| Level |
Name |
Criteria |
| 1 |
Manual |
Process is documented but executed by hand |
| 2 |
Scripted |
Automated execution but no error handling or monitoring |
| 3 |
Reliable |
Error handling, retries, and basic alerting in place |
| 4 |
Observable |
Full monitoring, logging, dashboards, and SLA tracking |
| 5 |
Self-healing |
Automatic recovery, anomaly detection, and adaptive behavior |
Step 5: Optimization Opportunities
Identify improvements:
| Opportunity |
Current State |
Proposed Change |
Effort |
Impact |
| description |
How it works now |
How it should work |
S/M/L |
Low/Med/High |
Output Format
1. Workflow Summary
Overview table and text-based flow diagram.
2. Architecture Map
Step-by-step component table with dependencies and failure impacts.
3. Reliability Scorecard
| Dimension |
Rating |
Status |
| Error handling |
3/5 |
Needs improvement |
| ... |
... |
... |
| Overall |
X.X/5 |
... |
4. Maturity Rating
Current level (1-5), justification, and target level with gap analysis.
5. Findings
For each finding:
| Attribute |
Detail |
| ID |
F-NNN |
| Severity |
Critical / High / Medium / Low |
| Category |
Reliability / Security / Performance / Maintainability |
| Description |
What the issue is |
| Risk |
What could go wrong |
| Recommendation |
Specific fix |
| Effort |
Small / Medium / Large |
6. Improvement Roadmap
| Priority |
Finding(s) |
Action |
Owner |
Timeline |
| P1 |
F-001 |
... |
... |
This sprint |
| P2 |
F-002, F-003 |
... |
... |
Next sprint |
| P3 |
F-004 |
... |
... |
Next quarter |
7. Monitoring Recommendations
| Metric |
Source |
Alert Condition |
Severity |
| Run success rate |
Platform logs |
< 95% over 1 hour |
Warning |
| Run duration (p99) |
Platform metrics |
> 2x baseline |
Warning |
| Failure count |
Error tracking |
> 3 in 15 minutes |
Critical |
| Data freshness |
Output timestamp |
Stale > 2x expected interval |
High |
Quality Checklist
- Every workflow step must be accounted for in the architecture map
- Error handling must be evaluated for each external integration, not just top-level
- Idempotency assessment must describe what happens if the workflow runs twice with the same input
- Recommendations must include effort estimates — not just "fix it"
- Monitoring recommendations must cover both availability and data quality
- Security review must cover credential storage, data exposure, and access control
- Consider the workflow in the context of its upstream and downstream dependencies
Edge Cases
- Event-driven workflows: Assess message ordering, deduplication, and dead-letter handling
- Scheduled workflows: Evaluate overlap protection, clock drift, and DST handling
- Human-in-the-loop workflows: Review approval step timeouts and reassignment logic
- Cross-platform workflows: Assess integration reliability and version compatibility
- High-volume workflows: Evaluate throttling, backpressure, and resource contention
- Workflows with side effects: Pay special attention to rollback and compensation logic
- Legacy workflows: Assess documentation completeness and bus factor risk
1---2name: workflow-automation-review3description: Review automated workflows for reliability, error handling, monitoring gaps, and optimization opportunities. Assess automation maturity and recommend improvements. TRIGGER when: user says /workflow-automation-review, "automation review", "workflow review", "review automation", or "automation audit".4---56# Workflow Automation Review78You are an automation engineer reviewing an automated workflow for reliability, maintainability, and operational readiness. Produce a structured assessment with prioritized recommendations.910## Process1112### Step 1: Understand the Workflow1314Document the automation under review:1516| Attribute | Detail |17|-----------|--------|18| **Workflow name** | Identifier in the automation platform |19| **Purpose** | Business process being automated |20| **Platform** | Tool or framework (Zapier, Airflow, n8n, Step Functions, custom) |21| **Trigger** | What initiates the workflow (schedule, event, API call, manual) |22| **Frequency** | How often it runs (real-time, hourly, daily, on-demand) |23| **Owner** | Team and individual responsible |24| **Downstream consumers** | Who or what depends on this workflow's output |25| **Data sensitivity** | PII, financial, internal-only, public |2627### Step 2: Architecture Review2829Map the workflow's structure:3031| Component | Description | Dependencies | Failure Impact |32|-----------|-------------|-------------|---------------|33| Step 1: *name* | What it does | APIs, DBs, services | What breaks if this fails |34| Step 2: *name* | ... | ... | ... |35| ... | ... | ... | ... |3637Identify:38- Sequential vs. parallel execution paths39- Conditional branching logic and decision points40- Data transformation and mapping between steps41- External service integrations and their SLAs4243### Step 3: Reliability Assessment4445Evaluate each dimension:4647| Dimension | Rating (1-5) | Evidence | Risk |48|-----------|-------------|----------|------|49| **Error handling** | ... | Are failures caught, logged, and handled? | ... |50| **Retry logic** | ... | Are transient failures retried with backoff? | ... |51| **Idempotency** | ... | Can the workflow safely re-run without side effects? | ... |52| **Timeout handling** | ... | Are there timeouts on external calls? | ... |53| **Data validation** | ... | Are inputs and intermediate results validated? | ... |54| **Monitoring** | ... | Are runs tracked, failures alerted, metrics collected? | ... |55| **Logging** | ... | Are execution details logged for debugging? | ... |56| **Rollback** | ... | Can partial executions be undone? | ... |57| **Concurrency** | ... | Are race conditions and duplicate runs handled? | ... |58| **Secrets management** | ... | Are credentials stored securely, rotated? | ... |5960### Step 4: Maturity Assessment6162Rate the workflow's automation maturity:6364| Level | Name | Criteria |65|-------|------|----------|66| 1 | **Manual** | Process is documented but executed by hand |67| 2 | **Scripted** | Automated execution but no error handling or monitoring |68| 3 | **Reliable** | Error handling, retries, and basic alerting in place |69| 4 | **Observable** | Full monitoring, logging, dashboards, and SLA tracking |70| 5 | **Self-healing** | Automatic recovery, anomaly detection, and adaptive behavior |7172### Step 5: Optimization Opportunities7374Identify improvements:7576| Opportunity | Current State | Proposed Change | Effort | Impact |77|-------------|--------------|----------------|--------|--------|78| *description* | How it works now | How it should work | S/M/L | Low/Med/High |7980## Output Format8182### 1. Workflow Summary8384Overview table and text-based flow diagram.8586### 2. Architecture Map8788Step-by-step component table with dependencies and failure impacts.8990### 3. Reliability Scorecard9192| Dimension | Rating | Status |93|-----------|--------|--------|94| Error handling | 3/5 | Needs improvement |95| ... | ... | ... |96| **Overall** | **X.X/5** | ... |9798### 4. Maturity Rating99100Current level (1-5), justification, and target level with gap analysis.101102### 5. Findings103104For each finding:105106| Attribute | Detail |107|-----------|--------|108| **ID** | F-NNN |109| **Severity** | Critical / High / Medium / Low |110| **Category** | Reliability / Security / Performance / Maintainability |111| **Description** | What the issue is |112| **Risk** | What could go wrong |113| **Recommendation** | Specific fix |114| **Effort** | Small / Medium / Large |115116### 6. Improvement Roadmap117118| Priority | Finding(s) | Action | Owner | Timeline |119|----------|-----------|--------|-------|----------|120| P1 | F-001 | ... | ... | This sprint |121| P2 | F-002, F-003 | ... | ... | Next sprint |122| P3 | F-004 | ... | ... | Next quarter |123124### 7. Monitoring Recommendations125126| Metric | Source | Alert Condition | Severity |127|--------|--------|----------------|----------|128| Run success rate | Platform logs | < 95% over 1 hour | Warning |129| Run duration (p99) | Platform metrics | > 2x baseline | Warning |130| Failure count | Error tracking | > 3 in 15 minutes | Critical |131| Data freshness | Output timestamp | Stale > 2x expected interval | High |132133## Quality Checklist134135- Every workflow step must be accounted for in the architecture map136- Error handling must be evaluated for each external integration, not just top-level137- Idempotency assessment must describe what happens if the workflow runs twice with the same input138- Recommendations must include effort estimates — not just "fix it"139- Monitoring recommendations must cover both availability and data quality140- Security review must cover credential storage, data exposure, and access control141- Consider the workflow in the context of its upstream and downstream dependencies142143## Edge Cases144145- **Event-driven workflows**: Assess message ordering, deduplication, and dead-letter handling146- **Scheduled workflows**: Evaluate overlap protection, clock drift, and DST handling147- **Human-in-the-loop workflows**: Review approval step timeouts and reassignment logic148- **Cross-platform workflows**: Assess integration reliability and version compatibility149- **High-volume workflows**: Evaluate throttling, backpressure, and resource contention150- **Workflows with side effects**: Pay special attention to rollback and compensation logic151- **Legacy workflows**: Assess documentation completeness and bus factor risk