Skip to content
decision-helper logo

決策樹助手工具

decision-helper

決策樹助手工具。快速評估任務複雜度,提供派發建議。用於: (1) 任務複雜度快速評估, (2) 派發代理人建議, (3) 拆分策略建議, (4) 並行可行性評估

SKILL.md

Full skill instructions

決策樹助手工具

核心功能

快速評估任務,提供派發和拆分建議。引用 /​cognitive-load 的量化標準。


快速評估流程

Step 1:任務識別

## 任務類型識別

| 類型 | 識別關鍵字 | 下一步 |
|------|-----------|--------|
| 錯誤/失敗 | "failed", "error", "bug" | 強制派發 incident-responder |
| 新功能 | "實作", "建立", "新增" | SA 前置審查 |
| 修改 | "修改", "更新", "調整" | 複雜度評估 |
| 查詢 | "查詢", "進度", "狀態" | 直接回應 |

Step 2:複雜度快速評估

回答以下問題(每題 0-2 分):

問題0 分1 分2 分
需要修改幾個檔案?1-23-45+
跨越幾個架構層?123+
依賴幾個模組?0-12-34+
需要追蹤幾個狀態?1-34-56+

總分解讀:

總分複雜度建議
0-2低直接派發單一代理人
3-5中謹慎評估,考慮拆分
6-8高必須拆分後再派發

Step 3:派發建議

根據任務類型和複雜度,提供派發建議。


派發決策樹(二元結構)

對應主線程決策樹 v3.0.0 的二元化結構

任務進入
    |
    v
包含錯誤關鍵字? ─是→ [強制] incident-responder
    |
    └─否→ 包含不確定性詞彙? ─是→ [確認機制] 向用戶確認
              |
              └─否→ 複雜需求(觸發 3+ 代理人)? ─是→ [確認機制]
                        |
                        └─否→ 是問題? ─是→ 是查詢類? ─是→ 執行查詢命令
                                    |           |
                                    |           └─否→ 派發諮詢代理人
                                    |
                                    └─否→ 是開發命令? ─是→ [驗證 Ticket]
                                              |              └→ TDD 階段派發
                                              |
                                              └─否→ 是除錯命令? ─是→ incident-responder
                                                        |
                                                        └─否→ 其他處理

二元判斷順序(第零層)

順序判斷問題是否
1包含錯誤關鍵字?→ 事件回應流程→ 下一判斷
2包含不確定性詞彙?→ 確認機制→ 下一判斷
3複雜需求(3+ 代理人)?→ 確認機制→ 進入第一層

代理人選擇指南

系統級代理人

代理人觸發條件優先級
incident-responder錯誤/失敗最高
clove-security-reviewer安全相關高
saffron-system-analyst新功能/架構變更高
star-anise-system-designerUI 規範需求中
sumac-system-engineer環境/編譯問題中
sassafras-data-administrator資料設計需求中

TDD 階段代理人

階段代理人前置條件
Phase 1lavender-interface-designerSA 審查通過
Phase 2sage-test-architectPhase 1 完成
Phase 3apepper-test-implementerPhase 2 完成
Phase 3bparsley-flutter-developerPhase 3a 完成
Phase 4cinnamon-refactor-owlPhase 3b 測試全過

拆分策略指南

按架構層拆分

任務跨越多層
    |
    +-- UI 層修改 --> Ticket A (parsley)
    +-- Controller 層修改 --> Ticket B (parsley)
    +-- Domain 層修改 --> Ticket C (parsley)

執行順序:C --> B --> A(由底層向上)

按功能模組拆分

任務涉及多模組
    |
    +-- 模組 A 修改 --> Ticket A (可並行)
    +-- 模組 B 修改 --> Ticket B (可並行)
    +-- 共用模組修改 --> Ticket C (先執行)

執行順序:C 先完成,A/​B 可並行

按操作類型拆分

任務包含多種操作
    |
    +-- 重命名操作 --> Ticket A (可大量並行)
    +-- 格式化操作 --> Ticket B (可大量並行)
    +-- 邏輯修改 --> Ticket C (需謹慎序列)

並行派發判斷

快速檢查清單

  • 任務間無檔案重疊
  • 任務間無邏輯依賴
  • 任務在同一架構層級
  • 操作類型為機械性(重命名/格式化)

並行適用情境

情境範例並行數量
同層重命名所有 Repository 檔案變數重命名無上限
同層格式化所有 Widget 檔案 lint fix無上限
獨立模組各獨立 Feature 的相同修改無上限
無依賴測試各模組的獨立單元測試無上限

不適用並行情境

情境原因處理方式
TDD 跨階段階段有順序依賴序列執行
跨架構層可能有設計影響序列執行
有共享狀態競爭條件風險序列執行
邏輯依賴結果影響後續按依賴序列

使用方式

任務評估

/​decision-helper assess "{任務描述}"

輸出:

  • 任務類型
  • 複雜度評估
  • 派發建議
  • 拆分建議(如需要)

派發確認

/​decision-helper confirm {代理人} "{任務描述}"

輸出:

  • 派發是否合適
  • 潛在問題
  • 替代建議(如有)

並行檢查

/​decision-helper check-parallel {Ticket1} {Ticket2} ...

輸出:

  • 並行安全性
  • 潛在衝突
  • 建議執行順序

決策記錄格式

標準格式

## 決策記錄

### 任務資訊
- **任務描述**: {描述}
- **任務類型**: {類型}

### 複雜度評估
| 指標 | 數值 | 等級 |
|------|------|------|
| 修改檔案數 | {數} | {等級} |
| 架構層級數 | {數} | {等級} |
| 依賴模組數 | {數} | {等級} |
| 狀態追蹤數 | {數} | {等級} |
| **總分** | {分} | **{等級}** |

### 派發決策
- **建議代理人**: {代理人}
- **決策理由**: {理由}

### 拆分建議(如需要)
| 子任務 | 目標 | 代理人 | 順序 |
|--------|------|--------|------|
| 1 | {目標} | {代理人} | {順序} |

相關文件


Last Updated: 2026-01-28 Version: 1.1.0

More Security skills

supabase logo
Security

supabase

Handles the full Supabase workflow from schema changes to deployment, with built-in security guardrails that catch common traps like RLS...

2.7K 308.9K
View

Comprehensive guides and best practices for Neon Serverless Postgres, covering setup, connection methods, authentication, and platform APIs.

98 216.2K
View

Guide for setting up and using Firebase Authentication. Use this skill when the user's app requires user sign-in, user management, or secure data access using auth rules.

462 163.8K
View

A skill to evaluate how secure Firestore security rules are. Use this when Firestore security rules are updated to ensure that the generated rules are extremely secure and robust.

462 127.7K
View

Official skill for integrating Firebase AI Logic (Gemini API) into web applications. Covers setup, multimodal inference, structured output, and security.

462 125.1K
View

Complete Better Auth server and client setup with database adapters, session management, plugins, and security configuration.

222 118.2K
View

Deploy and manage projects on Vercel using token-based authentication. Use when working with Vercel CLI using access tokens rather than interactive login — e.g. "deploy to vercel", "set up vercel", "add environment variables to vercel".

31.9K 116.1K
View
cloudflare logo
Security

cloudflare

Complete Cloudflare platform integration with decision trees for compute, storage, AI, networking, security, and infrastructure-as-code.

3K 110.7K
View

Run Azure compliance and security audits with azqr plus Key Vault expiration checks. Covers best-practice assessment, resource review, policy/compliance validation, and security posture checks. WHEN: compliance scan, security audit, BEFORE running azqr (compliance cli tool), Azure best practices, Key Vault expiration check, expired certificates, expiring secrets, orphaned resources, compliance assessment.

253 103K
View
gws-gmail logo
Security

gws-gmail

Send, read, and manage Gmail messages, drafts, labels, and account settings.

31.2K 78.9K
View

Comprehensive website auditing across 230+ rules in 21 categories including SEO, performance, security, and accessibility.

94 72.3K
View
gws-shared logo
Security

gws-shared

Shared authentication, CLI syntax, and output formatting patterns for gws Google Workspace commands.

31.2K 63.4K
View

Security AI tools

StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
GeoSpy logo
Security

GeoSpy

GeoSpy: Pricing, Features, FAQs, and Alternatives for AI Teams

Free
View

Detect AI-generated voices to protect against audio fraud.

Paid
View

Ensure Your Content's Originality with AI Plagiarism Checker

Freemium
View
Img Upscaler logo
Security

Img Upscaler

Upscale images by 400% without quality loss

Freemium
View
AICheatCheck logo
Security

AICheatCheck

Accurately Detect AI-Generated Content with TheChecker.AI

Free
View
D
Security

Detect GPT

Chrome extension that detects and flags AI-generated content

Free
View