Third-Person-MC: Skill for Claude Code

.agent/skills/vtj-state-management/SKILL.md

vtj-state-management is a skill for Claude Code, Codex from hexianWeb/Third-Person-MC. It costs 35 tokens per session (2,739 once invoked), scanned A, original, MIT.

A two-part state system connecting Vue's user interface with a Three.js scene. Pinia stores lasting shared values, while mitt sends immediate events between parts of the app.

In plain words
What is it for?
Use it to share UI and scene state, trigger 3D actions from Vue, update the interface from the scene, and manage settings or user preferences.
Why use it?
It gives persistent settings and quick notifications different paths, reducing confusion when the interface and 3D scene must stay synchronized.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

This is hexianWeb/Third-Person-MC's own configuration. It tells Claude Code and Codex how to work on Third-Person-MC itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything Third-Person-MC configures →

Reuse

Borrowing it

Nothing to install: this file belongs to hexianWeb/Third-Person-MC. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/hexianWeb/Third-Person-MC/main/.agent/skills/vtj-state-management/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/hexianWeb/Third-Person-MC

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for vtj-state-management

README.md
[![agentmods](https://agentmods.dev/badge/skills/hexianweb/third-person-mc/vtj-state-management/github.svg)](https://agentmods.dev/skills/hexianweb/third-person-mc/vtj-state-management)
Your own site
<a href="https://agentmods.dev/skills/hexianweb/third-person-mc/vtj-state-management"><img src="https://agentmods.dev/badge/skills/hexianweb/third-person-mc/vtj-state-management/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for vtj-state-management

Your own site · 80×15
<a href="https://agentmods.dev/skills/hexianweb/third-person-mc/vtj-state-management"><img src="https://agentmods.dev/badge/skills/hexianweb/third-person-mc/vtj-state-management.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,739 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00035 $0.02739
Opus 5 $0.00017 $0.01370
Sonnet 5 $0.00007 $0.00548
Haiku 4.5 $0.00003 $0.00274

Measured 10d ago against content hash 38a99cd84daa, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

vtj-state-management scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agent/skills/vtj-state-management/SKILL.md · 373 lines

How it starts

The opening of the file, as written. The whole thing — 373 lines — stays where its author put it; the contents beside it link to each section on GitHub.

vite-threejs State Management (Pinia + mitt)

Overview

本项目使用 双通道状态管理

  • Pinia:持久化状态,Vue 和 Three.js 双向同步
  • mitt:即时事件通知,跨层通信

核心原则:Pinia 管状态,mitt 管事件。状态变更通过 Pinia,通知 Three.js 通过 mitt emit。

When to Use

  • 需要在 Vue UI 和 Three.js 之间共享状态
  • 需要从 UI 触发 3D 场景行为
  • 需要从 3D 场景通知 UI 更新
  • 管理游戏设置、用户偏好等持久状态

双通道架构

┌─────────────────────────────────────────────────────────────┐
│                         Vue UI Layer                         │
│  ┌─────────────────┐          ┌─────────────────┐           │
│  │   Components    │◄────────►│   Pinia Stores  │           │
│  └─────────────────┘          └────────┬────────┘           │
└────────────────────────────────────────┼────────────────────┘
                                         │ emitter.emit()
                                         ▼
┌─────────────────────────────────────────────────────────────┐
│                      mitt Event Bus                          │
└─────────────────────────────────────────────────────────────┘
                                         │ emitter.on()
                                         ▼
┌─────────────────────────────────────────────────────────────┐
│                      Three.js Layer                          │
│  ┌─────────────────┐          ┌─────────────────┐           │
│  │   Components    │◄────────►│   Experience    │           │
│  └─────────────────┘          └─────────────────┘           │
└─────────────────────────────────────────────────────────────┘

Pinia Store 模式

Store 定义

// src/pinia/settingsStore.js
import emitter from '@three/utils/event-bus.js'
import { defineStore } from 'pinia'
import { ref } from 'vue'

export const useSettingsStore = defineStore('settings', () => {
  // 状态
  const shadowQuality = ref('high')
  
  // Action:修改状态 + 通知 Three.js
  function setShadowQuality(quality) {
    shadowQuality.value = quality
    emitter.emit('shadow:quality-changed', quality)  // 通知 Three.js
    saveSettings()  // 持久化
  }
  
  return { shadowQuality, setShadowQuality }
})

Read the full file on GitHub · 373 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 373 lines · 35 tokens per session scan A 38a99cd84daa

Subscribe to this mod's changes

vtj-state-management is a skill published in the GitHub repository hexianWeb/Third-Person-MC (191 stars, last pushed 1mo ago), licensed MIT. It adds 35 tokens to every session and 2,739 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

javascript-expert

Expert-level JavaScript development with modern ES2024+ features, Node.js, npm ecosystem, and best practices. Use when the user mentions ECMAScript, ES2024, Node.js, npm, or web, or when the task involves Modern JavaScript, Node.js Development, Modern Tooling, or Functional Programming.

personamanagmentlayer/pcl · 69 tokens

svelte-expert

Expert knowledge in Svelte framework, SvelteKit, reactivity system, compiled approach, and building performant web applications. Use when the user mentions SvelteKit, reactivity, compiler, frontend, performance, or JavaScript, or when the task involves Svelte Fundamentals, Reactivity System, Installation and Setup, or…

personamanagmentlayer/pcl · 74 tokens

vue-expert

Expert knowledge in Vue.js 3, Composition API, Pinia state management, and Nuxt.js for building modern reactive web applications. Use when the user mentions Vue 3, the Composition API, Pinia, Nuxt, reactive, or frontend, or when the task involves Vue 3 Fundamentals, Composition API, Pinia State Management, or Nuxt.js.

personamanagmentlayer/pcl · 78 tokens

vue-craftsman

Professional Vue Craftsman Expert skill. Build accessible, performance-tuned, responsive UI components with clean design standards.

AtulPurohit/Antigravity-Awesome-Skills · 27 tokens

astro

Astro web framework reference — zero JavaScript by default with Islands Architecture. Covers project setup, file-based routing, framework islands (React/Vue/Svelte), hydration directives, content collections, SSR/SSG, View Transitions, and deployment.

bytesagain/ai-skills · 52 tokens

shadcn-svelte

Pre-built shadcn-svelte components for json-render Svelte apps. Use when working with @json-render/shadcn-svelte, adding standard UI components to a Svelte catalog, or building Svelte web UIs with shadcn-svelte + Tailwind CSS components.

vercel-labs/json-render · 63 tokens