3d-in-readme

3d-in-readme is a skill for Claude Code from nirholas/three.ws. It costs 123 tokens per session (757 once invoked), scanned A, original, Apache-2.0.

A command-line tool that converts 3D model files into ASCII STL blocks that GitHub can display as interactive viewers in Markdown.

In plain words
What is it for?
Use it to embed GLB, glTF, OBJ, STL, or AST models in GitHub Markdown, or optionally create a model from text first.
Why use it?
It removes the need to host a separate 3D viewer when showing models in a README, issue, pull request, discussion, or gist.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

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/nirholas/three.ws/3d-in-readme
Any agent
npx skills add nirholas/three.ws --skill 3d-in-readme
Clone the repo
git clone --depth 1 https://github.com/nirholas/three.ws

Made for: Claude Code.

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 3d-in-readme

README.md
[![agentmods](https://agentmods.dev/badge/skills/nirholas/three.ws/3d-in-readme.svg)](https://agentmods.dev/skills/nirholas/three.ws/3d-in-readme)
Your own site
<a href="https://agentmods.dev/skills/nirholas/three.ws/3d-in-readme"><img src="https://agentmods.dev/badge/skills/nirholas/three.ws/3d-in-readme.svg" alt="Measured on agentmods" height="20"></a>
Per session 123 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 757 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00123 $0.00757
Opus 5 $0.00062 $0.00378
Sonnet 5 $0.00025 $0.00151
Haiku 4.5 $0.00012 $0.00076

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

Security

Grade A, and why

3d-in-readme scanned grade A with 1 finding 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.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s -X POST https://three.ws/api/v1/ai/text-to-3d \
packages/readme-3d/.claude/skills/3d-in-readme/SKILL.md · 46 lines

How it starts

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

Put a 3D model in GitHub markdown

GitHub renders ASCII STL inside a ```stl fenced code block as an interactive 3D viewer - in READMEs, issues, PRs, discussions, and gists. The readme-3d CLI converts real model files into those blocks.

Workflow

  1. Get the model file. Accept .glb, .gltf, .obj, .stl, or .ast. If the user has no model but describes one, generate it first (step 2); otherwise skip to step 3.

  2. (Optional) Generate from text. POST to the free three.ws Forge API - no key or account:

    curl -s -X POST https://three.ws/api/v1/ai/text-to-3d \
     -H 'content-type: application/json' \
     -d '{"prompt": "<single object, shape-first description>"}'
    

    If data.status is "done", download data.glb_url. If "pending", poll GET https://three.ws/api/forge?job=<data.job> every 5 s until status is "done" (allow ~2 min). Shape-first prompts work best: silhouette survives the monochrome STL render, textures do not.

  3. Convert with a byte budget. Check the target markdown file's current size first, leave headroom under GitHub's 512 KB render limit, and never spend more than ~60% of what remains:

    npx readme-3d model.glb --budget <headroom>kb --name <model_name> -o block.md
    

    Defaults are sensible: 1,500 facets max, Y-up→Z-up correction for GLB/OBJ, coordinates normalized. Add --details when embedding into issues/PR threads so the block collapses.

  4. Embed. Insert the contents of block.md where the user wants it (for a README, typically after the intro). Then verify:

    npx readme-3d check README.md
    

    check must print OK. If it reports TOO BIG, reconvert with a smaller --budget - never ship a file over the limit, because GitHub will display the entire file as raw text.

Rules

  • ASCII STL only - binary STL in a fence renders as gibberish. The CLI always emits ASCII; never hand-build the block from a downloaded .stl without converting.
  • The viewer is monochrome geometry. Warn the user if their model's identity depends on textures or color.
  • One hero model beats several small ones; each block costs 45 KB+.
  • The block renders on github.com only (README, issues, PRs, discussions, gists) - not on npm, GitLab, or in IDE previews. Mention this if the file is consumed elsewhere.

Read the full file on GitHub · 46 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. 2d ago First seen · 46 lines · 123 tokens per session scan A 3e6da7569649

Subscribe to this mod's changes

3d-in-readme is a skill published in the GitHub repository nirholas/three.ws (110 stars, last pushed yesterday), licensed Apache-2.0. It adds 123 tokens to every session and 757 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). 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

blender-mcp

Drive Blender via the catalog blender MCP, with bpy recipes.

GGbond-bo/MemOmics-Agent · 17 tokens

blender-mcp

Control Blender directly from Gauss via socket connection to the blender-mcp addon. Create 3D objects, materials, animations, and run arbitrary Blender Python (bpy) code. Use when user wants to create or modify anything in Blender.

math-inc/OpenGauss · 54 tokens

threejs-docs

Comprehensive Three.js reference covering core API (objects, cameras, lights, materials, geometries, renderers, scenes, textures, math, animation, audio, loaders, helpers, nodes), all addons (controls, postprocessing, loaders, exporters, geometries, shaders, WebXR, physics), TSL (Three.js Shading Language) functions…

pledgeandgrow/pledge-skills · 112 tokens

blender-mcp

Control Blender directly from Hermes via socket connection to the blender-mcp addon. Create 3D objects, materials, animations, and run arbitrary Blender Python (bpy) code. Use when user wants to create or modify anything in Blender.

raphaelmansuy/edgecrab · 53 tokens

blender-mcp

Control Blender directly from Hermes via socket connection to the blender-mcp addon. Create 3D objects, materials, animations, and run arbitrary Blender Python (bpy) code. Use when user wants to create or modify anything in Blender.

johnson7788/MultiUserClaw · 53 tokens

3d-website-architect

Expert skill for designing, building, and deploying modern premium websites with advanced animations and 3D interactive experiences using Three.js, React Three Fiber, GSAP, and Framer Motion. Use this skill whenever the user wants to build a website with 3D elements, create an immersive web experience, add interactive…

deveshpunjabi/3d-website-skill · 240 tokens