# 3d in readme

> 3d in readme is an open-source agent skill for design and media. Embeds an interactive 3D model in GitHub markdown by converting it to an STL block. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/nirholas/readme-3d/tree/main/.claude/skills/3d-in-readme
- **Repository:** https://github.com/nirholas/readme-3d
- **GitHub stars:** 10
- **License:** Apache-2.0
- **Skill name:** 3d-in-readme
- **Collection:** https://github.com/nirholas/readme-3d
- **Categories:** [design and media](https://ai-powered.com/categories/design-and-media)
- **Listing updated:** 2026-12-01

## About

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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/nirholas/readme-3d/tree/HEAD/.claude/skills/3d-in-readme)
- [License: Apache-2.0](https://github.com/nirholas/readme-3d/tree/HEAD/.claude/skills/3d-in-readme)

## Features

- **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

## Install

### Claude Code

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

```sh
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.

### Codex

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

```sh
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.

### Cursor

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

```sh
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.

### Gemini CLI

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

```sh
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.

### VS Code

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

```sh
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.

### Other agents

Get the folder:

```sh
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.

## 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.

## Alternatives

- [Render an avatar](https://ai-powered.com/skills/render-an-avatar): Render an avatar is an open-source agent skill for design and media.
- [Threejs](https://ai-powered.com/skills/threejs): Threejs is an open-source agent skill for design and media.
- [Gh attach](https://ai-powered.com/skills/gh-attach): Gh attach is an open-source agent skill for files and documents.
- [Ljg card](https://ai-powered.com/skills/ljg-card): Ljg card is an open-source agent skill for design and media.
- [Globestudio](https://ai-powered.com/skills/globestudio-github): Globestudio is an open-source agent skill for design and media.
- [Transformers js](https://ai-powered.com/skills/transformers-js): Transformers js is an open-source agent skill for design and media.

---
Source: https://ai-powered.com/skills/3d-in-readme
