cd /news/ai-agents/build-from-existing-an-agent-skill-f… · home › topics › ai-agents › article
[ARTICLE · art-177867] src=github.com ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

Build-from-existing – an agent skill for designing from work that exists

A new coding-agent skill called build-from-existing, published by developer ChampPhil and installable via `npx skills add ChampPhil/build-from-existing`, instructs agents such as Cursor, Claude Code and Codex to design tasks from implementations that already exist rather than answering from memory or inventing parallel systems. The skill requires the agent to open real pages, repositories and papers, map how others solved each part of a task, list reusable parts of the current codebase, and present the combined approach as diagrams. It targets a failure mode the author says users report constantly: agents agree to reuse existing pieces, then build new infrastructure beside them.

key takeaway

Install the build-from-existing skill with `npx skills add ChampPhil/build-from-existing` to make coding agents open real repos, papers and pages and list reusable parts of the existing codebase before adding new infrastructure.

read5 min views6 publishedNov 28, 2026
Build-from-existing – an agent skill for designing from work that exists
Image: Michielbdejong (auto-discovered)

A skill for coding agents. It teaches the agent to design a task from work that already exists, and to show that design as diagrams.

From a terminal:

npx skills add ChampPhil/build-from-existing

That copies the skill onto the machine and links it into the agents already installed there, including Cursor, Claude Code, and Codex. The source repo is ChampPhil/build-from-existing.

To see the skill without installing it:

npx skills add ChampPhil/build-from-existing --list

Ask a coding agent how to build something and it does one of two things. Both spend the run on a design that was never checked against the world.

It answers from memory. The diagram names libraries, files, and "how Stripe does it" that nobody opened. The boxes look specific. They were guessed.

flowchart TD
  ask["Task: how should we build this"]
  ask --> memory["Answer from memory"]
  memory --> boxes["Boxes named like real systems"]
  boxes --> closed["No page, repo, or paper was opened"]
  closed --> guess["The approach is a guess"]

Or it does open real work, agrees to reuse it, and then designs a second system beside it. The survey sits in the answer as decoration. The design is new.

flowchart TD
  ask["Task: how should we build this"]
  ask --> opened["Opens what other people shipped"]
  opened --> agrees["Agrees to reuse it"]
  agrees --> second["Designs a new service, queue, or module beside it"]
  second --> decor["The survey is decoration"]
  decor --> wasted["The run is spent on a system the task already had"]

People describe the second one constantly. The agent is told to reuse the pieces that already exist. It says okay. Then it invents new infrastructure. A vague line that says "do not overengineer" does not catch this. The agent has to show the existing piece before it is allowed to add a new one.

flowchart LR
  told["Told: reuse what already exists"]
  told --> says["Says: okay"]
  says --> invents["Invents a parallel system"]
  invents --> bill["The run goes to work nobody asked for"]

In simple terms, this skill teaches coding agents to build from existing. Existing means two things: borrow from implementations that other people have done for similar problems, and reuse existing patterns in the codebase, expanding those systems.

flowchart LR
  people["Other people's implementations"]
  code["This codebase"]
  people --> approach["One approach for this task"]
  code --> approach

The skill drills this pattern in.

1. The agent is given a task.

flowchart LR
  person["A person asks for a design or a build"] --> task["The task"]

2. The agent opens real pages, real repos, and real papers.

A search hit is a lead. It counts when the agent opens it.

flowchart LR
  task["The task"] --> pages["Pages"]
  task --> repos["Repositories"]
  task --> papers["Papers"]

3. The agent builds a map of existing implementations in the external world.

For each part of the task, the map says how other people solved that part, where those solutions diverge, and what to borrow.

flowchart TD
  task["Task parts X, Y, Z"]
  task --> x["X: who solved it, and the mechanism"]
  task --> y["Y: who solved it, and the mechanism"]
  task --> z["Z: who solved it, and the mechanism"]
  x --> borrow["What to borrow"]
  y --> borrow
  z --> borrow

4. The agent looks inward, into the codebase.

It writes a structured list. Each row is a part of the codebase, what it does, and how to reuse it.

flowchart LR
  repo["This repository"] --> list["Part / what it does / how to reuse it"]
Part of the codebase What it does How to reuse it
The file or system that already touches this job What the opened code actually does Call it, or extend it

5. The agent composes the external-world research with the internal research into a diagram-heavy task approach.

The last picture is one flow. A box in it comes from the outside map, with the page it came from, or from the inside list, with the path it came from.

flowchart TD
  outside["Outside map: how other people solved X, Y, Z"]
  inside["Inside list: part, what it does, how to reuse it"]
  outside --> one["One diagram of the approach"]
  inside --> one
  one --> cited["Each box cites a page or a path"]

A box that comes from neither map is marked new. It sits next to the existing piece that was checked, and the label says the one job that piece cannot do. A new module, service, or schema without that mark is not part of the answer.

flowchart TD
  box["A box in the final diagram"]
  box --> fromOutside["Cites a page that was opened"]
  box --> fromInside["Cites a path that was opened"]
  box --> marked["Marked new, beside the piece that cannot do the job"]

The agent stops when that diagram is done. Building starts when the person asks for it.

build-from-existing/
├── SKILL.md
├── README.md
├── references/
│   ├── survey.md
│   ├── diagrams.md
│   └── new-box.md
└── examples/
    ├── pass.md
    └── fail.md

SKILL.md is the procedure the agent loads. references/survey.md is what counts as having looked. references/diagrams.md is what each picture must show. references/new-box.md is the test a new box has to pass. examples/pass.md is one finished answer. examples/fail.md is a diagram from memory, and a second system drawn beside code that already does the job.

── more in #ai-agents 4 stories · sorted by recency
── more on @champphil 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/build-from-existing-…] indexed:0 read:5min 2026-11-28 · —