# Image replicator

> Image replicator is an open-source agent skill for design and media. Guides an agent through a render, score and iterate loop for matching a reference photo. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/w1ne/kernelCAD-web/tree/develop/src/agent/skills/kernelcad-from-reference/image-replicator
- **Repository:** https://github.com/w1ne/kernelcad-web
- **GitHub stars:** 37
- **License:** MIT
- **Skill name:** image-replicator
- **Collection:** https://github.com/w1ne/kernelCAD-web
- **Categories:** [design and media](https://ai-powered.com/categories/design-and-media)
- **Listing updated:** 2026-12-03

## About

This sub-skill covers the detail pass of reconstructing a CAD model from a reference photo. Each iteration renders the model from several canonical views, runs the kernelCAD scorer against the reference, and uses the per-gate numbers to pick the weakest area to fix next. The agent is told to make one targeted geometry or material change per pass and to re-score after each change rather than batching edits.

The skill also sets guardrails on how the scores are used. Silhouette and SSIM values act as selectors between candidates and as checks that the object is the right one, not as targets to maximize. Boolean fidelity checks, such as whether distinctive openings are present, are meant to be satisfied before pixel similarity counts, and the loop stops at a fixed iteration cap with a report of any gates still below threshold.

It expects a .kcad.ts model with a clean blockout, a local reference image path, and the kernelcad command-line tool, with the optional harness run through npx ts-node in a TypeScript project.

## When your agent uses it

> The render→score→iterate loop for reference-photo reconstruction. How to invoke kernelcad render, run scoreAgainstReference, interpret per-gate numbers, and decide which gate to chase next.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/w1ne/kernelCAD-web/tree/HEAD/src/agent/skills/kernelcad-from-reference/image-replicator)
- [License: MIT](https://github.com/w1ne/kernelCAD-web/tree/HEAD/src/agent/skills/kernelcad-from-reference/image-replicator)

## Features

- **Multi-view render step:** Renders the model from front, right, top and isometric views at a fixed resolution and requires the agent to inspect the resulting image.
- **Per-gate scoring:** Runs the scorer against a reference image and reads silhouette, SSIM, perceptual hash and overall values as JSON.
- **Gate diagnosis table:** Maps weak silhouette, SSIM or perceptual-hash results to likely causes and the fixes to try first.
- **One change per pass:** Limits each iteration to a single primary edit, chosen from a priority list, so score changes can be attributed.
- **Anti-gaming policy:** Treats pixel metrics as selectors rather than goals and requires distinctive features to be present before scores count.
- **Stop conditions:** Defines when to continue, when to stop on passing gates, and an eight-pass cap with a report of remaining failures.

## Good for

- Refine a CAD model so its silhouette matches a product photo
- Find out which scoring gate is weakest after a render and fix it
- Apply material or depth changes to a blockout until the scores clear threshold
- Run an iteration cap on a reconstruction and report which gates still fail

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/image-replicator` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/w1ne/kernelCAD-web.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/image-replicator &&
cp -R "$tmp/src/agent/skills/kernelcad-from-reference/image-replicator" ~/.claude/skills/image-replicator &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/image-replicator` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/image-replicator` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/w1ne/kernelCAD-web.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/image-replicator &&
cp -R "$tmp/src/agent/skills/kernelcad-from-reference/image-replicator" ~/.agents/skills/image-replicator &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/image-replicator` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/image-replicator` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/w1ne/kernelCAD-web.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/image-replicator &&
cp -R "$tmp/src/agent/skills/kernelcad-from-reference/image-replicator" ~/.cursor/skills/image-replicator &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/image-replicator` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/w1ne/kernelCAD-web.git --path src/agent/skills/kernelcad-from-reference/image-replicator
```

Or copy the folder to `~/.gemini/skills/image-replicator` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/image-replicator`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/w1ne/kernelCAD-web.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/image-replicator &&
cp -R "$tmp/src/agent/skills/kernelcad-from-reference/image-replicator" ~/.copilot/skills/image-replicator &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/image-replicator` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/w1ne/kernelCAD-web.git
```

Then copy `kernelCAD-web/src/agent/skills/kernelcad-from-reference/image-replicator` into your agent's skills folder as `image-replicator`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill need before Image replicator starts?

It expects a .kcad.ts file with a clean blockout, the path to the reference photo, and the latest scorer output, or a note that the scorer has not run yet.

### Which commands does Image replicator call?

It calls kernelcad render with four views at 1920 by 1080, kernelcad score with the reference and a front view in JSON mode, and optionally a harness.ts file run with npx ts-node.

### When does the iteration loop stop?

It stops when all required gates meet their thresholds, or when the eight-pass cap is reached, in which case it reports the gates still below threshold.

### Does Image replicator change the scoring thresholds?

No. The skill tells the agent never to loosen a gate to pass; if a threshold looks wrong it should surface the evidence to the user.

### How do I install Image replicator in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/image-replicator to use it in all your projects, or to .claude/skills/image-replicator in one project.

### Does Image replicator run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Image replicator?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Image replicator?

The closest alternatives to Image replicator are Blockout model, Kernelcad studio paint, Shapeitup, Photoreal stills and Critic loop.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Blockout model](https://ai-powered.com/skills/blockout-model): Blockout model is an open-source agent skill for design and media.
- [Kernelcad studio paint](https://ai-powered.com/skills/kernelcad-studio-paint): Kernelcad studio paint is an open-source agent skill for design and media.
- [Shapeitup](https://ai-powered.com/skills/shapeitup): Shapeitup is an open-source agent skill for design and media.
- [Photoreal stills](https://ai-powered.com/skills/photoreal-stills): Photoreal stills is an open-source agent skill for design and media.
- [Critic loop](https://ai-powered.com/skills/critic-loop-zane-0x5a): Critic loop is an open-source agent skill for design and media.
- [Product photography](https://ai-powered.com/skills/product-photography): Product photography is an open-source agent skill for design and media.
- [Character consistency](https://ai-powered.com/skills/character-consistency): Character consistency is an open-source agent skill for design and media.
- [Controlled generation](https://ai-powered.com/skills/controlled-generation): Controlled generation is an open-source agent skill for design and media.

---
Source: https://ai-powered.com/skills/image-replicator
