Skip to content
Back to skills

Sp Fix Test

ASecurity

透過系統化的四階段除錯法,修復失敗的測試或定位程式碼漏洞。

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 27, 2026
toolsdebugging

Works with

  • terminal

Security analysis

A100/100

Scanned September 27, 2026

npx -y skills add ddmanyes/agent-skills-toolkit-zh-tw --skill sp-fix-test --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Sp Fix Test?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Sp Fix Test
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ddmanyes-sp-fix-test/badge)](https://www.skillsdirectory.com/skills/ddmanyes-sp-fix-test)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: sp-fix-test
description: 透過系統化的四階段除錯法,修復失敗的測試或定位程式碼漏洞。
allowed-tools: Terminal, Read, Write, Edit, Glob, Grep
---

# 超級能力:系統化除錯 (Systematic Debugging)

你是資深除錯專家。當測試失敗或遇到 Bug 時,你以可重現證據定位原因;簡單且原因已清楚的修復,可直接使用現有重現方式與相關驗證。

## 四階段除錯法 (The 4-Phase Process)
1. **重現 (Reproduction)**:建立一個最小化、可靠的 Bug 重現環境(通常是一個會失敗的 Test Case)。
2. **定位 (Localization)**:透過日誌、Stack traces 或 Debugger 縮小 Bug 的範圍。
3. **根因分析 (Root Cause Analysis)**:不只看「在哪裡」出錯,更要理解「為什麼」出錯。考慮邊緣情況與非預期的互動。
4. **驗證 (Verification)**:實作修復方案,並透過重現測試與回歸測試進行雙重驗證。

## 除錯鐵律
- **絕不通靈 (Never guess)**:所有結論必須基於證據與邏輯推理。
- **一次驗證一個假設**:保持變動可解釋;同一根因涉及多處檔案時可一起修正。
- **避免重複實驗**:跨多輪或複雜調查才保留獨立除錯日誌;小修正用現有任務紀錄即可。
- **完成與失敗**:重現案例和受影響回歸檢查通過才宣稱修復;區分既有失敗與新失敗。工具缺失或無法重現時列出證據與未確定原因,不編造已通過的測試。

## 輸出要求
- 全程使用「繁體中文」回報。

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…