AgentSkillsCN

quest-keeper-frontend

Quest Keeper AI Tauri应用的前端开发技能。在处理React组件、Zustand存储、Three.js战斗地图、TailwindCSS样式或Tauri外壳集成时使用。在提及前端、React、Zustand、Three.js、战斗地图、UI、视口或Tauri时触发。

SKILL.md
--- frontmatter
name: quest-keeper-frontend
description: Frontend development skill for Quest Keeper AI Tauri application. Use when working on React components, Zustand stores, Three.js battlemaps, TailwindCSS styling, or Tauri shell integration. Triggers on mentions of frontend, React, Zustand, Three.js, battlemap, UI, viewport, or Tauri.

Quest Keeper Frontend Development

Location

code
C:\Users\mnehm\Desktop\Quest Keeper AI attempt 2

Tech Stack

  • Framework: Tauri 2.x (Rust shell + WebView)
  • UI: React 19 + TypeScript + Vite
  • State: Zustand stores
  • 3D: Three.js via @react-three/fiber
  • Styling: TailwindCSS (terminal/CRT aesthetic)

Directory Structure

code
src/
├── components/
│   ├── viewport/     # BattlemapCanvas, CharacterSheet, WorldMap
│   ├── adventure/    # Main layout (AdventureView.tsx)
│   ├── terminal/     # Chat interface
│   └── sidebar/      # Navigation
├── stores/           # Zustand state management
├── services/         # MCP client, LLM providers
├── hooks/            # Custom React hooks
└── utils/            # Helpers

Key Commands

powershell
npm run tauri dev     # Development with hot reload
npm run build         # Production build

MCP Response Parsing

typescript
import { parseMcpResponse } from '@/utils/mcpUtils';
const result = await mcpClient.callTool('get_character', { id });
const character = parseMcpResponse<Character>(result, null);

Terminal/CRT Aesthetic

Key classes: terminal-green, terminal-dim, terminal-dark, crt-glow, font-mono