debate-workflow
Structured multi-perspective debate for important architectural decisions and complex trade-offs
What this skill does
# Debate Workflow Skill ## Purpose Implement structured multi-perspective debate for important architectural decisions, design trade-offs, and complex problems where multiple valid approaches exist. ## When to Use This Skill **USE FOR:** - Major architectural decisions (framework selection, system design) - Complex trade-offs with no clear winner - Controversial changes affecting multiple teams - High-impact decisions requiring buy-in - When perspectives genuinely conflict **AVOID FOR:** - Simple implementation choices - Decisions with obvious correct answer - Time-sensitive hot fixes - Minor refactoring - Routine feature additions ## Configuration ### Core Parameters **Number of Perspectives:** - `3` - Default (security, performance, simplicity) - `5` - Extended (add: maintainability, user-experience) - `7` - Comprehensive (add: scalability, cost) **Debate Rounds:** - `2` - Quick (position + challenge) - `3` - Standard (position + challenge + synthesis) - `4-5` - Deep (multiple challenge/response cycles) **Convergence Criteria:** - `100%` - Strong consensus (all perspectives agree) - `2/3` - Majority rule (two-thirds agreement) - `synthesis` - Facilitator synthesizes best hybrid - `evidence` - Follow strongest evidence/arguments ## Standard Perspective Profiles **Security Perspective:** - Focus: Vulnerabilities, attack vectors, data protection - Questions: "What could go wrong? How do we prevent breaches?" - Agent: security agent **Performance Perspective:** - Focus: Speed, scalability, resource efficiency - Questions: "Will this scale? What are the bottlenecks?" - Agent: optimizer agent **Simplicity Perspective:** - Focus: Minimal complexity, ruthless simplification - Questions: "Is this the simplest solution? Can we remove abstractions?" - Agent: cleanup agent + reviewer agent **Maintainability Perspective:** - Focus: Long-term evolution, technical debt - Questions: "Can future developers understand this? How hard to change?" - Agent: reviewer agent + architect agent **User Experience Perspective:** - Focus: API design, usability, developer experience - Questions: "Is this intuitive? How will users interact with this?" - Agent: api-designer agent **Scalability Perspective:** - Focus: Growth capacity, distributed systems - Questions: "What happens at 10x load? 100x?" - Agent: optimizer agent + architect agent **Cost Perspective:** - Focus: Resource usage, infrastructure costs, development time - Questions: "What's the ROI? Are we over-engineering?" - Agent: analyzer agent ## Execution Process ### Step 1: Frame the Decision - **Use ambiguity agent** to clarify the decision to be made - **Use prompt-writer agent** to create clear decision prompt - Define decision scope and constraints - Identify stakeholder concerns - List evaluation criteria - Document explicit user requirements that constrain options - **CRITICAL: Frame decision as question, not predetermined answer** **Decision Framing Template:** ```markdown # Decision: [Brief Title] ## Question [One-sentence question to be debated] ## Context [Why this decision matters, background information] ## Constraints [Non-negotiable requirements, technical limitations] ## Evaluation Criteria [How we'll judge proposed solutions] ## Perspectives to Include [Which viewpoints are most relevant] ``` **Example:** ```markdown # Decision: Data Storage Strategy for User Analytics ## Question Should we use PostgreSQL with JSONB, MongoDB, or ClickHouse for storing and querying user analytics events? ## Context - 10M events/day expected at launch - 100M events/day within 2 years - Complex queries for dashboard analytics - Real-time and historical reporting needed ## Constraints - Must handle 10M events/day minimum - Query latency < 200ms for dashboards - Budget: $5K/month infrastructure - Team familiar with PostgreSQL, not ClickHouse ## Evaluation Criteria 1. Performance at scale 2. Query flexibility 3. Operational complexity 4. Cost at scale 5. Team learning curve ## Perspectives to Include Performance, Cost, Maintainability, Scalability ``` ### Step 2: Initialize Perspectives - Select N perspectives relevant to decision - **Spawn Claude subprocess for each perspective** - Each subprocess receives decision framing doc - Each subprocess assigned perspective profile - **No context sharing between perspectives yet** - Each forms initial position independently **Initial Position Requirements:** - State recommended approach - Provide 3-5 supporting arguments - Identify risks of alternative approaches - Quantify claims where possible ### Step 3: Debate Round 1 - Initial Positions - Collect initial positions from all perspectives - **Use analyzer agent** to synthesize positions - Document each perspective's recommendation - Identify areas of agreement - Identify areas of conflict - Surface assumptions made by each perspective **Round 1 Output Structure:** ```markdown ## Security Perspective: [Recommendation] Arguments For: 1. [Argument with evidence] 2. [Argument with evidence] 3. [Argument with evidence] Concerns About Alternatives: - [Alternative A]: [Specific concern] - [Alternative B]: [Specific concern] Assumptions: - [Assumption 1] - [Assumption 2] ``` ### Step 4: Debate Round 2 - Challenge and Respond - Share all Round 1 positions with all perspectives - Each perspective challenges other perspectives' arguments - Each perspective defends their position against challenges - **Use analyzer agent** to track argument strength - Identify which arguments withstand scrutiny - Document concessions and refinements **Challenge Format:** ```markdown ## [Perspective A] challenges [Perspective B] Challenge: [Question or counter-argument] Evidence: [Supporting data or examples] Request: [What would change your position?] ``` **Response Format:** ```markdown ## [Perspective B] responds to [Perspective A] Response: [Address the challenge] Concession: [Points where you agree or adjust] Counter: [Additional evidence or reasoning] ``` ### Step 5: Debate Round 3 - Find Common Ground - Identify points of consensus across perspectives - Surface remaining disagreements explicitly - Explore hybrid approaches combining insights - **Use architect agent** to design synthesis options - Validate hybrid approaches against all perspectives - Document convergence or divergence **Convergence Analysis:** ```markdown ## Areas of Agreement 1. [Consensus point 1] 2. [Consensus point 2] ## Remaining Disagreements 1. [Disagreement 1] - Security says: [position] - Performance says: [position] - Potential resolution: [hybrid approach] ## Hybrid Approaches Identified 1. [Hybrid Option 1] - Combines: [which perspectives] - Trade-offs: [explicit costs/benefits] ``` ### Step 6: Facilitator Synthesis - **Use architect agent** as neutral facilitator - **Use analyzer agent** to evaluate all arguments - Review all debate rounds systematically - Identify strongest evidence-based arguments - Make recommendation with confidence level - Document decision rationale thoroughly - Include dissenting views explicitly **Synthesis Structure:** ```markdown ## Facilitator Synthesis ### Recommendation [Clear statement of recommended approach] ### Confidence Level [High/Medium/Low] confidence based on: - Consensus level: [X% of perspectives agree] - Evidence quality: [Strong/Moderate/Weak] - Risk level: [Low/Medium/High if wrong] ### Rationale [Explanation of why this recommendation] ### Key Arguments That Won 1. [Argument that swayed decision] 2. [Argument that swayed decision] 3. [Argument that swayed decision] ### Key Arguments Against (Dissenting Views) 1. [Strongest counter-argument] 2. [Remaining concern] ### Implementation Guidance [How to execute this decision] ### Success Metrics [How we'll know if this was the right choice] ### Revisit Triggers [Conditions that would require reconsidering this decision] ``` ### Step 7: Decision Documentation
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.