DEDUPED Hot AI repos, turned into use cases Get the Monday 5

How to add retry logic without duplicating existing helpers with Reuse Before Build

Have Claude Code check existing code, tests, and decisions before it adds retry support.

Who it is forA 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.

The problemCoding agents often write a helper next to one that already exists, which leaves two versions to maintain.

The outcomeThe agent names the files it read, states what can be reused and what needs verification, and proposes the smallest next step before editing.

What you need first

  • 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

Steps

  1. Clone the repo with git clone --depth 1 https://github.com/Ai-Eastern/reuse-before-build.git /tmp/reuse-before-build
  2. Install the skill for all projects with cp -R /tmp/reuse-before-build/skills/reuse-before-build ~/.claude/skills/
  3. Open your project in Claude Code and send the request: use Reuse Before Build to add retry support to the existing HTTP client
  4. Read the list of files the agent checked and confirm it looked at existing code and tests first
  5. Approve the smallest next step only after the reuse decision is stated

Prompt for your agent

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.

Caveat. The README says behavior depends on the host and model, so the reuse check is an instruction workflow and not enforced by tooling.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for Ai-Eastern/reuse-before-build and "Add retry logic without duplicating existing helpers"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer