3d-in-readme

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

A workflow for adding an interactive 3D model to GitHub markdown, such as a README, issue, pull request, discussion, or gist. It converts GLB, glTF, OBJ, or STL files into the STL markdown format that GitHub displays in a 3D viewer.

In plain words
What is it for?
It is for embedding existing 3D files, generating a model from text when needed, and preparing the resulting markdown for GitHub.
Why use it?
It avoids manually preparing model data for GitHub and checks the output against GitHub's markdown size limit.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit It is for embedding existing 3D files, generating a model from text when needed, and preparing the resulting markdown for GitHub.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nirholas/readme-3d/3d-in-readme
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 nirholas/readme-3d --skill 3d-in-readme
Clone the repo
git clone --depth 1 https://github.com/nirholas/readme-3d

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/readme-3d/3d-in-readme/github.svg)](https://agentmods.dev/skills/nirholas/readme-3d/3d-in-readme)
Your own site
<a href="https://agentmods.dev/skills/nirholas/readme-3d/3d-in-readme"><img src="https://agentmods.dev/badge/skills/nirholas/readme-3d/3d-in-readme/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 3d-in-readme

Your own site · 80×15
<a href="https://agentmods.dev/skills/nirholas/readme-3d/3d-in-readme"><img src="https://agentmods.dev/badge/skills/nirholas/readme-3d/3d-in-readme.svg" alt="Reviewed on agentmods" width="80" 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. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod 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.5 $0.00049 $0.00303
Sonnet 5.5 $0.00025 $0.00151
Haiku 4.5 $0.00012 $0.00076

Measured 19d ago against content hash 3e6da7569649, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 19d 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 \
Origin

This is a copy

100% identical to 3d-in-readme — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.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. 19d 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/readme-3d (10 stars, last pushed 19d ago), licensed Apache-2.0. It adds 123 tokens to every session and 757 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). It is 100% identical to 3d-in-readme, differing in 0 lines, and is treated as a copy.

Related

3d-in-readme compared with skills from other repositories

3d-in-readme next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
3d-in-readmenirholas/readme-3dSkill1019d agoApache-2.0A123Claude Code
yamanaka-skillandycungkrinx91/konohaSkill162todayApache-2.0A38Claude Code, Codex
using-blenderellmos-ai/skillsSkill10yesterdayMITA94Codex
compose-ar-scenenirholas/3D-AR-StudioSkill1115d agoApache-2.0A68Claude Code
game-asset-productiontheisegoria/game-development-studioSkill141mo agoMITA67Codex
game-development-studiotheisegoria/game-development-studioSkill141mo agoMITA75Codex
game-performance-optimizationtheisegoria/game-development-studioSkill141mo agoMITA54Codex