[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M737ZJBVGXD0ZCY369E9HE5D":3,"skill-same:01M737ZJBVGXD0ZCY369E9HE5D":51},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":32,"ownerHtmlUrl":33,"ownerBlogUrl":34,"ownerDescription":35,"updatedAt":36,"install":37,"resources":50},"01M737ZJBVGXD0ZCY369E9HE5D","tree-of-thoughts",null,"Multi-path reasoning before acting. Agent generates 3 candidate solutions, self-scores each on correctness\u002Ftoken-cost\u002Fsafety, selects the best branch, and backtracks if it hits a dead end. Use before \u002Fdeep-heal or any complex fix. Inspired by kyegomez\u002FTreeofThoughts (ToT) — DFS\u002FBFS over solution space.","Horonomos-laps\u002FYana-AI","Horonomos-laps","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F355299122?v=4","01M76B3QPXE88ET2SQPDPVATZT"," Horonomos-laps","01M72ZQRJPCYPSSWT4D00VJR2A",13,"MIT","https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ftree-of-thoughts\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: tree-of-thoughts\ndescription: Multi-path reasoning before acting. Agent generates 3 candidate solutions, self-scores each on correctness\u002Ftoken-cost\u002Fsafety, selects the best branch, and backtracks if it hits a dead end. Use before \u002Fdeep-heal or any complex fix. Inspired by kyegomez\u002FTreeofThoughts (ToT) — DFS\u002FBFS over solution space.\norigin: kyegomez\u002FTreeofThoughts (Apache 2.0) — Tree of Thoughts reasoning algorithm\nlicense: MIT\nversion: 1.0.0\ncompatibility: Claude Code, any reasoning-heavy task\n---\n\n# tree-of-thoughts\n\n## When to Use\n\n- A bug fix has multiple plausible approaches and choosing wrong wastes tokens\n- Architectural decisions with non-obvious tradeoffs\n- Before `\u002Fdeep-heal` or `autonomous-patching-loop` on complex failures\n- When the linear \"first idea\" approach has failed twice\n- Triggered by: \"think through options\", \"tree of thoughts\", \"consider alternatives\", \"plan 3 approaches\", \"what's the best fix strategy\", \"deep reasoning\", \"self-critique\"\n\n## Do NOT use for\n\n- Simple one-liner fixes where the solution is obvious\n- Tasks where speed matters more than correctness (use direct approach)\n- Pure data retrieval — ToT adds no value over a direct lookup\n- See `research-team` for knowledge gathering phase before ToT planning\n\n---\n\n## Tree Structure\n\n```\n                Root Problem\n                     │\n        ┌────────────┼────────────┐\n        ▼            ▼            ▼\n   Branch A      Branch B      Branch C\n  (Approach 1) (Approach 2) (Approach 3)\n        │            │            │\n   Score: 7.2    Score: 8.8   Score: 5.1\n        │            │            │\n   [expand]      [SELECT]     [prune]\n                     │\n              Sub-branch B1\n              Sub-branch B2\n                     │\n              [verify → merge]\n```\n\n---\n\n## Phase 1 — Generate Candidate Branches (3 approaches)\n\n```\nPrompt template for agent:\n\n\"Given: [problem description]\nContext: [error message \u002F failing test \u002F design constraint]\n\nGenerate exactly 3 distinct approaches to solve this.\nFor each approach, write:\n  Branch: [A|B|C]\n  Strategy: [1-sentence description]\n  Steps: [numbered list, max 5 steps]\n  Token estimate: [rough token cost to implement]\n  Risk: [low|medium|high] — explain why\n  Reversible: [yes|no] — can we undo without force-push?\n\nDo NOT implement yet. Write branches to L2 only.\"\n```\n\n---\n\n## Phase 2 — Self-Score Each Branch\n\n```python\nfrom dataclasses import dataclass\n\n@dataclass\nclass ThoughtBranch:\n    label: str          # A, B, C\n    strategy: str\n    steps: list[str]\n    token_estimate: int\n    risk: str           # low | medium | high\n    reversible: bool\n\ndef score_branch(branch: ThoughtBranch) -> float:\n    \"\"\"Score 0–10. Higher = better candidate to expand.\"\"\"\n    score = 10.0\n\n    # Penalize by risk\n    risk_penalty = {\"low\": 0, \"medium\": 1.5, \"high\": 3.5}\n    score -= risk_penalty.get(branch.risk, 0)\n\n    # Penalize non-reversible changes\n    if not branch.reversible:\n        score -= 2.0\n\n    # Penalize token cost (normalized: >2000 tokens = -1 point)\n    score -= min(branch.token_estimate \u002F 2000, 2.0)\n\n    # Penalize too many steps (complexity proxy)\n    score -= max(len(branch.steps) - 3, 0) * 0.5\n\n    return round(max(score, 0), 1)\n```\n\n---\n\n## Phase 3 — Select Best Branch + Expand\n\n```\nSelection rule:\n  1. Pick branch with highest score\n  2. If top two scores differ by \u003C 0.5 → present both to human for decision\n  3. Expand selected branch into detailed implementation plan\n\nExpansion prompt:\n  \"Branch [X] selected (score: [n]).\n   Now expand into a concrete implementation:\n   - File paths to modify\n   - Exact changes per file (no code yet — describe the change)\n   - Test that will confirm fix\n   - Rollback plan if verification fails\"\n```\n\n---\n\n## Phase 4 — Backtrack Protocol\n\n```\nBacktrack triggers:\n  □ Branch verification fails after 2 attempts\n  □ Implementation reveals a hidden constraint (different root cause)\n  □ Fix works but introduces a new test failure\n\nBacktrack steps:\n  1. git stash (preserve work without committing)\n  2. Log: bash core\u002Fscripts\u002Fsecure-logger.sh \"tot-backtrack\" \"Branch $X failed: $reason\"\n  3. Return to Phase 1 — promote Branch B or C to active\n  4. Write lesson to L2: \"Branch A failed because \u003Creason> — do not retry\"\n  5. Maximum backtracks per problem: 2 (after that, escalate to human)\n```\n\n---\n\n## L2 Session Storage Format\n\n```markdown\n# ToT Session — [timestamp]\nProblem: [description]\n\n## Branch A (score: 7.2) — PRUNED\nStrategy: ...\nReason pruned: high risk, non-reversible\n\n## Branch B (score: 8.8) — SELECTED → EXPANDED\nStrategy: ...\nSteps:\n  1. ...\n  2. ...\nVerification: run `npm test -- --grep \"cache\"`\n\n## Branch C (score: 5.1) — PRUNED\nStrategy: ...\nReason pruned: too many steps, high token cost\n\n## Outcome\nResult: PASS|FAIL|BACKTRACK\nLesson: [what was learned — promote to L1 if high confidence]\n```\n\n---\n\n## Integration with \u002Fdeep-heal Flow\n\n```\nUser: \u002Fdeep-heal \"TypeError: Cannot read property 'id' of undefined\"\n         │\n         ▼\nresearch-team  →  gather external knowledge\n         │\n         ▼\ntree-of-thoughts  →  plan 3 fix strategies, score, select best\n         │\n         ▼\nautonomous-patching-loop  →  execute on isolated branch, verify\n         │\n         ▼\nPASS → merge + L1 promotion\nFAIL → backtrack to next ToT branch\n```\n\n---\n\n## Anti-Fake-Pass Checklist\n\n- [ ] Exactly 3 branches generated before any code is written\n- [ ] Each branch scored on 3 axes: risk, token cost, reversibility\n- [ ] Selected branch score is the highest (or human chose between tied branches)\n- [ ] Branch plans written to L2 (`.claude\u002Fsession\u002F`) — not just printed to chat\n- [ ] Backtrack limit enforced: max 2 backtracks before human escalation\n- [ ] ToT session outcome (PASS\u002FFAIL\u002FESCALATE) logged via `secure-logger.sh`\n- [ ] Lesson from failed branches written to L2 for current session context\n","# tree-of-thoughts\n\n## When to Use\n\n- A bug fix has multiple plausible approaches and choosing wrong wastes tokens\n- Architectural decisions with non-obvious tradeoffs\n- Before `\u002Fdeep-heal` or `autonomous-patching-loop` on complex failures\n- When the linear \"first idea\" approach has failed twice\n- Triggered by: \"think through options\", \"tree of thoughts\", \"consider alternatives\", \"plan 3 approaches\", \"what's the best fix strategy\", \"deep reasoning\", \"self-critique\"\n\n## Do NOT use for\n\n- Simple one-liner fixes where the solution is obvious\n- Tasks where speed matters more than correctness (use direct approach)\n- Pure data retrieval — ToT adds no value over a direct lookup\n- See `research-team` for knowledge gathering phase before ToT planning\n\n---\n\n## Tree Structure\n\n```\n                Root Problem\n                     │\n        ┌────────────┼────────────┐\n        ▼            ▼            ▼\n   Branch A      Branch B      Branch C\n  (Approach 1) (Approach 2) (Approach 3)\n        │            │            │\n   Score: 7.2    Score: 8.8   Score: 5.1\n        │            │            │\n   [expand]      [SELECT]     [prune]\n                     │\n              Sub-branch B1\n              Sub-branch B2\n                     │\n              [verify → merge]\n```\n\n---\n\n## Phase 1 — Generate Candidate Branches (3 approaches)\n\n```\nPrompt template for agent:\n\n\"Given: [problem description]\nContext: [error message \u002F failing test \u002F design constraint]\n\nGenerate exactly 3 distinct approaches to solve this.\nFor each approach, write:\n  Branch: [A|B|C]\n  Strategy: [1-sentence description]\n  Steps: [numbered list, max 5 steps]\n  Token estimate: [rough token cost to implement]\n  Risk: [low|medium|high] — explain why\n  Reversible: [yes|no] — can we undo without force-push?\n\nDo NOT implement yet. Write branches to L2 only.\"\n```\n\n---\n\n## Phase 2 — Self-Score Each Branch\n\n```python\nfrom dataclasses import dataclass\n\n@dataclass\nclass ThoughtBranch:\n    label: str          # A, B, C\n    strategy: str\n    steps: list[str]\n    token_estimate: int\n    risk: str           # low | medium | high\n    reversible: bool\n\ndef score_branch(branch: ThoughtBranch) -> float:\n    \"\"\"Score 0–10. Higher = better candidate to expand.\"\"\"\n    score = 10.0\n\n    # Penalize by risk\n    risk_penalty = {\"low\": 0, \"medium\": 1.5, \"high\": 3.5}\n    score -= risk_penalty.get(branch.risk, 0)\n\n    # Penalize non-reversible changes\n    if not branch.reversible:\n        score -= 2.0\n\n    # Penalize token cost (normalized: >2000 tokens = -1 point)\n    score -= min(branch.token_estimate \u002F 2000, 2.0)\n\n    # Penalize too many steps (complexity proxy)\n    score -= max(len(branch.steps) - 3, 0) * 0.5\n\n    return round(max(score, 0), 1)\n```\n\n---\n\n## Phase 3 — Select Best Branch + Expand\n\n```\nSelection rule:\n  1. Pick branch with highest score\n  2. If top two scores differ by \u003C 0.5 → present both to human for decision\n  3. Expand selected branch into detailed implementation plan\n\nExpansion prompt:\n  \"Branch [X] selected (score: [n]).\n   Now expand into a concrete implementation:\n   - File paths to modify\n   - Exact changes per file (no code yet — describe the change)\n   - Test that will confirm fix\n   - Rollback plan if verification fails\"\n```\n\n---\n\n## Phase 4 — Backtrack Protocol\n\n```\nBacktrack triggers:\n  □ Branch verification fails after 2 attempts\n  □ Implementation reveals a hidden constraint (different root cause)\n  □ Fix works but introduces a new test failure\n\nBacktrack steps:\n  1. git stash (preserve work without committing)\n  2. Log: bash core\u002Fscripts\u002Fsecure-logger.sh \"tot-backtrack\" \"Branch $X failed: $reason\"\n  3. Return to Phase 1 — promote Branch B or C to active\n  4. Write lesson to L2: \"Branch A failed because \u003Creason> — do not retry\"\n  5. Maximum backtracks per problem: 2 (after that, escalate to human)\n```\n\n---\n\n## L2 Session Storage Format\n\n```markdown\n# ToT Session — [timestamp]\nProblem: [description]\n\n## Branch A (score: 7.2) — PRUNED\nStrategy: ...\nReason pruned: high risk, non-reversible\n\n## Branch B (score: 8.8) — SELECTED → EXPANDED\nStrategy: ...\nSteps:\n  1. ...\n  2. ...\nVerification: run `npm test -- --grep \"cache\"`\n\n## Branch C (score: 5.1) — PRUNED\nStrategy: ...\nReason pruned: too many steps, high token cost\n\n## Outcome\nResult: PASS|FAIL|BACKTRACK\nLesson: [what was learned — promote to L1 if high confidence]\n```\n\n---\n\n## Integration with \u002Fdeep-heal Flow\n\n```\nUser: \u002Fdeep-heal \"TypeError: Cannot read property 'id' of undefined\"\n         │\n         ▼\nresearch-team  →  gather external knowledge\n         │\n         ▼\ntree-of-thoughts  →  plan 3 fix strategies, score, select best\n         │\n         ▼\nautonomous-patching-loop  →  execute on isolated branch, verify\n         │\n         ▼\nPASS → merge + L1 promotion\nFAIL → backtrack to next ToT branch\n```\n\n---\n\n## Anti-Fake-Pass Checklist\n\n- [ ] Exactly 3 branches generated before any code is written\n- [ ] Each branch scored on 3 axes: risk, token cost, reversibility\n- [ ] Selected branch score is the highest (or human chose between tied branches)\n- [ ] Branch plans written to L2 (`.claude\u002Fsession\u002F`) — not just printed to chat\n- [ ] Backtrack limit enforced: max 2 backtracks before human escalation\n- [ ] ToT session outcome (PASS\u002FFAIL\u002FESCALATE) logged via `secure-logger.sh`\n- [ ] Lesson from failed branches written to L2 for current session context\n",{"name":5,"origin":24,"license":15,"version":25,"description":7,"compatibility":26},"kyegomez\u002FTreeofThoughts (Apache 2.0) — Tree of Thoughts reasoning algorithm","1.0.0","Claude Code, any reasoning-heavy task","main","481dcd7dd2e288b9d627a2bd017db70e64e6c6fa",".claude\u002Fskills\u002Ftree-of-thoughts",2,"https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI","https:\u002F\u002Fyana.vutam.link\u002F","https:\u002F\u002Fgithub.com\u002FHoronomos-laps","https:\u002F\u002Fyana.vutam.link","An open-source governed runtime & execution environment for multi-agent AI systems.","2026-11-14 13:24:09",{"source":8,"skillName":5,"commands":38,"prompt":48,"zipAvailable":49},[39,42,45],{"tool":40,"command":41},"npx","npx skills add Horonomos-laps\u002FYana-AI --skill tree-of-thoughts",{"tool":43,"command":44},"bunx","bunx skills add Horonomos-laps\u002FYana-AI --skill tree-of-thoughts",{"tool":46,"command":47},"pnpm","pnpm dlx skills add Horonomos-laps\u002FYana-AI --skill tree-of-thoughts","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ftree-of-thoughts\u002FSKILL.md",true,[],[52,59,67,75,83,91],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":19},"01M735GKET5YVYKAY62W2P5YXB","openai--sentry--sentry","Use when the user asks to inspect Sentry issues or events, summarize recent production errors, or pull basic Sentry health data via the Sentry API; perform read-only queries with the bundled script and require `SENTRY_AUTH_TOKEN`.","https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fopenai--sentry--sentry\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":63,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M73DCAP83T17HY7SMGK7MGFE","ito-basket-compare","Compare Itô prediction-market baskets against a user's knowledge base, portfolio notes, financial context, watchlist, or research thesis. Use for read-only basket comparison and gap analysis without investment advice or live trading.","Apache-2.0","https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI\u002Fblob\u002Fmain\u002Fcore\u002Fskills\u002Fito-basket-compare\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":63,"licenseFileUrl":71,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M734CYEMZFDR3KH6SW0JP8TD","implementing-network-traffic-baselining","Build network traffic baselines from NetFlow\u002FIPFIX data using Python pandas for statistical analysis, z-score anomaly detection, and hourly\u002Fdaily traffic pattern profiling","https:\u002F\u002Fgithub.com\u002Fyanacuti1121\u002FYana-AI\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fimplementing-network-traffic-baselining\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fimplementing-network-traffic-baselining\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":63,"licenseFileUrl":79,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M73ASZ6NJRJM44Z2P84NGQ3Q","detecting-evasion-techniques-in-endpoint-logs","Detects defense evasion techniques used by adversaries in endpoint logs including log tampering, timestomping, process injection, and security tool disabling. Use when investigating suspicious endpoint behavior, building detection rules for evasion tactics, or conducting threat hunting for stealthy adversary activity. Activates for requests involving evasion detection, defense evasion analysis, log tampering detection, or MITRE ATT&CK TA0005.","https:\u002F\u002Fgithub.com\u002Fyanacuti1121\u002FYana-AI\u002Fblob\u002Fmain\u002Fcore\u002Fskills\u002Fdetecting-evasion-techniques-in-endpoint-logs\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI\u002Fblob\u002Fmain\u002Fcore\u002Fskills\u002Fdetecting-evasion-techniques-in-endpoint-logs\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":63,"licenseFileUrl":87,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M734AFNXD06Z78QRK0VKGT7Q","implementing-microsegmentation-with-guardicore","Implementing microsegmentation using Akamai Guardicore Segmentation to map application dependencies, create granular network policies, visualize east-west traffic flows, and enforce least-privilege communication between workloads across data centers and cloud.","https:\u002F\u002Fgithub.com\u002Fyanacuti1121\u002FYana-AI\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fimplementing-microsegmentation-with-guardicore\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fimplementing-microsegmentation-with-guardicore\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":63,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":19},"01M736TK27QMCXK0DVCH25SJN5","ramdisk-tmpfs-patterns","https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Framdisk-tmpfs-patterns\u002FSKILL.md",[],[]]