Flow construction to transition

From jmagly/aiwg · View interactive version

Flow construction to transition is an AI agent skill from the GitHub repository jmagly/aiwg. Orchestrate Construction→Transition phase transition with IOC validation, production deployment, and operational handover

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-construction-to-transition.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.

Construction → Transition Phase Transition Flow

You are the Core Orchestrator for the critical Construction→Transition phase transition.

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

Phase Transition Overview

From: Construction (feature-complete, tested, deployment-ready)

To: Transition (production deployed, users trained, support operational)

Key Milestone: Product Release Milestone (PRM)

Success Criteria:

Expected Duration: 2-4 weeks (typical), 20-30 minutes orchestration

Natural Language Triggers

Users may say:

You recognize these as requests for this orchestration flow.

Parameter Handling

--guidance Parameter

Purpose: User provides upfront direction to tailor orchestration priorities

Examples:

--guidance "High-risk deployment, need extensive validation and rollback plans"
--guidance "Limited support team, extra training and documentation needed"
--guidance "Performance critical, validate SLAs thoroughly before cutover"
--guidance "Phased rollout required, start with pilot users only"

How to Apply:

--interactive Parameter

Purpose: You ask 6-8 strategic questions to understand deployment context

Questions to Ask (if --interactive):

I'll ask 8 strategic questions to tailor the Transition to your needs:

Q1: What deployment strategy do you prefer?
    (e.g., big-bang, phased/canary, blue-green, feature toggles)

Q2: How critical is zero-downtime deployment?
    (Helps me plan cutover strategy and rollback procedures)

Q3: What's your support team's readiness level?
    (Determines training depth and handover timeline)

Q4: What are your rollback criteria?
    (Define when to pull back vs. fix forward)

Q5: How long should the hypercare period be?
    (7 days minimum, 14 days standard, 30 days for critical systems)

Q6: Are there specific compliance requirements for production?
    (e.g., SOC2 audit trails, HIPAA logging, PCI-DSS controls)

Q7: What's your user adoption strategy?
    (All at once, pilot group first, gradual onboarding)

Q8: What business metrics define success?
    (KPIs to validate during hypercare and PRM review)

Based on your answers, I'll adjust:
- Deployment strategy and validation depth
- Support training intensity
- Hypercare monitoring focus
- Success criteria thresholds

Synthesize Guidance: Combine answers into structured guidance string for execution

Artifacts to Generate

Primary Deliverables:

Supporting Artifacts:

Multi-Agent Orchestration Workflow

Step 1: Validate Construction Exit Criteria (OCM)

Purpose: Verify Operational Capability Milestone achieved before starting Transition

Your Actions:

  1. Check for Required Construction Artifacts:

```

Read and verify presence of:

```

  1. Launch Gate Check Agent:

```

Task(

subagent_type="project-manager",

description="Validate Construction gate (OCM) criteria",

prompt="""

Read gate criteria from: $AIWG_ROOT/agentic/code/frameworks/sdlc-complete/flows/gate-criteria-by-phase.md

Validate OCM criteria:

Generate OCM Validation Report:

Save to: .aiwg/reports/ocm-validation-report.md

"""

)

```

  1. Decision Point:

Communicate Progress:

✓ Initialized OCM validation
⏳ Validating Construction exit criteria...
✓ OCM Validation complete: [PASS | FAIL]

Step 2: Prepare Production Environment

Purpose: Ensure production infrastructure is provisioned, configured, and validated

Your Actions:

  1. Read Infrastructure Context:

```

Read:

```

  1. Launch Infrastructure Validation Agents (parallel):

```

# Agent 1: DevOps Engineer

Task(

subagent_type="devops-engineer",

description="Validate production infrastructure readiness",

prompt="""

Read infrastructure definition and deployment environment docs

Validate production environment:

Document infrastructure status:

Save to: .aiwg/working/transition/infrastructure-readiness.md

"""

)

# Agent 2: Security Architect

Task(

subagent_type="security-architect",

description="Validate production security configuration",

prompt="""

Read security architecture and deployment docs

Validate security hardening:

Document security status

Save to: .aiwg/working/transition/security-validation.md

"""

)

# Agent 3: Reliability Engineer

Task(

subagent_type="reliability-engineer",

description="Validate monitoring and observability",

prompt="""

Validate monitoring infrastructure:

Document observability status

Save to: .aiwg/working/transition/observability-readiness.md

"""

)

```

  1. Synthesize Infrastructure Readiness Report:

```

Task(

subagent_type="deployment-manager",

description="Create Production Environment Readiness Report",

prompt="""

Read all infrastructure validation reports:

Synthesize comprehensive readiness report covering:

Output: .aiwg/deployment/production-environment-readiness-report.md

"""

)

```

Communicate Progress:

✓ OCM validation complete
⏳ Validating production environment...
  ✓ Infrastructure provisioned and validated
  ✓ Security hardening complete
  ✓ Monitoring and observability operational
✓ Production environment: READY

Step 3: Execute Production Deployment

Purpose: Deploy application to production using validated deployment plan

Your Actions:

  1. Select Deployment Strategy:

```

Task(

subagent_type="deployment-manager",

description="Select and plan deployment strategy",

prompt="""

Read deployment plan: .aiwg/deployment/deployment-plan.md

Consider guidance: {user-guidance if provided}

Select optimal strategy:

Document selected strategy and rationale

Define rollback criteria and procedures

Output: .aiwg/working/transition/deployment-strategy.md

"""

)

```

  1. Execute Deployment (coordinate multiple agents):

```

# Pre-deployment

Task(

subagent_type="deployment-manager",

description="Execute pre-deployment checklist",

prompt="""

Validate pre-deployment:

Document readiness: .aiwg/working/transition/pre-deployment-checklist.md

"""

)

# Deployment execution

Task(

subagent_type="devops-engineer",

description="Execute production deployment",

prompt="""

Deploy to production following selected strategy:

1. Execute deployment scripts/automation

2. Run database migrations (if applicable)

3. Update configuration (env vars, feature flags)

4. Deploy application (code, containers, artifacts)

5. Validate health checks

Monitor deployment progress

Document any issues encountered

Output: .aiwg/working/transition/deployment-execution-log.md

"""

)

# Post-deployment validation

Task(

subagent_type="reliability-engineer",

description="Validate post-deployment health",

prompt="""

Validate deployment success:

Decision: SUCCESS | ISSUES DETECTED | ROLLBACK

Output: .aiwg/working/transition/post-deployment-validation.md

"""

)

```

  1. Generate Deployment Report:

```

Task(

subagent_type="deployment-manager",

description="Create Production Deployment Report",

prompt="""

Read all deployment artifacts:

Generate comprehensive deployment report:

Output: .aiwg/deployment/production-deployment-report.md

"""

)

```

Communicate Progress:

⏳ Executing production deployment...
  ✓ Pre-deployment checklist complete
  ✓ Deployment executed successfully
  ✓ Post-deployment validation: PASSED
✓ Production deployment: SUCCESS

Step 4: Conduct User Training and UAT

Purpose: Train users and validate acceptance in production

Your Actions:

  1. Prepare Training Materials:

```

Task(

subagent_type="training-lead",

description="Prepare and validate training materials",

prompt="""

Create/validate training materials:

Ensure materials cover all user roles

Validate accuracy against deployed system

Output: .aiwg/working/transition/training-materials-status.md

"""

)

```

  1. Deliver Training:

```

Task(

subagent_type="training-lead",

description="Coordinate user training delivery",

prompt="""

Plan and track training delivery:

Track participation and completion

Gather feedback scores

Output: .aiwg/working/transition/training-delivery-status.md

"""

)

```

  1. Execute UAT:

```

Task(

subagent_type="requirements-analyst",

description="Coordinate User Acceptance Testing",

prompt="""

Read Product Acceptance Plan template

Coordinate UAT execution:

Calculate UAT metrics:

Output: .aiwg/working/transition/uat-results.md

"""

)

```

  1. Generate Training and Acceptance Report:

```

Task(

subagent_type="product-owner",

description="Create User Training and Acceptance Report",

prompt="""

Synthesize training and UAT results:

Output: .aiwg/deployment/user-training-report.md

"""

)

```

Communicate Progress:

⏳ Conducting user training and acceptance...
  ✓ Training materials prepared
  ✓ Training delivered (85% completion)
  ✓ UAT completed (92% pass rate)
  ✓ User satisfaction: 4.2/5
✓ User acceptance: ACCEPTED

Step 5: Execute Support and Operations Handover

Purpose: Formally hand over to support and operations teams

Your Actions:

  1. Support Team Training:

```

Task(

subagent_type="support-lead",

description="Train and validate support team readiness",

prompt="""

Train support team on:

Validate readiness:

Output: .aiwg/working/transition/support-training-status.md

"""

)

```

  1. Operations Team Training:

```

Task(

subagent_type="operations-lead",

description="Train and validate operations team readiness",

prompt="""

Train operations team on:

Validate readiness:

Output: .aiwg/working/transition/operations-training-status.md

"""

)

```

  1. Formal Handover:

```

Task(

subagent_type="deployment-manager",

description="Coordinate formal handover",

prompt="""

Coordinate handover meetings:

Obtain signoffs:

Document handover status:

Output: .aiwg/deployment/support-handover-report.md

Output: .aiwg/deployment/operations-handover-report.md

"""

)

```

Communicate Progress:

⏳ Executing support and operations handover...
  ✓ Support team trained and ready
  ✓ Operations team trained and ready
  ✓ Support Lead signoff: OBTAINED
  ✓ Operations Lead signoff: OBTAINED
✓ Handover complete: ACCEPTED

Step 6: Enter Hypercare Period

Purpose: Conduct 7-14 days of intensive monitoring and rapid response

Your Actions:

  1. Initialize Hypercare Monitoring:

```

Task(

subagent_type="reliability-engineer",

description="Set up hypercare monitoring",

prompt="""

Initialize hypercare period:

Define success criteria:

Output: .aiwg/working/transition/hypercare-plan.md

"""

)

```

  1. Daily Hypercare Monitoring (repeat daily):

```

Task(

subagent_type="reliability-engineer",

description="Daily hypercare monitoring report",

prompt="""

Monitor and report daily:

Production Stability:

User Adoption:

Support Effectiveness:

Decision: CONTINUE | EXTEND | CONCLUDE

Output: .aiwg/reports/hypercare-day-{day}.md

"""

)

```

  1. Hypercare Review (Day 7 and Day 14):

```

Task(

subagent_type="deployment-manager",

description="Hypercare period review",

prompt="""

Review hypercare metrics:

Decision:

Output: .aiwg/reports/hypercare-review.md

"""

)

```

Communicate Progress:

⏳ Hypercare period (Day 1-14)...
  Day 1: ✓ Stable (0 incidents, 99.99% uptime)
  Day 3: ✓ Stable (1 P3 incident resolved)
  Day 7: ✓ Mid-review: CONTINUE
  Day 14: ✓ Final review: READY FOR PRM
✓ Hypercare complete: Production stable

Step 7: Validate Product Release Milestone (PRM)

Purpose: Formal PRM review to decide project completion

Your Actions:

  1. Validate PRM Criteria:

```

Task(

subagent_type="project-manager",

description="Validate PRM gate criteria",

prompt="""

Read gate criteria: $AIWG_ROOT/.../flows/gate-criteria-by-phase.md (Transition section)

Validate all PRM criteria:

1. Production Deployment

2. Production Stability

3. User Adoption

4. Support Handover

5. Operations Handover

6. Business Value

Report status: PASS | CONDITIONAL PASS | FAIL

Output: .aiwg/reports/prm-criteria-validation.md

"""

)

```

  1. Generate PRM Report:

```

Task(

subagent_type="project-manager",

description="Generate Product Release Milestone Report",

prompt="""

Read all Transition artifacts:

Generate comprehensive PRM Report:

1. Overall Status

2. Criteria Validation (detailed breakdown)

3. Signoff Checklist

4. Business Value Validation

5. Lessons Learned

6. Next Steps

Output: .aiwg/reports/prm-report.md

"""

)

```

  1. Present PRM Summary to User:

```

# You present this directly (not via agent)

Read .aiwg/reports/prm-report.md

Present summary:

─────────────────────────────────────────────

Product Release Milestone Review

─────────────────────────────────────────────

Overall Status: {PASS | CONDITIONAL PASS | FAIL}

Decision: {PROJECT COMPLETE | EXTENDED HYPERCARE | ISSUES DETECTED}

Criteria Status:

✓ Production Deployment: PASS

✓ Production Stability: PASS

✓ User Adoption: PASS

✓ Support Handover: PASS

✓ Operations Handover: PASS

✓ Business Value: ON TRACK

Artifacts Generated:

Next Steps:

─────────────────────────────────────────────

```

Communicate Progress:

⏳ Conducting PRM validation...
✓ PRM criteria validated: PASS (6/6 criteria met)
✓ PRM Report generated: .aiwg/reports/prm-report.md
✓ PROJECT COMPLETE - Ready for closure

Quality Gates

Before marking workflow complete, verify:

User Communication

At start: Confirm understanding and list artifacts to generate

Understood. I'll orchestrate the Construction → Transition phase.

This will generate:
- Production Deployment Report
- User Training and Acceptance Reports
- Support and Operations Handover Reports
- Hypercare Daily Reports (7-14 days)
- PRM Report

I'll coordinate deployment, training, handover, and monitoring.
Expected duration: 20-30 minutes orchestration (2-4 weeks actual).

Starting orchestration...

During: Update progress with clear indicators

✓ = Complete
⏳ = In progress
❌ = Error/blocked
⚠️ = Warning/attention needed

At end: Summary report with artifact locations and status (see Step 7.3 above)

Error Handling

If OCM Not Met:

❌ Construction phase incomplete - cannot proceed to Transition

Gaps identified:
- {list missing artifacts or incomplete criteria}

Recommendation: Complete Construction first
- Run: /flow-elaboration-to-construction
- Or: Complete missing artifacts manually

Contact Product Owner for project status decision.

If Deployment Failed:

❌ Production deployment failed

Failure point: {deployment stage}
Error: {error description}

Actions:
1. Execute rollback plan
2. Investigate root cause
3. Fix issues in Construction
4. Re-plan deployment

Impact: Cannot proceed to user training until deployment successful.

Escalating to user for decision...

If Production Unstable:

⚠️ Production instability detected

Issues:
- P0/P1 Incidents: {count}
- Error rate: {percentage}%
- Performance degradation: {metrics}

Recommendation:
- Fix forward (hotfix) if minor
- Rollback if critical
- Extend hypercare period

Impact: PRM blocked until stability demonstrated.

If Support Not Ready:

⚠️ Support team not ready for handover

Gaps:
- {list training gaps or readiness issues}

Recommendation: Additional training required
- Schedule supplemental training
- Update runbooks
- Defer handover by {days} days

Impact: Cannot achieve PRM without support acceptance.

Success Criteria

This orchestration succeeds when:

Metrics to Track

During orchestration, track:

References

Templates (via $AIWG_ROOT):

Gate Criteria:

Multi-Agent Pattern:

Orchestrator Architecture:

Natural Language Translations:

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.