/vibedgames:capacitor-iosfrom vibedgames
Ships a Three.js + Vite app on iOS via Capacitor with GLTF loading, animation UI, OrbitControls touch mapping, and SPM integration.
Ships in vibedgames. 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.
Ship a Three.js + Vite app in an iOS native shell via Capacitor. Two runtimes — web renderer (Three.js + Vite) and native wrapper (Capacitor iOS) — must agree on an explicit, testable contract: web output dir, animation names, build output, iOS package manager. Most breakage is an implicit contract.
Before implementing, confirm:
dist or www) matches Capacitor webDir.assets_index.json), not hardcoded strings.npm run build).public/ and load via absolute URLs (/assets/...).webDir: "dist".npx cap add ios --packagemanager SPM.npm run build → npx cap sync ios → npx cap run ios (or npx cap open ios).Command details: references/capacitor-ios-spm-workflow.md.
index.html + src/* for app codepublic/assets/... for GLBs and JSON contractscapacitor.config.ts with webDir: "dist"Runtime fetches must work in both browser and WKWebView: use fetch('/assets/assets_index.json'), not filesystem or environment-specific base URLs.
assets_index.jsonOne source of truth: skeleton URL, animation source URL, and animations[] entries with a stable app id (idle, walk, run), sourceClipName (exact AnimationClip.name), and loop mode/defaults.
Runtime: load index JSON → load skeleton GLB + animation GLB → resolve each UI button to a clip by sourceClipName → build AnimationAction map keyed by app id → play default action. See references/threejs-animation-index-pattern.md.
Use OrbitControls with explicit mouseButtons and touches:
For vertical-only pan, constrain target/camera translation after controls.update() each frame — don't change rotate/zoom semantics.
Math.min(devicePixelRatio, 2).SPM by default on Capacitor 8+; migrate existing CocoaPods projects intentionally. Re-run npx cap sync ios after native-side or plugin changes.
assets_index.json once at startup.cap sync/cap run.mouseButtons and touches explicitly.Don't converge on a generic "orbit + three buttons" viewer. Vary by product intent: character showcase (richer lighting, slow damping, idle emphasis), gameplay prototype (fast transitions, state-driven switching, minimal UI), asset QA tool (diagnostics overlay, clip length/track info, missing-clip warnings). Tune at least visual style, input feel (damping/zoom/pan speeds), and animation UX (buttons, shortcuts, auto-play).
references/capacitor-ios-spm-workflow.md — iOS setup, migration, run commandsreferences/threejs-animation-index-pattern.md — index contract + runtime loadingreferences/gotchas.md — high-frequency failures and fixesWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub kyh/vibedgames --plugin vibedgames35 skills in this plugin
/animated-spritesheetsGenerate a character's animation frames (idle, run, attack, death…) as one labeled pose board, then slice, key and pack them into an engine-ready spritesheet./animationMake 2D sprite animation read well: frame budgets per clip, timing and spacing, cancel windows, smears, secondary motion, wiring clips in Phaser. Generating frames is pixel-art / animated-spritesheets./asepriteParse Aseprite files (.ase/.aseprite) — layers, cels, tags, slices, palettes, tilesets — into JSON, durations and bounds for engines and tools.Other plugins' skills for the same job