cad-viewer-skill

cad-viewer-skill is a skill for Claude Code, Codex from darellchua2/opencode-config-template. It costs 62 tokens per session (1,097 once invoked), scanned A, original, Apache-2.0.

A local viewer for inspecting CAD models, robot-description files, drawings, and G-code. CAD means computer-aided design, while G-code is the machine instruction language used by many manufacturing tools.

In plain words
What is it for?
Use it to inspect STEP, STL, GLB, 3MF, DXF, URDF, SRDF, SDF, and G-code files.
Why use it?
It gives you a way to open generated or existing engineering files and review them through a browser link.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions OpenCode.

Good fit Use it to inspect STEP, STL, GLB, 3MF, DXF, URDF, SRDF, SDF, and G-code files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/darellchua2/opencode-config-template/cad-viewer-skill
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 darellchua2/opencode-config-template --skill cad-viewer-skill
Clone the repo
git clone --depth 1 https://github.com/darellchua2/opencode-config-template

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 cad-viewer-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/darellchua2/opencode-config-template/cad-viewer-skill/github.svg)](https://agentmods.dev/skills/darellchua2/opencode-config-template/cad-viewer-skill)
Your own site
<a href="https://agentmods.dev/skills/darellchua2/opencode-config-template/cad-viewer-skill"><img src="https://agentmods.dev/badge/skills/darellchua2/opencode-config-template/cad-viewer-skill/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 cad-viewer-skill

Your own site · 80×15
<a href="https://agentmods.dev/skills/darellchua2/opencode-config-template/cad-viewer-skill"><img src="https://agentmods.dev/badge/skills/darellchua2/opencode-config-template/cad-viewer-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,097 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.00062 $0.01097
Opus 5.5 $0.00025 $0.00439
Sonnet 5.5 $0.00012 $0.00219
Haiku 4.5 $0.00006 $0.00110

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

Security

Grade A, and why

cad-viewer-skill 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 2mo ago.

The scan reads SKILL.md. This mod also ships 31 executable files (scripts/viewer/backend/server.mjs, scripts/viewer/dist/assets/BufferGeometryUtils-xu92ooFc.js, scripts/viewer/dist/assets/glbMeshWorker-iyKraBym.js, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/cad-viewer-skill/SKILL.md · 104 lines

How it starts

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

CAD Viewer

Provenance: maintained in earthtojake/text-to-cad. Use the installed local skill files as the runtime source of truth; the repository link is only for provenance and release review.

Use this skill to open existing or newly generated CAD, implicit CAD, robot-description, DXF, or plain FDM G-code files in CAD Viewer and hand back live review links. The expected input is one or more explicit file paths.

Start Viewer

Start or reuse one local CAD Viewer with npm run agent:start, passing the absolute artifact directory as --dir. The agent:start launcher owns port selection, compatible-server reuse, directory activation, and the ?dir= query parameter. Dev-mode viewers are reused only for matching git identities; dist bundle viewers can be reused across git branches when their viewer versions match. It activates reused servers through the Viewer's lightweight directory activation API, without requiring agents to probe ports or trigger catalog scans manually. Use the Viewer URL printed by agent:start as-is, then add only a file= query value for the artifact you want to review.

Choose --dir as the absolute directory that contains the model artifacts and sidecars, commonly <repo>/models or the consuming project's equivalent model directory. The file= value must be relative to that --dir. Do not manually choose ports, probe servers, rewrite ?dir=, or start a separate Viewer just to change directories.

Run from this skill directory:

npm --prefix scripts/viewer run agent:start -- --host 127.0.0.1 --dir <absolute-model-root>

Use the printed Viewer URL and append file=:

http://127.0.0.1:<printed-port>/?dir=/absolute/project/models&file=path/to/model.step

If a non-Viewer process or another worktree's Viewer occupies the candidate port, the launcher will continue automatically. In sandboxed agent environments, local binding or probe failures such as EPERM or EACCES can be expected; rerun the same command with the needed permission/escalation.

Read the full file on GitHub · 104 lines

Files

What ships with it

60 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2mo ago Changed · +2 lines 9c0b61ef364e
  2. 3mo ago First seen · 102 lines · 62 tokens per session scan A fefddd0452f5

Subscribe to this mod's changes

cad-viewer-skill is a skill published in the GitHub repository darellchua2/opencode-config-template (6 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 62 tokens to every session and 1,097 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-09-03.

Related

cad-viewer-skill compared with skills from other repositories

cad-viewer-skill next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cad-viewer-skilldarellchua2/opencode-config-templateSkill62mo agoApache-2.0A62Claude Code, Codex
screen-recording-on-chromebookchromium/chromiumSkill26ktodayBSD-3-ClauseA170Claude Code, Codex
physical-chromebook-debuggingchromium/chromiumSkill26ktodayBSD-3-ClauseA61Claude Code, Codex
browser-5f5453f9FuRongJun-1999/dsh-memorySkill778todayMITA77Claude Code
browser-609362eeFuRongJun-1999/dsh-memorySkill778todayMITA66Claude Code
go2rtc-camerasSharpAI/DeepCameraSkill3.2k2mo agoMITA18Claude Code, Codex
lichtblicknebius/nebius-physical-aiSkill1186d agoApache-2.0A41Claude Code, Codex