Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
miles990 avatar

Research

  • 1 installs
  • 4 repo stars
  • Updated May 12, 2026
  • miles990/multi-agent-workflow

A multi-agent research framework that studies a topic from parallel perspectives, cross-validates findings with configurable rigor, and archives a report to memory.

About

A research skill that dispatches parallel perspective agents, cross-validates their findings, and applies a critical-thinking rigor mode before summarizing into a report. A developer uses it to research architecture or design topics before planning.

  • Parallel perspectives with cross-validation and CT rigor modes
  • Archives reports to memory with automatic commit

Research by the numbers

  • 1 all-time installs (skills.sh)
  • Ranked #2,479 of 3,282 Productivity & Planning skills by installs in the Skillselion catalog
  • Data as of Aug 4, 2026 (Skillselion catalog sync)
npx skills add https://github.com/miles990/multi-agent-workflow --skill research

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs1
repo stars4
Last updatedMay 12, 2026
Repositorymiles990/multi-agent-workflow

What it does

A multi-agent research framework that studies a topic from parallel perspectives, cross-validates findings with configurable rigor, and archives a report to memory.

Files

SKILL.mdMarkdownGitHub ↗

Multi-Agent Research v3.2.0

CT 模式偵測 → 多視角並行研究 → 交叉驗證 → CT 合規檢查 → 智能匯總 → Memory 存檔(自動 commit)

自動化機制

本 skill 已整合 Claude Code Hooks

>

- Action logging、state tracking、git commit 均由 hooks 自動處理
- 只需執行 CP1 初始化,其餘檢查點自動執行

使用方式

/multi-research [研究主題]
/multi-research AI Agent 架構設計模式 --deep
/multi-research --ct experiment "Multi-CT Pipeline 是否能降低 agent drift?"
/multi-research --no-ct "只要快速草稿"

Flags: --perspectives N | --quick | --deep | --ct off|lite|strict|experiment | --no-ct | --no-memory

CT 模式(內建)

/multi-research 會在開始前執行 CT Escalation Router,自主選擇 CT 模式。

Mode觸發情境額外產物
off使用者明確 --no-ct--ct off
lite預設;一般研究、比較、方向整理evidence / uncertainty / drift guard
strict架構、風險、產品、技術決策、agent/memory/tool policyct-stack.yamlct-compliance.mdrisk-policy.yaml
experiment論文、實驗、benchmark、evaluation、hypothesis、可重複驗證strict 產物 + hypotheses.yamlexperiment-plan.mdeval-rubric.yamlfailure-modes.md

自動規則:

  • 預設為 lite
  • --deep 會把最低模式升到 strict
  • 偵測到論文、實驗、benchmark、evaluation、hypothesis、變因、對照組等需求時升到 experiment
  • 偵測到「快速」「先粗略」「不用太詳細」會降級,除非使用者明確要求 experiment。
  • 使用者 override 永遠優先。

→ Router:shared/ct/escalation-router.md → Rules:shared/ct/escalation-rules.yaml

預設 4 視角

ID名稱模型聚焦
architecture架構分析師sonnet系統結構、設計模式
cognitive認知研究員sonnet方法論、思維框架
workflow工作流設計haiku執行流程、整合策略
industry業界實踐haiku現有框架、最佳實踐

→ 模型路由配置:shared/config/model-routing.yaml

執行流程

CP1: 工作流初始化 ⚡ 手動執行
    python scripts/hooks/init_workflow.py --topic "{topic}" --stage RESEARCH
    ↓
Phase 0: CT Escalation Router → 偵測 ct_mode、理由、信心度
    ├── 檢查 user override: --ct / --no-ct
    ├── 依規則計分: lite / strict / experiment
    ├── 套用 downgrade guard: 快速 / 粗略 / 不用太詳細
    └── 寫入 meta.yaml: ct_detection
    ↓
Phase 1: 北極星錨定 → 定義研究目標、成功標準
    ↓
Phase 2: Memory 搜尋 → 避免重複研究
    ↓
Phase 3: 視角分解 → 為每視角生成專屬 prompt + CT envelope
    ↓
Phase 4: MAP(並行研究)✅ 自動追蹤
    ┌──────────┬──────────┬──────────┬──────────┐
    │架構分析師│認知研究員│工作流設計│業界實踐  │
    └──────────┴──────────┴──────────┴──────────┘
    [CP2/CP3 由 hooks 自動處理 Agent 狀態追蹤]

    ⚠️ **並行執行關鍵**:
       在單一訊息中發送 4 個 Task 工具呼叫:
       - Task({description: "架構視角", ...})
       - Task({description: "認知視角", ...})
       - Task({description: "工作流視角", ...})
       - Task({description: "業界視角", ...})
       這樣才能真正並行執行!

    ⚠️ **強制**:每個 Agent 必須在完成前執行:
       1. mkdir -p .claude/memory/research/{topic-id}/perspectives/
       2. Write → .claude/memory/research/{topic-id}/perspectives/{perspective_id}.md
       未執行 Write = 任務失敗,工作流中止
    ↓
Phase 5: REDUCE(交叉驗證 + CT compliance + 匯總)
    ↓
Phase 6: Memory 存檔 → 品質閘門檢查 → 存儲報告
    ↓
CP4: Task Commit ✅ 自動執行
    [寫入 .claude/memory/ 時自動 git commit]

CP4: Task Commit ✅ 自動

由 `post_write.py` hook 自動處理

當 Write 工具寫入 .claude/memory/ 目錄時,hook 會自動: 1. git add .claude/memory/research/{topic-id}/ 2. git commit -m "docs(research): complete {topic} research" 3. 記錄 action 到 actions.jsonl

→ Hook 設定:.claude/settings.local.json.template → 協議:shared/checkpoints/mandatory-checkpoints.md

品質閘門

通過條件(RESEARCH 階段):

  • ✅ 至少 2 視角達成共識
  • ✅ 無未解決的關鍵矛盾
  • ✅ 品質分數 ≥ 70
  • ✅ CT-lite 以上需標記 evidence / uncertainty / drift guard
  • ✅ CT-strict 以上不得有 HIGH CT 違規
  • ✅ CT-experiment 需產出可測假設與實驗設計

→ 閘門配置:shared/quality/gates.yaml

早期終止

consensus_rate >= 0.9 時,可跳過衝突解決。

→ 配置:shared/config/early-termination.yaml

Context7 整合

自動偵測技術棧關鍵字(react, vue, fastapi 等)時,查詢最新文檔。

→ 配置:shared/integration/context7.yaml

輸出結構

.claude/memory/research/[topic-id]/
├── meta.yaml           # 元數據,包含 ct_detection
├── ct-stack.yaml       # CT-strict / experiment 產出
├── ct-compliance.md    # CT-strict / experiment 產出
├── risk-policy.yaml    # CT-strict / experiment 產出
├── hypotheses.yaml     # CT-experiment 產出
├── experiment-plan.md  # CT-experiment 產出
├── eval-rubric.yaml    # CT-experiment 產出
├── failure-modes.md    # CT-experiment 產出
├── perspectives/       # 完整視角報告(MAP 產出,保留)
│   ├── architecture.md
│   ├── cognitive.md
│   ├── workflow.md
│   └── industry.md
├── summaries/          # 結構化摘要(REDUCE 產出,供快速查閱)
│   ├── architecture.yaml
│   ├── cognitive.yaml
│   ├── workflow.yaml
│   └── industry.yaml
├── synthesis.md        # 匯總報告(主輸出)
└── metrics.yaml        # 階段指標
⚠️ perspectives/ 保存完整報告,summaries/ 保存結構化摘要,兩者都必須保留。

Agent 能力限制

視角 Agent 不應該開啟 Task

允許的操作說明
✅ Read讀取檔案
✅ Glob/Grep搜尋檔案和內容
✅ Explore agent輕量級探索
✅ Bash執行命令
✅ WebFetch抓取網頁
✅ Write寫入報告
❌ Task開子 Agent

網頁抓取策略

當需要抓取網頁時,使用以下順序:

1. 優先使用 WebFetch - 快速、輕量 2. 如果 WebFetch 失敗,使用 Chrome:

   a. mcp__claude-in-chrome__tabs_create_mcp → 建立新分頁
   b. mcp__claude-in-chrome__navigate → 導航到 URL
   c. mcp__claude-in-chrome__get_page_text → 讀取內容

3. 如果仍然失敗,記錄 URL 供人工處理

行動日誌 ✅ 自動

由 Claude Code Hooks 自動處理

工具調用自動記錄到 .claude/workflow/{workflow-id}/logs/actions.jsonl

自動記錄的工具

工具觸發 Hook記錄內容
Taskpre_task.py / post_task.pyAgent 啟動/完成狀態
Writepost_write.py檔案路徑、Memory commit

排查問題

# 查看 RESEARCH 階段所有失敗行動
jq 'select(.stage == "RESEARCH" and .status == "failed")' \
  .claude/workflow/{workflow-id}/logs/actions.jsonl

# 查看特定視角 Agent 的行動
jq 'select(.agent_id == "architecture")' \
  .claude/workflow/{workflow-id}/logs/actions.jsonl

# 查看即時狀態
cat .claude/workflow/{workflow-id}/current.json | jq .

→ Hook 腳本:scripts/hooks/ → 日誌規範:shared/communication/execution-logs.md

共用模組

模組用途
ct/escalation-router.mdCT 模式自動偵測
ct/escalation-rules.yamlCT 升級/降級規則
02-ct-mode/lite.mdCT-lite envelope
02-ct-mode/strict.mdCT-strict envelope
02-ct-mode/experiment.mdCT-experiment envelope
02-ct-mode/compliance.mdCT compliance rules
coordination/map-phase.md並行協調
coordination/reduce-phase.md匯總整合、大檔案處理
synthesis/cross-validation.md交叉驗證
quality/gates.yaml品質閘門
config/model-routing.yaml模型路由

工作流位置

RESEARCH → PLAN → TASKS → IMPLEMENT → REVIEW → VERIFY
   ↑
  你在這裡

研究結果可被 plan skill 引用,作為規劃的輸入。

Related skills

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.