Flow cross team sync

From jmagly/aiwg · View interactive version

Flow cross team sync is an AI agent skill from the GitHub repository jmagly/aiwg. Orchestrate cross-team synchronization with dependency mapping, sync cadence, blocker escalation, integration planning, and cross-team demos

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-cross-team-sync.playbook.yaml (source of truth for the step

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

reference. See epic #1534.

Cross-Team Synchronization Flow

You are the Core Orchestrator for cross-team coordination and integration alignment.

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

Cross-Team Sync Overview

Purpose: Orchestrate synchronization, dependency management, and integration planning across multiple teams working on interconnected systems.

Key Activities:

Expected Duration: Initial setup 2-3 hours, ongoing syncs 1 hour weekly, orchestration 20-30 minutes

Natural Language Triggers

Users may say:

You recognize these as requests for this orchestration flow.

Parameter Handling

Team Parameters

Primary inputs:

--guidance Parameter

Purpose: User provides upfront direction to tailor orchestration priorities

Examples:

--guidance "High API dependencies, need tight integration coordination"
--guidance "Teams in different time zones, prefer async communication"
--guidance "Critical launch deadline, daily sync needed for next 2 weeks"
--guidance "New teams, need extra focus on knowledge sharing and patterns"

How to Apply:

--interactive Parameter

Purpose: You ask 6 strategic questions to understand team dynamics

Questions to Ask (if --interactive):

I'll ask 6 strategic questions to tailor cross-team synchronization:

Q1: What are the main integration points between teams?
    (e.g., APIs, shared databases, event streams, UI components)

Q2: How critical are the dependencies?
    (Helps determine sync frequency and escalation urgency)

Q3: What's the current blocker resolution time?
    (Helps set appropriate SLAs and escalation paths)

Q4: What are the teams' time zones and availability?
    (Influences meeting scheduling and async strategies)

Q5: What's your timeline pressure?
    (Daily sync for critical periods vs. weekly for normal pace)

Q6: What collaboration tools do teams use?
    (Slack, Teams, Jira, GitHub - affects communication setup)

Based on your answers, I'll adjust:
- Sync frequency (daily, weekly, bi-weekly)
- Meeting structure (sync vs. async emphasis)
- Escalation paths (SLAs and ownership)
- Knowledge sharing approach

Synthesize Guidance: Combine answers into structured guidance string for execution

Artifacts to Generate

Primary Deliverables:

Supporting Artifacts:

Multi-Agent Orchestration Workflow

Step 1: Dependency Mapping and Integration Points

Purpose: Identify components owned by each team and map dependencies

Your Actions:

  1. Gather Context:

```

Read existing artifacts if present:

```

  1. Launch Dependency Analysis Agents (parallel):

```

# Agent 1: System Analyst - Component Analysis

Task(

subagent_type="system-analyst",

description="Map component ownership and dependencies",

prompt="""

Analyze architecture and identify:

For Team A ({team-a}):

For Team B ({team-b}):

Map dependencies:

Classify each dependency:

Create dependency matrix showing all relationships.

Output: .aiwg/working/team/dependency-analysis-draft.md

"""

)

# Agent 2: Integration Engineer - Technical Integration

Task(

subagent_type="integration-engineer",

description="Define integration points and contracts",

prompt="""

Based on component analysis, define integration points:

For each integration point:

1. Integration ID and name

2. Type (REST API, GraphQL, Event Stream, Database)

3. Owner team

4. Consumer team(s)

5. Criticality (BLOCKING vs NON-BLOCKING)

6. Current status (STABLE, IN_DEVELOPMENT, PLANNED)

Define integration contracts:

Document change protocol:

Output: .aiwg/working/team/integration-points-draft.md

"""

)

```

  1. Synthesize Dependency Map:

```

Task(

subagent_type="documentation-synthesizer",

description="Create unified dependency map",

prompt="""

Read drafts:

Create comprehensive Dependency Map including:

1. Component Ownership

2. Dependency Matrix

3. Integration Points Detail

4. Critical Path Dependencies

5. Dependency Risks

Use clear tables and structured format.

Output: .aiwg/team/dependency-map-{team-a}-{team-b}.md

"""

)

```

Communicate Progress:

✓ Initialized dependency mapping
⏳ Analyzing team components and dependencies...
✓ Dependency map complete: .aiwg/team/dependency-map-{team-a}-{team-b}.md

Step 2: Establish Sync Cadence and Meeting Structure

Purpose: Define structured sync meetings with clear agenda and attendees

Your Actions:

  1. Launch Meeting Planning Agent:

```

Task(

subagent_type="project-manager",

description="Establish cross-team sync structure",

prompt="""

Create sync meeting structure for {team-a} and {team-b}

Frequency: {sync-frequency} (weekly/bi-weekly/daily)

Define:

1. Meeting cadence and duration

2. Mandatory attendees from each team

3. Optional attendees

4. Meeting roles (facilitator, note-taker)

Create standing agenda with time boxes:

1. Blockers and Escalations (15 min)

2. Integration Status (15 min)

3. Roadmap Alignment (15 min)

4. Knowledge Sharing (10 min)

5. Action Items Review (5 min)

Define async communication:

Include guidelines for:

Output: .aiwg/team/sync-agenda-{team-a}-{team-b}.md

"""

)

```

  1. Create Meeting Template:

```

Task(

subagent_type="scrum-master",

description="Create reusable meeting notes template",

prompt="""

Create meeting notes template for recurring syncs:

Include sections for:

Make it easy to copy/paste for each meeting.

Output: .aiwg/team/meeting-notes-template.md

"""

)

```

Communicate Progress:

⏳ Establishing sync cadence...
✓ Sync structure defined: {sync-frequency} meetings
✓ Meeting agenda created: .aiwg/team/sync-agenda-{team-a}-{team-b}.md

Step 3: Blocker Tracking and Escalation Setup

Purpose: Create blocker tracking system with clear SLAs and escalation paths

Your Actions:

  1. Launch Blocker Management Agents (parallel):

```

# Agent 1: Project Manager - Blocker System

Task(

subagent_type="project-manager",

description="Create blocker tracking system",

prompt="""

Design blocker tracking system:

1. Blocker Severity Levels

2. SLAs by Severity

3. Tracking Fields

4. Status Values

Create initial blocker tracker with example entries.

Output: .aiwg/team/blocker-tracker.md

"""

)

# Agent 2: Agile Coach - Escalation Matrix

Task(

subagent_type="agile-coach",

description="Define escalation paths",

prompt="""

Create escalation matrix:

1. Escalation Triggers

2. Escalation Levels

3. Escalation Actions

4. Response SLAs

Create clear escalation flowchart.

Output: .aiwg/team/escalation-matrix.md

"""

)

```

  1. Create Blocker Resolution Process:

```

Task(

subagent_type="scrum-master",

description="Document blocker resolution workflow",

prompt="""

Define end-to-end blocker resolution process:

1. Identification

2. Assignment

3. Resolution

4. Closure

Include example scenarios.

Output: .aiwg/team/blocker-resolution-process.md

"""

)

```

Communicate Progress:

⏳ Setting up blocker management...
✓ Blocker tracker created with SLAs
✓ Escalation matrix defined: .aiwg/team/escalation-matrix.md

Step 4: Integration Planning and API Contracts

Purpose: Document API contracts and establish change management protocol

Your Actions:

  1. Launch API Contract Documentation (for each integration point):

```

# For each major integration point identified in Step 1

Task(

subagent_type="api-designer",

description="Create API contract for {integration-point}",

prompt="""

Create detailed API contract:

Integration Point: {integration-point}

Owner: {owner-team}

Consumer: {consumer-team}

Document:

1. API Specification

2. Performance SLA

3. Security

4. Versioning Strategy

5. Change Protocol

Output: .aiwg/team/integration-contracts/api-{integration-point}.yaml

"""

)

```

  1. Create Change Management Protocol:

```

Task(

subagent_type="architecture-designer",

description="Define API change management protocol",

prompt="""

Create comprehensive change management protocol:

1. Change Categories

2. Process by Category

3. Communication Requirements

4. Version Support Policy

5. Testing Requirements

Output: .aiwg/team/api-change-protocol.md

"""

)

```

Communicate Progress:

⏳ Documenting integration contracts...
✓ API contracts created: {count} integration points
✓ Change management protocol established

Step 5: Cross-Team Knowledge Sharing

Purpose: Facilitate demos, pattern sharing, and cross-pollination of ideas

Your Actions:

  1. Setup Knowledge Sharing Framework:

```

Task(

subagent_type="technical-lead",

description="Create knowledge sharing structure",

prompt="""

Design knowledge sharing framework:

1. Demo Cadence

2. Demo Structure

3. Knowledge Topics

4. Documentation

5. Collaboration Opportunities

Create demo agenda template and knowledge base structure.

Output: .aiwg/team/knowledge-sharing-framework.md

"""

)

```

  1. Create Initial Demo Schedule:

```

Task(

subagent_type="program-manager",

description="Schedule first cross-team demo",

prompt="""

Plan first cross-team demo:

1. Proposed Date/Time

2. Initial Topics

3. Attendee List

4. Preparation Checklist

Create calendar invite template.

Output: .aiwg/team/first-demo-plan.md

"""

)

```

Communicate Progress:

⏳ Setting up knowledge sharing...
✓ Knowledge sharing framework created
✓ First demo scheduled: {date}

Step 6: Generate Cross-Team Sync Status Report

Purpose: Compile comprehensive status report with health metrics

Your Actions:

  1. Launch Report Generation:

```

Task(

subagent_type="project-manager",

description="Generate cross-team sync status report",

prompt="""

Read all generated artifacts:

Generate comprehensive status report:

1. Executive Summary

2. Dependency Analysis

3. Blocker Status

4. Sync Meeting Health

5. Integration Health

6. Knowledge Sharing

7. Risks and Recommendations

8. Next Steps

Output: .aiwg/reports/cross-team-sync-report.md

"""

)

```

  1. Present Summary to User:

```

# You present this directly

Read .aiwg/reports/cross-team-sync-report.md

Present summary:

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

Cross-Team Synchronization Setup Complete

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

Teams: {team-a} ↔ {team-b}

Sync Frequency: {weekly | bi-weekly | daily}

Status: OPERATIONAL

Dependencies Mapped:

✓ Total dependencies: {count}

✓ Critical/Blocking: {count}

✓ Integration points documented: {count}

Sync Structure Established:

✓ Meeting cadence: {frequency}

✓ Agenda template created

✓ Mandatory attendees identified

✓ Async channels defined

Blocker Management:

✓ Tracking system: ACTIVE

✓ Severity levels: P0-P3 defined

✓ SLAs established

✓ Escalation matrix: 4 levels

Integration Planning:

✓ API contracts: {count} documented

✓ Change protocol: DEFINED

✓ Version strategy: ESTABLISHED

Knowledge Sharing:

✓ Demo schedule: Monthly

✓ First demo: {date}

✓ Pattern library: INITIATED

Artifacts Generated:

Immediate Actions:

1. Schedule first sync meeting

2. Share dependency map with both teams

3. Train teams on blocker tracking process

4. Review and sign off on API contracts

Recommendations:

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

```

Communicate Progress:

⏳ Generating status report...
✓ Cross-team sync report complete: .aiwg/reports/cross-team-sync-report.md

Quality Gates

Before marking workflow complete, verify:

User Communication

At start: Confirm understanding and list deliverables

Understood. I'll orchestrate cross-team synchronization between {team-a} and {team-b}.

This will establish:
- Dependency mapping and integration points
- Sync meeting cadence ({frequency})
- Blocker tracking with escalation
- API contracts and change protocol
- Knowledge sharing framework

Expected duration: 20-30 minutes.

Starting orchestration...

During: Update progress with clear indicators

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

At end: Summary report with status and next steps (see Step 6.2 above)

Error Handling

Teams Not Found:

❌ Team not found in project roster

Teams specified: {team-a}, {team-b}
Missing: {team-name}

Action: Verify team names or add to project roster
Command: /team-roster add {team-name}

No Architecture Available:

⚠️ No architecture documentation found

Cannot automatically map dependencies without:
- Software Architecture Document
- Component diagrams
- Service definitions

Recommendation: Conduct manual dependency mapping workshop
Alternative: Create architecture first with /flow-inception-to-elaboration

Time Zone Conflict:

⚠️ Significant time zone difference detected

Team A: {timezone-1}
Team B: {timezone-2}
Overlap: {hours} hours

Recommendations:
1. Emphasize async communication
2. Rotate meeting times
3. Record all sync meetings
4. Use written updates heavily

High Blocker Volume:

⚠️ High blocker volume detected

Active blockers: {count} (threshold: 10)
P0/P1 blockers: {count}

Recommendations:
1. Increase sync frequency to daily
2. Dedicated blocker resolution session
3. Executive escalation for resource allocation
4. Consider team reorganization

Success Criteria

This orchestration succeeds when:

Metrics to Track

During orchestration, track:

Ongoing metrics (post-setup):

Common Failure Modes

Dependency Drift

Symptoms: Teams unaware of each other's changes, integration breaks

Remediation:

  1. Enforce change notification protocol
  2. Increase sync frequency
  3. Add pre-integration testing gate
  4. Review and update dependency map quarterly

Meeting Fatigue

Symptoms: Attendance drops, meetings feel unproductive

Remediation:

  1. Reduce frequency if dependencies stable
  2. Shorten meeting duration
  3. Focus on blockers only, move other topics async
  4. Rotate facilitator to share ownership

Blocker Stagnation

Symptoms: Blockers remain unresolved for weeks

Remediation:

  1. Escalate immediately per escalation matrix
  2. Assign dedicated resources
  3. Executive intervention if needed
  4. Consider architectural changes to reduce dependencies

API Contract Violations

Symptoms: Breaking changes deployed without notice

Remediation:

  1. Implement contract testing in CI/CD
  2. Enforce change management protocol
  3. Post-mortem on violation
  4. Improve contract governance

One-Way Communication

Symptoms: One team dominates sync, other team passive

Remediation:

  1. Rotate meeting facilitator between teams
  2. Require equal time allocation
  3. Use structured agenda strictly
  4. Private check-in with passive team

References

Templates (via $AIWG_ROOT):

Related Flows:

Multi-Agent Patterns:

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.