prove-it-bugfix

仓库创建 2026年4月15日最近提交 21 天前SkillHot 收录 21 天前
▸ 精选理由

促进可验证的补丁与回归测试,适合工程团队。

这个 Skill 做什么

遵循复现-写失败测试-修复-验证的缺陷修复流程。

按复现—写失败测试—修复—验证的流程修 bug:先重现问题,再写最小的失败测试(red),修复代码后用同一测试证明修好。每当任务是“修某个 bug”或 Planner 标记为 bug reproduction 时使用。核心是先有失败的测试再改码,能防止回归并让修复可被自动化验证,方便接入 CI。

▸ 展开 SKILL.md 英文原文

DevSquad-style bug-fix flow — reproduce, write a failing test, fix, verify. Use this whenever the squad task is "fix bug X" or the Planner flags a step as a bug repro.

开发编程复现测试TDD缺陷修复通用
0
Stars
0
Forks
40
仓库内 Skill
+0
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/Codebrew-company/CodebrewRouter/master/.agents/skills/prove-it-bugfix/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/Codebrew-company/CodebrewRouter/master/.agents/skills/prove-it-bugfix/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# Prove-It — bug-fix flow

When the task is to fix a bug, the squad proves the bug before the fix, then proves the fix with the same test.

## Flow

1. **Reproduce.** Read the failing code path. Reconstruct the exact inputs that trigger the failure.
2. **Red.** Tester writes the smallest possible failing test that captures the bug. Test MUST fail against the pre-fix baseline.
3. **Root cause.** Coder identifies the compiler / runtime / logic reason the test fails.
4. **Green.** Coder makes the minimal change that flips the test from red to green. No scope creep.
5. **Gate.**
   ```powershell
   dotnet build --no-incremental -warnaserror
   dotnet test --no-build --collect:"XPlat Code Coverag
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有