image-replicator

image-replicator is a skill for Claude Code, Codex from w1ne/kernelCAD-web. It costs 43 tokens per session (1,551 once invoked), scanned A, original, MIT.

A workflow for rebuilding an object from a reference photo by repeatedly rendering a 3D model and comparing its views with the photo.

In plain words
What is it for?
Use it to render four standard views, score them against reference images, inspect silhouette and image-similarity results, and decide whether to continue refining.
Why use it?
It replaces guesswork with measurements that show which part of the model differs most from the reference and what to adjust next.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to render four standard views, score them against reference images, inspect silhouette and image-similarity results, and decide whether to continue refining.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/w1ne/kernelcad-web/image-replicator
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add w1ne/kernelCAD-web --skill image-replicator
Clone the repo
git clone --depth 1 https://github.com/w1ne/kernelCAD-web

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for image-replicator

README.md
[![agentmods](https://agentmods.dev/badge/skills/w1ne/kernelcad-web/image-replicator/github.svg)](https://agentmods.dev/skills/w1ne/kernelcad-web/image-replicator)
Your own site
<a href="https://agentmods.dev/skills/w1ne/kernelcad-web/image-replicator"><img src="https://agentmods.dev/badge/skills/w1ne/kernelcad-web/image-replicator/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for image-replicator

Your own site · 80×15
<a href="https://agentmods.dev/skills/w1ne/kernelcad-web/image-replicator"><img src="https://agentmods.dev/badge/skills/w1ne/kernelcad-web/image-replicator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,551 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium MCP Rug Pull · line 60
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00043 $0.01551
Opus 5.5 $0.00017 $0.00620
Sonnet 5.5 $0.00009 $0.00310
Haiku 4.5 $0.00004 $0.00155

Measured 1mo ago against content hash 28e772857616, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

image-replicator scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

src/agent/skills/kernelcad-from-reference/image-replicator/SKILL.md · 157 lines

How it starts

The opening of the file, as written. The whole thing — 157 lines — stays where its author put it; the contents beside it link to each section on GitHub.

image-replicator

Purpose

After the blockout is plausible, this sub-skill drives the detail pass. Each iteration produces a render, runs the scorer, and returns a concrete decision: which gate is weakest, what model change closes it, whether to continue or stop.

Inputs

  • The .kcad.ts file with a clean blockout.
  • The reference photo path.
  • Current scorer output (or "not yet run" on the first pass).

The iteration loop

Step 1 — Render

Always render all four canonical views at the correct resolution:

kernelcad render build.kcad.ts \
  --width 1920 --height 1080 \
  --views front,right,top,iso \
  -o /tmp/render.png

Read the PNG back. Filenames are not evidence — you must observe the image.

Step 2 — Score

kernelcad score build.kcad.ts \
  --reference ./reference.jpg \
  --view front \
  --json

The scorer returns a JSON object with per-gate values:

{
  "silhouette": 0.71,
  "ssim": 0.28,
  "phash": 0.62,
  "overall": 0.54
}

Score all views that have a reference. If the task harness provides a harness.ts, run it directly — it wraps scoreAgainstReference with the correct thresholds:

npx ts-node eval/tasks/taskNN/harness.ts

Step 3 — Diagnose which gate to chase next

Read the per-gate numbers and decide:

Gate Low score means
silhouette The 2D silhouette outline does not match: wrong overall shape, missing bumps, wrong arm angles, wrong aspect ratio. Fix: adjust params, fix the path outline.
ssim The rendered image is structurally different from the reference: wrong depth, wrong material (flat vs. glossy), missing cutout geometry, wrong body proportion. Fix: apply PBR material (Rule 6), add depth (Rule 3), fix booleans.
phash Perceptual hash mismatch: high-level appearance differs. Usually a proxy for "the object reads as a different product category." Fix: re-read the brief, re-check primary mass arrangement.

Chase the lowest gate first. A 0.20 silhouette score means the silhouette is wrong — fixing the SSIM first will not help because the silhouette mismatch dominates overall score.

Read the full file on GitHub · 157 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed 28e772857616
  2. 3mo ago First seen · 157 lines · 43 tokens per session scan A c7004cec110c

Subscribe to this mod's changes

image-replicator is a skill published in the GitHub repository w1ne/kernelCAD-web (36 stars, last pushed today), licensed MIT. It adds 43 tokens to every session and 1,551 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

image-replicator compared with skills from other repositories

image-replicator next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
image-replicatorw1ne/kernelCAD-webSkill36todayMITA43Claude Code, Codex
solidworks-mcpczuryk/SolidworksMCPSkill1314d agoMITA58Claude Code, Codex
cadquery-modelingarmpro24-blip/cad-cae-copilotSkill10125d agoMITA0Claude Code, Codex
aieng-cad-authoringarmpro24-blip/cad-cae-copilotSkill10125d agoMITA67Codex
aieng-cad-cae-copilotarmpro24-blip/cad-cae-copilotSkill10125d agoMITA65Claude Code, Codex
aieng-closed-loop-copilotarmpro24-blip/cad-cae-copilotSkill10125d agoMITA54Claude Code, Codex
superpowersarmpro24-blip/cad-cae-copilotSkill10125d agoMITA63Claude Code, Codex