Skip to content
Development
Command

/quick-analyze

快速分析問題,適用於有明確錯誤訊息的情況

From plugin
claude-plugin-marketplace
2614 skills18 agents14 commands
Install
$ npx -y skills add DennisLiuCk/claude-plugin-marketplace --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/quick-analyze

Context preview

What this command does when you run it.

快速分析問題,適用於有明確錯誤訊息的情況

Command definition

quick-analyze.md
description: 快速分析問題,適用於有明確錯誤訊息的情況
allowedTools:
  - Task
  - Read
  - Glob
  - Grep
  - Bash
  - TodoWrite
  - WebSearch

/quick-analyze - 快速問題分析

你將執行快速的問題分析,直接定位問題原因。適用於有明確錯誤訊息或日誌的情況。

問題描述

$ARGUMENTS

快速分析流程

步驟 1:判斷分析路徑

根據問題描述內容選擇分析路徑:

**路徑 A**:如果問題描述包含**完整的日誌、堆疊追蹤或錯誤訊息** → 使用 **log-analyzer** 代理進行專業分析

**路徑 B**:如果只有簡單的問題描述或關鍵字 → 使用基本工具快速搜尋

---

路徑 A:使用 log-analyzer(推薦)

當問題包含日誌或錯誤訊息時,啟動 log-analyzer 代理:

使用 log-analyzer 代理執行以下任務:

快速分析錯誤訊息:
[從問題描述提取的日誌/錯誤內容]

要求:
1. 解析錯誤類型和堆疊追蹤
2. 識別錯誤源頭
3. 檢查是否匹配已知問題模式
4. 如果不熟悉的錯誤,使用 WebSearch 搜尋解決方案
5. 提供 1-3 個可能原因和修復建議

輸出:快速診斷報告

**輸出格式**:

## 🔍 快速分析結果

**問題**:[問題描述]

**錯誤類型**:[錯誤分類]

**可能原因**:
1. [原因 1] - 位置:`file:line`
   - 信心度:XX%
   - 修復建議:[簡短建議]

2. [原因 2] - 位置:`file:line`
   - 信心度:XX%
   - 修復建議:[簡短建議]

**參考資源**:
- [如果使用 WebSearch 找到的相關資源]

**需要深入分析?** 使用 `/analyze-issue` 進行完整的五代理分析。

---

路徑 B:基本工具快速搜尋

當只有簡單描述時,使用基本工具:

步驟 B1:資訊提取

從問題描述中提取:

  • 錯誤訊息或異常關鍵字
  • 相關檔案或函式名稱
  • 問題現象

步驟 B2:快速搜尋

使用 Grep 和 Glob 搜尋:

# 搜尋錯誤訊息關鍵字
Grep: pattern="[錯誤關鍵字]"

# 定位相關檔案
Glob: pattern="**/*[相關名稱]*"

# 閱讀關鍵程式碼
Read: file_path="[找到的檔案]"

步驟 B3:快速診斷

基於搜尋結果: 1. 識別最可能的原因(1-2 個) 2. 提供簡短的修復建議

**輸出格式**:

## 🔍 快速分析結果

**問題**:[問題描述]

**搜尋關鍵字**:[使用的關鍵字]

**可能原因**:
1. [原因 1] - 位置:`file:line`
2. [原因 2] - 位置:`file:line`

**建議修復**:
[簡短的修復建議]

**需要深入分析?** 使用 `/analyze-issue` 進行完整的五代理分析。

---

與 /analyze-issue 的差異

| 特性 | /quick-analyze | /analyze-issue | |------|----------------|----------------| | 使用代理 | log-analyzer(條件觸發)| 5 個代理完整協作 | | 分析深度 | 快速診斷 | 深度根因分析 | | 適用場景 | 有明確錯誤訊息 | 複雜或模糊的問題 | | 耗時 | 較短 | 較長 | | 輸出 | 簡潔報告 | 完整分析報告 |

---

執行指示

1. **判斷路徑**:根據問題描述內容選擇分析路徑 2. **優先使用 log-analyzer**:如果有日誌或錯誤訊息 3. **善用 WebSearch**:遇到不熟悉的錯誤時搜尋解決方案 4. **建議升級**:如果快速分析無法定位問題,建議使用 `/analyze-issue`

現在開始快速分析。

Read more
Ships withclaude-plugin-marketplace

專為繁體中文使用者設計的 Claude Code 插件集合,提供開發、生產力、安全與學習等工具。

Get the whole plugin, auto-invoked
Stats
26
Stars
1
Views
5
Forks
Maintained
Maintenance
Python
Language
5mo ago
Last commit
8mo ago
Created

Repo: DennisLiuCk/claude-plugin-marketplace