/readme-3d:3d-in-readmefrom readme-3d
Converts GLB/glTF/OBJ/STL models to ASCII STL blocks for interactive 3D viewing in GitHub markdown. Handles byte budgeting under GitHub's 512 KB limit.
Ships in readme-3d. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
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.
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.
(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.
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.
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.
.stl without converting.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub nirholas/readme-3d --plugin readme-3dOther plugins' skills for the same job