# AI use cases for Reuse Before Build (Ai-Eastern/reuse-before-build)

Repo: [Ai-Eastern/reuse-before-build](https://github.com/Ai-Eastern/reuse-before-build) | Use cases: 3 | Page: https://dedupedai.com/use-cases/ai-eastern-reuse-before-build/

reuse-before-build is an Agent Skill that makes coding agents search existing code, tests, and libraries before writing new ones, then decide to Take, Borrow, or Build.

This file holds every use case of this repo. Each one starts with a "## " heading and ends with its URL.

- Add retry logic without duplicating existing helpers: https://dedupedai.com/use-cases/ai-eastern-reuse-before-build/add-retry-without-duplicate-helpers/
- Install the skill into a Codex project with one command: https://dedupedai.com/use-cases/ai-eastern-reuse-before-build/install-skill-into-codex-project/
- Plan webhook delivery architecture before writing code: https://dedupedai.com/use-cases/ai-eastern-reuse-before-build/plan-webhook-delivery-architecture/

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

Repo: [Ai-Eastern/reuse-before-build](https://github.com/Ai-Eastern/reuse-before-build) | Difficulty: Intermediate | Time: 15 minutes | Basis: From the README

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

**Who it is for:** 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.

**The problem:** Coding agents often write a helper next to one that already exists, which leaves two versions to maintain.

**The 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

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 to paste into your agent

```text
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.

Disclaimer: Third-party repos we don't own or vouch for. AI-generated use cases can be wrong: review everything and run at your own risk. Full text: https://dedupedai.com/disclaimer/

URL: https://dedupedai.com/use-cases/ai-eastern-reuse-before-build/add-retry-without-duplicate-helpers/

## How to install the skill into a Codex project with one command with Reuse Before Build

Repo: [Ai-Eastern/reuse-before-build](https://github.com/Ai-Eastern/reuse-before-build) | Difficulty: Intermediate | Time: 15 minutes | Basis: From the README

Use the skills CLI to add Reuse Before Build to a project for Codex or another agent.

**Who it is for:** A developer using Codex or another Agent Skills agent who wants the skill scoped to one project without a manual copy.

**The problem:** Setting up a skill by hand means finding the right folder for each agent, which is slow to repeat across projects.

**The outcome:** The skill is copied into the project for the chosen agent, and the next request can invoke it by name.

### Steps

1. Confirm Node.js is version 22.20.0 or later
2. Run in your project folder: `npx skills@1.7.0 add Ai-Eastern/reuse-before-build --skill reuse-before-build --agent codex --copy -y`
3. Replace `codex` with `claude-code` or another agent name if you use a different agent
4. Open the project in your agent and mention Reuse Before Build in the first request
5. Check that the agent cites the files or sources it read before it chooses a decision

### Prompt to paste into your agent

```text
In <project-path>, use the reuse-before-build skill to add retry support to the existing HTTP client. Check existing code, tests, and relevant decisions first, then show what can be reused, what needs verification, and the smallest next step before editing. Verify the answer names the files it read.
```

### Caveat

The README lists paths for Cursor, Gemini CLI, and other agents in a compatibility guide, so setup for those hosts may differ from the Codex command shown.

Disclaimer: Third-party repos we don't own or vouch for. AI-generated use cases can be wrong: review everything and run at your own risk. Full text: https://dedupedai.com/disclaimer/

URL: https://dedupedai.com/use-cases/ai-eastern-reuse-before-build/install-skill-into-codex-project/

## How to plan webhook delivery architecture before writing code with Reuse Before Build

Repo: [Ai-Eastern/reuse-before-build](https://github.com/Ai-Eastern/reuse-before-build) | Difficulty: Advanced | Time: 30 minutes | Basis: From the README

Get a Take, Borrow, or Build design for durable webhook delivery without installing anything.

**Who it is for:** A software architect starting a new project who needs to choose between existing repositories and custom components for webhook delivery.

**The problem:** Architecture choices often start from a library someone remembers, without checking existing code or the source and license of candidates.

**The outcome:** The agent returns a design that shows what to Take, Borrow, or Build and how that changes the architecture, with no dependencies installed and no code written.

### Steps

1. Install the skill with the Claude Code or skills CLI steps from this guide
2. Open a new project folder in your agent
3. Send the architecture request that asks for design only and says not to install dependencies or implement code
4. Review which GitHub and official repositories the agent checked and which gaps it found
5. Ask the agent to label any candidate it could not read as unverified before you adopt it

### Prompt to paste into your agent

```text
Use the reuse-before-build skill to design durable webhook delivery for the new project in <project-path>. Check GitHub and official repositories where existing assets leave a gap, and show what to Take, Borrow, or Build. Keep this to design and verify that no dependencies are installed and no code is written.
```

### Caveat

The README says external research needs the agent's existing network access and that evidence checks do not replace security or legal review.

Disclaimer: Third-party repos we don't own or vouch for. AI-generated use cases can be wrong: review everything and run at your own risk. Full text: https://dedupedai.com/disclaimer/

URL: https://dedupedai.com/use-cases/ai-eastern-reuse-before-build/plan-webhook-delivery-architecture/
