cad-viewer-skill

cad-viewer-skill is a skill for OpenCode from darellchua2/opencode-config-template. It costs 62 tokens per session (1,089 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 OpenCode

Written for OpenCode: installed under .opencode/. Also seen: mentions OpenCode.

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.

agentmods
npx agentmods add skills/darellchua2/opencode-config-template/cad-viewer-skill
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: OpenCode.

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.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.svg" alt="Measured on agentmods" 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,089 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.01089
Opus 5 $0.00031 $0.00544
Sonnet 5 $0.00012 $0.00218
Haiku 4.5 $0.00006 $0.00109

Measured 2d ago against content hash fefddd0452f5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, 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 2d 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.

opencode_app/.opencode/skills/cad-viewer-skill/SKILL.md · 102 lines

How it starts

The opening of the file, as written. The whole thing — 102 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 · 102 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. 2d 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 5d ago), licensed Apache-2.0. It adds 62 tokens to every session and 1,089 once invoked, about $0.0003 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-09-03.

Related

Other skills, from other repositories

screen-recording-on-chromebook

Records screen video on ChromeOS devices, Chromebooks, and CrOS DUTs over SSH using ffmpeg KMS grab, and transcodes the video to MP4 on the host workstation. Use when recording the screen of a Chromebook, ChromeOS device, cros DUT, or CrOS test hardware, capturing visual bug reproductions or feature demonstrations on…

chromium/chromium · 170 tokens

physical-chromebook-debugging

Build and deploy Chrome to a physical ChromeOS device, monitor logs, and take screenshots over SSH. Use when working with remote Chromebook testing hardware, deploying new builds of Chrome or ChromeOS, reading specific log files via SSH, or taking screenshots of a connected test endpoint.

chromium/chromium · 61 tokens

go2rtc-cameras

Multi-camera RTSP to WebRTC streaming via go2rtc.

SharpAI/DeepCamera · 18 tokens

lichtblick

Use when deploying, launching, or reviewing the Lichtblick web viewer — an open-source, Foxglove-compatible MCAP / ROS-bag / robotics log viewer served from S3 artifacts.

nebius/nebius-physical-ai · 41 tokens

qualcomm-ai-assistant

高通文档网站 AI 助手交互 Skill。通过浏览器自动化访问 Qualcomm 文档网站的 AI Assistant, 向其提问并获取基于高通官方文档的 AI 回复。 触发场景:向高通AI提问、询问高通芯片信息、查询Qualcomm文档、问高通AI助手、 高通文档AI、Qualcomm AI Assistant、IQ-9075相关问题、QCS系列芯片查询、 高通开发板问题、Qualcomm芯片规格查询。 适用产品:IQ-9075、QCS9075、QCS6490、QCS8250 等 Qualcomm IoT 产品线。.

idea2realClaw/myAgent · 151 tokens

digikey

Proven scraping playbook for digikey.com /en/products/category/ listings. Cloudflare challenge (cf-mitigated: challenge) blocks bare curl with HTTP 403, but a puppeteer connection to the user's real Chrome via the real Chrome debug port walks straight through with zero stealth, no captcha, no proxy, no auth. Listings…

AgentComputerAI/torch · 140 tokens