skills/decision-tree-helper/SKILL.md
決策樹助手工具。快速評估任務複雜度,提供派發建議。Use when: (1) 任務複雜度快速評估, (2) 派發代理人建議, (3) 拆分策略建議, (4) 並行可行性評估
npx skillsauth add tarrragon/claude decision-tree-helperInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
快速評估任務,提供派發和拆分建議。引用 /cognitive-load 的量化標準。
| 類型 | 識別關鍵字 | 下一步 | |------|-----------|--------| | 錯誤/失敗 | "failed", "error", "bug" | 強制派發 incident-responder | | 新功能 | "實作", "建立", "新增" | SA 前置審查 | | 修改 | "修改", "更新", "調整" | 複雜度評估 | | 查詢 | "查詢", "進度", "狀態" | 直接回應 |
回答以下問題(每題 0-2 分):
| 問題 | 0 分 | 1 分 | 2 分 | |------|------|------|------| | 需要修改幾個檔案? | 1-2 | 3-4 | 5+ | | 跨越幾個架構層? | 1 | 2 | 3+ | | 依賴幾個模組? | 0-1 | 2-3 | 4+ | | 需要追蹤幾個狀態? | 1-3 | 4-5 | 6+ |
總分解讀:
| 總分 | 複雜度 | 建議 | |------|--------|------| | 0-2 | 低 | 直接派發單一代理人 | | 3-5 | 中 | 謹慎評估,考慮拆分 | | 6-8 | 高 | 必須拆分後再派發 |
根據任務類型和複雜度,提供派發建議。詳細派發決策樹見 references/dispatch-decision-tree.md。
二元判斷順序:
| 順序 | 判斷問題 | 是 | 否 | |------|---------|----|----| | 1 | 包含錯誤關鍵字? | → 事件回應流程 | → 下一判斷 | | 2 | 包含不確定性詞彙? | → 確認機制 | → 下一判斷 | | 3 | 複雜需求(3+ 代理人)? | → 確認機制 | → 進入第一層 |
注意:決策樹最高優先為「Skill 匹配層」(已註冊 Skill 觸發條件匹配),其次為「第負一層」並行化評估,再進入第零層明確性檢查。完整派發決策樹見 .claude/pm-rules/decision-tree.md(v9.0.0 路由索引),派發閘門見 .claude/pm-rules/dispatch-gate.md。
| 代理人 | 觸發條件 | 優先級 | |--------|---------|--------| | incident-responder | 錯誤/失敗 | 最高 | | system-analyst | 新功能/架構變更 | 高 | | security-reviewer | 安全相關 | 高 | | system-designer | UI 規範需求 | 中 | | system-engineer | 環境/編譯問題 | 中 |
| 階段 | 代理人 | 前置條件 | |------|--------|---------| | Phase 1 | lavender-interface-designer | SA 審查通過 | | Phase 2 | sage-test-architect | Phase 1 完成 | | Phase 3a | pepper-test-implementer | Phase 2 完成 | | Phase 3b | parsley-flutter-developer | Phase 3a 完成 | | Phase 4 | cinnamon-refactor-owl | Phase 3b 測試全過 |
本工具提供快速評估;詳細拆分策略見 references/splitting-strategies.md。
git diff --stat 驗證實際變更| 情境 | 範例 | 並行數量 | |------|------|---------| | 同層重命名 | 所有 Repository 檔案變數重命名 | 無上限 | | 同層格式化 | 所有 Widget 檔案 lint fix | 無上限 | | 獨立模組 | 各獨立 Feature 的相同修改 | 無上限 | | 無依賴測試 | 各模組的獨立單元測試 | 無上限 |
| 情境 | 原因 | 處理方式 | |------|------|---------| | TDD 跨階段 | 階段有順序依賴 | 序列執行 | | 跨架構層 | 可能有設計影響 | 序列執行 | | 有共享狀態 | 競爭條件風險 | 序列執行 | | 邏輯依賴 | 結果影響後續 | 按依賴序列 |
通過 /decision-tree-helper assess "{任務描述}" 快速評估:
通過 /decision-tree-helper confirm {代理人} "{任務描述}" 確認派發:
通過 /decision-tree-helper check-parallel {Ticket1} {Ticket2} 檢查並行可行性:
Last Updated: 2026-03-02 Version: 2.0.0
development
Use when the user wants to design, redesign, shape, critique, audit, polish, clarify, distill, harden, optimize, adapt, animate, colorize, extract, or otherwise improve a frontend interface. Covers websites, landing pages, dashboards, product UI, app shells, components, forms, settings, onboarding, and empty states. Handles UX review, visual hierarchy, information architecture, cognitive load, accessibility, performance, responsive behavior, theming, anti-patterns, typography, fonts, spacing, layout, alignment, color, motion, micro-interactions, UX copy, error states, edge cases, i18n, and reusable design systems or tokens. Also use for bland designs that need to become bolder or more delightful, loud designs that should become quieter, live browser iteration on UI elements, or ambitious visual effects that should feel technically extraordinary. Not for backend-only or non-UI tasks.
development
Claude Code release notes 框架影響評估工具。比對 last-reviewed 版本篩出新版本,逐項分類(對框架有幫助 / 需評估 / 無影響 / 不適用),對採用項引導建 ANA + WRAP + spawn 落地。Use when: 執行 /release-notes 看到新版本、定期檢查 CC 更新、評估新功能對專案框架的影響時。Triggers: release notes, release-notes, CC 更新, claude code 更新, 版本更新評估, 新功能評估, 框架影響評估。
development
Assertion design judgment framework for flaky and design-quality issues. Use when writing tests, reviewing assertions, diagnosing flaky tests, or deciding if a timing/float/cache assertion is appropriate. Do NOT use for API syntax or refactoring.
tools
Chrome Extension 實機測試與 debug 工作流,以 chrome-devtools-mcp 為核心工具。Use when: (1) 完成功能後實機驗證 / manual test / 試看看 / 跑看看 / verify feature, (2) extension debug / popup 不作動 / content script 不注入 / service worker 報錯 / background 出問題, (3) 安裝 unpacked extension / load unpacked / 載入未封裝, (4) 看 console / 看 network / 看 log / view console / inspect requests, (5) 功能更新後重新載入 extension / rebuild reload / reload extension。涵蓋 Manifest V3 service worker / content script / popup / options page 的 chrome-devtools-mcp 工具呼叫流程。不取代 Puppeteer / Playwright 自動化 E2E(CI 用),定位為開發期手動驗證與 LLM-assisted debug。