mohitagw15856/pm-claude-skills / plugins/pm-3d-explorer/skills/explorer-viewer-builder
explorer-viewer-builder
VerifiedUse when asked to build a 3D viewer for a GLB model, make an interactive explorer with clickable labelled parts, add an exploded view or quiz to a 3D model, or turn a parts list into a web page. Produces a single-file Three.js viewer that loads GLB models, with orbit controls, clickable labelled parts, an exploded view toggle and a quiz mode, built from the tested template in references/viewer-template.html. Third step of explorer-pipeline.
Explorer Viewer Builder
The last step of a 3D explorer is a page anyone can open: no install, no build step, works on a phone. This skill produces a single HTML file from the tested template in references/viewer-template.html: Three.js from a CDN, a GLB loader, orbit controls, clickable parts with sourced labels, an exploded view and a quiz mode, filled in with the parts list and palette from the earlier steps.
Required Inputs
Ask for these if not provided:
- The GLB file (path or URL), or confirmation to start with the template's demo assembly
- The parts list: mesh name, label, description and source for each part (from model-prompt-pack)
- Palette and layout values (from explorer-interface-brief), or accept the template defaults
- Title and the illustrative statement
- Hosting: GitHub Pages, a static host, or opening the file locally (GLB files need a local server; browsers block
file://loading)
Working from a brief
Given the model file and the list of parts, write the complete single-file viewer anyway. Assume the GLB's node names match the parts listed, say so at the top, and wire the labels, the exploded view and the quiz to those names so a mismatch is a one-line fix.
Output Structure
1. The viewer file
A complete index.html based on the template, with:
- CONFIG filled in:
title,model, andparts(one entry per mesh name, each withlabel,descriptionandsource) - Palette applied to the CSS custom properties, with a dark-mode block
- The illustrative statement in the panel footer
- unchanged core behaviour from the template: orbit controls with damping; click (or tap) to select, ignoring drags; selection through the parts list for keyboard users; exploded view that moves each part away from the model's centre in its parent's space; quiz mode that asks for a random part, scores answers and highlights the right part after a miss; reset view; a demo fallback and a console warning if the model fails to load; a list of the model's mesh names when none match the parts list
2. Mesh-name check
A table matching the parts list against the mesh names the viewer reports (open the page with the model and read the panel, or the console): | Mesh name in parts list | Found in GLB? | Action |
3. Run and publish instructions
- Local:
npx serve .(orpython3 -m http.server) in the folder, then open the printed address - GitHub Pages: commit
index.htmland the.glb, enable Pages for the branch, and note the file-size limits - Performance: keep the GLB under 15 MB; compress textures; test on a mid-range phone
4. Test checklist
Binary checks to run in a browser: the model appears; each part in the list highlights and shows its label and source; dragging rotates without selecting; exploded view separates every labelled part and reverses; quiz mode scores a right and a wrong answer; the page has no horizontal scroll at 390 px wide; dark mode is readable; the console shows no errors.
Quality Checks
- The output is a single HTML file with no build step
- Every entry in CONFIG.parts has a label, a description and a source
- Every parts-list mesh name is checked against the GLB, with mismatches listed
- Parts can be selected from the keyboard through the parts list
- Exploded view and quiz mode both work and can be turned off
- The illustrative statement is visible on the page
- The page works at 390 px width and in dark mode with no console errors
- Three.js is loaded from a pinned version, not "latest"
Anti-Patterns
- Opening the HTML by double-clicking with a local GLB. Browsers block it; use a local server.
- Labels without sources. The viewer shows the source line for a reason; never leave it blank.
- Selecting on pointer down. Every rotation then selects a part; select on a click without movement.
- Unpinned CDN versions. A Three.js update can break the page overnight.
Example Trigger Phrases
- "Build a viewer for heart.glb with clickable labelled parts and a quiz."
- "Turn this parts list into a single-file Three.js explorer."
- "Add an exploded view and quiz mode to my 3D model page."
- "Make a GLB viewer that works on phones, no build step."
Run this skill in your browser: https://mohitagw15856.github.io/pm-claude-skills/skill/explorer-viewer-builder.html
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deployment | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| xlsxanthropics/skillsUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| shipping-and-launchaddyosmani/agent-skillsPrepares production launches. Use when preparing to deploy to production, or when asking what needs to be in place before shipping. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| childhoodthedotmack/claude-memBabysit a shipped release after merge, publication, or deployment. Verify published packages, production behavior, installed plugins, and late CI or user reports until the observation window is clean; use babysit for PR readiness before release. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |