✦ Agent Skill

Preview 3D-print G-code in a web pagev2026.11.29

Have your AI agent add a layer-by-layer 3D-print preview to your web app

Author CWYZLevel Mid
4.0
Free

Use when the user wants a 3D preview of 3D-printing G-code in their own web, Vue, React or Svelte app. Uses the open-source TypeScript library gcode-preview (three.js) to draw the toolpath layer by layer, with multi-colour, tubes, a build plate and a layer slider; recognises PrusaSlicer, Cura and other slicer files. Preview only, no slicing.

Updated Nov 29, 2026

Preview 3D-print G-code in a web page
Images and videos

Skill name

gcode-preview

Output

Works with

Claude CodeCodexAny agent that reads SKILL.md

Access

Free after sign-in

Related tutorials and cases

Tutorial

Advanced: Red lines for steering MiniMax H3 with 3D

Advanced tutorial: have your AI agent build a Three.js draft of wireframes and capsules, export it as a control video at exactly 24 fps, and run a strength comparison in ComfyUI's official H3 Fun ControlNet Union template. Then plan blocking and occlusion around the red lines one creator found in 48 tests, fix single details by changing one thing with the same seed, and review every take twice: muted for edges, with headphones for sound. Includes 3 copy-ready prompts.

Tutorial

Make AI Video Follow the Camera Move You Design

Intermediate tutorial: Have your AI agent install an open-source film camera template library and render a grey camera preview on your own computer, with striped capsules standing in for people. Describe the shot you want, and it picks one of 137 camera moves, adjusts the camera path and cut timing, and writes the prompt. Seedance 2.5 then makes a cheap 480p draft for you to check, and HD comes only after you approve. It quotes the price before every paid step. Includes 3 copy-ready prompts.

Tutorial

Make Viral-Style Cartoon Story Shorts With Claude

Intermediate tutorial: Add the open-source, free claude-animated-shorts skill to Claude Code and use three.js and Remotion to render a roughly one-minute vertical cartoon story short on your own computer. Flat 2D characters move through a colorful 3D town, with ink outlines, depth of field, camera moves, music and sound effects, and no AI video model is involved. The guide includes three copy-ready prompts that take you from setup to the final render.

Tutorial

Advanced: Let Your AI Agent Build a Playable 3D Game

Advanced tutorial: Use the open-source GameFactory-3A to have your AI agent make a game following a real game development process. Pick a route based on your computer and budget, spell out your requirements and have it draft a chapter plan, build a playable whitebox out of blocks, then swap in generated 3D models, animations, and sound (quoted before any spending), and iterate on playtest recordings. Supports three.js, Godot, Unity, UE5, and Blender, with 5 prompts you can copy directly.

Similar skills

All skills

What you get

  • A rotatable 3D toolpath preview in your page
  • A slider to scrub through layers
  • Multi-colour and build plate display
  • A running page with a screenshot

Good for

  • Developers of print farm or printing-service dashboards
  • Makers showing print files on their site

Not for

  • Anyone who needs to slice models into G-code
  • CNC milling toolpath previews

About this skill

Turn a slicer's G-code file into a 3D toolpath preview in the browser that you can rotate and scrub layer by layer. Your AI agent installs the open-source gcode-preview library, puts a canvas in the page or component you name, wires it to a file upload or your backend, adds colours, a build plate and a layer slider as needed, then runs the app and takes a screenshot to confirm. It fits print farm dashboards, online slicers and print queues; it does not slice models into G-code.

What you need

  • A web project (plain HTML, Vue, React or Svelte) with Node.js and npm
  • The free, open-source gcode-preview library (MIT), which uses three.js; your agent installs it
  • A G-code file to test with
  • No API key and no online service

FAQ

Which slicers' files does it read? It recognises the PrusaSlicer family, Cura, Simplify3D and Slic3r, and standard G-code from other slicers usually renders too.

Will big files be slow? Rendering once and then only changing the visible layers stays fast. The 3.0 test release can draw while downloading; your agent asks before using a test release.

Can it show each colour of a multi-material print? Yes, give each tool its own colour.

This is an outline. The full SKILL.md comes with the install: sign in, then copy the prompt or download.

REVIEWS

4.0

0 reviews

Rate this skill

No reviews yet.

Used this skill? Be the first to rate it.

Done with this one? Mark it to track your path.Sign in
Save it for laterSign in
Questions about this piece?Ask AI about this