Documentation v1.0.0

bugfix-without-diagnosis

A fix is proposed without first identifying the root cause; the symptom is masked rather than resolved.

mvogt99 更新于 2026-04-26 1 浏览
下载 SKILL

技能说明

A fix is proposed without first identifying the root cause; the symptom is masked rather than resolved.

使用场景

When a fix goes in without understanding why the bug occurred, the symptom disappears but the cause lingers. It will return under a different shape, or the "fix" will mask a more serious problem upstream.

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

帮我下载并安装这个SKILL:https://skillhub.cstcloud.cn/download/bugfix-without-diagnosis
  1. 点击上方「下载 SKILL」按钮,获取技能压缩包。
  2. 将压缩包解压到你的 Agent 技能目录。
  3. 重启客户端后即可在技能列表中选择该技能。

技能文件内容

4 个文件 · 14 kB
SKILL.md text/markdown
---
name: bugfix-without-diagnosis
description: A fix is proposed without first identifying the root cause; the symptom is masked rather than resolved.
emoji: 🩹
metadata:
  clawdis:
    os: [macos, linux, windows]
---

# bugfix-without-diagnosis

When a fix goes in without understanding why the bug occurred, the symptom disappears but the cause lingers. It will return under a different shape, or the "fix" will mask a more serious problem upstream.

## Symptoms

- Fix adds a null check without explaining why the value was null.
- Retry loop wrapped around a flaky call with no investigation into why it was failing.
- Try/except swallowing a specific exception without stating what conditions produce it.
- Condition tweaked (`>` → `>=`) to make a test pass, with no explanation of the underlying off-by-one.
- PR description says "fix X" with no "because Y".

## What to do

- Before proposing a fix, write one sentence stating the root cause. If you can't, you don't understand the bug well enough to fix it.
- Explain how the symptom follows from the cause — the chain of events from "bad thing happened" to "user saw this".
- Confirm the fix addresses the cause, not just the symptom. A null check is valid only if you know why the value was null and concluded that null is acceptable.
- Where the cause is upstream, fix it upstream. Only patch downstream if upstream is genuinely out of reach, and say so.
- Leave a comment linking the symptom to the cause so future readers don't misread the fix as superficial.

文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。