缺陷复现与修复证据核对

原名:red-green-proof

记录修复前失败、修复后通过和撤去修复后的验证,判断测试是否有效。

中文 Skills 技能说明

测试通过了,不代表它真的测到了问题。提供缺陷表现、复现路径、目标文件和测试环境,技能要求记录失败、修复后通过,以及在隔离副本暂撤本次修复后的失败证据,再恢复正确修复并复测。包内工具帮助整理记录,不会证明尚未运行的测试。原作者 RooAGI 的版权与署名保留;没有可运行条件时注明结构性或模型测试。只改本次文件,不回退他人工作,不在生产撤修复,提交和发布仍需批准。

上游能力依据

上游原始适用说明:Turns a suspected bug into a proven one. Verify the cause against reality before claiming it, write a test that FAILS on the current code, apply the fix, watch it pass — then revert the fix and confirm the test goes red again, because a test that passes both ways proves nothing. Invoked bare after a debugging conversation, it takes the target from context rather than asking. Use when fixing a bug, investigating an incident, hardening a flaky area, or when asked to "add tests that reveal the bug". Triggers on "/red-green-proof", "prove the bug", "red-green", "make the test fail first", "is that test load-bearing", "reveal the bug with a test".

上游 SKILL.md 主要章节(保留原文标题):

使用边界

先复现问题并固定测试范围,再生成或执行测试。测试通过只能证明已覆盖的场景,不能代替生产环境验收。

作者、翻译与许可证

原作者
RooAGI、Alireza Rezvani 与 claude-skills contributors
中文翻译
CEOFans翻译
许可证
MIT
上游来源
https://github.com/alirezarezvani/claude-skills/tree/27cfcd0fb0a41f60adffcbd5271fdf8839f86ed2/engineering-team/skills/red-green-proof

适用范围

平台:linux、macos、windows;标签:测试与质量、缺陷复现与修复证据核对、开源技能

安全提示

基础静态扫描不等于绝对安全。技能可能调用命令、浏览器、云服务或本地文件,请在最小权限环境中使用,高风险操作必须人工确认。

如发现侵权、许可证或安全问题,可在本页前台提交投诉,管理员复核后可立即下架。