vtj-state-management
CommunitySync Vue UI with Three.js via Pinia & mitt.
AuthorhexianWeb
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This skill enables cross-layer state synchronization between the Vue UI and the Three.js scene by using Pinia stores for persistent UI state and a mitt-based event bus for real-time messaging. It addresses the challenge of keeping the UI and 3D experience in sync without tightly coupling their logic.
Core Features & Use Cases
- Dual-channel state management: Pinia stores drive UI state while mitt emits and listens to events for immediate changes in the 3D experience.
- Decoupled communication: UI actions trigger 3D behavior and 3D events update the UI, enabling clean separation of concerns.
- Use cases include managing game settings, user preferences, and cross-layer triggers like scene changes, HUD updates, or camera adjustments.
Quick Start
Define a Pinia store for your UI state, set up a shared mitt event bus, and wire UI components to emit events and Three.js components to listen for them.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: vtj-state-management Download link: https://github.com/hexianWeb/Third-Person-MC/archive/main.zip#vtj-state-management Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.