
Image replicator
Guides an agent through a render, score and iterate loop for matching a reference photo
Image replicator is an open-source agent skill for design and media. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.
- Scripts
- None
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 37
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Image replicator
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.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 1 file (6 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
Copy the skill folder to ~/.claude/skills/image-replicator to use it in all your projects:
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.
Copy the skill folder to ~/.agents/skills/image-replicator to use it in every repository:
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.
Copy the skill folder to ~/.cursor/skills/image-replicator to use it in every project:
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.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/w1ne/kernelCAD-web.git --path src/agent/skills/kernelcad-from-reference/image-replicatorOr copy the folder to ~/.gemini/skills/image-replicator yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/image-replicator:
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.
Get the folder:
git clone --depth 1 https://github.com/w1ne/kernelCAD-web.gitThen 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.
What it does
- 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
Image replicator 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.
More from w1ne/kernelCAD-web

Compares bounded kernelCAD design variants on one evidence basis with a review gate
- Open source
- 37 GitHub stars
- Developer tools

Finds and runs kernelCAD cookbook recipes for common industrial CAD parts via MCP
- Open source
- 37 GitHub stars
- Developer tools

Builds and revises CAD parts through a hosted kernelCAD MCP server until checks pass
- Open source
- 37 GitHub stars
- Developer tools

Exports kernelCAD models to STEP, STL, 3MF, PLY, USD and more, with checks
- Open source
- 37 GitHub stars
- Developer tools

Lets an agent show a kernelCAD model in Studio and act on painted review marks
- Open source
- 37 GitHub stars
- Design and media

Gates a kernelCAD revision for fabrication with state-labelled, revision-bound evidence
- Open source
- 37 GitHub stars
- Developer tools





