{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "spielewoy-autoprompt-skill--fix-bug-with-regression-test-claude-code",
 "repo": "Spielewoy/autoprompt-skill",
 "repo_url": "https://github.com/Spielewoy/autoprompt-skill",
 "repo_slug": "spielewoy-autoprompt-skill",
 "title": "Fix a bug and add a regression test with Claude Code",
 "page_title": "How to fix a bug and add a regression test with Claude Code with Autoprompt Skill",
 "summary": "Send a bug fix goal to Claude Code through Autoprompt and get a fix plus a regression test.",
 "who": "A developer with a reproducible bug in a project that uses Claude Code, who wants the fix checked and a test added before merging.",
 "problem": "A single coding-agent pass can miss edge cases or leave a fix untested, so the developer has to review and rerun it by hand.",
 "outcome": "Autoprompt runs its review, fix, and recheck loop on the bug and returns a change with a regression test.",
 "steps": [
  "`npm install -g https://github.com/Spielewoy/autoprompt-skill/releases/download/v2.1.0/autoprompt-skill-2.1.0.tgz`",
  "`autoprompt`, then choose Claude Code, confirm its path, and install",
  "`autoprompt doctor claude --strict` (inferred, check the README)",
  "`autoprompt activate claude --target /absolute/project -- \"fix the registration race and add a regression test\"` (inferred, check the README)",
  "Replace the quoted goal with your own bug, constraints, and how to check success before running."
 ],
 "agent_prompt": "Using the Spielewoy/autoprompt-skill repo, run `autoprompt activate claude --target <absolute project path> -- \"fix the registration race and add a regression test\"`. Expected output: a code change for the bug and a new regression test. Verify that the project's test command runs and the regression test passes.",
 "agents": [
  "claude-code"
 ],
 "difficulty": "Intermediate",
 "time": "45 minutes",
 "basis": "readme",
 "caveat": "The README reports measured results only for OpenCode in version 1 benchmarks, and time and token costs are planning estimates of about 3x time and 2x tokens.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "javascript",
 "requirements": [
  "Node.js 20+",
  "Python 3.11+ available as python3 or python, with PyYAML",
  "Bash 4.3+ on macOS or Linux, or a native Windows setup as described in the README",
  "At least one supported coding agent installed, such as Claude Code or Codex",
  "A local project folder to work on"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "remote-script",
   "notice": "The install command downloads a package from a GitHub Releases URL, so confirm the source before running it."
  }
 ],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/spielewoy-autoprompt-skill/fix-bug-with-regression-test-claude-code/",
 "md": "https://dedupedai.com/use-cases/spielewoy-autoprompt-skill/fix-bug-with-regression-test-claude-code/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/spielewoy-autoprompt-skill--fix-bug-with-regression-test-claude-code.json",
 "api_version": "v1"
}
