aspicio-embed

aspicio-embed is a skill for Claude Code from frontsail-ai/aspicio. It costs 102 tokens per session (1,933 once invoked), scanned A, original, MIT.

A guide for adding an Aspicio drawing viewer to a web app. Aspicio displays DXF computer-aided design drawings and PDF vector drawings in React, Vue, Svelte, plain HTML, or JavaScript.

In plain words
What is it for?
Use it when embedding CAD or vector-PDF viewing in a browser application, including format support and viewer controls.
Why use it?
It explains the package choices and required format imports that prevent common installation and file-loading errors. It also covers viewer features such as layers, links, exports, and keyboard shortcuts.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the aspicio plugin — 2 skills, 1 MCP server shipped together

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/frontsail-ai/aspicio/aspicio-embed
Any agent
npx skills add frontsail-ai/aspicio --skill aspicio-embed
Clone the repo
git clone --depth 1 https://github.com/frontsail-ai/aspicio

Made for: Claude Code.

Or install aspicio, the plugin that ships this one along with the rest of its 2 skills, 1 MCP server.

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 aspicio-embed

README.md
[![agentmods](https://agentmods.dev/badge/skills/frontsail-ai/aspicio/aspicio-embed.svg)](https://agentmods.dev/skills/frontsail-ai/aspicio/aspicio-embed)
Your own site
<a href="https://agentmods.dev/skills/frontsail-ai/aspicio/aspicio-embed"><img src="https://agentmods.dev/badge/skills/frontsail-ai/aspicio/aspicio-embed.svg" alt="Measured on agentmods" height="20"></a>
Per session 102 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,933 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.00102 $0.01933
Opus 5 $0.00051 $0.00966
Sonnet 5 $0.00020 $0.00387
Haiku 4.5 $0.00010 $0.00193

Measured 6d ago against content hash 496409d69c95, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

aspicio-embed 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 6d 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.

skills/aspicio-embed/SKILL.md · 144 lines

How it starts

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

Embedding the Aspicio drawing viewer (DXF and PDF)

Install

npm install @aspicio/react react three   # React apps; three (>=0.184) is a peer dep
npm install @aspicio/vue vue three       # Vue 3 apps; vue 3.4+ and three are peer deps
npm install @aspicio/svelte svelte three # Svelte 5 apps; ships raw .svelte your bundler compiles
npm install @aspicio/elements three      # plain HTML (web components, no bindings)
npm install @aspicio/core three          # vanilla JS, hand-rolled UI

react 18/19 and three are peer dependencies — forgetting three is the most common install failure.

Formats are opted into by import

No package implies a file format. Alongside the package import, import the format entry once, anywhere in the app — otherwise a load fails with an error telling you exactly this:

import "@aspicio/react/formats/dxf"; // or /vue, /svelte, /elements
import "@aspicio/react/formats/pdf"; // both, if the app opens both
import { dxfParser } from "@aspicio/core/dxf"; // vanilla: pass it to the viewer
import { pdfParser } from "@aspicio/core/pdf";

That indirection is what keeps a DXF app from shipping the PDF parser, and vice versa (INV-11) — import only the formats you open.

A PDF is read as vector line work, text, and raster images: paths, strokes, fills, glyphs, and the flattened artwork a PDF/X-4 file carries — a print PDF whose art is one big image still shows its artwork under the dieline. Shadings, transparency, and images in codecs outside the decoded set (JPEG 2000, JBIG2, CCITT fax) are counted as skipped rather than drawn. Optional-content groups become layers ("Content" holds anything ungrouped), pages become spaces, and measurements are in points, because a PDF carries no drawing scale.

React: one component

import { AspicioEmbed } from "@aspicio/react";
import "@aspicio/react/formats/dxf";

<AspicioEmbed srcUrl="/drawing.dxf" style={{ height: 480 }} />;

Key props (all optional):

  • src (DXF text | File | Blob | ArrayBuffer) or srcUrl (fetched) — changing either loads the new document
  • panel="left" | "right" | "none" — the built-in layer panel
  • shortcuts — opt-in keyboard control (F fit, +/- zoom, R rotation reset, A show-all); scoped to the focused embed, click to focus
  • showDownload={false} — hide the built-in SVG/PNG export control
  • onLoaded({ layers, stats }), onError, onViewer(viewer)onViewer/ref expose the full DrawingViewer API (fitView, zoomBy, setLayerVisible, pickLayer, view, setView, toSVG, toPNG)
  • theme="none" — drop the built-in dark theme for a minimal structure

Read the full file on GitHub · 144 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. 6d ago First seen · 144 lines · 102 tokens per session scan A 496409d69c95

Subscribe to this mod's changes

aspicio-embed is a skill published in the GitHub repository frontsail-ai/aspicio (4 stars, last pushed 6d ago), licensed MIT. It adds 102 tokens to every session and 1,933 once invoked, about $0.0005 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-31.