[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6DT8PH0MGSR70PYT7R65RGB":3,"skill-same:01M6DT8PH0MGSR70PYT7R65RGB":82},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":28,"linkOnly":29,"markdownContent":30,"markdownBody":31,"frontMatter":32,"refName":34,"commitSha":35,"skillDirectory":36,"forksCount":37,"repositoryHtmlUrl":38,"repositoryHomepageUrl":6,"ownerHtmlUrl":39,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":40,"install":41,"resources":54},"01M6DT8PH0MGSR70PYT7R65RGB","sadd:tree-of-thoughts",null,"Execute tasks through systematic exploration, pruning, and expansion using Tree of Thoughts methodology with multi-agent evaluation","AntifragileTech\u002Fantifragile-claude-code","AntifragileTech","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F174357194?v=4","01M6DQCYMK4CDSQQAN0ZC72NTV","01M6DQCYS9YPW1WKMQ5TJMPQ43",9,"MIT","https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fthinking\u002Ftree-of-thoughts\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27],"sadd:tree of thoughts","tasks","agent evaluation","Evaluation","methodology","multi-agent","execute","task","exploration","systematic","2026-11-10 10:12:30",false,"---\nname: sadd:tree-of-thoughts\ndescription: Execute tasks through systematic exploration, pruning, and expansion using Tree of Thoughts methodology with multi-agent evaluation\nargument-hint: Task description and optional output path\u002Fcriteria\n---\n\n# tree-of-thoughts\n\n\u003Ctask>\nExecute complex reasoning tasks through systematic exploration of solution space, pruning unpromising branches, expanding viable approaches, and synthesizing the best solution.\n\u003C\u002Ftask>\n\n\u003Ccontext>\nThis command implements the Tree of Thoughts (ToT) pattern for tasks requiring exploration of multiple solution paths before committing to full implementation. It combines creative sampling, multi-perspective evaluation, adaptive strategy selection, and evidence-based synthesis to produce superior outcomes.\n\u003C\u002Fcontext>\n\n## Pattern: Tree of Thoughts (ToT)\n\nThis command implements a six-phase systematic reasoning pattern with adaptive strategy selection:\n\n```\nPhase 1: Exploration (Propose Approaches)\n         ┌─ Agent A → Proposals A1, A2 (with probabilities) ─┐\nTask ───┼─ Agent B → Proposals B1, B2 (with probabilities) ─┼─┐\n         └─ Agent C → Proposals C1, C2 (with probabilities) ─┘ │\n                                                                │\nPhase 2: Pruning (Vote for Best 3)                             │\n         ┌─ Judge 1 → Votes + Rationale ─┐                     │\n         ├─ Judge 2 → Votes + Rationale ─┼─────────────────────┤\n         └─ Judge 3 → Votes + Rationale ─┘                     │\n                 │                                              │\n                 ├─→ Select Top 3 Proposals                     │\n                 │                                              │\nPhase 3: Expansion (Develop Full Solutions)                    │\n         ┌─ Agent A → Solution A (from proposal X) ─┐          │\n         ├─ Agent B → Solution B (from proposal Y) ─┼──────────┤\n         └─ Agent C → Solution C (from proposal Z) ─┘          │\n                                                                │\nPhase 4: Evaluation (Judge Full Solutions)                     │\n         ┌─ Judge 1 → Report 1 ─┐                              │\n         ├─ Judge 2 → Report 2 ─┼──────────────────────────────┤\n         └─ Judge 3 → Report 3 ─┘                              │\n                                                                │\nPhase 4.5: Adaptive Strategy Selection                         │\n         Analyze Consensus ────────────────────────────────────┤\n                ├─ Clear Winner? → SELECT_AND_POLISH           │\n                ├─ All Flawed (\u003C3.0)? → REDESIGN (Phase 3)     │\n                └─ Split Decision? → FULL_SYNTHESIS            │\n                                         │                      │\nPhase 5: Synthesis (Only if FULL_SYNTHESIS)                    │\n         Synthesizer ────────────────────┴──────────────────────┴─→ Final Solution\n```\n\n## Process\n\n### Setup: Create Directory Structure\n\nBefore starting, ensure the directory structure exists:\n\n```bash\nmkdir -p .specs\u002Fresearch .specs\u002Freports\n```\n\n**Naming conventions:**\n- Proposals: `.specs\u002Fresearch\u002F{solution-name}-{YYYY-MM-DD}.proposals.[a|b|c].md`\n- Pruning: `.specs\u002Fresearch\u002F{solution-name}-{YYYY-MM-DD}.pruning.[1|2|3].md`\n- Selection: `.specs\u002Fresearch\u002F{solution-name}-{YYYY-MM-DD}.selection.md`\n- Evaluation: `.specs\u002Freports\u002F{solution-name}-{YYYY-MM-DD}.[1|2|3].md`\n\nWhere:\n- `{solution-name}` - Derived from output path (e.g., `users-api` from output `specs\u002Fapi\u002Fusers.md`)\n- `{YYYY-MM-DD}` - Current date\n\n**Note:** Solutions remain in their specified output locations; only research and evaluation files go to `.specs\u002F`\n\n### Phase 1: Exploration (Propose Approaches)\n\nLaunch **3 independent agents in parallel** (recommended: Sonnet for speed):\n\n1. Each agent receives **identical task description and context**\n2. Each agent **generates 6 high-level approaches** (not full implementations)\n3. For each approach, agent provides:\n   - **Approach description** (2-3 paragraphs)\n   - **Key design decisions** and trade-offs\n   - **Probability estimate** (0.0-1.0) \n   - **Estimated complexity** (low\u002Fmedium\u002Fhigh)\n   - **Potential risks** and failure modes\n4. Proposals saved to `.specs\u002Fresearch\u002F{solution-name}-{date}.proposals.[a|b|c].md`\n\n**Key principle:** Systematic exploration through probabilistic sampling from the full distribution of possible approaches.\n\n**Prompt template for explorers:**\n\n```markdown\n\u003Ctask>\n{task_description}\n\u003C\u002Ftask>\n\n\u003Cconstraints>\n{constraints_if_any}\n\u003C\u002Fconstraints>\n\n\u003Ccontext>\n{relevant_context}\n\u003C\u002Fcontext>\n\n\u003Coutput>\n{.specs\u002Fresearch\u002F{solution-name}-{date}.proposals.[a|b|c].md - each agent gets unique letter identifier}\n\u003C\u002Foutput>\n\nInstructions:\n\nLet's approach this systematically by first understanding what we're solving, then exploring the solution space.\n\n**Step 1: Decompose the problem**\nBefore generating approaches, break down the task:\n- What is the core problem being solved?\n- What are the key constraints and requirements?\n- What subproblems must any solution address?\n- What are the evaluation criteria for success?\n\n**Step 2: Map the solution space**\nIdentify the major dimensions along which solutions can vary:\n- Architecture patterns (e.g., monolithic vs distributed)\n- Implementation strategies (e.g., eager vs lazy)\n- Trade-off axes (e.g., performance vs simplicity)\n\n**Step 3: Generate 6 distinct high-level approaches**\n\n**Sampling guidance:**\nPlease sample approaches at random from the [full distribution \u002F tails of the distribution]\n- For first 3 approaches aim for high probability, over 0.80\n- For last 3 approaches aim for diversity - explore different regions of the solution space, such that the probability of each response is less than 0.10\n\nFor each approach, provide:\n   - Name and one-sentence summary\n   - Detailed description (2-3 paragraphs)\n   - Key design decisions and rationale\n   - Trade-offs (what you gain vs what you sacrifice)\n   - Probability (0.0-1.0)\n   - Complexity estimate (low\u002Fmedium\u002Fhigh)\n   - Potential risks and failure modes\n\n**Step 4: Verify diversity**\nBefore finalizing, check:\n- Are approaches genuinely different, not minor variations?\n- Do they span different regions of the solution space?\n- Have you covered both conventional and unconventional options?\n\n\nCRITICAL:\n- Do NOT implement full solutions yet - only high-level approaches\n- Ensure approaches are genuinely different, not minor variations\n```\n\n### Phase 2: Pruning (Vote for Top 3 Candidates)\n\nLaunch **3 independent judges in parallel** (recommended: Sonnet for efficiency):\n\n1. Each judge receives **ALL proposal files** (from `.specs\u002Fresearch\u002F`)\n2. Judges evaluate each proposal against **pruning criteria**:\n   - **Feasibility** (1-5): Can this be implemented with available resources?\n   - **Alignment** (1-5): How well does it address the task requirements?\n   - **Potential** (1-5): Likelihood of producing high-quality result?\n   - **Risk** (1-5, inverse): How manageable are the identified risks?\n3. Each judge produces:\n   - **Scores for each proposal** (with evidence)\n   - **Vote for top 3 proposals** to expand\n   - **Rationale** for selections\n4. Votes saved to `.specs\u002Fresearch\u002F{solution-name}-{date}.pruning.[1|2|3].md`\n\n**Key principle:** Independent evaluation with explicit criteria reduces groupthink and catches different strengths\u002Fweaknesses.\n\n**Prompt template for pruning judges:**\n\n```markdown\nYou are evaluating {N} proposed approaches to select the top 3 for full development.\n\n\u003Ctask>\n{task_description}\n\u003C\u002Ftask>\n\n\u003Cproposals>\n{list of paths to all proposal files}\nRead all proposals carefully before evaluating.\n\u003C\u002Fproposals>\n\n\u003Coutput>\n{.specs\u002Fresearch\u002F{solution-name}-{date}.pruning.[1|2|3].md - each judge gets unique number identifier}\n\u003C\u002Foutput>\n\nEvaluation criteria (with weights):\n1. Feasibility (25%): Can this be implemented with available resources and constraints?\n2. Alignment (30%): How well does it address the task requirements and constraints?\n3. Potential (30%): Likelihood of producing a high-quality, robust solution?\n4. Risk (15%): How manageable are the identified risks and failure modes?\n\nRead ${CLAUDE_PLUGIN_ROOT}\u002Ftasks\u002Fjudge.md for evaluation methodology and execute using following criteria.\n\nInstructions:\n1. For each proposal, score on each criterion (1-5)\n2. Provide specific evidence from the proposal for each score\n3. Calculate weighted total score for each proposal\n4. Vote for your top 3 proposals with clear justification\n5. Consider:\n   - Does the probability estimate seem realistic?\n   - Are the trade-offs clearly articulated?\n   - Are risks identified and addressable?\n6. Generate verification 4-6 questions about your evaluation.\n7. Answer verification questions:\n   - Re-examine solutions for each question\n   - Find counter-evidence if it exists\n   - Check for systematic bias (length, confidence, etc.)\n8. Revise your evaluation and update it accordingly.\n\nOutput format:\n- Evaluation table with scores for all proposals\n- Top 3 selections with rationale\n- Any concerns or questions about selected proposals\n\nCRITICAL:\n- Base your evaluation on evidence from proposals, not assumptions\n- Your top 3 should be ranked: 1st choice, 2nd choice, 3rd choice\n```\n\n### Phase 2b: Select Top 3 Proposals\n\nAfter judges complete voting:\n\n1. **Aggregate votes** using ranked choice:\n   - 1st choice = 3 points\n   - 2nd choice = 2 points\n   - 3rd choice = 1 point\n2. **Select top 3** proposals by total points\n3. **Handle ties** by comparing average scores across criteria\n4. **Document selection** in `.specs\u002Fresearch\u002F{solution-name}-{date}.selection.md`:\n   - Vote tallies\n   - Selected proposals\n   - Consensus rationale\n\n### Phase 3: Expansion (Develop Full Solutions)\n\nLaunch **3 independent agents in parallel** (recommended: Opus for quality):\n\n1. Each agent receives:\n   - **One selected proposal** to expand\n   - **Original task description** and context\n   - **Judge feedback** from pruning phase (concerns, questions)\n2. Agent produces **complete solution** implementing the proposal:\n   - Full implementation details\n   - Addresses concerns raised by judges\n   - Documents key decisions made during expansion\n3. Solutions saved to `solution.a.md`, `solution.b.md`, `solution.c.md`\n\n**Key principle:** Focused development of validated approaches with awareness of evaluation feedback.\n\n**Prompt template for expansion agents:**\n\n```markdown\nYou are developing a full solution based on a selected proposal.\n\n\u003Ctask>\n{task_description}\n\u003C\u002Ftask>\n\n\u003Cselected_proposal>\n{write selected proposal EXACTLY as it is. Including all details provided by the agent}\nRead this carefully - it is your starting point.\n\u003C\u002Fselected_proposal>\n\n\u003Cjudge_feedback>\n{concerns and questions from judges about this proposal}\nAddress these in your implementation.\n\u003C\u002Fjudge_feedback>\n\n\u003Coutput>\nsolution.[*].md where [*] is your unique identifier (a, b, or c)\n\u003C\u002Foutput>\n\nInstructions:\n\nLet's work through this systematically to ensure we build a complete, high-quality solution.\n\n**Step 1: Understand the proposal deeply**\nBefore implementing, analyze:\n- What is the core insight or approach of this proposal?\n- What are the key design decisions already made?\n- What gaps need to be filled for a complete solution?\n\n**Step 2: Address judge feedback**\nFor each concern raised by judges:\n- What specific change or addition addresses this concern?\n- How does this change integrate with the proposal's approach?\n\n**Step 3: Decompose into implementation subproblems**\nBreak the solution into logical parts:\n- What are the main components or sections?\n- What must be defined first for other parts to build upon?\n- What are the dependencies between parts?\n\n**Step 4: Implement each subproblem**\nFor each component, work through:\n- Core functionality and behavior\n- Edge cases and error handling\n- Integration points with other components\n\n**Step 5: Self-verification**\nGenerate 3-5 verification questions about critical aspects, then answer them:\n- Review solution against each question\n- Identify gaps or weaknesses\n- Fix identified issues\n\n**Step 6: Document changes**\nExplain what was changed from the original proposal and why.\n\n\u003Cexample>\n**Example of good expansion thinking:**\n\nProposal: \"Use event-driven architecture with message queue\"\n\nStep 1 Analysis:\n- Core insight: Decouple components via async messaging\n- Key decisions: Events as primary communication, eventual consistency\n- Gaps: Need to define event schemas, queue technology, error handling\n\nStep 2 - Addressing judge concern \"What about message ordering?\":\n- Add partition keys for ordered processing within entity scope\n- Document ordering guarantees and limitations\n\nStep 3 - Subproblems:\n1. Event schema definitions (foundational - others depend on this)\n2. Producer interfaces (depends on schemas)\n3. Consumer handlers (depends on schemas)\n4. Error handling and dead letter queues (depends on both)\n5. Integration patterns (builds on all above)\n\u003C\u002Fexample>\n\nCRITICAL:\n- Stay faithful to the selected proposal's core approach\n- Do not switch to a different approach midway\n- Address judge feedback explicitly\n- Produce a complete, implementable solution\n```\n\n### Phase 4: Evaluation (Judge Full Solutions)\n\nLaunch **3 independent judges in parallel** (recommended: Opus for rigor):\n\n1. Each judge receives **ALL solution files** (solution.a.md, solution.b.md, solution.c.md)\n2. Judges evaluate against **final criteria** (task-specific):\n   - **Correctness** (weight based on task)\n   - **Completeness** (weight based on task)\n   - **Quality** (design, maintainability, etc.)\n   - **Feasibility** (can this be implemented?)\n3. Each judge produces:\n   - **Comparative analysis** (which solution excels where)\n   - **Evidence-based ratings** (with specific quotes\u002Fexamples)\n   - **Final vote** (which solution they prefer and why)\n4. Reports saved to `.specs\u002Freports\u002F{solution-name}-{date}.[1|2|3].md`\n\n**Key principle:** Multiple independent evaluations with explicit evidence reduce bias and catch different quality aspects.\n\n**Prompt template for evaluation judges:**\n\n```markdown\nYou are evaluating {number} full solutions to this task:\n\n\u003Ctask>\n{task_description}\n\u003C\u002Ftask>\n\n\u003Csolutions>\n{list of paths to all solution files}\nRead all solutions carefully before evaluating.\n\u003C\u002Fsolutions>\n\n\u003Coutput>\nWrite full report to: .specs\u002Freports\u002F{solution-name}-{date}.[1|2|3].md - each judge gets unique number identifier\n\nCRITICAL: You must reply with this exact structured header format:\n\n---\nVOTE: [Solution A\u002FB\u002FC]\nSCORES:\n  Solution A: [X.X]\u002F5.0\n  Solution B: [X.X]\u002F5.0\n  Solution C: [X.X]\u002F5.0\nCRITERIA:\n - {criterion_1}: [X.X]\u002F5.0\n - {criterion_2}: [X.X]\u002F5.0\n ...\n---\n\n[Summary of your evaluation]\n\u003C\u002Foutput>\n\nEvaluation criteria (with weights):\n1. {criterion_1} ({weight_1}%)\n2. {criterion_2} ({weight_2}%)\n3. {criterion_3} ({weight_3}%)\n...\n\nRead ${CLAUDE_PLUGIN_ROOT}\u002Ftasks\u002Fjudge.md for evaluation methodology and execute using following criteria.\n\nInstructions:\n1. For each criterion, analyze ALL solutions\n2. Write a combined report:\n   - Provide specific evidence (quote exact text) for your assessments\n   - Compare strengths and weaknesses\n   - Score each solution on each criterion (1-5)\n   - Calculate weighted total scores\n3. Generate verification 4-6 questions about your evaluation.\n4. Answer verification questions:\n   - Re-examine solutions for each question\n   - Find counter-evidence if it exists\n   - Check for systematic bias (length, confidence, etc.)\n5. Revise your evaluation and update it accordingly.\n6. Reply structured output:\n   - VOTE: Which solution you recommend\n   - SCORES: Weighted total score for each solution (0.0-5.0)\n\nCRITICAL: Base your evaluation on evidence, not impressions. Quote specific text.\n\nFinal checklist:\n- [ ] Generated and answered all verification questions\n- [ ] Found and corrected all potential issues\n- [ ] Checked for known biases (length, verbosity, confidence)\n- [ ] Confident in revised evaluation\n- [ ] Structured header with VOTE and SCORES at top of report\n```\n\n### Phase 4.5: Adaptive Strategy Selection (Early Return)\n\n**The orchestrator** (not a subagent) analyzes judge outputs to determine the optimal strategy.\n\n#### Decision Logic\n\n**Step 1: Parse structured headers from judge reply**\n\nParse the judges reply.\nCRITICAL: Do not read report files themselves, as they can overflow your context.\n\n**Step 2: Check for unanimous winner**\n\nCompare all three VOTE values:\n- If Judge 1 VOTE = Judge 2 VOTE = Judge 3 VOTE (same solution):\n  - **Strategy: SELECT_AND_POLISH**\n  - **Reason:** Clear consensus - all three judges prefer same solution\n\n**Step 3: Check if all solutions are fundamentally flawed**\n\nIf no unanimous vote, calculate average scores:\n1. Average Solution A scores: (Judge1_A + Judge2_A + Judge3_A) \u002F 3\n2. Average Solution B scores: (Judge1_B + Judge2_B + Judge3_B) \u002F 3\n3. Average Solution C scores: (Judge1_C + Judge2_C + Judge3_C) \u002F 3\n\nIf (avg_A \u003C 3.0) AND (avg_B \u003C 3.0) AND (avg_C \u003C 3.0):\n- **Strategy: REDESIGN**\n- **Reason:** All solutions below quality threshold, fundamental approach issues\n\n**Step 4: Default to full synthesis**\n\nIf none of the above conditions met:\n- **Strategy: FULL_SYNTHESIS**\n- **Reason:** Split decision with merit, synthesis needed to combine best elements\n\n#### Strategy 1: SELECT_AND_POLISH\n\n**When:** Clear winner (unanimous votes)\n\n**Process:**\n1. Select the winning solution as the base\n2. Launch subagent to apply specific improvements from judge feedback\n3. Cherry-pick 1-2 best elements from runner-up solutions\n4. Document what was added and why\n\n**Benefits:**\n- Saves synthesis cost (simpler than full synthesis)\n- Preserves proven quality of winning solution\n- Focused improvements rather than full reconstruction\n\n**Prompt template:**\n\n```markdown\nYou are polishing the winning solution based on judge feedback.\n\n\u003Ctask>\n{task_description}\n\u003C\u002Ftask>\n\n\u003Cwinning_solution>\n{path_to_winning_solution}\nScore: {winning_score}\u002F5.0\nJudge consensus: {why_it_won}\n\u003C\u002Fwinning_solution>\n\n\u003Crunner_up_solutions>\n{list of paths to all runner-up solutions}\n\u003C\u002Frunner_up_solutions>\n\n\u003Cjudge_feedback>\n{list of paths to all evaluation reports}\n\u003C\u002Fjudge_feedback>\n\n\u003Coutput>\n{final_solution_path}\n\u003C\u002Foutput>\n\nInstructions:\n\nLet's approach this polishing task methodically to improve without disrupting what works.\n\n**Step 1: Understand why this solution won**\nAnalyze the winning solution:\n- What are its core strengths that judges praised?\n- What makes its approach superior to alternatives?\n- Which parts should remain untouched?\n\n**Step 2: Catalog improvement opportunities**\nFrom judge feedback, identify:\n- Specific weaknesses mentioned (list each one)\n- Missing elements judges noted\n- Areas where runner-ups were praised\n\n**Step 3: Prioritize changes by impact**\nFor each improvement opportunity:\n- High impact: Directly addresses judge criticism\n- Medium impact: Adds praised element from runner-up\n- Low impact: Nice-to-have refinement\n\nFocus on high-impact changes first.\n\n**Step 4: Apply improvements surgically**\nFor each change:\n- Locate the specific section to modify\n- Make the minimal change needed to address the issue\n- Verify the change integrates cleanly with surrounding content\n\n**Step 5: Cherry-pick from runners-up**\nReview runner-up solutions for:\n- 1-2 specific elements that judges praised\n- Elements that complement (not conflict with) the winning approach\n- Only incorporate if clearly superior to winning solution's version\n\n**Step 6: Document all changes**\nRecord:\n- What was changed and why (with reference to judge feedback)\n- What was added from other solutions (cite source)\n- What was intentionally left unchanged\n\nCRITICAL: Preserve the winning solution's core approach. Make targeted improvements only.\n```\n\n#### Strategy 2: REDESIGN\n\n**When:** All solutions scored \u003C3.0\u002F5.0 (fundamental issues across the board)\n\n**Process:**\n1. Launch new agent to analyze the failure modes and lessons learned\n2. **Return to Phase 3** (Expansion), provide to new implementation agents the lessons learned and new constraints\n\n**Note:** If redesign fails twice, escalate to user for guidance.\n\n**Prompt template for new implementation:**\n\n```markdown\nYou are analyzing why all solutions failed to meet quality standards, to inform a redesign. And implement new solution based on it.\n\n\n\u003Ctask>\n{task_description}\n\u003C\u002Ftask>\n\n\u003Cconstraints>\n{constraints_if_any}\n\u003C\u002Fconstraints>\n\n\u003Ccontext>\n{relevant_context}\n\u003C\u002Fcontext>\n\n\u003Cfailed_solutions>\n{list of paths to all solution files}\nAverage scores: A={avg_a}\u002F5.0, B={avg_b}\u002F5.0, C={avg_c}\u002F5.0\n\u003C\u002Ffailed_solutions>\n\n\u003Cevaluation_reports>\n{list of paths to all evaluation reports}\nAll solutions scored below 3.0\u002F5.0 threshold.\n\u003C\u002Fevaluation_reports>\n\n\u003Coutput>\n.specs\u002Fresearch\u002F{solution-name}-{date}.redesign-analysis.md\n\u003C\u002Foutput>\n\nInstructions:\nLet's break this down systematically to understand what went wrong and how to design new solution based on it.\n\n1. First, analyze the task carefully - what is being asked and what are the key requirements?\n2. Read through each solution and its evaluation report\n3. For each solution, think step by step about:\n   - What was the core approach?\n   - What specific issues did judges identify?\n   - Why did this approach fail to meet the quality threshold?\n4. Identify common failure patterns across all solutions:\n   - Are there shared misconceptions?\n   - Are there missing requirements that all solutions overlooked?\n   - Are there fundamental constraints that weren't considered?\n5. Extract lessons learned:\n   - What approaches should be avoided?\n   - What constraints must be addressed?\n6. Generate improved guidance for the next iteration:\n   - New constraints to add\n   - Specific approaches to try - what are the different ways to solve this?\n   - Key requirements to emphasize\n7. Think through the tradeoffs step by step and choose the approach you believe is best\n8. Implement it completely\n9. Generate 5 verification questions about critical aspects\n10. Answer your own questions:\n   - Review solution against each question\n   - Identify gaps or weaknesses\n11. Revise solution:\n   - Fix identified issues\n12. Explain what was changed and why\n```\n\n#### Strategy 3: FULL_SYNTHESIS (Default)\n\n**When:** No clear winner AND solutions have merit (scores ≥3.0)\n\n**Process:** Proceed to Phase 5 (Evidence-Based Synthesis)\n\n### Phase 5: Synthesis (Evidence-Based Combination)\n\n**Only executed when Strategy 3 (FULL_SYNTHESIS) selected in Phase 4.5**\n\nLaunch **1 synthesis agent** (recommended: Opus for quality):\n\n1. Agent receives:\n   - **All solutions** (from specified output location)\n   - **All evaluation reports** (from `.specs\u002Freports\u002F`)\n   - **Selection rationale** from pruning phase (from `.specs\u002Fresearch\u002F`)\n2. Agent analyzes:\n   - **Consensus strengths** (what multiple judges praised)\n   - **Consensus weaknesses** (what multiple judges criticized)\n   - **Complementary elements** where solutions took different approaches\n3. Agent produces **final solution** by:\n   - **Copying superior sections** when one solution clearly wins\n   - **Combining approaches** when hybrid is better\n   - **Fixing identified issues** that judges caught\n   - **Documenting decisions** (what was taken from where and why)\n\n**Key principle:** Evidence-based synthesis leverages collective intelligence from exploration and evaluation.\n\n**Prompt template for synthesizer:**\n\n```markdown\nYou are synthesizing the best solution from explored, pruned, and evaluated implementations.\n\n\u003Ctask>\n{task_description}\n\u003C\u002Ftask>\n\n\u003Csolutions>\n{list of paths to all solution files}\n\u003C\u002Fsolutions>\n\n\u003Cevaluation_reports>\n{list of paths to all evaluation reports}\n\u003C\u002Fevaluation_reports>\n\n\u003Cselection_rationale>\n{path to selection.md explaining why these proposals were chosen}\n\u003C\u002Fselection_rationale>\n\n\u003Coutput>\n{output_path} - The final synthesized solution\n\u003C\u002Foutput>\n\nInstructions:\n\nLet's approach this synthesis systematically by first analyzing, then decomposing, then building.\n\n**Step 1: Build the evidence base**\nBefore synthesizing, gather evidence from judge reports:\n- What did multiple judges praise? (consensus strengths)\n- What did multiple judges criticize? (consensus weaknesses)\n- Where did judges disagree? (areas needing careful analysis)\n\n**Step 2: Decompose into synthesis subproblems**\nBreak the solution into logical sections or components. For each component:\n- Which solution handles this best? (cite evidence)\n- Are there complementary elements from multiple solutions?\n- What issues were identified that need fixing?\n\n**Step 3: Solve each subproblem**\nFor each component\u002Fsection, determine the synthesis strategy:\n\n*Strategy A - Clear winner:* If one solution is clearly superior for this component:\n- Copy that section directly\n- Document: \"Taken from Solution X because [judge evidence]\"\n\n*Strategy B - Complementary combination:* If solutions have complementary strengths:\n- Identify what each contributes\n- Combine carefully, ensuring consistency\n- Document: \"Combined X from Solution A with Y from Solution B because [rationale]\"\n\n*Strategy C - All flawed:* If all solutions have issues in this area:\n- Start with the best version\n- Apply fixes based on judge criticism\n- Document: \"Based on Solution X, modified to address [specific issues]\"\n\n**Step 4: Integrate and verify consistency**\nAfter synthesizing all components:\n- Check that combined elements work together\n- Resolve any contradictions between borrowed sections\n- Ensure consistent terminology and style\n\n**Step 5: Document synthesis decisions**\nCreate a synthesis log:\n- What you took from each solution (with specific citations)\n- Why you made those choices (reference judge feedback)\n- How you addressed identified weaknesses\n- Any novel combinations or improvements\n\n\u003Cexample>\n**Example synthesis decision for an API design:**\n\nComponent: Authentication flow\n- Solution A: JWT with refresh tokens (praised for security by 2\u002F3 judges)\n- Solution B: Session-based (praised for simplicity by 1 judge, criticized for scalability)\n- Solution C: OAuth2 only (criticized as over-engineered for use case)\n\nDecision: Take Solution A's authentication flow directly.\nEvidence: Judges 1 and 3 both noted \"JWT approach provides good balance of security and statelessness\"\nModification: None needed - this section was rated highest across judges.\n\u003C\u002Fexample>\n\n**Step 6: Revise your solution**\n- Generate 5 verification questions about critical aspects\n- Answer your own questions:\n   - Review solution against each question\n   - Identify gaps or weaknesses\n- Revise solution:\n   - Fix identified issues\n- Explain what was changed and why\n\n\nCRITICAL:\n- Do not create something entirely new - synthesize the best from what exists\n- Cite your sources (which solution, which section)\n- Explain every major decision\n- Address all consensus weaknesses identified by judges\n```\n\n\u003Coutput>\nThe command produces different outputs depending on the adaptive strategy selected:\n\n### Outputs (All Strategies)\n\n1. **Research directory:** `.specs\u002Fresearch\u002F` (created if not exists)\n   - Proposals: `.specs\u002Fresearch\u002F{solution-name}-{date}.proposals.[a|b|c].md` - High-level approaches with probabilities\n   - Pruning: `.specs\u002Fresearch\u002F{solution-name}-{date}.pruning.[1|2|3].md` - Judge evaluations and votes\n   - Selection: `.specs\u002Fresearch\u002F{solution-name}-{date}.selection.md` - Vote tallies and selected proposals\n\n2. **Expansion outputs:**\n   - `solution.a.md`, `solution.b.md`, `solution.c.md` - Full implementations (in specified output location)\n\n3. **Reports directory:** `.specs\u002Freports\u002F` (created if not exists)\n   - Evaluation: `.specs\u002Freports\u002F{solution-name}-{date}.[1|2|3].md` - Final judge reports\n\n4. **Resulting solution:** `{output_path}`\n\n### Strategy-Specific Outputs\n\n- **SELECT_AND_POLISH**: Polished solution based on winning solution, with targeted improvements\n- **REDESIGN**: Do not stop; return to Phase 3 with lessons learned; eventually finishes at SELECT_AND_POLISH or FULL_SYNTHESIS\n- **FULL_SYNTHESIS**: Synthesized solution combining best elements from all solutions\n\u003C\u002Foutput>\n\n## Best Practices\n\n### Evaluation Criteria by Task Type\n\n**Code implementation tasks:**\n- Correctness (35%)\n- Design quality (25%)\n- Maintainability (20%)\n- Performance (10%)\n- Clarity (10%)\n\n**Architecture\u002Fdesign tasks:**\n- Completeness (30%)\n- Feasibility (25%)\n- Scalability (20%)\n- Simplicity (15%)\n- Clarity (10%)\n\n**Research\u002Fanalysis tasks:**\n- Depth (35%)\n- Accuracy (30%)\n- Completeness (20%)\n- Actionability (15%)\n\n**Documentation tasks:**\n- Completeness (35%)\n- Accuracy (30%)\n- Clarity (20%)\n- Usability (15%)\n\n### Common Pitfalls\n\n❌ **Insufficient exploration** - Agents propose similar approaches\n❌ **Weak pruning criteria** - Judges can't differentiate quality\n❌ **Ignoring judge feedback** - Expansion ignores concerns from pruning\n❌ **Vague proposals** - Can't properly evaluate without implementation details\n❌ **Over-exploration** - Too many proposals, evaluation becomes expensive\n❌ **Forcing synthesis when clear winner exists** - Wastes cost and risks degrading quality\n❌ **Synthesizing fundamentally flawed solutions** - Better to redesign than polish garbage\n\n✅ **Encourage diverse exploration** - Prompt for different regions of solution space\n✅ **Clear pruning criteria** - Specific, measurable evaluation dimensions\n✅ **Feed feedback forward** - Expansion agents address pruning concerns\n✅ **Right level of detail** - Proposals have enough detail to evaluate\n✅ **Prune aggressively** - Only expand most promising 3 approaches\n✅ **Trust adaptive strategy selection** - Polish clear winners, synthesize split decisions, redesign failures\n\n## Example: API Design\n\n```bash\n\u002Ftree-of-thoughts \"Design REST API for user management (CRUD + auth)\" \\\n  --output \"specs\u002Fapi\u002Fusers.md\" \\\n  --criteria \"RESTfulness,security,scalability,developer-experience\"\n```\n\n**Phase 1 outputs** (assuming date 2025-01-15):\n- `.specs\u002Fresearch\u002Fusers-api-2025-01-15.proposals.a.md` - 3 approaches: Resource-based (0.35), Action-based (0.25), HATEOAS (0.15)\n- `.specs\u002Fresearch\u002Fusers-api-2025-01-15.proposals.b.md` - 3 approaches: GraphQL-first (0.20), REST+GraphQL hybrid (0.30), Pure REST (0.40)\n- `.specs\u002Fresearch\u002Fusers-api-2025-01-15.proposals.c.md` - 3 approaches: Microservices (0.25), Monolithic (0.45), Hybrid (0.20)\n\n**Phase 2 outputs:**\n- `.specs\u002Fresearch\u002Fusers-api-2025-01-15.pruning.1.md` - Top 3: Resource-based REST, Pure REST, Monolithic\n- `.specs\u002Fresearch\u002Fusers-api-2025-01-15.pruning.2.md` - Top 3: Pure REST, Hybrid (services), Resource-based REST\n- `.specs\u002Fresearch\u002Fusers-api-2025-01-15.pruning.3.md` - Top 3: Resource-based REST, REST+GraphQL hybrid, Pure REST\n- `.specs\u002Fresearch\u002Fusers-api-2025-01-15.selection.md` - Selected: Resource-based REST (8 pts), Pure REST (7 pts), Monolithic (4 pts)\n\n**Phase 3 outputs:**\n- `specs\u002Fapi\u002Fusers.a.md` - Full resource-based design with nested routes\n- `specs\u002Fapi\u002Fusers.b.md` - Flat REST design with simple endpoints\n- `specs\u002Fapi\u002Fusers.c.md` - Monolithic API with service-oriented internals\n\n**Phase 4 outputs:**\n- `.specs\u002Freports\u002Fusers-api-2025-01-15.1.md`:\n  ```\n  VOTE: Solution A\n  SCORES: A=4.2\u002F5.0, B=3.8\u002F5.0, C=3.4\u002F5.0\n  ```\n  \"Prefers A for RESTfulness, criticizes C complexity\"\n\n- `.specs\u002Freports\u002Fusers-api-2025-01-15.2.md`:\n  ```\n  VOTE: Solution B\n  SCORES: A=3.9\u002F5.0, B=4.1\u002F5.0, C=3.5\u002F5.0\n  ```\n  \"Prefers B for simplicity, criticizes A deep nesting\"\n\n- `.specs\u002Freports\u002Fusers-api-2025-01-15.3.md`:\n  ```\n  VOTE: Solution A\n  SCORES: A=4.3\u002F5.0, B=3.6\u002F5.0, C=3.2\u002F5.0\n  ```\n  \"Prefers A for discoverability, criticizes B lack of structure\"\n\n**Phase 4.5 decision (orchestrator parses headers):**\n- Split votes: A, B, A (no unanimous winner)\n- Average scores: A=4.1, B=3.8, C=3.4 (all ≥3.0)\n- Strategy: FULL_SYNTHESIS\n- Reason: Split decision with merit, synthesis needed\n\n**Phase 5 output (synthesis):**\n- `specs\u002Fapi\u002Fusers.md` - Resource-based structure (from A), max 2-level nesting (from B), internal services (from C)\n\n","# tree-of-thoughts\n\n\u003Ctask>\nExecute complex reasoning tasks through systematic exploration of solution space, pruning unpromising branches, expanding viable approaches, and synthesizing the best solution.\n\u003C\u002Ftask>\n\n\u003Ccontext>\nThis command implements the Tree of Thoughts (ToT) pattern for tasks requiring exploration of multiple solution paths before committing to full implementation. It combines creative sampling, multi-perspective evaluation, adaptive strategy selection, and evidence-based synthesis to produce superior outcomes.\n\u003C\u002Fcontext>\n\n## Pattern: Tree of Thoughts (ToT)\n\nThis command implements a six-phase systematic reasoning pattern with adaptive strategy selection:\n\n```\nPhase 1: Exploration (Propose Approaches)\n         ┌─ Agent A → Proposals A1, A2 (with probabilities) ─┐\nTask ───┼─ Agent B → Proposals B1, B2 (with probabilities) ─┼─┐\n         └─ Agent C → Proposals C1, C2 (with probabilities) ─┘ │\n                                                                │\nPhase 2: Pruning (Vote for Best 3)                             │\n         ┌─ Judge 1 → Votes + Rationale ─┐                     │\n         ├─ Judge 2 → Votes + Rationale ─┼─────────────────────┤\n         └─ Judge 3 → Votes + Rationale ─┘                     │\n                 │                                              │\n                 ├─→ Select Top 3 Proposals                     │\n                 │                                              │\nPhase 3: Expansion (Develop Full Solutions)                    │\n         ┌─ Agent A → Solution A (from proposal X) ─┐          │\n         ├─ Agent B → Solution B (from proposal Y) ─┼──────────┤\n         └─ Agent C → Solution C (from proposal Z) ─┘          │\n                                                                │\nPhase 4: Evaluation (Judge Full Solutions)                     │\n         ┌─ Judge 1 → Report 1 ─┐                              │\n         ├─ Judge 2 → Report 2 ─┼──────────────────────────────┤\n         └─ Judge 3 → Report 3 ─┘                              │\n                                                                │\nPhase 4.5: Adaptive Strategy Selection                         │\n         Analyze Consensus ────────────────────────────────────┤\n                ├─ Clear Winner? → SELECT_AND_POLISH           │\n                ├─ All Flawed (\u003C3.0)? → REDESIGN (Phase 3)     │\n                └─ Split Decision? → FULL_SYNTHESIS            │\n                                         │                      │\nPhase 5: Synthesis (Only if FULL_SYNTHESIS)                    │\n         Synthesizer ────────────────────┴──────────────────────┴─→ Final Solution\n```\n\n## Process\n\n### Setup: Create Directory Structure\n\nBefore starting, ensure the directory structure exists:\n\n```bash\nmkdir -p .specs\u002Fresearch .specs\u002Freports\n```\n\n**Naming conventions:**\n- Proposals: `.specs\u002Fresearch\u002F{solution-name}-{YYYY-MM-DD}.proposals.[a|b|c].md`\n- Pruning: `.specs\u002Fresearch\u002F{solution-name}-{YYYY-MM-DD}.pruning.[1|2|3].md`\n- Selection: `.specs\u002Fresearch\u002F{solution-name}-{YYYY-MM-DD}.selection.md`\n- Evaluation: `.specs\u002Freports\u002F{solution-name}-{YYYY-MM-DD}.[1|2|3].md`\n\nWhere:\n- `{solution-name}` - Derived from output path (e.g., `users-api` from output `specs\u002Fapi\u002Fusers.md`)\n- `{YYYY-MM-DD}` - Current date\n\n**Note:** Solutions remain in their specified output locations; only research and evaluation files go to `.specs\u002F`\n\n### Phase 1: Exploration (Propose Approaches)\n\nLaunch **3 independent agents in parallel** (recommended: Sonnet for speed):\n\n1. Each agent receives **identical task description and context**\n2. Each agent **generates 6 high-level approaches** (not full implementations)\n3. For each approach, agent provides:\n   - **Approach description** (2-3 paragraphs)\n   - **Key design decisions** and trade-offs\n   - **Probability estimate** (0.0-1.0) \n   - **Estimated complexity** (low\u002Fmedium\u002Fhigh)\n   - **Potential risks** and failure modes\n4. Proposals saved to `.specs\u002Fresearch\u002F{solution-name}-{date}.proposals.[a|b|c].md`\n\n**Key principle:** Systematic exploration through probabilistic sampling from the full distribution of possible approaches.\n\n**Prompt template for explorers:**\n\n```markdown\n\u003Ctask>\n{task_description}\n\u003C\u002Ftask>\n\n\u003Cconstraints>\n{constraints_if_any}\n\u003C\u002Fconstraints>\n\n\u003Ccontext>\n{relevant_context}\n\u003C\u002Fcontext>\n\n\u003Coutput>\n{.specs\u002Fresearch\u002F{solution-name}-{date}.proposals.[a|b|c].md - each agent gets unique letter identifier}\n\u003C\u002Foutput>\n\nInstructions:\n\nLet's approach this systematically by first understanding what we're solving, then exploring the solution space.\n\n**Step 1: Decompose the problem**\nBefore generating approaches, break down the task:\n- What is the core problem being solved?\n- What are the key constraints and requirements?\n- What subproblems must any solution address?\n- What are the evaluation criteria for success?\n\n**Step 2: Map the solution space**\nIdentify the major dimensions along which solutions can vary:\n- Architecture patterns (e.g., monolithic vs distributed)\n- Implementation strategies (e.g., eager vs lazy)\n- Trade-off axes (e.g., performance vs simplicity)\n\n**Step 3: Generate 6 distinct high-level approaches**\n\n**Sampling guidance:**\nPlease sample approaches at random from the [full distribution \u002F tails of the distribution]\n- For first 3 approaches aim for high probability, over 0.80\n- For last 3 approaches aim for diversity - explore different regions of the solution space, such that the probability of each response is less than 0.10\n\nFor each approach, provide:\n   - Name and one-sentence summary\n   - Detailed description (2-3 paragraphs)\n   - Key design decisions and rationale\n   - Trade-offs (what you gain vs what you sacrifice)\n   - Probability (0.0-1.0)\n   - Complexity estimate (low\u002Fmedium\u002Fhigh)\n   - Potential risks and failure modes\n\n**Step 4: Verify diversity**\nBefore finalizing, check:\n- Are approaches genuinely different, not minor variations?\n- Do they span different regions of the solution space?\n- Have you covered both conventional and unconventional options?\n\n\nCRITICAL:\n- Do NOT implement full solutions yet - only high-level approaches\n- Ensure approaches are genuinely different, not minor variations\n```\n\n### Phase 2: Pruning (Vote for Top 3 Candidates)\n\nLaunch **3 independent judges in parallel** (recommended: Sonnet for efficiency):\n\n1. Each judge receives **ALL proposal files** (from `.specs\u002Fresearch\u002F`)\n2. Judges evaluate each proposal against **pruning criteria**:\n   - **Feasibility** (1-5): Can this be implemented with available resources?\n   - **Alignment** (1-5): How well does it address the task requirements?\n   - **Potential** (1-5): Likelihood of producing high-quality result?\n   - **Risk** (1-5, inverse): How manageable are the identified risks?\n3. Each judge produces:\n   - **Scores for each proposal** (with evidence)\n   - **Vote for top 3 proposals** to expand\n   - **Rationale** for selections\n4. Votes saved to `.specs\u002Fresearch\u002F{solution-name}-{date}.pruning.[1|2|3].md`\n\n**Key principle:** Independent evaluation with explicit criteria reduces groupthink and catches different strengths\u002Fweaknesses.\n\n**Prompt template for pruning judges:**\n\n```markdown\nYou are evaluating {N} proposed approaches to select the top 3 for full development.\n\n\u003Ctask>\n{task_description}\n\u003C\u002Ftask>\n\n\u003Cproposals>\n{list of paths to all proposal files}\nRead all proposals carefully before evaluating.\n\u003C\u002Fproposals>\n\n\u003Coutput>\n{.specs\u002Fresearch\u002F{solution-name}-{date}.pruning.[1|2|3].md - each judge gets unique number identifier}\n\u003C\u002Foutput>\n\nEvaluation criteria (with weights):\n1. Feasibility (25%): Can this be implemented with available resources and constraints?\n2. Alignment (30%): How well does it address the task requirements and constraints?\n3. Potential (30%): Likelihood of producing a high-quality, robust solution?\n4. Risk (15%): How manageable are the identified risks and failure modes?\n\nRead ${CLAUDE_PLUGIN_ROOT}\u002Ftasks\u002Fjudge.md for evaluation methodology and execute using following criteria.\n\nInstructions:\n1. For each proposal, score on each criterion (1-5)\n2. Provide specific evidence from the proposal for each score\n3. Calculate weighted total score for each proposal\n4. Vote for your top 3 proposals with clear justification\n5. Consider:\n   - Does the probability estimate seem realistic?\n   - Are the trade-offs clearly articulated?\n   - Are risks identified and addressable?\n6. Generate verification 4-6 questions about your evaluation.\n7. Answer verification questions:\n   - Re-examine solutions for each question\n   - Find counter-evidence if it exists\n   - Check for systematic bias (length, confidence, etc.)\n8. Revise your evaluation and update it accordingly.\n\nOutput format:\n- Evaluation table with scores for all proposals\n- Top 3 selections with rationale\n- Any concerns or questions about selected proposals\n\nCRITICAL:\n- Base your evaluation on evidence from proposals, not assumptions\n- Your top 3 should be ranked: 1st choice, 2nd choice, 3rd choice\n```\n\n### Phase 2b: Select Top 3 Proposals\n\nAfter judges complete voting:\n\n1. **Aggregate votes** using ranked choice:\n   - 1st choice = 3 points\n   - 2nd choice = 2 points\n   - 3rd choice = 1 point\n2. **Select top 3** proposals by total points\n3. **Handle ties** by comparing average scores across criteria\n4. **Document selection** in `.specs\u002Fresearch\u002F{solution-name}-{date}.selection.md`:\n   - Vote tallies\n   - Selected proposals\n   - Consensus rationale\n\n### Phase 3: Expansion (Develop Full Solutions)\n\nLaunch **3 independent agents in parallel** (recommended: Opus for quality):\n\n1. Each agent receives:\n   - **One selected proposal** to expand\n   - **Original task description** and context\n   - **Judge feedback** from pruning phase (concerns, questions)\n2. Agent produces **complete solution** implementing the proposal:\n   - Full implementation details\n   - Addresses concerns raised by judges\n   - Documents key decisions made during expansion\n3. Solutions saved to `solution.a.md`, `solution.b.md`, `solution.c.md`\n\n**Key principle:** Focused development of validated approaches with awareness of evaluation feedback.\n\n**Prompt template for expansion agents:**\n\n```markdown\nYou are developing a full solution based on a selected proposal.\n\n\u003Ctask>\n{task_description}\n\u003C\u002Ftask>\n\n\u003Cselected_proposal>\n{write selected proposal EXACTLY as it is. Including all details provided by the agent}\nRead this carefully - it is your starting point.\n\u003C\u002Fselected_proposal>\n\n\u003Cjudge_feedback>\n{concerns and questions from judges about this proposal}\nAddress these in your implementation.\n\u003C\u002Fjudge_feedback>\n\n\u003Coutput>\nsolution.[*].md where [*] is your unique identifier (a, b, or c)\n\u003C\u002Foutput>\n\nInstructions:\n\nLet's work through this systematically to ensure we build a complete, high-quality solution.\n\n**Step 1: Understand the proposal deeply**\nBefore implementing, analyze:\n- What is the core insight or approach of this proposal?\n- What are the key design decisions already made?\n- What gaps need to be filled for a complete solution?\n\n**Step 2: Address judge feedback**\nFor each concern raised by judges:\n- What specific change or addition addresses this concern?\n- How does this change integrate with the proposal's approach?\n\n**Step 3: Decompose into implementation subproblems**\nBreak the solution into logical parts:\n- What are the main components or sections?\n- What must be defined first for other parts to build upon?\n- What are the dependencies between parts?\n\n**Step 4: Implement each subproblem**\nFor each component, work through:\n- Core functionality and behavior\n- Edge cases and error handling\n- Integration points with other components\n\n**Step 5: Self-verification**\nGenerate 3-5 verification questions about critical aspects, then answer them:\n- Review solution against each question\n- Identify gaps or weaknesses\n- Fix identified issues\n\n**Step 6: Document changes**\nExplain what was changed from the original proposal and why.\n\n\u003Cexample>\n**Example of good expansion thinking:**\n\nProposal: \"Use event-driven architecture with message queue\"\n\nStep 1 Analysis:\n- Core insight: Decouple components via async messaging\n- Key decisions: Events as primary communication, eventual consistency\n- Gaps: Need to define event schemas, queue technology, error handling\n\nStep 2 - Addressing judge concern \"What about message ordering?\":\n- Add partition keys for ordered processing within entity scope\n- Document ordering guarantees and limitations\n\nStep 3 - Subproblems:\n1. Event schema definitions (foundational - others depend on this)\n2. Producer interfaces (depends on schemas)\n3. Consumer handlers (depends on schemas)\n4. Error handling and dead letter queues (depends on both)\n5. Integration patterns (builds on all above)\n\u003C\u002Fexample>\n\nCRITICAL:\n- Stay faithful to the selected proposal's core approach\n- Do not switch to a different approach midway\n- Address judge feedback explicitly\n- Produce a complete, implementable solution\n```\n\n### Phase 4: Evaluation (Judge Full Solutions)\n\nLaunch **3 independent judges in parallel** (recommended: Opus for rigor):\n\n1. Each judge receives **ALL solution files** (solution.a.md, solution.b.md, solution.c.md)\n2. Judges evaluate against **final criteria** (task-specific):\n   - **Correctness** (weight based on task)\n   - **Completeness** (weight based on task)\n   - **Quality** (design, maintainability, etc.)\n   - **Feasibility** (can this be implemented?)\n3. Each judge produces:\n   - **Comparative analysis** (which solution excels where)\n   - **Evidence-based ratings** (with specific quotes\u002Fexamples)\n   - **Final vote** (which solution they prefer and why)\n4. Reports saved to `.specs\u002Freports\u002F{solution-name}-{date}.[1|2|3].md`\n\n**Key principle:** Multiple independent evaluations with explicit evidence reduce bias and catch different quality aspects.\n\n**Prompt template for evaluation judges:**\n\n```markdown\nYou are evaluating {number} full solutions to this task:\n\n\u003Ctask>\n{task_description}\n\u003C\u002Ftask>\n\n\u003Csolutions>\n{list of paths to all solution files}\nRead all solutions carefully before evaluating.\n\u003C\u002Fsolutions>\n\n\u003Coutput>\nWrite full report to: .specs\u002Freports\u002F{solution-name}-{date}.[1|2|3].md - each judge gets unique number identifier\n\nCRITICAL: You must reply with this exact structured header format:\n\n---\nVOTE: [Solution A\u002FB\u002FC]\nSCORES:\n  Solution A: [X.X]\u002F5.0\n  Solution B: [X.X]\u002F5.0\n  Solution C: [X.X]\u002F5.0\nCRITERIA:\n - {criterion_1}: [X.X]\u002F5.0\n - {criterion_2}: [X.X]\u002F5.0\n ...\n---\n\n[Summary of your evaluation]\n\u003C\u002Foutput>\n\nEvaluation criteria (with weights):\n1. {criterion_1} ({weight_1}%)\n2. {criterion_2} ({weight_2}%)\n3. {criterion_3} ({weight_3}%)\n...\n\nRead ${CLAUDE_PLUGIN_ROOT}\u002Ftasks\u002Fjudge.md for evaluation methodology and execute using following criteria.\n\nInstructions:\n1. For each criterion, analyze ALL solutions\n2. Write a combined report:\n   - Provide specific evidence (quote exact text) for your assessments\n   - Compare strengths and weaknesses\n   - Score each solution on each criterion (1-5)\n   - Calculate weighted total scores\n3. Generate verification 4-6 questions about your evaluation.\n4. Answer verification questions:\n   - Re-examine solutions for each question\n   - Find counter-evidence if it exists\n   - Check for systematic bias (length, confidence, etc.)\n5. Revise your evaluation and update it accordingly.\n6. Reply structured output:\n   - VOTE: Which solution you recommend\n   - SCORES: Weighted total score for each solution (0.0-5.0)\n\nCRITICAL: Base your evaluation on evidence, not impressions. Quote specific text.\n\nFinal checklist:\n- [ ] Generated and answered all verification questions\n- [ ] Found and corrected all potential issues\n- [ ] Checked for known biases (length, verbosity, confidence)\n- [ ] Confident in revised evaluation\n- [ ] Structured header with VOTE and SCORES at top of report\n```\n\n### Phase 4.5: Adaptive Strategy Selection (Early Return)\n\n**The orchestrator** (not a subagent) analyzes judge outputs to determine the optimal strategy.\n\n#### Decision Logic\n\n**Step 1: Parse structured headers from judge reply**\n\nParse the judges reply.\nCRITICAL: Do not read report files themselves, as they can overflow your context.\n\n**Step 2: Check for unanimous winner**\n\nCompare all three VOTE values:\n- If Judge 1 VOTE = Judge 2 VOTE = Judge 3 VOTE (same solution):\n  - **Strategy: SELECT_AND_POLISH**\n  - **Reason:** Clear consensus - all three judges prefer same solution\n\n**Step 3: Check if all solutions are fundamentally flawed**\n\nIf no unanimous vote, calculate average scores:\n1. Average Solution A scores: (Judge1_A + Judge2_A + Judge3_A) \u002F 3\n2. Average Solution B scores: (Judge1_B + Judge2_B + Judge3_B) \u002F 3\n3. Average Solution C scores: (Judge1_C + Judge2_C + Judge3_C) \u002F 3\n\nIf (avg_A \u003C 3.0) AND (avg_B \u003C 3.0) AND (avg_C \u003C 3.0):\n- **Strategy: REDESIGN**\n- **Reason:** All solutions below quality threshold, fundamental approach issues\n\n**Step 4: Default to full synthesis**\n\nIf none of the above conditions met:\n- **Strategy: FULL_SYNTHESIS**\n- **Reason:** Split decision with merit, synthesis needed to combine best elements\n\n#### Strategy 1: SELECT_AND_POLISH\n\n**When:** Clear winner (unanimous votes)\n\n**Process:**\n1. Select the winning solution as the base\n2. Launch subagent to apply specific improvements from judge feedback\n3. Cherry-pick 1-2 best elements from runner-up solutions\n4. Document what was added and why\n\n**Benefits:**\n- Saves synthesis cost (simpler than full synthesis)\n- Preserves proven quality of winning solution\n- Focused improvements rather than full reconstruction\n\n**Prompt template:**\n\n```markdown\nYou are polishing the winning solution based on judge feedback.\n\n\u003Ctask>\n{task_description}\n\u003C\u002Ftask>\n\n\u003Cwinning_solution>\n{path_to_winning_solution}\nScore: {winning_score}\u002F5.0\nJudge consensus: {why_it_won}\n\u003C\u002Fwinning_solution>\n\n\u003Crunner_up_solutions>\n{list of paths to all runner-up solutions}\n\u003C\u002Frunner_up_solutions>\n\n\u003Cjudge_feedback>\n{list of paths to all evaluation reports}\n\u003C\u002Fjudge_feedback>\n\n\u003Coutput>\n{final_solution_path}\n\u003C\u002Foutput>\n\nInstructions:\n\nLet's approach this polishing task methodically to improve without disrupting what works.\n\n**Step 1: Understand why this solution won**\nAnalyze the winning solution:\n- What are its core strengths that judges praised?\n- What makes its approach superior to alternatives?\n- Which parts should remain untouched?\n\n**Step 2: Catalog improvement opportunities**\nFrom judge feedback, identify:\n- Specific weaknesses mentioned (list each one)\n- Missing elements judges noted\n- Areas where runner-ups were praised\n\n**Step 3: Prioritize changes by impact**\nFor each improvement opportunity:\n- High impact: Directly addresses judge criticism\n- Medium impact: Adds praised element from runner-up\n- Low impact: Nice-to-have refinement\n\nFocus on high-impact changes first.\n\n**Step 4: Apply improvements surgically**\nFor each change:\n- Locate the specific section to modify\n- Make the minimal change needed to address the issue\n- Verify the change integrates cleanly with surrounding content\n\n**Step 5: Cherry-pick from runners-up**\nReview runner-up solutions for:\n- 1-2 specific elements that judges praised\n- Elements that complement (not conflict with) the winning approach\n- Only incorporate if clearly superior to winning solution's version\n\n**Step 6: Document all changes**\nRecord:\n- What was changed and why (with reference to judge feedback)\n- What was added from other solutions (cite source)\n- What was intentionally left unchanged\n\nCRITICAL: Preserve the winning solution's core approach. Make targeted improvements only.\n```\n\n#### Strategy 2: REDESIGN\n\n**When:** All solutions scored \u003C3.0\u002F5.0 (fundamental issues across the board)\n\n**Process:**\n1. Launch new agent to analyze the failure modes and lessons learned\n2. **Return to Phase 3** (Expansion), provide to new implementation agents the lessons learned and new constraints\n\n**Note:** If redesign fails twice, escalate to user for guidance.\n\n**Prompt template for new implementation:**\n\n```markdown\nYou are analyzing why all solutions failed to meet quality standards, to inform a redesign. And implement new solution based on it.\n\n\n\u003Ctask>\n{task_description}\n\u003C\u002Ftask>\n\n\u003Cconstraints>\n{constraints_if_any}\n\u003C\u002Fconstraints>\n\n\u003Ccontext>\n{relevant_context}\n\u003C\u002Fcontext>\n\n\u003Cfailed_solutions>\n{list of paths to all solution files}\nAverage scores: A={avg_a}\u002F5.0, B={avg_b}\u002F5.0, C={avg_c}\u002F5.0\n\u003C\u002Ffailed_solutions>\n\n\u003Cevaluation_reports>\n{list of paths to all evaluation reports}\nAll solutions scored below 3.0\u002F5.0 threshold.\n\u003C\u002Fevaluation_reports>\n\n\u003Coutput>\n.specs\u002Fresearch\u002F{solution-name}-{date}.redesign-analysis.md\n\u003C\u002Foutput>\n\nInstructions:\nLet's break this down systematically to understand what went wrong and how to design new solution based on it.\n\n1. First, analyze the task carefully - what is being asked and what are the key requirements?\n2. Read through each solution and its evaluation report\n3. For each solution, think step by step about:\n   - What was the core approach?\n   - What specific issues did judges identify?\n   - Why did this approach fail to meet the quality threshold?\n4. Identify common failure patterns across all solutions:\n   - Are there shared misconceptions?\n   - Are there missing requirements that all solutions overlooked?\n   - Are there fundamental constraints that weren't considered?\n5. Extract lessons learned:\n   - What approaches should be avoided?\n   - What constraints must be addressed?\n6. Generate improved guidance for the next iteration:\n   - New constraints to add\n   - Specific approaches to try - what are the different ways to solve this?\n   - Key requirements to emphasize\n7. Think through the tradeoffs step by step and choose the approach you believe is best\n8. Implement it completely\n9. Generate 5 verification questions about critical aspects\n10. Answer your own questions:\n   - Review solution against each question\n   - Identify gaps or weaknesses\n11. Revise solution:\n   - Fix identified issues\n12. Explain what was changed and why\n```\n\n#### Strategy 3: FULL_SYNTHESIS (Default)\n\n**When:** No clear winner AND solutions have merit (scores ≥3.0)\n\n**Process:** Proceed to Phase 5 (Evidence-Based Synthesis)\n\n### Phase 5: Synthesis (Evidence-Based Combination)\n\n**Only executed when Strategy 3 (FULL_SYNTHESIS) selected in Phase 4.5**\n\nLaunch **1 synthesis agent** (recommended: Opus for quality):\n\n1. Agent receives:\n   - **All solutions** (from specified output location)\n   - **All evaluation reports** (from `.specs\u002Freports\u002F`)\n   - **Selection rationale** from pruning phase (from `.specs\u002Fresearch\u002F`)\n2. Agent analyzes:\n   - **Consensus strengths** (what multiple judges praised)\n   - **Consensus weaknesses** (what multiple judges criticized)\n   - **Complementary elements** where solutions took different approaches\n3. Agent produces **final solution** by:\n   - **Copying superior sections** when one solution clearly wins\n   - **Combining approaches** when hybrid is better\n   - **Fixing identified issues** that judges caught\n   - **Documenting decisions** (what was taken from where and why)\n\n**Key principle:** Evidence-based synthesis leverages collective intelligence from exploration and evaluation.\n\n**Prompt template for synthesizer:**\n\n```markdown\nYou are synthesizing the best solution from explored, pruned, and evaluated implementations.\n\n\u003Ctask>\n{task_description}\n\u003C\u002Ftask>\n\n\u003Csolutions>\n{list of paths to all solution files}\n\u003C\u002Fsolutions>\n\n\u003Cevaluation_reports>\n{list of paths to all evaluation reports}\n\u003C\u002Fevaluation_reports>\n\n\u003Cselection_rationale>\n{path to selection.md explaining why these proposals were chosen}\n\u003C\u002Fselection_rationale>\n\n\u003Coutput>\n{output_path} - The final synthesized solution\n\u003C\u002Foutput>\n\nInstructions:\n\nLet's approach this synthesis systematically by first analyzing, then decomposing, then building.\n\n**Step 1: Build the evidence base**\nBefore synthesizing, gather evidence from judge reports:\n- What did multiple judges praise? (consensus strengths)\n- What did multiple judges criticize? (consensus weaknesses)\n- Where did judges disagree? (areas needing careful analysis)\n\n**Step 2: Decompose into synthesis subproblems**\nBreak the solution into logical sections or components. For each component:\n- Which solution handles this best? (cite evidence)\n- Are there complementary elements from multiple solutions?\n- What issues were identified that need fixing?\n\n**Step 3: Solve each subproblem**\nFor each component\u002Fsection, determine the synthesis strategy:\n\n*Strategy A - Clear winner:* If one solution is clearly superior for this component:\n- Copy that section directly\n- Document: \"Taken from Solution X because [judge evidence]\"\n\n*Strategy B - Complementary combination:* If solutions have complementary strengths:\n- Identify what each contributes\n- Combine carefully, ensuring consistency\n- Document: \"Combined X from Solution A with Y from Solution B because [rationale]\"\n\n*Strategy C - All flawed:* If all solutions have issues in this area:\n- Start with the best version\n- Apply fixes based on judge criticism\n- Document: \"Based on Solution X, modified to address [specific issues]\"\n\n**Step 4: Integrate and verify consistency**\nAfter synthesizing all components:\n- Check that combined elements work together\n- Resolve any contradictions between borrowed sections\n- Ensure consistent terminology and style\n\n**Step 5: Document synthesis decisions**\nCreate a synthesis log:\n- What you took from each solution (with specific citations)\n- Why you made those choices (reference judge feedback)\n- How you addressed identified weaknesses\n- Any novel combinations or improvements\n\n\u003Cexample>\n**Example synthesis decision for an API design:**\n\nComponent: Authentication flow\n- Solution A: JWT with refresh tokens (praised for security by 2\u002F3 judges)\n- Solution B: Session-based (praised for simplicity by 1 judge, criticized for scalability)\n- Solution C: OAuth2 only (criticized as over-engineered for use case)\n\nDecision: Take Solution A's authentication flow directly.\nEvidence: Judges 1 and 3 both noted \"JWT approach provides good balance of security and statelessness\"\nModification: None needed - this section was rated highest across judges.\n\u003C\u002Fexample>\n\n**Step 6: Revise your solution**\n- Generate 5 verification questions about critical aspects\n- Answer your own questions:\n   - Review solution against each question\n   - Identify gaps or weaknesses\n- Revise solution:\n   - Fix identified issues\n- Explain what was changed and why\n\n\nCRITICAL:\n- Do not create something entirely new - synthesize the best from what exists\n- Cite your sources (which solution, which section)\n- Explain every major decision\n- Address all consensus weaknesses identified by judges\n```\n\n\u003Coutput>\nThe command produces different outputs depending on the adaptive strategy selected:\n\n### Outputs (All Strategies)\n\n1. **Research directory:** `.specs\u002Fresearch\u002F` (created if not exists)\n   - Proposals: `.specs\u002Fresearch\u002F{solution-name}-{date}.proposals.[a|b|c].md` - High-level approaches with probabilities\n   - Pruning: `.specs\u002Fresearch\u002F{solution-name}-{date}.pruning.[1|2|3].md` - Judge evaluations and votes\n   - Selection: `.specs\u002Fresearch\u002F{solution-name}-{date}.selection.md` - Vote tallies and selected proposals\n\n2. **Expansion outputs:**\n   - `solution.a.md`, `solution.b.md`, `solution.c.md` - Full implementations (in specified output location)\n\n3. **Reports directory:** `.specs\u002Freports\u002F` (created if not exists)\n   - Evaluation: `.specs\u002Freports\u002F{solution-name}-{date}.[1|2|3].md` - Final judge reports\n\n4. **Resulting solution:** `{output_path}`\n\n### Strategy-Specific Outputs\n\n- **SELECT_AND_POLISH**: Polished solution based on winning solution, with targeted improvements\n- **REDESIGN**: Do not stop; return to Phase 3 with lessons learned; eventually finishes at SELECT_AND_POLISH or FULL_SYNTHESIS\n- **FULL_SYNTHESIS**: Synthesized solution combining best elements from all solutions\n\u003C\u002Foutput>\n\n## Best Practices\n\n### Evaluation Criteria by Task Type\n\n**Code implementation tasks:**\n- Correctness (35%)\n- Design quality (25%)\n- Maintainability (20%)\n- Performance (10%)\n- Clarity (10%)\n\n**Architecture\u002Fdesign tasks:**\n- Completeness (30%)\n- Feasibility (25%)\n- Scalability (20%)\n- Simplicity (15%)\n- Clarity (10%)\n\n**Research\u002Fanalysis tasks:**\n- Depth (35%)\n- Accuracy (30%)\n- Completeness (20%)\n- Actionability (15%)\n\n**Documentation tasks:**\n- Completeness (35%)\n- Accuracy (30%)\n- Clarity (20%)\n- Usability (15%)\n\n### Common Pitfalls\n\n❌ **Insufficient exploration** - Agents propose similar approaches\n❌ **Weak pruning criteria** - Judges can't differentiate quality\n❌ **Ignoring judge feedback** - Expansion ignores concerns from pruning\n❌ **Vague proposals** - Can't properly evaluate without implementation details\n❌ **Over-exploration** - Too many proposals, evaluation becomes expensive\n❌ **Forcing synthesis when clear winner exists** - Wastes cost and risks degrading quality\n❌ **Synthesizing fundamentally flawed solutions** - Better to redesign than polish garbage\n\n✅ **Encourage diverse exploration** - Prompt for different regions of solution space\n✅ **Clear pruning criteria** - Specific, measurable evaluation dimensions\n✅ **Feed feedback forward** - Expansion agents address pruning concerns\n✅ **Right level of detail** - Proposals have enough detail to evaluate\n✅ **Prune aggressively** - Only expand most promising 3 approaches\n✅ **Trust adaptive strategy selection** - Polish clear winners, synthesize split decisions, redesign failures\n\n## Example: API Design\n\n```bash\n\u002Ftree-of-thoughts \"Design REST API for user management (CRUD + auth)\" \\\n  --output \"specs\u002Fapi\u002Fusers.md\" \\\n  --criteria \"RESTfulness,security,scalability,developer-experience\"\n```\n\n**Phase 1 outputs** (assuming date 2025-01-15):\n- `.specs\u002Fresearch\u002Fusers-api-2025-01-15.proposals.a.md` - 3 approaches: Resource-based (0.35), Action-based (0.25), HATEOAS (0.15)\n- `.specs\u002Fresearch\u002Fusers-api-2025-01-15.proposals.b.md` - 3 approaches: GraphQL-first (0.20), REST+GraphQL hybrid (0.30), Pure REST (0.40)\n- `.specs\u002Fresearch\u002Fusers-api-2025-01-15.proposals.c.md` - 3 approaches: Microservices (0.25), Monolithic (0.45), Hybrid (0.20)\n\n**Phase 2 outputs:**\n- `.specs\u002Fresearch\u002Fusers-api-2025-01-15.pruning.1.md` - Top 3: Resource-based REST, Pure REST, Monolithic\n- `.specs\u002Fresearch\u002Fusers-api-2025-01-15.pruning.2.md` - Top 3: Pure REST, Hybrid (services), Resource-based REST\n- `.specs\u002Fresearch\u002Fusers-api-2025-01-15.pruning.3.md` - Top 3: Resource-based REST, REST+GraphQL hybrid, Pure REST\n- `.specs\u002Fresearch\u002Fusers-api-2025-01-15.selection.md` - Selected: Resource-based REST (8 pts), Pure REST (7 pts), Monolithic (4 pts)\n\n**Phase 3 outputs:**\n- `specs\u002Fapi\u002Fusers.a.md` - Full resource-based design with nested routes\n- `specs\u002Fapi\u002Fusers.b.md` - Flat REST design with simple endpoints\n- `specs\u002Fapi\u002Fusers.c.md` - Monolithic API with service-oriented internals\n\n**Phase 4 outputs:**\n- `.specs\u002Freports\u002Fusers-api-2025-01-15.1.md`:\n  ```\n  VOTE: Solution A\n  SCORES: A=4.2\u002F5.0, B=3.8\u002F5.0, C=3.4\u002F5.0\n  ```\n  \"Prefers A for RESTfulness, criticizes C complexity\"\n\n- `.specs\u002Freports\u002Fusers-api-2025-01-15.2.md`:\n  ```\n  VOTE: Solution B\n  SCORES: A=3.9\u002F5.0, B=4.1\u002F5.0, C=3.5\u002F5.0\n  ```\n  \"Prefers B for simplicity, criticizes A deep nesting\"\n\n- `.specs\u002Freports\u002Fusers-api-2025-01-15.3.md`:\n  ```\n  VOTE: Solution A\n  SCORES: A=4.3\u002F5.0, B=3.6\u002F5.0, C=3.2\u002F5.0\n  ```\n  \"Prefers A for discoverability, criticizes B lack of structure\"\n\n**Phase 4.5 decision (orchestrator parses headers):**\n- Split votes: A, B, A (no unanimous winner)\n- Average scores: A=4.1, B=3.8, C=3.4 (all ≥3.0)\n- Strategy: FULL_SYNTHESIS\n- Reason: Split decision with merit, synthesis needed\n\n**Phase 5 output (synthesis):**\n- `specs\u002Fapi\u002Fusers.md` - Resource-based structure (from A), max 2-level nesting (from B), internal services (from C)\n\n",{"name":5,"description":7,"argument-hint":33},"Task description and optional output path\u002Fcriteria","master","c73386b305dec167db7654e0e6feacb462d4f9dc","assets\u002Fskills\u002Fthinking\u002Ftree-of-thoughts",1,"https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code","https:\u002F\u002Fgithub.com\u002FAntifragileTech","2026-10-02 14:22:14",{"source":8,"skillName":5,"commands":42,"prompt":52,"zipAvailable":53},[43,46,49],{"tool":44,"command":45},"npx","npx skills add AntifragileTech\u002Fantifragile-claude-code --skill \"sadd:tree-of-thoughts\"",{"tool":47,"command":48},"bunx","bunx skills add AntifragileTech\u002Fantifragile-claude-code --skill \"sadd:tree-of-thoughts\"",{"tool":50,"command":51},"pnpm","pnpm dlx skills add AntifragileTech\u002Fantifragile-claude-code --skill \"sadd:tree-of-thoughts\"","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fthinking\u002Ftree-of-thoughts\u002FSKILL.md",true,[55,61,64,67,70,73,76,79],{"path":56,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":59,"sourceHtmlUrl":60},"algorithms.md","REFERENCE","参考文档",0,"https:\u002F\u002Fgithub.com\u002Fhefarica\u002Farbitragex-v2\u002Fblob\u002Fmain\u002F.claude\u002Fagents\u002Fskills\u002Fwebsocket-opportunity-streaming\u002Falgorithms.md",{"path":62,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":59,"sourceHtmlUrl":63},"failure_modes.md","https:\u002F\u002Fgithub.com\u002Fhefarica\u002Farbitragex-v2\u002Fblob\u002Fmain\u002F.claude\u002Fagents\u002Fskills\u002Fwebsocket-opportunity-streaming\u002Ffailure_modes.md",{"path":65,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":59,"sourceHtmlUrl":66},"formulas.md","https:\u002F\u002Fgithub.com\u002Fhefarica\u002Farbitragex-v2\u002Fblob\u002Fmain\u002F.claude\u002Fagents\u002Fskills\u002Fwebsocket-opportunity-streaming\u002Fformulas.md",{"path":68,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":59,"sourceHtmlUrl":69},"implementation_notes.md","https:\u002F\u002Fgithub.com\u002Fhefarica\u002Farbitragex-v2\u002Fblob\u002Fmain\u002F.claude\u002Fagents\u002Fskills\u002Fwebsocket-opportunity-streaming\u002Fimplementation_notes.md",{"path":71,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":59,"sourceHtmlUrl":72},"integration_arbitragex.md","https:\u002F\u002Fgithub.com\u002Fhefarica\u002Farbitragex-v2\u002Fblob\u002Fmain\u002F.claude\u002Fagents\u002Fskills\u002Fwebsocket-opportunity-streaming\u002Fintegration_arbitragex.md",{"path":74,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":59,"sourceHtmlUrl":75},"manifest.json","https:\u002F\u002Fgithub.com\u002Fhefarica\u002Farbitragex-v2\u002Fblob\u002Fmain\u002F.claude\u002Fagents\u002Fskills\u002Fwebsocket-opportunity-streaming\u002Fmanifest.json",{"path":77,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":59,"sourceHtmlUrl":78},"references.json","https:\u002F\u002Fgithub.com\u002Fhefarica\u002Farbitragex-v2\u002Fblob\u002Fmain\u002F.claude\u002Fagents\u002Fskills\u002Fwebsocket-opportunity-streaming\u002Freferences.json",{"path":80,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":59,"sourceHtmlUrl":81},"validation_tests.md","https:\u002F\u002Fgithub.com\u002Fhefarica\u002Farbitragex-v2\u002Fblob\u002Fmain\u002F.claude\u002Fagents\u002Fskills\u002Fwebsocket-opportunity-streaming\u002Fvalidation_tests.md",[83,96,108,121,134,147],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":28},"01M6DT9Q6VYA615SCXR757TZZ7","writing-skills","Use when creating new skills, editing existing skills, or verifying skills work before deployment","https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fthinking\u002Fwriting-skills\u002FSKILL.md",[],[90,91,92,93,94,95],"writing skills","writing","use","editing","work","deployment",{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":28},"01M6DT9GFHDNY90P41WGAE1TV0","writing-plans","Use when you have a spec or requirements for a multi-step task, before touching code","https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fthinking\u002Fwriting-plans\u002FSKILL.md",[],[103,104,91,105,25,92,106,107],"plans","writing plans","requirements","code","spec",{"skillNo":109,"name":110,"nameZh":6,"description":111,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":112,"categories":113,"keywords":114,"publishedAt":28},"01M6DT9C6PFGD86WS3HY7YE3XG","docs:write-concisely","Apply writing rules to any documentation that humans will read. Makes your writing clearer, stronger, and more professional.","https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fthinking\u002Fwrite-concisely\u002FSKILL.md",[],[115,116,117,118,119,120,91],"docs:write concisely","write","docs","read","Rules","documentation",{"skillNo":122,"name":123,"nameZh":6,"description":124,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":125,"categories":126,"keywords":127,"publishedAt":28},"01M6DT98AWQ27P0N1CG97WAG66","kaizen:why","Iterative Five Whys root cause analysis drilling from symptoms to fundamentals","https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fthinking\u002Fwhy\u002FSKILL.md",[],[123,128,129,130,131,132,133],"why","kaizen","issue","five whys","analysis","root cause analysis",{"skillNo":135,"name":136,"nameZh":6,"description":137,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":138,"categories":139,"keywords":140,"publishedAt":28},"01M6DT93EH25NAX19R3WGE1P53","verification-loop","A comprehensive verification system for Claude Code sessions.","https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fthinking\u002Fverification-loop\u002FSKILL.md",[],[141,142,143,144,106,145,146],"verification loop","verification","loop","sessions","claude code sessions","system",{"skillNo":148,"name":149,"nameZh":6,"description":150,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":151,"categories":152,"keywords":153,"publishedAt":28},"01M6DT90GW7Z7VCN98P9DVYSNC","verification-before-completion","Use when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always","https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fthinking\u002Fverification-before-completion\u002FSKILL.md",[],[154,142,155,94,92,156,157,158],"verification before completion","commands","evidence","claim","complete"]