/qadri-3d:product-configuratorfrom qadri-3d
Build a 3D product configurator with three.js, where shoppers pick colors, materials, finishes or parts and see them on the 3D model with the price updating. Use when the user wants a color picker for a 3D product, a "customize your product" page, material or finish swatches, variant selection, a furniture, cabinet, shoe or car configurator, KHR_materials_variants, or wants options stored in the URL or sent to the cart. Includes a tested starter template.
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.
A configurator is a product viewer plus state: which option is selected, what it costs, and how the 3D model shows it.
Start from templates/configurator.html. It is tested, and it builds on the threejs-product-viewer template.
| Option type | Technique |
|---|---|
| Color of a part (glaze, fabric, paint) | Change material.color on the material with that name. This is what the template does. |
| Finish (matte, gloss, metal) | Change roughness, metalness and clearcoat on the same material. |
| Different textures (wood species, fabric patterns) | Preload the textures and swap material.map, keeping the same UVs. Set texture.colorSpace = THREE.SRGBColorSpace on color maps, and needsUpdate where required. |
| Designed variants delivered by the 3D artist | The glTF KHR_materials_variants extension (below). |
| Different parts (handle style, leg type, drawer count) | Separate meshes; toggle visible, or load parts on demand. |
| Dimensions (width, height) | Scale only parts designed to stretch. Better: model the parts in modules and position them from the dimensions. Never scale the whole model non-uniformly. |
Agree on material names with the 3D artist, e.g. Glaze, Band, Frame, Fabric. The template:
Map from material name to the set of materials. GLTFLoader can create more than one instance of a glTF material, so collect every instance.Never select parts by mesh index or order. Re-exporting the model changes both.
Optimize configurable models with --palette false --join false. glTF-Transform's optimize merges meshes and can merge materials by default, which breaks name-based lookups. See the 3d-asset-optimization skill. The template also enables MeshoptDecoder, so it can load optimized files.
If the file contains variants (Blender and other tools can export them), don't rebuild them by hand. three.js exposes the extension through gltf.userData.gltfExtensions.KHR_materials_variants, and each mesh's mapping through mesh.userData.gltfExtensions. Then:
await parser.getDependency('material', mapping.material).parser.assignFinalMaterial(mesh).userData, so you can switch back to it.The official example shows the full pattern: https://threejs.org/examples/webgl_loader_gltf_variants.html. <model-viewer> supports variants too, with variantName (model-viewer-ar skill).
history.replaceState. Selections survive a reload and can be shared ("send this configuration to my partner").<button>s with aria-pressed, grouped in a <fieldset> with a <legend>.aria-live="polite" region, e.g. "Glaze: Ocean".On-screen colors are an approximation: monitors, lighting and tone mapping differ. Keep the tone mapping neutral (THREE.NeutralToneMapping) and match the sRGB values the brand uses. Say "colors may vary slightly on screen" near the swatches for high-value purchases such as paint, fabric or cabinets.
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