{
 "schema_version": 1,
 "generated": "2026-10-24",
 "id": "ai-eastern-reuse-before-build--add-retry-without-duplicate-helpers",
 "repo": "Ai-Eastern/reuse-before-build",
 "repo_url": "https://github.com/Ai-Eastern/reuse-before-build",
 "repo_slug": "ai-eastern-reuse-before-build",
 "title": "Add retry logic without duplicating existing helpers",
 "page_title": "How to add retry logic without duplicating existing helpers with Reuse Before Build",
 "summary": "Have Claude Code check existing code, tests, and decisions before it adds retry support.",
 "who": "A backend developer on Claude Code who needs retry behavior in an existing HTTP client and wants the agent to reuse what the project already has.",
 "problem": "Coding agents often write a helper next to one that already exists, which leaves two versions to maintain.",
 "outcome": "The agent names the files it read, states what can be reused and what needs verification, and proposes the smallest next step before editing.",
 "steps": [
  "Clone the repo with `git clone --depth 1 https://github.com/Ai-Eastern/reuse-before-build.git /tmp/reuse-before-build`",
  "Install the skill for all projects with `cp -R /tmp/reuse-before-build/skills/reuse-before-build ~/.claude/skills/`",
  "Open your project in Claude Code and send the request: use Reuse Before Build to add retry support to the existing HTTP client",
  "Read the list of files the agent checked and confirm it looked at existing code and tests first",
  "Approve the smallest next step only after the reuse decision is stated"
 ],
 "agent_prompt": "Use the reuse-before-build skill in this repo to add retry support to the existing HTTP client in <project-path>. Check existing code, tests, and relevant decisions first, then report what to Take, Borrow, or Build before editing. Verify that the report cites the files it actually read.",
 "agents": [
  "claude-code"
 ],
 "difficulty": "Intermediate",
 "time": "15 minutes",
 "basis": "readme",
 "caveat": "The README says behavior depends on the host and model, so the reuse check is an instruction workflow and not enforced by tooling.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "python",
 "requirements": [
  "A coding agent that supports Agent Skills, such as Claude Code or Codex",
  "Git installed for the Claude Code path",
  "Node.js 22.20.0 or later for the skills CLI path",
  "A local project to run the skill against"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/ai-eastern-reuse-before-build/add-retry-without-duplicate-helpers/",
 "md": "https://dedupedai.com/use-cases/ai-eastern-reuse-before-build/add-retry-without-duplicate-helpers/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/ai-eastern-reuse-before-build--add-retry-without-duplicate-helpers.json",
 "api_version": "v1"
}
