/qadri-3d:model-viewer-arfrom qadri-3d
Add a 3D product view with "view in your room" augmented reality to any website using Google's ‹model-viewer› web component. No three.js code is needed. Use when the user wants AR for products, "view in your space", Quick Look on iPhone, Scene Viewer on Android, a simple 3D embed for Shopify, WordPress or a static site, a 3D poster/lazy-loaded model, or material variants without a custom configurator. For fully custom scenes use threejs-product-viewer.
Ships in qadri-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.
Read when SKILL.md points to them.
<model-viewer><model-viewer> is Google's open-source web component for displaying glTF models, with AR on Android and iOS. It is the fastest route when the user needs a good product view plus AR rather than a custom 3D experience.
<script type="module" src="https://ajax.googleapis.com/ajax/libs/model-viewer/4.3.1/model-viewer.min.js"></script>
<model-viewer
src="/models/mug.glb"
alt="Ceramic mug in tomato red"
poster="/models/mug-poster.webp"
camera-controls
auto-rotate
shadow-intensity="1"
tone-mapping="neutral"
environment-image="neutral"
ar
ar-modes="webxr scene-viewer quick-look"
style="width: 100%; height: 480px;">
</model-viewer>
| Attribute | Use |
|---|---|
src | The .glb. Optimize it first (3d-asset-optimization skill). |
alt | Required for accessibility: describe the product. |
poster | An image shown until the model loads. Use a render of the default view, so the swap is invisible. |
loading="lazy" / reveal="manual" | Defer loading below the fold, or until a "View in 3D" click. |
camera-controls, auto-rotate | Let shoppers orbit; spin until they interact. |
tone-mapping="neutral", environment-image="neutral" | Color-accurate, studio-style lighting. |
shadow-intensity | A soft contact shadow; 1 is a good default. |
ar, ar-modes | Turn on AR. The modes are tried in order: WebXR, then Android Scene Viewer, then iOS Quick Look. |
ios-src | An optional pre-made .usdz for iOS Quick Look. If it's missing, model-viewer generates a USDZ from the GLB on the fly. Supply your own for complex materials or for faster AR start. |
ar-placement="wall" | For wall-mounted items (art, mirrors, cabinets, TVs). Floor is the default. |
ar-scale="fixed" | Stop the shopper from resizing the product in AR, so it always shows at true size. |
AR shows the model at its glTF size in metres. A mug exported at 9.5 units appears 9.5 m tall. Check the model's dimensions before shipping, e.g. with npx @gltf-transform/cli inspect model.glb, or fix the scale in the source file. Don't fix it with CSS.
If the glTF contains KHR_materials_variants:
<model-viewer id="mv" src="/models/chair.glb" camera-controls ar></model-viewer>
<select id="variant"></select>
<script type="module">
const mv = document.querySelector('#mv');
const select = document.querySelector('#variant');
mv.addEventListener('load', () => {
for (const name of mv.availableVariants) select.add(new Option(name, name));
});
select.addEventListener('change', () => { mv.variantName = select.value; });
</script>
For options the file doesn't contain as variants (arbitrary colors, prices, URL state), use the product-configurator skill with three.js.
<model-viewer src="/models/mug.glb" ar ar-modes="webxr scene-viewer quick-look" camera-controls>
<button slot="ar-button" class="ar-btn">View in your room</button>
</model-viewer>
The slotted button is shown only on devices that can start AR. Listen to ar-status events to track session-started and failed, e.g. for analytics.
model/gltf-binary MIME type for .glb and model/vnd.usdz+zip for .usdz.alt text is present, when WebGL is unavailable.Docs and examples: https://modelviewer.dev/
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub qadri-uk/claude-skills --plugin qadri-3d71 skills in this plugin
/360-product-spinAdd a 360° product spin (a draggable image sequence) to a product page, and produce the frames by photographing the product on a turntable or rendering a 3D model with three.js. Use when the user wants a 360 view, a spin or rotating product photos, "turn the product around", a 360 product viewer, sprite sheets for product rotation, or has product photos but no 3D model. Uses the zero-dependency Spin360 web component./3d-3d-cloth-materialBuild convincing woven cloth in Three.js, with a thread-level weave normal map, sheen and anisotropic highlights, folds that never stretch the texture, hems with thickness, stitches, seams, frayed edges, fold occlusion, dye and wear variation, and light passing through thin fabric. Use for linen, silk, wool, canvas, curtains, banners, cloaks, tablecloths, tapestries or any 3D drape that currently looks like a plastic sheet, a stretched texture, or a flat coloured plane./3d-3d-falling-leavesBuild recognizable falling leaves in world space using instanced geometry, independent tumble, coupled sideways drift, shared wind, scene occlusion, and camera-aware recycling. Use for 3D autumn leaves or drifting foliage in Three.js and similar scenes; use falling-leaves for a 2D canvas overlay.Other plugins' skills for the same job