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
- 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
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
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer