html-to-3d-texture

html-to-3d-texture is a skill for Claude Code from RaNDoM6913/claude-code-superkit. It costs 50 tokens per session (1,135 once invoked), scanned A, original, MIT.

A workflow for turning a web page or React component into a PNG image that can be displayed on the surface of a 3D model. It uses browser or canvas capture and then loads the image as a Three.js texture.

In plain words
What is it for?
Use it to capture UI screens at a chosen size and resolution, save them as PNG textures, and apply them to screens or other surfaces in Three.js models.
Why use it?
A web interface cannot be placed directly on a 3D screen as HTML. Capturing it as an image creates the texture that the 3D scene can display.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Good fit Use it to capture UI screens at a chosen size and resolution, save them as PNG textures, and apply them to screens or other surfaces in Three.js models.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/random6913/claude-code-superkit/html-to-3d-texture
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 RaNDoM6913/claude-code-superkit --skill html-to-3d-texture
Clone the repo
git clone --depth 1 https://github.com/RaNDoM6913/claude-code-superkit

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 html-to-3d-texture

README.md
[![agentmods](https://agentmods.dev/badge/skills/random6913/claude-code-superkit/html-to-3d-texture/github.svg)](https://agentmods.dev/skills/random6913/claude-code-superkit/html-to-3d-texture)
Your own site
<a href="https://agentmods.dev/skills/random6913/claude-code-superkit/html-to-3d-texture"><img src="https://agentmods.dev/badge/skills/random6913/claude-code-superkit/html-to-3d-texture/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 html-to-3d-texture

Your own site · 80×15
<a href="https://agentmods.dev/skills/random6913/claude-code-superkit/html-to-3d-texture"><img src="https://agentmods.dev/badge/skills/random6913/claude-code-superkit/html-to-3d-texture.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,135 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00050 $0.01135
Opus 5.5 $0.00020 $0.00454
Sonnet 5.5 $0.00010 $0.00227
Haiku 4.5 $0.00005 $0.00113

Measured 5d ago against content hash ca31808c2cad, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

html-to-3d-texture scanned grade A with 0 findings 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 5d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

packages/codex/skills/html-to-3d-texture/SKILL.md · 154 lines

How it starts

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

HTML to 3D Texture Pipeline

Capture React components as PNG images for use as textures on 3D model screens.

The snippets below are implementation examples, not installed capture tools. Inspect the project's dependencies, capture route/selector and output directory before adapting them. Playwright and its browser, html2canvas and sharp are not supplied by this skill. Use available authorized tooling; missing prerequisites leave capture UNVERIFIED. Dependency installation, service startup and browser access follow the task's existing authority, not the presence of these examples.

Architecture

React Component → Capture (Playwright/html2canvas) → PNG → Three.js Texture → 3D Mesh

Best for: production screenshots, pixel-perfect captures.

// scripts/capture-screen.mjs
import { chromium } from 'playwright';

const PORT = process.argv[2] || 3000;
const WIDTH = 440;   // Native screen width
const HEIGHT = 956;  // Native screen height
const SCALE = 2;     // Retina (output: 880x1912)

async function capture() {
  const browser = await chromium.launch();
  const page = await browser.newPage({
    viewport: { width: WIDTH, height: HEIGHT },
    deviceScaleFactor: SCALE,
  });

  await page.goto(`http://localhost:${PORT}/capture`);
  await page.waitForLoadState('networkidle');

  // Find target element
  const el = await page.locator('[data-screen-id="main"]');
  await el.screenshot({
    path: 'public/textures/screen.png',
    type: 'png',
  });

  await browser.close();
  console.log(`Captured: ${WIDTH * SCALE}x${HEIGHT * SCALE}px`);
}

capture();

Method 2: html2canvas (runtime capture)

Best for: dynamic content that changes during session.

import html2canvas from 'html2canvas';
import * as THREE from 'three';

async function captureToTexture(element: HTMLElement): Promise<THREE.CanvasTexture> {
  const canvas = await html2canvas(element, {
    scale: 2,
    useCORS: true,
    backgroundColor: null, // transparent
  });

  const texture = new THREE.CanvasTexture(canvas);
  texture.colorSpace = THREE.SRGBColorSpace;
  texture.needsUpdate = true;

  return texture;
}

Read the full file on GitHub · 154 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. 5d ago Changed · +8 lines ca31808c2cad
  2. 1mo ago First seen · 146 lines · 50 tokens per session scan A 5d653443cff0

Subscribe to this mod's changes

html-to-3d-texture is a skill published in the GitHub repository RaNDoM6913/claude-code-superkit (3 stars, last pushed 5d ago), licensed MIT. It adds 50 tokens to every session and 1,135 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories