Individual skill

bug-reproduce

Turn a known bug into a tight, red-capable reproducer, then prove the reproducer locks that bug with a reversal negative control (reintroduce the bug → reproducer must go red again). Use at the start of a bugfix, before theorizing about the cause.

sdk/apc/skills/bug-reproduce/SKILL.md

Read pinned source

Source commit f83b859a173802a73d978197e92328ab2bf57a6e

What was checked

Matches the observed repository HEAD
Yes
Scanner rules are current
No
Repository scan complete
No
Skill scan complete
No
Observed behavior
Not checked yet
Last checked
Nov 3, 2026

These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.

Install this skill

Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.

An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.

Repository context

Repository stars (not skill ratings)
1,364
Repository last updated
Oct 22, 2026
License
MIT

Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.

Files and excerpt

File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.

Browse files
Read excerpt

# bug-reproduce

把一个**已知 bug** 变成**紧、可变红**的复现器(失败测试 / 脚本),然后用**反转负控**证明这个复现器真的锁住了那个 bug——**不是恰好绿着**(`apc/05` §2 S1 · `apc/12` bug-reproduce 行;纪律移植自 built-in `diagnosing-bugs` 的 Phase 1 复现 loop)。

**什么时候用**:一个 bugfix task 开工的**第一步**——在读代码建假设之前。`diagnosing-bugs` 的铁律:没有一个能对**这个** bug 变红的信号,再多盯代码也没用。本 skill 只补 `diagnosing-bugs` 缺的那一环:**负控——把 fix 撤掉/把 bug 注入回去,复现器必须变红**。

铁律:一个复现器只有走完 **RED → GREEN → 反转 RED** 才算数。**只到 GREEN 不算**——一个无论 bug 在不在都绿的"复现器"是开卷考试,不是复现(`apc/12` §0 负控纪律)。

## 复现器四判据(照 diagnosing-bugs Phase 1 完成标准)

一个复现器必须是:

| 判据 | 含义 |
| --- | --- |