{"slug": "build-from-existing-an-agent-skill-for-designing-from-work-that-exists", "title": "Build-from-existing – an agent skill for designing from work that exists", "summary": "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.", "body_md": "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.\n\nFrom a terminal:\n\n```\nnpx skills add ChampPhil/build-from-existing\n```\n\nThat 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](https://github.com/ChampPhil/build-from-existing).\n\nTo see the skill without installing it:\n\n```\nnpx skills add ChampPhil/build-from-existing --list\n```\n\nAsk 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.\n\nIt answers from memory. The diagram names libraries, files, and \"how Stripe does it\" that nobody opened. The boxes look specific. They were guessed.\n\n``` php\nflowchart TD\n  ask[\"Task: how should we build this\"]\n  ask --> memory[\"Answer from memory\"]\n  memory --> boxes[\"Boxes named like real systems\"]\n  boxes --> closed[\"No page, repo, or paper was opened\"]\n  closed --> guess[\"The approach is a guess\"]\n```\n\nOr 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.\n\n``` php\nflowchart TD\n  ask[\"Task: how should we build this\"]\n  ask --> opened[\"Opens what other people shipped\"]\n  opened --> agrees[\"Agrees to reuse it\"]\n  agrees --> second[\"Designs a new service, queue, or module beside it\"]\n  second --> decor[\"The survey is decoration\"]\n  decor --> wasted[\"The run is spent on a system the task already had\"]\n```\n\nPeople 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.\n\n``` php\nflowchart LR\n  told[\"Told: reuse what already exists\"]\n  told --> says[\"Says: okay\"]\n  says --> invents[\"Invents a parallel system\"]\n  invents --> bill[\"The run goes to work nobody asked for\"]\n```\n\nIn 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.\n\n```\nflowchart LR\n  people[\"Other people's implementations\"]\n  code[\"This codebase\"]\n  people --> approach[\"One approach for this task\"]\n  code --> approach\n```\n\nThe skill drills this pattern in.\n\n**1. The agent is given a task.**\n\n``` php\nflowchart LR\n  person[\"A person asks for a design or a build\"] --> task[\"The task\"]\n```\n\n**2. The agent opens real pages, real repos, and real papers.**\n\nA search hit is a lead. It counts when the agent opens it.\n\n``` php\nflowchart LR\n  task[\"The task\"] --> pages[\"Pages\"]\n  task --> repos[\"Repositories\"]\n  task --> papers[\"Papers\"]\n```\n\n**3. The agent builds a map of existing implementations in the external world.**\n\nFor each part of the task, the map says how other people solved that part, where those solutions diverge, and what to borrow.\n\n``` php\nflowchart TD\n  task[\"Task parts X, Y, Z\"]\n  task --> x[\"X: who solved it, and the mechanism\"]\n  task --> y[\"Y: who solved it, and the mechanism\"]\n  task --> z[\"Z: who solved it, and the mechanism\"]\n  x --> borrow[\"What to borrow\"]\n  y --> borrow\n  z --> borrow\n```\n\n**4. The agent looks inward, into the codebase.**\n\nIt writes a structured list. Each row is a part of the codebase, what it does, and how to reuse it.\n\n``` php\nflowchart LR\n  repo[\"This repository\"] --> list[\"Part / what it does / how to reuse it\"]\n```\n\n| Part of the codebase | What it does | How to reuse it | \n|---|---|---|\n| The file or system that already touches this job | What the opened code actually does | Call it, or extend it | \n\n**5. The agent composes the external-world research with the internal research into a diagram-heavy task approach.**\n\nThe 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.\n\n```\nflowchart TD\n  outside[\"Outside map: how other people solved X, Y, Z\"]\n  inside[\"Inside list: part, what it does, how to reuse it\"]\n  outside --> one[\"One diagram of the approach\"]\n  inside --> one\n  one --> cited[\"Each box cites a page or a path\"]\n```\n\nA 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.\n\n``` php\nflowchart TD\n  box[\"A box in the final diagram\"]\n  box --> fromOutside[\"Cites a page that was opened\"]\n  box --> fromInside[\"Cites a path that was opened\"]\n  box --> marked[\"Marked new, beside the piece that cannot do the job\"]\n```\n\nThe agent stops when that diagram is done. Building starts when the person asks for it.\n\n```\nbuild-from-existing/\n├── SKILL.md\n├── README.md\n├── references/\n│   ├── survey.md\n│   ├── diagrams.md\n│   └── new-box.md\n└── examples/\n    ├── pass.md\n    └── fail.md\n```\n\n`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.", "url": "https://wpnews.pro/news/build-from-existing-an-agent-skill-for-designing-from-work-that-exists", "canonical_source": "https://github.com/ChampPhil/build-from-existing", "published_at": "2026-11-28 20:00:53+00:00", "updated_at": "2026-11-28 20:14:17.181921+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "developer-tools"], "entities": ["ChampPhil", "build-from-existing", "Cursor", "Claude Code", "Codex", "GitHub"], "also_reported_by": [], "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.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/build-from-existing-an-agent-skill-for-designing-from-work-that-exists", "markdown": "https://wpnews.pro/news/build-from-existing-an-agent-skill-for-designing-from-work-that-exists.md", "text": "https://wpnews.pro/news/build-from-existing-an-agent-skill-for-designing-from-work-that-exists.txt", "jsonld": "https://wpnews.pro/news/build-from-existing-an-agent-skill-for-designing-from-work-that-exists.jsonld"}}