{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "joetawil7-first-pass--fix-bug-across-the-class",
 "repo": "joetawil7/first-pass",
 "repo_url": "https://github.com/joetawil7/first-pass",
 "repo_slug": "joetawil7-first-pass",
 "title": "Fix a bug and every same-pattern copy in one pass",
 "page_title": "How to fix a bug and every same-pattern copy in one pass with First Pass",
 "summary": "Reproduce a bug, find the same pattern across the task's scope, and add a check that stops it returning.",
 "who": "A developer who has found one bug and suspects the same mistake exists in other code paths that touch the same data.",
 "problem": "Patching one spot leaves the same pattern in neighboring code, and the lesson is lost in the next session.",
 "outcome": "A reproduction, the bug class named, every same-pattern hit in scope fixed or recorded, and a new check that catches the class.",
 "steps": [
  "Complete the install and setup steps from `/plugin install first-pass@first-pass` and `/first-pass:setup-first-pass`.",
  "Run `/first-pass:fix-the-class` followed by a short description of the bug and how to reproduce it. (inferred, check the README)",
  "Read the list of same-pattern hits the agent found in the task's scope.",
  "Check that the new helper, constraint or test fails on the old code before you accept the fix."
 ],
 "agent_prompt": "In the <repo-name> repo, use fix-the-class on this bug: <bug-description>. Expected output: a reproduction, the bug class name, every same-pattern hit in the task's scope with its fix or record, and the check added. Verify that the new check fails against the code before the fix.",
 "agents": [
  "claude-code"
 ],
 "difficulty": "Intermediate",
 "time": "45 minutes",
 "basis": "readme",
 "caveat": "The search covers the task's scope only, so use hulk when you want the whole codebase searched, and the README says the scope is set from your prompt and the code around it.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "javascript",
 "requirements": [
  "Claude Code to install the plugin (Cursor and Codex get the rules and skills, but hooks are Claude Code only)",
  "A folder that holds your repos, where you start your sessions",
  "Git repos with a branch to review, for the review use case (GitHub access is needed to read pull requests, inferred from the README)"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/joetawil7-first-pass/fix-bug-across-the-class/",
 "md": "https://dedupedai.com/use-cases/joetawil7-first-pass/fix-bug-across-the-class/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/joetawil7-first-pass--fix-bug-across-the-class.json",
 "api_version": "v1"
}
