{"name":"write-failure-reproduction","description":"Turns a vague or intermittent failure report into the smallest repeatable reproduction, with expected and actual behaviour, and stops short of editing product code. Use when the report is incomplete, the failure comes and goes, or someone asks for a repro first.","category":"debugging","tags":["debugging","reproduction"],"models":["any"],"proven":false,"passing_families":0,"model_testing":"Not yet model-tested; testing Jan 2027","url":"https://theskillvault.ai/skills/write-failure-reproduction","api_url":"https://theskillvault.ai/api/skills/write-failure-reproduction","raw_url":"https://theskillvault.ai/api/skills/write-failure-reproduction/raw","body":"# Write a failure reproduction\n\nA code change without a repro is a guess. The deliverable here is the smallest case that still fails, written down so someone else can run it.\n\n## When to use\n- The report says \"it broke\" and gives no steps.\n- The failure is flaky, or only happens on one machine.\n- A teammate already named a cause, and that cause is still a guess.\n\n## When not to use\n- You already have a tiny failing test and you want a root-cause method. That is a different checklist.\n- The user wants the patch written now and the failure is already captured.\n\n## Steps\n1. Record the observed failure: the exact message, the route or command, the time, and the smallest input anyone has named. Mark second-hand claims as unverified.\n2. Record only the environment you can see: commit, runtime version, lockfile, operating system, and whether this is local, staging or production. Do not guess config.\n3. Write two lines and nothing else in them. Expected: what should be observable. Actual: what happens, including the status or error. Do not put a suspected cause in either line.\n4. Remove steps, data and services one at a time. When the failure disappears, restore the last piece you removed and note it. Prefer a unit test, a tiny script or a local request over production.\n5. Run the small case twice when that is safe. If it fails only sometimes, write the count (for example 2 of 10) instead of calling it steady.\n6. Stop. Do not edit product code while you still need the evidence. A change now can hide the failure.\n7. Hand over the brief: steps, environment, expected, actual, and how often it failed.\n\n```text\nExpected: POST /login with a known user returns 200 and a session cookie.\nActual:   POST /login returns 500 \"column email missing\" on commit abc123, local, two runs in a row.\n```\n\n## Gotchas\n- Do not paste secrets, session tokens, passwords or personal data into the brief. Redact logs first.\n- Do not reproduce a destructive case against production. Use a fixture or a staging copy you are allowed to break.\n- A long story with a theory at the top is not a repro. Lead with the two observable lines.\n- Intermittent does not mean unreal. Record the rate. Do not hide it by retrying until a green result appears.\n\n## Portability\nWorks for any language or host. A browser failure, an API failure and a CLI failure all use the same brief. If you use a ticket tool, paste the brief into the ticket and keep the failing test next to it.\n\n## Done when\n- Someone else can run the case from the brief alone.\n- Expected and actual are observable, and the case failed on a repeat run or the rate is written down.\n- No product code was changed while the brief was built, and no secret remains in it.\n\n## Example prompt\n\"The checkout button sometimes does nothing. Here is the report and the console text. Write the smallest reproduction and do not change the code yet.\"\n\n---\nAdapted from the reproduction-brief skill in github/awesome-copilot (MIT, Copyright GitHub, Inc.). See LICENSE.txt.","files":["LICENSE.txt"],"license":"MIT","license_name":"MIT License","license_url":"https://opensource.org/license/mit","attribution":"Based on work by GitHub awesome-copilot contributors (bug-reproduction-brief) (Copyright GitHub, Inc., MIT License), https://github.com/github/awesome-copilot/tree/5269f7ea2d6c3a9bfda5ed878b6726cf509121fd/skills/bug-reproduction-brief; adapted by TheSkillVault, https://theskillvault.ai","install":{"claude_code":"curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/write-failure-reproduction/raw' -o ~/'.claude/skills/write-failure-reproduction/SKILL.md' && curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/write-failure-reproduction/files/LICENSE.txt' -o ~/'.claude/skills/write-failure-reproduction/LICENSE.txt'","cursor":"curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/write-failure-reproduction/raw' -o '.cursor/skills/write-failure-reproduction/SKILL.md' && curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/write-failure-reproduction/files/LICENSE.txt' -o '.cursor/skills/write-failure-reproduction/LICENSE.txt'","agents":"curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/write-failure-reproduction/raw' -o '.agents/skills/write-failure-reproduction/SKILL.md' && curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/write-failure-reproduction/files/LICENSE.txt' -o '.agents/skills/write-failure-reproduction/LICENSE.txt'","mcp_url":"https://theskillvault.ai/mcp","cursor_mcp_deeplink":"cursor://anysphere.cursor-deeplink/mcp/install?name=theskillvault&config=eyJ1cmwiOiJodHRwczovL3RoZXNraWxsdmF1bHQuYWkvbWNwIn0%3D","mcp_config":{"mcpServers":{"theskillvault":{"url":"https://theskillvault.ai/mcp"}}}},"bundles":[],"tested_on":[{"family":"chatgpt","name":"ChatGPT","outcome":null,"date":null,"source":null,"counts":false,"stale":false},{"family":"claude","name":"Claude","outcome":null,"date":null,"source":null,"counts":false,"stale":false},{"family":"gemini","name":"Gemini","outcome":null,"date":null,"source":null,"counts":false,"stale":false},{"family":"grok","name":"Grok","outcome":null,"date":null,"source":null,"counts":false,"stale":false},{"family":"llama","name":"Llama","outcome":null,"date":null,"source":null,"counts":false,"stale":false},{"family":"deepseek","name":"DeepSeek","outcome":null,"date":null,"source":null,"counts":false,"stale":false},{"family":"mistral","name":"Mistral","outcome":null,"date":null,"source":null,"counts":false,"stale":false},{"family":"qwen","name":"Qwen","outcome":null,"date":null,"source":null,"counts":false,"stale":false},{"family":"kimi","name":"Kimi K","outcome":null,"date":null,"source":null,"counts":false,"stale":false}],"proven_rule":{"threshold":5,"window_days":365,"computed_at":"2026-11-29T03:42:30.374Z"}}