Communitygithub.com

ComeOnOliver/skillshub

Implementiere die Split-Panel-Kampf-Benutzeroberfläche (Pattern A) für das SHINOBI WAY-Spiel. Verwende dies, wenn der Benutzer das horizontale Konfrontationslayout, Charakterpanels, die Aktionsleiste, den Phasenkopf, den VS-Trenner oder eine andere Komponente des Pattern-A-Kampf-UI-Systems erstellen möchte. Führt durch die Komponentenerstellung gemäß der festgelegten Architektur.

Was ist skillshub?

Diese Fertigkeit leitet die Implementierung der Split-Panel-Kampf-Benutzeroberfläche für das SHINOBI WAY-Spiel an, die das vertikale Theater-Modus-Layout in ein horizontales Konfrontationslayout umwandelt. Sie beschreibt detailliert die Komponentenhierarchie, beginnend mit dem Combat.tsx-Szenen-Orchestrator, der eine CombatLayout.tsx-CSS-Grid-Container-Komponente verwendet. Diese enthält einen PhaseHeader für die Statusleiste, eine ConfrontationZone mit zwei CharacterPanel-Varianten (Spieler und Gegner), einem VSDivider und einer ActionDock für Fertigkeiten. Die Fertigkeit bietet einen schrittweisen Implementierungs-Workflow, beginnend mit der Identifizierung der Zielkomponente (z.B. CombatLayout, PhaseHeader, CharacterPanel), gefolgt vom Laden von Komponentenreferenzen aus spezifischen Spezifikationsdateien, dem Generieren von TypeScript-React-Code mit Tailwind CSS und dem anschließenden Verdrahten der Komponente in Combat.tsx. Sie enthält außerdem eine Migrationsstrategie in vier Phasen (Layout-Grundlage, Komponentenextraktion, visuelle Überarbeitung, Bereinigung) und Schnellimplementierungsbefehle für das Erstellen aller Dateien. Schließlich verweist sie auf Referenzdateien für Layout-Spezifikationen, Komponentenschnittstellen, Styling-Tokens und Animationen, um eine konsistente Umsetzung zu gewährleisten.

Funktioniert mit~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/ComeOnOliver/skillshub/tree/HEAD/skills/aiskillstore/marketplace/cesaraugustusgrob/combat-ui-pattern-a

In Ihrer bevorzugten KI fragen

Öffnet einen neuen Chat, in dem dieser Agent-Skill bereits geladen ist.

Dokumentation

Kampf-UI Pattern A - Split-Panel-Implementierung

Diese Fertigkeit führt durch die Implementierung der Split-Panel-Kampf-Benutzeroberfläche, die das vertikale Theater-Modus-Layout in ein horizontales Konfrontationslayout umwandelt.

Architekturübersicht

┌───────────────────────────────────────────────────┐
│  ZUGANZEIGE  │  PHASENPIPELINE  │  MODIFIKATOREN  │  ← PhaseHeader
├──────────────────┴───────┬───────────┴────────────┤
│                          │                        │
│     SPIELERPANEL        │     GEGNERPANEL         │  ← ConfrontationZone
│     (CharacterPanel)     │     (CharacterPanel)   │
│                          │                        │
├──────────────────────────┴────────────────────────┤
│  SCHNELLAKTIONEN (SEITE/UMSCHALTEN)  │  HAUPTAKTIONEN   │  ← ActionDock
└───────────────────────────────┴───────────────────┘

Komponentenhierarchie

Combat.tsx (Szenen-Orchestrator)
├── CombatLayout.tsx (CSS-Grid-Container)
│   ├── PhaseHeader.tsx (obere Statusleiste)
│   │   ├── TurnIndicator
│   │   ├── PhasePipeline
│   │   ├── SideActionCounter
│   │   └── ApproachModifier
│   │
│   ├── ConfrontationZone.tsx (Kampfbereich)
│   │   ├── CharacterPanel.tsx (Spielervariante)
│   │   │   ├── CharacterSprite
│   │   │   ├── IdentityBar
│   │   │   ├── ResourceBars (HP/CP)
│   │   │   └── BuffBar
│   │   │
│   │   ├── VSDivider.tsx (zentrales Emblem)
│   │   │
│   │   └── CharacterPanel.tsx (Gegnervariante)
│   │       ├── CharacterSprite
│   │       ├── IdentityBar (Name, Stufe, Element)
│   │       ├── HealthBar
│   │       ├── DefenseStats
│   │       └── BuffBar
│   │
│   └── ActionDock.tsx (Fertigkeitsleiste)
│       ├── QuickActionsSection
│       │   ├── QuickActionCard (SEITE-Fertigkeiten)
│       │   └── QuickActionCard (UMSCHALTEN-Fertigkeiten)
│       ├── MainActionsSection
│       │   └── MainActionCard (HAUPT-Fertigkeiten)
│       └── ControlButtons (Auto, Zug beenden)
│
└── FloatingTextLayer (z-50, unverändert)

Dateistruktur

src/components/combat/
├── index.ts                  # Barrel-Exporte
├── CombatLayout.tsx          # Grid-Container
├── PhaseHeader.tsx           # Obere Statusleiste
├── ConfrontationZone.tsx     # Spieler vs. Gegner Bereich
├── CharacterPanel.tsx        # Wiederverwendbare Charakteranzeige
├── VSDivider.tsx             # Zentrales VS-Emblem
├── ActionDock.tsx            # Untere Fertigkeitsleiste
├── QuickActionCard.tsx       # Kompakte SEITE/UMSCHALTEN-Karte
└── MainActionCard.tsx        # Große HAUPT-Fertigkeitenkarte

Implementierungs-Workflow

Schritt 1: Zielkomponente identifizieren

Frage den Benutzer, welche Komponente implementiert werden soll:

  1. CombatLayout - Beginne hier für eine neue Implementierung
  2. PhaseHeader - Obere Statusleiste
  3. ConfrontationZone - Kampfbereich mit beiden Panels
  4. CharacterPanel - Einzelne Charakteranzeige
  5. VSDivider - Zentrales Emblem und Effekte
  6. ActionDock - Untere Fertigkeitsleiste
  7. QuickActionCard - Kompakte Fertigkeitenkartenvariante
  8. MainActionCard - Große Fertigkeitenkartenvariante

Schritt 2: Komponentenreferenz laden

Basierend auf der Auswahl die entsprechende Referenz laden:

Schritt 3: Komponentencode generieren

Folge dem Komponentenvorlagenmuster:

import React from 'react';
import { cn } from '@/lib/utils'; // falls cn-Dienstprogramm verwendet wird

interface ComponentNameProps {
  // Props aus component-interfaces.md
}

export const ComponentName: React.FC<ComponentNameProps> = ({
  // destrukturierte Props
}) => {
  return (
    <div className={cn(
      // Basisstile aus styling-tokens.md
      // Bedingte Stile
    )}>
      {/* Komponenteninhalt */}
    </div>
  );
};

Schritt 4: In Combat.tsx einbinden

Nach der Komponentenerstellung:

  1. Aus components/combat/index.ts exportieren
  2. In Combat.tsx importieren
  3. Entsprechenden Abschnitt ersetzen
  4. Erforderliche Props aus vorhandenem Status übergeben

Schnellimplementierungsbefehle

Alle Dateien erstellen (Grundgerüst)

# Verzeichnis erstellen
mkdir -p src/components/combat

# Alle Komponentendateien erstellen
touch src/components/combat/{index,CombatLayout,PhaseHeader,ConfrontationZone,CharacterPanel,VSDivider,ActionDock,QuickActionCard,MainActionCard}.tsx

Barrel-Exportvorlage

// src/components/combat/index.ts
export { CombatLayout } from './CombatLayout';
export { PhaseHeader } from './PhaseHeader';
export { ConfrontationZone } from './ConfrontationZone';
export { CharacterPanel } from './CharacterPanel';
export { VSDivider } from './VSDivider';
export { ActionDock } from './ActionDock';
export { QuickActionCard } from './QuickActionCard';
export { MainActionCard } from './MainActionCard';

Props-Zuordnung aus vorhandenem Code

Von App.tsx → Combat.tsx (unverändert)

player: Player
enemy: Enemy
turnState: 'PLAYER' | 'ENEMY_TURN'
turnPhase: TurnPhaseState
combatState: CombatState
onUseSkill: (skill: Skill) => void
onPassTurn: () => void
onToggleAutoCombat: () => void
autoCombatEnabled: boolean

Combat.tsx → Neue Komponenten

// PhaseHeader
turnState, turnPhase, combatState.approach

// ConfrontationZone
player, enemy, playerStats, enemyStats

// CharacterPanel (Spieler)
character: player, stats: playerStats, variant: 'player'

// CharacterPanel (Gegner)
character: enemy, stats: enemyStats, variant: 'enemy'

// ActionDock
skills: player.skills, turnPhase, onUseSkill, onPassTurn

Migrationsstrategie

Phase 1: Layout-Grundlage

  1. CombatLayout.tsx mit CSS Grid erstellen
  2. Platzhalterkomponenten erstellen
  3. Feature-Flag in Combat.tsx hinzufügen

Phase 2: Komponentenextraktion

  1. CharacterPanel implementieren (aus PlayerHUD + CinematicViewscreen extrahieren)
  2. ActionDock implementieren (aus Fertigkeitsrastern extrahieren)
  3. PhaseHeader implementieren (aus Inline-Anzeigen extrahieren)

Phase 3: Visuelle Überarbeitung

  1. VSDivider mit Effekten hinzufügen
  2. Animationen implementieren
  3. Positionen der schwebenden Texte anpassen

Phase 4: Bereinigung

  1. Alten Theater-Modus-Code entfernen
  2. Feature-Flag entfernen
  3. Tests aktualisieren

Referenzdateien

Ausgabeformat

Generiere TypeScript-React-Komponenten mit:

  1. TypeScript-Schnittstelle für Props
  2. Tailwind CSS für Styling (passend zur vorhandenen Codebasis)
  3. Responsive Klassen (mobile Rückfall auf vertikal)
  4. Memoization wo angemessen (React.memo für Karten)
  5. Barrierefreiheitsattribute (aria-labels, Rollen)

Vorhandene Code-Referenzen

Bei der Implementierung auf diese vorhandenen Dateien verweisen:

Neue KomponenteReferenz von
CharacterPanel (Spieler)src/components/PlayerHUD.tsx
CharacterPanel (Gegner)src/scenes/Combat.tsx Zeilen 113-305
ActionDocksrc/scenes/Combat.tsx Zeilen 308-607
QuickActionCardsrc/components/SkillCard.tsx
MainActionCardsrc/components/SkillCard.tsx
PhaseHeadersrc/scenes/Combat.tsx Zeilen 311-328

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

ComeOnOliver/skillshub

Create stunning, animation-rich HTML presentations from scratch or by converting PowerPoint files. Use when the user wants to build a presentation, convert a PPT/PPTX to web, or create slides for a talk/pitch. Helps non-designers discover their aesthetic through visual exploration rather than abstract choices.

ComeOnOliver/skillshub

Next.js 16+ 和 Turbopack — 增量打包、文件系统缓存、开发速度,以及何时使用 Turbopack 与 webpack。

ComeOnOliver/skillshub

SwiftUI architecture patterns, state management with @Observable, view composition, navigation, performance optimization, and modern iOS/macOS UI best practices.

ComeOnOliver/skillshub

See, Understand, Act on video and audio. See- ingest from local files, URLs, RTSP/live feeds, or live record desktop; return realtime context and playable stream links. Understand- extract frames, build visual/semantic/temporal indexes, and search moments with timestamps and auto-clips. Act- transcode and normalize (codec, fps, resolution, aspect ratio), perform timeline edits (subtitles, text/image overlays, branding, audio overlays, dubbing, translation), generate media assets (image, audio, video), and create real time alerts for events from live streams or desktop capture.

ComeOnOliver/skillshub

AI-assisted video editing workflows for cutting, structuring, and augmenting real footage. Covers the full pipeline from raw capture through FFmpeg, Remotion, ElevenLabs, fal.ai, and final polish in Descript or CapCut. Use when the user wants to edit video, cut footage, create vlogs, or build video content.

ComeOnOliver/skillshub

Next.js 15 애플리케이션을 위한 프론트엔드 개발 가이드라인. React 19, TypeScript, Shadcn/ui, Tailwind CSS를 사용한 모던 패턴. Server Components, Client Components, App Router, 파일 구조, Shadcn/ui 컴포넌트, 성능 최적화, TypeScript 모범 사례 포함. 컴포넌트, 페이지, 기능 생성, 데이터 페칭, 스타일링, 라우팅, 프론트엔드 코드 작업 시 사용.

ComeOnOliver/skillshub

Provides Tamagui patterns for config v4, compiler optimization, styled context, and cross-platform styling. Must use when working with Tamagui projects (tamagui.config.ts, @tamagui imports).

ComeOnOliver/skillshub

Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.

ComeOnOliver/skillshub

Create high-converting, visually distinctive landing pages. Use when building marketing pages, product launches, SaaS homepages, or any single-page conversion-focused website. Guides section-by-section composition with anti-AI-slop principles.

ComeOnOliver/skillshub

Auto-loaded context for Portfolio Buddy 2 development. Use for ANY task involving: React 19 development, TypeScript, portfolio analysis features, metrics calculations, trading strategy comparison, or working with the Portfolio Buddy 2 codebase. Contains tech stack, known issues, and architectural constraints.

ComeOnOliver/skillshub

Next.js development tooling via MCP. Inspect routes, components, build info, and debug Next.js apps. Use when working on Next.js applications, debugging routing, or inspecting app structure. NOT for general React or non-Next.js projects.

ComeOnOliver/skillshub

Implement UI using Shadcn MCP (atoms/theme) and 21st.dev MCP (complex sections). Use when adding buttons, layouts, or generating landing pages.

ComeOnOliver/skillshub

A conceptual skill for building an API client in Next.js that handles JWT tokens

ComeOnOliver/skillshub

Best practices and patterns for Next.js App Router, Server Actions, and Routing in this project.

ComeOnOliver/skillshub

The Design System, Theme, and UX rules for the Physical AI Hub.

ComeOnOliver/skillshub

Comprehensive frontend development skill for building modern, performant web applications using ReactJS, NextJS, TypeScript, Tailwind CSS. Includes component scaffolding, performance optimization, bundle analysis, and UI best practices. Use when developing frontend features, optimizing performance, implementing UI/UX designs, managing state, or reviewing frontend code.

ComeOnOliver/skillshub

This document captures learnings from fixing keyboard navigation issues when floating components (Select, DropdownMenu, Popover) have CSS open/close animations.

ComeOnOliver/skillshub

Build Next.js 16 applications with correct patterns and distinctive design. Use when creating pages, layouts, dynamic routes, upgrading from Next.js 15, or implementing proxy.ts. Covers breaking changes (async params/searchParams, Turbopack, cacheComponents) and frontend aesthetics. NOT when building non-React or backend-only applications.

ComeOnOliver/skillshub

Comprehensive Framer Motion animation library for React. Covers motion components, variants, gestures, page transitions, and scroll animations. Use when adding animations to React/Next.js applications.

ComeOnOliver/skillshub

Build interfaces that resonate, not just render. This skill enforces bold, intentional

Verwandte Skills