diagnosing-bugs
對付硬 bug、間歇性失敗與效能回歸的紀律迴圈 — 重現、最小化、立假說、下探針、修好、補回歸測試。當東西壞了而原因不明顯時使用,也對應 "flaky"、"regression"、「時好時壞」、「找不到原因」等說法。
Skill by Luca0x5755
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/luca0x5755-diagnosing-bugs
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/diagnosing-bugs
What's inside
- Skill name
diagnosing-bugs- Description
- 對付硬 bug、間歇性失敗與效能回歸的紀律迴圈 — 重現、最小化、立假說、下探針、修好、補回歸測試。當東西壞了而原因不明顯時使用,也對應 "flaky"、"regression"、「時好時壞」、「找不到原因」等說法。
- License
- MIT
- Instructions
- 65 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Diagnosing Bugs For the bugs that resist a first glance: the intermittent flake, the regression that crept in between two known-good states, the failure that only happens in one environment. ## The one rule **No theorising until you have a tight feedback loop.** One command that goes red on *this* bug, right now, in under a few seconds. Everything before that loop exists is guessing, and guessing on a hard bug produces a fix that changes the symptom rather than the cause. If getting to a fast red is hard, that *is* the first task — not a detour from it. ## 0. Triage Classify the failure before chasing it — three buckets, three different treatments: - **Real regression** — the product broke. The seven steps below. - **Flake** — fails intermittently against unchanged code. Still a bug; the hunt is for the hidden condition (step 1's discipline). A green retry hides the signal the red just gave you — the retry count is data, not a fix. - **Infrastructure** — runner died, network hiccup, disk full. Not a bug-fixing problem: fix or report the environment, and say which. The seven steps do not apply. Triage also names which side broke: a failing *test* over correct product behaviour is a bug in the test, and the fix lands there. ## 1. Reproduce Get it failing on demand. Intermittent means "reproduces under conditions you have not identified yet" — hunt the condition: ordering, concurrency, time, cached state, environment. A bug you cannot reproduce cannot be verified as fixed. Stop and say so rather than shipping a speculative change. ## 2. Minimise Cut everything that is not needed to still see the failure. Inputs, steps, config, code paths. Each cut either keeps the bug — good, cut more — or kills it, which just told you something. Minimising usually finds the bug outright. That is the point. ## 3. Bisect, when there was a known-good state `git bisect` against the minimal repro. This is the cheapest available answer whenever a "it used to work" exists, and it is skipped far too often in favour of reading code. ## 4. Hypothesise Write the hypothesis down as a falsifiable statement: "the token is compared before the refresh completes, so a request in that window sees the old value." **One hypothesis at a time.** Changing two things and seeing green tells you nothing about which one mattered. ## 5. Instrument Prove or kill the hypothesis with evidence — a log, a breakpoint, an assertion. Not by reading the code harder. Reading finds what you expect to find; a printed value does not. Killed hypothesis → back to 4, with what you learned. Do not smuggle a dead theory into the next one. **Redact before you paste.** Probe output lands in the conversation, and the conversation is not a safe place for live credentials. Replace tokens, keys, passwords, and connection strings with `<REDACTED>` before quoting any captured output — the shape of a value proves a hypothesis just as well as the value itself. ## 6. Fix Fix the **cause**, not the symptom. A `try/catch` around a crash, a retry around a race, a null guard on a value that should never be null — those hide the bug and hand the next person a harder one. If the real cause is out of scope to fix, say that explicitly and mitigate deliberately, in writing. ## 7. Regression test A test that fails before the fix and passes after. Confirm both directions — revert the fix and watch it go red. A regression test that was never seen red is not known to test anything. ## Cleanup Remove temporary probes and restore temporary environment changes. Report the cause, the regression-test evidence, and any remaining mitigation or uncertainty. The fix is complete when the regression check is green and temporary instrumentation is gone.
From Luca0x5755/luca-skills, MIT.
More from Luca0x5755/luca-skills
- 0.601score
consolidate-docs
Luca0x5755
對專案內凌散的規格文件動一次 brownfield 手術:全量盤點→提案報告(目標樹、映射表、衝突表)→核准後按 capability 分批遷移成 docs/specs/ 真相層,原檔進 archive 不刪。日常維護走管線,不重跑這把刀。
SkillAFreshness: A★ 3Claude Code +9 - 0.601score
code-review
Luca0x5755
沿三條軸審查自某個定點以來的 diff — Standards(有沒有遵守這個 repo 的規範?)、Spec(有沒有做到票要求的事?)與 Reuse(倉庫裡有沒有現成的?)。當使用者要審查一個分支、一個 PR 或進行中的工作時使用,也對應 "code review"、"review this…
SkillAFreshness: A★ 3Claude Code +9 - 0.601score
frontend-spec
Luca0x5755
為有 UI 的規格定前端真相:路由表、四態頁面與 style tokens 寫進前端合訂本(docs/05_frontend_spec.md,章節標能力)、.pen mockup 常駐 docs/mockup/ — 都在 feature branch 上改,與程式碼同 PR 合併。/to-spec…
SkillAFreshness: A★ 3Claude Code +9 - 0.598score
domain-modeling
Luca0x5755
建立並磨利一個專案的領域語言 — 挑戰模糊術語、拆開超載的詞、把難以回頭的決策寫成 ADR。當討論程式庫術語、直接撰寫或編輯 GLOSSARY.md 或 ADR、命名含糊、或同一個詞在不同地方意思不同時使用。
SkillAFreshness: A★ 3Claude Code +9 - 0.598score
grilling
Luca0x5755
就一個計畫、決策或想法窮追不捨地拷問使用者。當使用者想壓力測試自己的思路、想被質疑一個設計,或說出 "grill"、「拷問我」、「戳破我」這類觸發語時使用。
SkillAFreshness: A★ 3Claude Code +9 - 0.598score
browser-evidence
Luca0x5755
把既定案例清單跑成可交付的證據 — 截圖或原始回應、網路紀錄與被測版本 manifest。瀏覽器是預設通道,無 UI 案例走 api/cli,卡人一步由操作者接手;落在 docs/uat/,走 evidence 分支 PR 合回基底分支。
SkillAFreshness: A★ 3Claude Code +9 - 0.598score
setup-skills
Luca0x5755
為這個 repo 設定工程技能所需的組態 — 議題追蹤器、領域文件位置、git 護欄 hook,以及本機議題用的 CI 檢查。初始化跑一次;重跑可換追蹤器或補裝、更新護欄。
SkillAFreshness: A★ 3Claude Code +9 - 0.598score
implement-spec
Luca0x5755
依規格與票的阻塞圖,在隔離工作樹平行建置整份規格並整合至單一分支;支援已設定的追蹤器,可由操作者介入,PR 視需要建立。
SkillAFreshness: A★ 3Claude Code +9 - 0.598score
prototype
Luca0x5755
做一個用完即丟的原型來回答一個設計問題 — 狀態與邏輯用可執行的程式,UI 則做幾個可切換的變體。當一個設計問題在紙上定不下來時使用,也對應 "prototype"、"spike"、「先做個雛形看看」等說法。
SkillAFreshness: A★ 3Claude Code +9 - 0.598score
tdd
Luca0x5755
測試驅動開發,紅—綠—重構。當要以測試先行的方式建置功能或修 bug、當使用者提到 "TDD"、"red-green"、「紅綠」,或要求寫出能撐過重構的測試時使用。
SkillAFreshness: A★ 3Claude Code +9 - 0.595score
git-release
Luca0x5755
先在終端機預覽繁體中文發布摘要,使用者確認後才更新版本、commit、打 tag、推送並發佈 release 頁面。
SkillAFreshness: A★ 3Claude Code +9 - 0.595score
improve-codebase-architecture
Luca0x5755
勘查程式庫的深化機會,排序後呈上,再對你挑中的那一個進行拷問。
SkillAFreshness: A★ 3Claude Code +9
Signals
- Stars
- 3
- Forks
- 1
- Open issues
- 0
- Last commit (this folder)
- Oct 7, 2026 (21 days ago)
- Last release
- Oct 8, 2026 (21 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/Luca0x5755/luca-skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from Luca0x5755
- 0.601score
code-review
Luca0x5755
沿三條軸審查自某個定點以來的 diff — Standards(有沒有遵守這個 repo 的規範?)、Spec(有沒有做到票要求的事?)與 Reuse(倉庫裡有沒有現成的?)。當使用者要審查一個分支、一個 PR 或進行中的工作時使用,也對應 "code review"、"review this…
SkillAFreshness: A★ 3Claude Code +9 - 0.601score
frontend-spec
Luca0x5755
為有 UI 的規格定前端真相:路由表、四態頁面與 style tokens 寫進前端合訂本(docs/05_frontend_spec.md,章節標能力)、.pen mockup 常駐 docs/mockup/ — 都在 feature branch 上改,與程式碼同 PR 合併。/to-spec…
SkillAFreshness: A★ 3Claude Code +9 - 0.601score
consolidate-docs
Luca0x5755
對專案內凌散的規格文件動一次 brownfield 手術:全量盤點→提案報告(目標樹、映射表、衝突表)→核准後按 capability 分批遷移成 docs/specs/ 真相層,原檔進 archive 不刪。日常維護走管線,不重跑這把刀。
SkillAFreshness: A★ 3Claude Code +9 - 0.598score
browser-evidence
Luca0x5755
把既定案例清單跑成可交付的證據 — 截圖或原始回應、網路紀錄與被測版本 manifest。瀏覽器是預設通道,無 UI 案例走 api/cli,卡人一步由操作者接手;落在 docs/uat/,走 evidence 分支 PR 合回基底分支。
SkillAFreshness: A★ 3Claude Code +9 - 0.598score
setup-skills
Luca0x5755
為這個 repo 設定工程技能所需的組態 — 議題追蹤器、領域文件位置、git 護欄 hook,以及本機議題用的 CI 檢查。初始化跑一次;重跑可換追蹤器或補裝、更新護欄。
SkillAFreshness: A★ 3Claude Code +9 - 0.598score
domain-modeling
Luca0x5755
建立並磨利一個專案的領域語言 — 挑戰模糊術語、拆開超載的詞、把難以回頭的決策寫成 ADR。當討論程式庫術語、直接撰寫或編輯 GLOSSARY.md 或 ADR、命名含糊、或同一個詞在不同地方意思不同時使用。
SkillAFreshness: A★ 3Claude Code +9
Cite this page
diagnosing-bugs skill. Agent Mart. https://agentmart.dev/skills/luca0x5755-diagnosing-bugs (last updated 2026-10-24)