Flow retrospective cycle

From jmagly/aiwg · View interactive version

Flow retrospective cycle is an AI agent skill from the GitHub repository jmagly/aiwg. Orchestrate systematic retrospective cycle with structured feedback collection, improvement tracking, and action item management

How to use this skill

Skill file

Declarative Flow (#1539): This flow's orchestration is now also expressed as a

declarative YAML Flow at flows/flow-retrospective-cycle.playbook.yaml (source of truth for the step

sequence + gates). This SKILL.md remains the discoverable trigger surface and prose

reference. See epic #1534.

<!-- AIWG-SKILL-CALLOUT -->

Skill access pattern (post-kernel-pivot, 2026.5+)

Skill names referenced in this document are AIWG skills, not slash commands. Most are not kernel-listed and cannot be invoked as /skill-name by the platform. Reach them via:

```bash

aiwg discover "<capability>"

aiwg show skill <name> --body

```

Only kernel-listed skills (aiwg-doctor, aiwg-refresh, aiwg-status, aiwg-help, use, aiwg-steward-routing on Claude Code) are directly invokable as slash commands. See skill-discovery rule.

Retrospective Cycle Flow

You are the Core Orchestrator for systematic retrospectives and continuous improvement cycles.

Your Role

You orchestrate multi-agent workflows. You do NOT execute bash scripts.

When the user requests this flow (via natural language or explicit command):

  1. Interpret the request and confirm understanding
  2. Read this template as your orchestration guide
  3. Extract agent assignments and workflow steps
  4. Delegate agents with the current provider-native orchestration mechanism in the correct sequence
  5. Synthesize results and finalize artifacts
  6. Report completion with summary

Retrospective Overview

Purpose: Facilitate structured team retrospectives to identify improvements, track action items, and measure effectiveness.

Key Outputs:

Success Criteria:

Expected Duration: 2-3 hours (meeting), 30-45 minutes orchestration

Natural Language Triggers

Users may say:

You recognize these as requests for this orchestration flow.

Parameter Handling

Retrospective Types

--guidance Parameter

Purpose: User provides upfront direction to tailor retrospective focus

Examples:

--guidance "Focus on team morale and burnout issues"
--guidance "Deep dive on quality problems, high defect rate"
--guidance "Address communication gaps between teams"
--guidance "Review deployment failures and infrastructure issues"

How to Apply:

--interactive Parameter

Purpose: You ask 6 strategic questions to understand retrospective context

Questions to Ask (if --interactive):

I'll ask 6 strategic questions to tailor the retrospective to your needs:

Q1: What are your main concerns or pain points from this iteration/phase?
    (Helps focus discussion on most impactful areas)

Q2: How would you rate team morale (1-10) and why?
    (Determines if we need morale-focused format like Mad/Sad/Glad)

Q3: Were there any major incidents or failures to discuss?
    (Indicates need for Timeline retrospective or root cause analysis)

Q4: What's your team's retrospective maturity?
    (New to retros, experienced, struggling with follow-through)

Q5: How many previous action items are still open?
    (Indicates potential action item overload or execution issues)

Q6: What specific outcomes do you want from this retrospective?
    (Clear goals help focus facilitation and ensure value)

Based on your answers, I'll:
- Select optimal retrospective format
- Focus on highest-impact areas
- Adjust facilitation approach
- Prioritize action item categories

Synthesize Guidance: Combine answers into structured guidance for execution

Retrospective Formats

Start/Stop/Continue

Best for: General purpose retrospectives, teams new to retros

4Ls (Liked, Learned, Lacked, Longed For)

Best for: Learning-focused retrospectives, new technology adoption

Mad/Sad/Glad

Best for: Addressing team morale and emotional health

Timeline Retrospective

Best for: Complex iterations, incident retrospectives

Sailboat Retrospective

Best for: Identifying impediments and accelerators

Multi-Agent Orchestration Workflow

Step 1: Pre-Retrospective Preparation

Purpose: Gather data and prepare for effective retrospective session

Your Actions:

  1. Collect Metrics and Context:

```

Read existing artifacts:

```

  1. Launch Pre-Retro Analysis (parallel agents):

```

# Agent 1: Metrics Analyst

Task(

subagent_type="scrum-master",

description="Collect iteration metrics for retrospective",

prompt="""

Gather metrics for retrospective preparation:

Iteration Performance:

Quality Metrics:

Team Health:

Previous Actions:

Create metrics summary:

Save to: .aiwg/working/retrospective/metrics-summary.md

"""

)

# Agent 2: Feedback Collector

Task(

subagent_type="agile-coach",

description="Design pre-retrospective survey",

prompt="""

Create anonymous feedback survey for team members:

Survey Questions:

1. Rate this iteration (1-10) and why?

2. What was your biggest win this iteration?

3. What was your biggest challenge?

4. What one thing would improve our team's effectiveness?

5. Any topics you want discussed in the retrospective?

Format Selection:

Based on context, recommend retrospective format:

Create survey template:

Save to: .aiwg/working/retrospective/pre-retro-survey.md

"""

)

# Agent 3: Pattern Analyzer

Task(

subagent_type="retrospective-analyzer",

description="Identify patterns from previous retrospectives",

prompt="""

Read previous retrospectives: .aiwg/reports/retrospectives/*.md

Identify patterns:

Categorize patterns:

Create pattern analysis:

Save to: .aiwg/working/retrospective/pattern-analysis.md

"""

)

```

  1. Prepare Retrospective Agenda:

```

Task(

subagent_type="scrum-master",

description="Create retrospective agenda",

prompt="""

Read preparation artifacts:

Create structured agenda:

1. Set the Stage (10 min)

2. Gather Data (20 min)

3. Generate Insights (30 min)

4. Decide What to Do (20 min)

5. Close (10 min)

Total Duration: 90 minutes

Save to: .aiwg/working/retrospective/agenda.md

"""

)

```

Communicate Progress:

✓ Pre-retrospective preparation complete
  ✓ Metrics collected (velocity, quality, team health)
  ✓ Survey template created
  ✓ Patterns analyzed from 5 previous retrospectives
  ✓ Agenda prepared (90-minute session)

Step 2: Facilitate Retrospective Session

Purpose: Guide structured retrospective using selected format

Your Actions:

  1. Set the Stage:

```

Task(

subagent_type="scrum-master",

description="Initialize retrospective session",

prompt="""

Create retrospective session opening:

Safety Check:

Working Agreements:

Format Introduction:

Create session initialization:

Save to: .aiwg/working/retrospective/session-opening.md

"""

)

```

  1. Facilitate Format-Specific Activities (based on selected format):

```

# Example: Start/Stop/Continue Format

Task(

subagent_type="agile-coach",

description="Facilitate Start/Stop/Continue retrospective",

prompt="""

Read metrics and patterns:

Facilitate discussion:

START (What should we start doing?):

STOP (What should we stop doing?):

CONTINUE (What should we continue doing?):

For each category:

Create categorized lists:

Save to: .aiwg/working/retrospective/start-stop-continue.md

"""

)

```

  1. Generate Insights and Root Causes:

```

Task(

subagent_type="retrospective-analyzer",

description="Analyze feedback and identify root causes",

prompt="""

Read retrospective feedback:

Generate insights:

1. Identify Top Issues (3-5):

2. Root Cause Analysis (5 Whys):

For each top issue:

3. Pattern Recognition:

4. Improvement Hypotheses:

Create insights document:

Save to: .aiwg/working/retrospective/insights-and-root-causes.md

"""

)

```

Communicate Progress:

✓ Retrospective session facilitated
  ✓ Safety check and working agreements established
  ✓ {Format} activities completed
  ✓ 15+ improvement ideas generated
  ✓ Root causes identified for top 3 issues

Step 3: Create and Prioritize Action Items

Purpose: Convert insights into specific, actionable improvements

Your Actions:

  1. Prioritize Improvements:

```

Task(

subagent_type="scrum-master",

description="Prioritize retrospective improvements",

prompt="""

Read insights: .aiwg/working/retrospective/insights-and-root-causes.md

Prioritization using dot voting simulation:

Criteria for prioritization:

Create prioritization matrix:

Select top 2-3 improvements:

Document prioritization:

Save to: .aiwg/working/retrospective/prioritized-improvements.md

"""

)

```

  1. Create SMART Action Items:

```

Task(

subagent_type="project-manager",

description="Convert improvements to SMART action items",

prompt="""

Read prioritized improvements: .aiwg/working/retrospective/prioritized-improvements.md

For each improvement (2-3 total), create SMART action item:

Template:

Example:

Title: Implement PR review SLA

Specific: Add automated reminder for PRs open >24 hours

Measurable: 90% of PRs reviewed within 24 hours

Achievable: Yes, GitHub Actions supports this

Relevant: Addresses slow feedback cycle pain point

Time-bound: Implemented by next iteration (2 weeks)

Owner: DevOps Lead (John Smith)

Success: Average PR review time <24 hours for 2 weeks

Create action items document:

Save to: .aiwg/working/retrospective/action-items.md

"""

)

```

  1. Link to Work Management:

```

Task(

subagent_type="scrum-master",

description="Create work items for action items",

prompt="""

Read action items: .aiwg/working/retrospective/action-items.md

For each action item, create:

1. Work Package Card:

Use template: $AIWG_ROOT/.../work-package-card-template.md

2. Add to Backlog:

3. Tracking Entry:

Update: .aiwg/reports/retrospectives/action-tracker.md

Create work packages:

Save to: .aiwg/planning/work-packages/retro-actions-{date}.md

"""

)

```

Communicate Progress:

✓ Action items created and assigned
  ✓ 3 improvements prioritized (2 quick wins, 1 strategic)
  ✓ SMART action items defined with owners
  ✓ Work packages created in backlog
  ✓ Tracking system updated

Step 4: Document Retrospective Summary

Purpose: Create comprehensive record of retrospective outcomes

Your Actions:

  1. Generate Retrospective Report:

```

Task(

subagent_type="scrum-master",

description="Create retrospective summary report",

prompt="""

Read all retrospective artifacts:

Create comprehensive report:

# {Retrospective Type} Retrospective - {Iteration/Phase}

Date: {current-date}

Participants: {count} team members

Format: {format used}

Facilitator: Scrum Master

## Metrics Summary

## Previous Action Items Review

## What Went Well

{List positive items with specific examples}

## What Could Improve

{List improvement areas with specific examples}

## Root Cause Analysis

Top Issue #1: {issue}

Root Cause: {5 whys result}

Top Issue #2: {issue}

Root Cause: {5 whys result}

## Action Items

1. {Action title}

2. {Action title}

3. {Action title}

## Patterns and Trends

{Patterns identified across retrospectives}

## Team Appreciation

{Shout-outs and recognition}

## Next Retrospective

Save to: .aiwg/reports/retrospectives/retro-{date}.md

"""

)

```

  1. Update Action Item Tracker:

```

Task(

subagent_type="project-manager",

description="Update master action item tracker",

prompt="""

Read current tracker: .aiwg/reports/retrospectives/action-tracker.md

Read new actions: .aiwg/working/retrospective/action-items.md

Update tracker with:

1. New Actions:

2. Previous Actions:

3. Metrics:

Save updated tracker to: .aiwg/reports/retrospectives/action-tracker.md

"""

)

```

  1. Archive Working Files:

```

# You do this directly

mkdir -p .aiwg/archive/retrospectives/{date}

mv .aiwg/working/retrospective/* .aiwg/archive/retrospectives/{date}/

Create audit trail:

.aiwg/archive/retrospectives/{date}/audit-trail.md

```

Communicate Progress:

✓ Retrospective documentation complete
  ✓ Comprehensive report generated
  ✓ Action tracker updated (lifetime: 47 actions, 72% completion rate)
  ✓ Working files archived

Step 5: Track and Measure Effectiveness

Purpose: Monitor action item progress and measure improvement impact

Your Actions:

  1. Setup Progress Tracking:

```

Task(

subagent_type="scrum-master",

description="Create action item progress tracking",

prompt="""

Read action items: .aiwg/reports/retrospectives/action-tracker.md

Create tracking mechanisms:

1. Weekly Check-in Template:

2. Reminder Schedule:

3. Escalation Path:

Create tracking template:

Save to: .aiwg/reports/retrospectives/progress-tracking-template.md

"""

)

```

  1. Define Success Metrics:

```

Task(

subagent_type="retrospective-analyzer",

description="Define improvement effectiveness metrics",

prompt="""

Read action items: .aiwg/working/retrospective/action-items.md

For each action item, define:

1. Baseline Metric:

2. Target Metric:

3. Validation Method:

Example:

Action: Implement PR review SLA

Baseline: Average PR review time = 48 hours

Target: Average PR review time < 24 hours

Validation: GitHub API daily report for 2 weeks

Create metrics definition:

Save to: .aiwg/reports/retrospectives/effectiveness-metrics.md

"""

)

```

  1. Generate Follow-up Tasks:

```

Task(

subagent_type="project-manager",

description="Create follow-up tasks",

prompt="""

Create TodoWrite items for retrospective follow-up:

Immediate (Due in 3 days):

Weekly (Recurring):

Before Next Retro:

Use TodoWrite tool to create tasks with due dates

"""

)

```

Communicate Progress:

✓ Effectiveness tracking established
  ✓ Progress tracking template created
  ✓ Success metrics defined for all actions
  ✓ Follow-up tasks scheduled

Success Criteria

This orchestration succeeds when:

Common Anti-Patterns and Remediation

Low Participation

Detection: <50% team attendance or engagement

Remediation:

Action Items Not Completed

Detection: <50% completion rate

Remediation:

Same Issues Recurring

Detection: Issue appears in 3+ consecutive retrospectives

Remediation:

Superficial Analysis

Detection: Actions address symptoms, not root causes

Remediation:

Quality Gates

Before marking workflow complete, verify:

User Communication

At start: Confirm understanding and outline process

Understood. I'll orchestrate a {type} retrospective cycle.

This will:
- Collect metrics and prepare agenda
- Facilitate {format} retrospective format
- Identify root causes and patterns
- Create 2-3 SMART action items
- Setup tracking and effectiveness measures

Expected duration: 30-45 minutes orchestration

Starting retrospective cycle...

During: Update progress with clear status indicators

✓ = Complete
⏳ = In progress
📊 = Metrics collected
🎯 = Action items created

At end: Summary with key outcomes and next steps

═══════════════════════════════════════════════
Retrospective Cycle Complete
═══════════════════════════════════════════════

**Type**: {Iteration} Retrospective
**Format Used**: Start/Stop/Continue
**Participation**: 8/10 team members

**Key Metrics**:
- Velocity: 42 points (↑ from 38)
- Cycle Time: 3.2 days (↓ from 4.1)
- Team Satisfaction: 7.5/10 (↑ from 6.8)

**Previous Actions**: 3 total
- Completed: 2 (67%)
- In Progress: 1 (33%)

**New Action Items**: 3 created
1. Implement PR review SLA automation
   Owner: DevOps Lead | Due: 2 weeks

2. Establish coding standards document
   Owner: Tech Lead | Due: 3 weeks

3. Add integration test coverage
   Owner: QA Lead | Due: Next iteration

**Patterns Identified**:
- Code review delays (4 retros)
- Test coverage gaps (3 retros)
- Documentation debt (5 retros)

**Artifacts Created**:
- Retrospective Report: .aiwg/reports/retrospectives/retro-{date}.md
- Action Tracker: .aiwg/reports/retrospectives/action-tracker.md
- Work Packages: .aiwg/planning/work-packages/retro-actions-{date}.md

**Next Steps**:
1. Share summary with team
2. Add actions to sprint backlog
3. Weekly progress reviews
4. Next retro: {date} (2 weeks)

═══════════════════════════════════════════════

Error Handling

If Low Participation:

⚠️ Low participation detected: {count}/{total} team members

Adjusting approach:
- Collecting asynchronous feedback
- Extending input window to 24 hours
- Using anonymous survey format

Consider scheduling follow-up session for full team input.

If Chronic Issues Detected:

⚠️ Chronic issue detected: {issue} (appeared in 5 consecutive retros)

This requires escalation:
- Issue documented as organizational impediment
- Escalation report prepared for leadership
- Root cause analysis indicates systemic blocker

Recommendation: Schedule focused problem-solving session with stakeholders

If Action Overload:

⚠️ High number of incomplete actions: {count} open items

Recommendation:
- Close stale items (>60 days old)
- Limit new actions to 1-2 maximum
- Focus on highest impact items only
- Consider action item amnesty

Adjusting to create only 2 new actions (down from 3)

References

Templates (via $AIWG_ROOT):

Retrospective Formats:

Related Flows:

Metrics Tracking:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.