Documentation v1.0.0

bugfix-without-test

A fix is applied without a reproduction test, leaving no proof the bug is fixed and no regression coverage.

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

技能说明

A fix is applied without a reproduction test, leaving no proof the bug is fixed and no regression coverage.

使用场景

Fixing a bug without a test means (a) you don't know the fix actually works, and (b) there's nothing to stop the bug from coming back next refactor. A fix without a regression test is provisional at best.

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

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

技能文件内容

4 个文件 · 14 kB
SKILL.md text/markdown
---
name: bugfix-without-test
description: A fix is applied without a reproduction test, leaving no proof the bug is fixed and no regression coverage.
emoji: 🧪
metadata:
  clawdis:
    os: [macos, linux, windows]
---

# bugfix-without-test

Fixing a bug without a test means (a) you don't know the fix actually works, and (b) there's nothing to stop the bug from coming back next refactor. A fix without a regression test is provisional at best.

## Symptoms

- Diff contains code changes but no test changes.
- Existing tests still pass, but none of them would have failed under the original bug.
- PR description describes a bug scenario that no test exercises.
- The fix is a one-liner and no one will remember why it exists six months later.

## What to do

- Reproduce the bug as a failing test first. Run it. Confirm it fails for the right reason.
- Apply the fix. Run the test again. Confirm it passes.
- Keep the test in the suite. It becomes the regression guard.
- If the bug is hard to test (timing, environment, flaky), say so explicitly and describe what manual verification was done. Don't silently skip.
- For bugs discovered in production, add the test at the lowest level that reproduces the issue — unit if possible, integration if not.

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