photo-to-device

photo-to-device is a skill for Claude Code, Codex from w1ne/kernelCAD-web. It costs 37 tokens per session (777 once invoked), scanned A, original, MIT.

A kernelCAD workflow for rebuilding a simple electronic device or passive enclosure from a front-facing photo with one known measurement for scale.

In plain words
What is it for?
Use it for e-readers, remotes, meters, controllers, display housings, hobby cases, and similar devices without moving mechanisms.
Why use it?
It sets clear limits on what one photo can show and keeps the model based on validated photo evidence rather than guessed internal construction.

Skill for Claude CodeCodex

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

Good fit Use it for e-readers, remotes, meters, controllers, display housings, hobby cases, and similar devices without moving mechanisms.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/w1ne/kernelcad-web/photo-to-device
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 photo-to-device
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 photo-to-device

README.md
[![agentmods](https://agentmods.dev/badge/skills/w1ne/kernelcad-web/photo-to-device/github.svg)](https://agentmods.dev/skills/w1ne/kernelcad-web/photo-to-device)
Your own site
<a href="https://agentmods.dev/skills/w1ne/kernelcad-web/photo-to-device"><img src="https://agentmods.dev/badge/skills/w1ne/kernelcad-web/photo-to-device/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 photo-to-device

Your own site · 80×15
<a href="https://agentmods.dev/skills/w1ne/kernelcad-web/photo-to-device"><img src="https://agentmods.dev/badge/skills/w1ne/kernelcad-web/photo-to-device.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 777 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 pass 7 Sept 2026
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.00037 $0.00777
Opus 5 $0.00018 $0.00388
Sonnet 5 $0.00007 $0.00155
Haiku 4.5 $0.00004 $0.00078

Measured 9d ago against content hash 5b5413fdfa24, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

photo-to-device 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 9d 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/photo-to-device/SKILL.md · 82 lines

How it starts

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

photo-to-device

Build portable kernelCAD from photo evidence: one image establishes scale, not hidden construction.

Use this route

Use for a simple front-on e-reader, remote, meter, controller, display housing, or passive enclosure with one known dimension. Escalate robots and mechanisms to the dedicated assembly workflow; require multi-view contracts for joints, transmissions, hardware, and unknown internals.

Current active Studio/server boundary

The current active Studio sends a typed photo reference to the hosted server, validating MIME/size, computing SHA-256 provenance, and removing it after the run. Do not use legacy chat/HeadlessKernel or a client-side hash.

Reference asset rule — overrides generic overlay guidance

This rule controls generic referenceImage() advice from use-the-available-kernel and blockout-model.

  • An active Studio/server uploaded photo is managed. Never emit referenceImage() or its temporary/managed asset path in .kcad.ts. Instead add a source comment with filename and server SHA-256 (never a path), then model only from the validated photo brief.
  • A checked-in/local source-owned asset may use referenceImage('./reference.jpg', opts) as a durable overlay.

Record photo reference provenance in the source comment and validated photo brief: filename, MIME, server SHA-256, known dimension in millimetres, observed facts, and inferred assumptions.

Core flow

  1. In // Real Object Brief, record observed facts (outline, screen, seams, controls, ports, ratios, measured span) and inferred facts (depth, back, wall, internals), marking every inference as an assumption.
  2. Parameterize the known dimension and derived front face; fit the housing envelope before controls or fillets.
  3. Model real assemblies/parts: use a named static assembly for distinct housing, screen/lens, controls, bezels, or inserts—not cosmetic overlaps. A physically one-piece case may remain one part.
  4. Add detail only after front, top, and iso views agree with the brief.

Read the full file on GitHub · 82 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. 9d ago First seen · 82 lines · 37 tokens per session scan A 5b5413fdfa24

Subscribe to this mod's changes

photo-to-device is a skill published in the GitHub repository w1ne/kernelCAD-web (19 stars, last pushed 11d ago), licensed MIT. It adds 37 tokens to every session and 777 once invoked, about $0.0002 per session on Opus 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

Other skills, from other repositories

cadquery-modeling

Generate CAD models with CadQuery using an adaptive CAD Compiler workflow: plan-mode skill constraint handoff, focused iteration scopes, fail-first challenge review, compact review packets, real-product reference fidelity, visual/functional audits, source-first repair, and STEP/STL export. Use for CadQuery, CQ, 建模…

armpro24-blip/cad-cae-copilot · 0 tokens

opengis-skills

Use when AI coding assistant needs GIS/CAD/C#/AI/IoT/3D domain expertise for 73+ open-source projects. One-stop skill index with tag-based search and on-demand loading for GDAL, GeoServer, QGIS, PostGIS, JTS, CesiumJS, FreeCAD, OpenSCAD, OCCT, NPOI, SqlSugar, Furion, Dify, SuperSplat, Go and more.

znlgis/opengis-skills · 97 tokens

cad-skills

Use when doing parametric 3D modeling, 2D drafting, geometric kernel development, BIM/IFC processing, PCB design, or AutoCAD .NET development. Index of 20 skills: FreeCAD, OpenSCAD, OCCT, CadQuery, KiCad, SolveSpace, QCAD, xBIM, Clipper2, TongWen and more.

znlgis/opengis-skills · 81 tokens

bambu-labs

Dry-run, upload, and cautiously initiate local Bambu Lab print jobs from validated plain .gcode, using Bambu LAN FTPS/MQTT handoffs.

earthtojake/text-to-cad · 38 tokens

cad-viewer

Start CAD Viewer and return review links for CAD and robot-description files. Use when visually reviewing .step, .stp, .glb, .stl, .3mf, .dxf, .urdf, .srdf, or .sdf files, especially when handed off from CAD, URDF, SRDF, or SDF generation skills.

earthtojake/text-to-cad · 79 tokens

urdf

URDF robot description authoring and validation. Use when creating, editing, inspecting, validating, or debugging .urdf files, robot links, joints, limits, inertials, visual/collision geometry, mesh references, frame conventions, or robot-description artifacts. Use the SRDF skill for MoveIt2 semantic groups and…

earthtojake/text-to-cad · 92 tokens