skills/recursive-synthesis/SKILL.md
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, organizational charters, or any document requiring rigorous multi-perspective synthesis. Activates on "synthesize document", "multi-agent authorship", "collaborative synthesis", "founding document", "architecture document", "recursive synthesis", "constitutional document", "multi-perspective document". NOT for simple document writing, single-author tasks, quick summaries, or documents that don't require adversarial review.
npx skillsauth add curiositech/windags-skills recursive-synthesisInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Orchestrate multi-agent collaborative document synthesis through 6 phases to produce authoritative founding documents that require rigorous multi-perspective analysis.
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
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)
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
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)
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
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
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
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:
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:
Do NOT use recursive synthesis for:
When to delegate instead:
team-builder skilldag-planner skillorchestrator skillnegotiator skillfacilitator skillAnti-boundaries (when you SHOULD use this):
data-ai
license: Apache-2.0 NOT for unrelated tasks outside this domain.
development
Use when designing caching strategies (cache-aside, write-through, write-behind), implementing distributed locks, building rate limiters, leaderboards, real-time streams (XADD/consumer groups), pub/sub, or tuning eviction policies. Triggers: thundering-herd on cache miss, dogpile on key expiry, Redlock vs SET-NX-PX choice, sliding-window rate limiter, hot-key on a single cluster slot, big-key blowup, MULTI/EXEC across slots, KEYS in production. NOT for Redis Cluster operations/admin (different domain), embedded KV (SQLite, leveldb), in-process LRU caches, or Memcached.
tools
Drawing the `'use client'` boundary correctly in React Server Components apps (Next.js App Router, RSC frameworks) — leaf-pushing, slot composition, serialization rules, and environment poisoning prevention. Grounded in react.dev and Next.js 16 docs.
development
Use when designing rate limiting for an API, choosing between token bucket / sliding window / leaky bucket / fixed window, implementing it in Redis, deciding edge (Cloudflare/Upstash) vs origin enforcement, sizing per-user vs per-IP vs per-endpoint quotas, returning the right 429 response with Retry-After, or fixing the boundary-burst bug in fixed-window limiters. Triggers: 429 too many requests, INCR + EXPIRE, ZADD + ZREMRANGEBYSCORE + ZCARD, X-RateLimit-Remaining header, Cloudflare WAF rate limiting rules, Upstash @upstash/ratelimit, leaky bucket shaping vs policing, distributed rate limiter consistency. NOT for DDoS mitigation specifically (different scale), CAPTCHA / bot management, full WAF design, or per-user quota billing.