Skip to content
Skill

3d in readme

Embeds an interactive 3D model in GitHub markdown by converting it to an STL block

3d in readme is an open-source agent skill for design and media. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
10
Last commit
License
Apache-2.0
Listing updated

Similar skills

About 3d in readme

This skill helps an agent put a 3D model into a GitHub README, issue, pull request or other markdown file so it appears as a rotatable viewer. It converts GLB, glTF, OBJ, STL or AST files into the ASCII STL fenced block that GitHub renders, and it keeps the output under GitHub's 512 KB markdown limit by simplifying the mesh within a byte budget.

The workflow has the agent check the target file's current size, run the readme-3d command with a budget and model name, insert the generated block, and then run a check command that must report OK before the file ships. If the file would exceed the limit, the agent is told to reconvert with a smaller budget rather than publish it. A detail option wraps the block in a collapsible section for issue threads.

The skill also documents an optional path for models that do not exist yet: it sends a shape-first text prompt to a free text-to-3D endpoint on three.ws and polls for the resulting GLB. Output is monochrome geometry, so textures and color are lost, and the block only renders on github.com.

When your agent uses it

Embed an interactive 3D model in a GitHub README, issue, PR, or any markdown file. Use when the user wants to add, embed, or show a 3D model, avatar, mesh, STL, GLB, or 3D print in markdown or a README - "add a 3D model to my README", "embed this GLB", "show the part in the issue". Converts GLB/glTF/OBJ/STL to the ASCII STL block GitHub renders natively, simplified to fit GitHub's 512 KB markdown limit.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (3 KB) on GitHub on 1 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

Copy the skill folder to ~/.claude/skills/3d-in-readme to use it in all your projects:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/nirholas/readme-3d.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/3d-in-readme &&
cp -R "$tmp/.claude/skills/3d-in-readme" ~/.claude/skills/3d-in-readme &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/3d-in-readme inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/3d-in-readme to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/nirholas/readme-3d.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/3d-in-readme &&
cp -R "$tmp/.claude/skills/3d-in-readme" ~/.agents/skills/3d-in-readme &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/3d-in-readme inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/3d-in-readme to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/nirholas/readme-3d.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/3d-in-readme &&
cp -R "$tmp/.claude/skills/3d-in-readme" ~/.cursor/skills/3d-in-readme &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/3d-in-readme inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/nirholas/readme-3d.git --path .claude/skills/3d-in-readme

Or copy the folder to ~/.gemini/skills/3d-in-readme yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/3d-in-readme:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/nirholas/readme-3d.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/3d-in-readme &&
cp -R "$tmp/.claude/skills/3d-in-readme" ~/.copilot/skills/3d-in-readme &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/3d-in-readme inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/nirholas/readme-3d.git

Then copy readme-3d/.claude/skills/3d-in-readme into your agent's skills folder as 3d-in-readme. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Model format conversion
Converts GLB, glTF, OBJ, STL and AST files into ASCII STL blocks for markdown.
Size budget control
Simplifies meshes to fit within GitHub's 512 KB rendering limit.
File validation check
Runs a check command that confirms the markdown file will render rather than show raw text.
Collapsible detail blocks
Optionally wraps the embedded model in a collapsible section for issues and pull requests.
Optional text-to-3D generation
Can request a model from a text prompt through a free API when no file exists.

Good for

  • Add a 3D model of my product to the project README
  • Embed this GLB file so it shows in a GitHub issue
  • Show the printable part in a pull request discussion
  • Check that my markdown file is still under GitHub's size limit

3d in readme FAQ

What does the skill need to run?

It uses the readme-3d command-line tool through npx and a model file in GLB, glTF, OBJ, STL or AST format. The optional generation step calls a public API that needs no key.

Where does the 3D viewer render?

The generated block renders as an interactive viewer on github.com in READMEs, issues, pull requests, discussions and gists. It does not render on npm, GitLab or in IDE previews.

Are textures and colors preserved?

No. The viewer shows monochrome geometry, so the skill warns that models relying on texture or color lose that information.

What happens if the file is too large?

The check command reports TOO BIG, and the skill instructs the agent to reconvert with a smaller budget, since GitHub would otherwise display the whole file as raw text.

How do I install 3d in readme in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/3d-in-readme to use it in all your projects, or to .claude/skills/3d-in-readme in one project.

Does 3d in readme run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use 3d in readme?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

What are the best alternatives to 3d in readme?

The closest alternatives to 3d in readme are Render an avatar, Threejs, Gh attach, Ljg card and Globestudio.

Where this comes from

  • Description: from the skill's own SKILL.md.