Recursive synthesis

From curiositech/windags-skills · View interactive version

Recursive synthesis is an AI agent skill from the GitHub repository curiositech/windags-skills. Orchestrate multi-agent collaborative document synthesis through 6 phases - Divergence, Synthesis, Commentary, Consolidation, Reality Check, Final Merge. Produces authoritative founding documents from complex multi-perspective inputs. Use for constitutional documents, architecture decisions, organiz

How to use this skill

Skill file

Recursive Synthesis

Orchestrate multi-agent collaborative document synthesis through 6 phases to produce authoritative founding documents that require rigorous multi-perspective analysis.

Decision Points

Primary Execution Tree

Is this a founding document (constitution, charter, ADR)?
├── NO → Use single-author writing skills instead
└── YES → Continue to phase selection

Are 10+ perspectives genuinely needed?
├── NO → Use standard collaborative writing
└── YES → Continue to agent selection

Are there irreconcilable tensions expected?
├── NO → Use simplified consensus process
└── YES → Full 6-phase recursive synthesis
    │
    ├── Phase 0: Setup (always required)
    │   ├── Problem scope clear? → NO: Clarify before proceeding
    │   ├── Agents selected for max diversity? → NO: Redesign roster
    │   └── Ground rules established? → NO: Define steel-man rules
    │
    ├── Phase 1: Divergence
    │   ├── All 10 papers received? → NO: Wait/chase missing
    │   ├── Genuine diversity achieved? → NO: Replace echo agents
    │   └── Quality threshold met? → NO: Request rewrites
    │
    ├── Phase 2: Synthesis
    │   ├── Convergence > 50%? → YES: Proceed to commentary
    │   ├── Convergence 25-50%? → Flag high-tension synthesis
    │   └── Convergence < 25%? → Abort: Unsynthesizable problem
    │
    ├── Phase 3: Commentary
    │   ├── All steel-man sections present? → NO: Enforce requirement
    │   ├── Irreconcilable tensions flagged? → YES: Prepare dissenting appendix
    │   └── Constructive amendments provided? → NO: Request specifics
    │
    ├── Phase 4: Consolidation
    │   ├── Soul Document coherent? → NO: Lead Architect revision
    │   ├── Dissenting Appendix honest? → NO: Add minority voices
    │   └── Scope clearly documented? → NO: Define boundaries
    │
    ├── Phase 5: Reality Check
    │   ├── Any "COMPLEX" verdicts? → YES: Major rework required
    │   ├── Multiple "BUILD" verdicts? → YES: Address P0/P1 demands
    │   └── Majority "SHIP" verdicts? → YES: Proceed to final merge
    │
    └── Phase 6: Final Merge
        ├── Constitution authoritative? → NO: Strengthen principles
        ├── Practitioner's Guide actionable? → NO: Add concrete steps
        └── Editorial Notes complete? → NO: Document all decisions

Model Selection Decision Tree

Which agent type?
├── Philosophical/Complex reasoning → Use Opus
├── Domain-specific technical → Use Sonnet  
└── Senior practitioner judgment → Use Opus

Which phase?
├── Phase 1 (Divergence) → Mix: 4 Opus (complex), 6 Sonnet (technical)
├── Phase 2 (Synthesis) → Opus (long context required)
├── Phase 3 (Commentary) → Match Phase 1 model per agent
├── Phase 4 (Consolidation) → Opus (highest judgment)
├── Phase 5 (Reality Check) → Opus (senior practitioner)
└── Phase 6 (Final Merge) → Opus (best writing quality)

Failure Modes

Echo Chamber Collapse

Symptoms: All agents reach similar conclusions despite different prompts; position papers sound alike; no genuine tensions emerge

Diagnosis: Agent selection lacks intellectual diversity OR prompts insufficiently enforce perspective differences

Fix: Replace 3-4 agents with genuinely opposing viewpoints; strengthen agent persona prompts with specific belief systems; enforce no-cross-talk rules

Premature Convergence

Symptoms: Synthesis phase finds 80%+ agreement; few items in dissenting appendix; Reality Check agents have no major concerns

Diagnosis: Problem wasn't complex enough to require recursive synthesis OR agent perspectives were too narrow

Fix: Either abort to simpler process OR restart with more adversarial agent selection (add contrarians, edge cases, minority positions)

Context Window Degradation

Symptoms: Later phases lose nuance from earlier phases; agents reference incomplete information; final document doesn't reflect early insights

Diagnosis: Token limits causing information loss between phases OR inadequate summarization strategy

Fix: Use structured references instead of full text; create phase summaries at each transition; implement strategic excerpt selection

Analysis Paralysis

Symptoms: Agents get stuck in Phase 3 commentary requesting endless revisions; Lead Architect can't reconcile conflicting demands; Reality Check identifies problems but no solutions

Diagnosis: No clear decision-making authority established OR quality gates too perfectionist

Fix: Designate tie-breaking authority; set "good enough" thresholds; impose time boxes on each phase; accept documented tensions rather than forcing resolution

Complexity Theater

Symptoms: Process generates more meta-documents than actual content; agents debate methodology more than substance; final Constitution is less clear than original problem statement

Diagnosis: Process became end in itself rather than means to clarity

Fix: Enforce deliverable-focused phase gates; require every meta-document to improve end-user experience; Constitution must be simpler than process that created it

Worked Examples

Case Study: API Governance Constitution

Context: Engineering org with 50+ microservices needs unified API design principles. Current state: conflicting guidance, inconsistent implementations, integration friction.

Phase 0 Setup:

Agent selection for maximum tension:

Phase 1 Divergence Results:

Key insight: These aren't just different opinions—they represent fundamentally different mental models of what an API should optimize for.

Phase 2 Synthesis Challenge:

Synthesizer finds convergence on:

But irreconcilable tensions:

Phase 3 Commentary Reveals:

Phase 4 Consolidation Decision:

Lead Architect makes architectural choice: "REST-first with GraphQL gateway for specific use cases"

Dissenting Appendix: Documents when GraphQL is preferred, migration path

Phase 5 Reality Check Catches:

Phase 6 Final Output:

Quality Gates

Phase-by-Phase Completion Rubric

Phase 0 Complete When:

Phase 1 Complete When:

Phase 2 Complete When:

Phase 3 Complete When:

Phase 4 Complete When:

Phase 5 Complete When:

Phase 6 Complete When:

Success Metrics

NOT-FOR Boundaries

Do NOT use recursive synthesis for:

When to delegate instead:

Anti-boundaries (when you SHOULD use this):

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.