Communitygithub.com

ComeOnOliver/skillshub

SHINOBI WAY 게임에 분할 패널 전투 UI (패턴 A)를 구현합니다. 사용자가 가로 대치 전투 레이아웃, 캐릭터 패널, 액션 독, 페이즈 헤더, VS 구분선 또는 패턴 A 전투 UI 시스템의 모든 구성 요소를 만들고자 할 때 사용합니다. 기존 아키텍처에 따라 구성 요소 생성을 안내합니다.

skillshub란 무엇인가요?

이 스킬은 SHINOBI WAY 게임을 위해 Split-Panel 전투 UI(패턴 A)를 구현하는 방법을 안내합니다. 기존의 세로 극장 모드를 가로 대치 레이아웃으로 변환하는 것이 핵심입니다. 이 스킬은 개발자가 단계별로 구성 요소(PhaseHeader, ConfrontationZone, CharacterPanel, VSDivider, ActionDock 등)를 생성하고 기존 Combat.tsx에 연결할 수 있도록 상세한 컴포넌트 계층 구조, 파일 구조, 구현 워크플로우를 제공합니다. 특히 사용자가 특정 컴포넌트를 식별하고, 관련 레퍼런스 파일(layout-specs, component-interfaces, styling-tokens, animations)을 로드한 후 템플릿을 기반으로 TypeScript React 컴포넌트 코드를 생성하는 과정을 지원합니다. 이 스킬은 Tailwind CSS를 사용한 스타일링, 반응형 디자인, 메모이제이션, 접근성 속성을 강조하며, 기존 코드베이스(PlayerHUD, SkillCard 등)를 참조하여 마이그레이션을 용이하게 합니다. 결과적으로 개발자는 복잡한 전투 UI를 체계적으로 리팩토링하거나 새롭게 구축할 수 있습니다.

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

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

전투 UI 패턴 A - 분할 패널 구현

이 스킬은 분할 패널 전투 UI를 구현하여 세로 극장 모드를 가로 대치 레이아웃으로 변환합니다.

아키텍처 개요

┌───────────────────────────────────────────────────┐
│  턴 표시기  │  페이즈 파이프라인  │  수정자  │  ← PhaseHeader
├──────────────────┴───────┬───────────┴────────────┤
│                          │                        │
│     플레이어 패널        │     적 패널            │  ← ConfrontationZone
│     (CharacterPanel)     │     (CharacterPanel)   │
│                          │                        │
├──────────────────────────┴────────────────────────┤
│  빠른 행동 (사이드/토글)  │   주요 행동            │  ← ActionDock
└───────────────────────────────┴───────────────────┘

컴포넌트 계층 구조

Combat.tsx (씬 오케스트레이터)
├── CombatLayout.tsx (CSS 그리드 컨테이너)
│   ├── PhaseHeader.tsx (상단 상태 표시줄)
│   │   ├── TurnIndicator
│   │   ├── PhasePipeline
│   │   ├── SideActionCounter
│   │   └── ApproachModifier
│   │
│   ├── ConfrontationZone.tsx (전투 영역)
│   │   ├── CharacterPanel.tsx (플레이어 변형)
│   │   │   ├── CharacterSprite
│   │   │   ├── IdentityBar
│   │   │   ├── ResourceBars (HP/CP)
│   │   │   └── BuffBar
│   │   │
│   │   ├── VSDivider.tsx (중앙 엠블럼)
│   │   │
│   │   └── CharacterPanel.tsx (적 변형)
│   │       ├── CharacterSprite
│   │       ├── IdentityBar (이름, 등급, 속성)
│   │       ├── HealthBar
│   │       ├── DefenseStats
│   │       └── BuffBar
│   │
│   └── ActionDock.tsx (스킬 바)
│       ├── QuickActionsSection
│       │   ├── QuickActionCard (사이드 스킬)
│       │   └── QuickActionCard (토글 스킬)
│       ├── MainActionsSection
│       │   └── MainActionCard (메인 스킬)
│       └── ControlButtons (자동, 턴 종료)
│
└── FloatingTextLayer (z-50, 변경 없음)

파일 구조

src/components/combat/
├── index.ts                  # 배럴 익스포트
├── CombatLayout.tsx          # 그리드 컨테이너
├── PhaseHeader.tsx           # 상단 상태 표시줄
├── ConfrontationZone.tsx     # 플레이어 vs 적 영역
├── CharacterPanel.tsx        # 재사용 가능한 캐릭터 표시
├── VSDivider.tsx             # 중앙 VS 엠블럼
├── ActionDock.tsx            # 하단 스킬 바
├── QuickActionCard.tsx       # 컴팩트 사이드/토글 카드
└── MainActionCard.tsx        # 큰 메인 스킬 카드

구현 워크플로우

1단계: 대상 컴포넌트 식별

사용자에게 구현할 컴포넌트를 질문합니다:

  1. CombatLayout - 새 구현은 여기서 시작
  2. PhaseHeader - 상단 상태 표시줄
  3. ConfrontationZone - 양쪽 패널이 있는 전투 영역
  4. CharacterPanel - 개별 캐릭터 표시
  5. VSDivider - 중앙 엠블럼 및 효과
  6. ActionDock - 하단 스킬 바
  7. QuickActionCard - 컴팩트 스킬 카드 변형
  8. MainActionCard - 큰 스킬 카드 변형

2단계: 컴포넌트 레퍼런스 로드

선택에 따라 적절한 레퍼런스를 로드합니다:

3단계: 컴포넌트 코드 생성

컴포넌트 템플릿 패턴을 따릅니다:

import React from 'react';
import { cn } from '@/lib/utils'; // cn 유틸리티를 사용하는 경우

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

export const ComponentName: React.FC<ComponentNameProps> = ({
  // 구조 분해된 props
}) => {
  return (
    <div className={cn(
      // styling-tokens.md의 기본 스타일
      // 조건부 스타일
    )}>
      {/* 컴포넌트 내용 */}
    </div>
  );
};

4단계: Combat.tsx에 연결

컴포넌트 생성 후:

  1. components/combat/index.ts에서 내보내기
  2. Combat.tsx에서 가져오기
  3. 해당 섹션 교체
  4. 기존 상태에서 필요한 props 전달

빠른 구현 명령어

모든 파일 생성 (스캐폴딩)

# 디렉토리 생성
mkdir -p src/components/combat

# 모든 컴포넌트 파일 생성
touch src/components/combat/{index,CombatLayout,PhaseHeader,ConfrontationZone,CharacterPanel,VSDivider,ActionDock,QuickActionCard,MainActionCard}.tsx

배럴 익스포트 템플릿

// 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 매핑

App.tsx → Combat.tsx (변경 없음)

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

Combat.tsx → 새 컴포넌트

// PhaseHeader
turnState, turnPhase, combatState.approach

// ConfrontationZone
player, enemy, playerStats, enemyStats

// CharacterPanel (플레이어)
character: player, stats: playerStats, variant: 'player'

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

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

마이그레이션 전략

1단계: 레이아웃 기반

  1. CSS 그리드로 CombatLayout.tsx 생성
  2. 플레이스홀더 컴포넌트 생성
  3. Combat.tsx에 기능 플래그 추가

2단계: 컴포넌트 추출

  1. CharacterPanel 구현 (PlayerHUD + CinematicViewscreen에서 추출)
  2. ActionDock 구현 (스킬 그리드에서 추출)
  3. PhaseHeader 구현 (인라인 표시기에서 추출)

3단계: 시각적 개선

  1. 효과가 있는 VSDivider 추가
  2. 애니메이션 구현
  3. 플로팅 텍스트 위치 조정

4단계: 정리

  1. 이전 극장 모드 코드 제거
  2. 기능 플래그 제거
  3. 테스트 업데이트

레퍼런스 파일

출력 형식

다음과 같은 TypeScript React 컴포넌트를 생성합니다:

  1. TypeScript 인터페이스 (props용)
  2. Tailwind CSS (스타일링, 기존 코드베이스와 일치)
  3. 반응형 클래스 (모바일은 세로로 폴백)
  4. 메모이제이션 (카드에는 React.memo 사용)
  5. 접근성 속성 (aria-labels, roles)

기존 코드 레퍼런스

구현 시 다음 기존 파일을 참조합니다:

새 컴포넌트레퍼런스 출처
CharacterPanel (플레이어)src/components/PlayerHUD.tsx
CharacterPanel (적)src/scenes/Combat.tsx 113-305행
ActionDocksrc/scenes/Combat.tsx 308-607행
QuickActionCardsrc/components/SkillCard.tsx
MainActionCardsrc/components/SkillCard.tsx
PhaseHeadersrc/scenes/Combat.tsx 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

관련 스킬