Communitygithub.com

ComeOnOliver/skillshub

SHINOBI WAY ゲームにスプリットパネル戦闘UI(パターンA)を実装します。水平対決レイアウト、キャラクターパネル、アクションドック、フェーズヘッダー、VSディバイダー、またはパターンA戦闘UIシステムの任意のコンポーネントを作成する際に使用します。確立されたアーキテクチャに従ってコンポーネント作成をガイドします。

skillshub とは?

このスキルは、SHINOBI WAY ゲームのためのスプリットパネル戦闘UI(パターンA)を実装するための包括的なガイドです。従来の縦型シアターモードを、プレイヤーと敵が左右に並ぶ水平対決レイアウトに変革します。CombatLayout、PhaseHeader、ConfrontationZone、CharacterPanel、VSDivider、ActionDock、QuickActionCard、MainActionCard の8つの主要コンポーネントで構成され、それぞれが明確な役割を持ち、CSSグリッドで配置されます。このスキルは、コンポーネントの段階的な作成手順、既存コードからのプロップマッピング、TypeScriptインターフェース、Tailwind CSSスタイリング、アクセシビリティ属性の付与など、実装に必要な全手順を提供します。また、レイアウトスペック、コンポーネントインターフェース、スタイリングトークン、アニメーション仕様などの参照ファイルへのリンクも含まれており、開発者は確立されたアーキテクチャに従って一貫性のあるUIを構築できます。このスキルは、コード生成アシスタント(Claude Code、Cursor、Codexなど)と連携して動作するように設計されており、各実装ステップで適切なコンポーネント参照を読み込み、テンプレートに従ったコードを生成します。

対応~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 からのプロップス
}

export const ComponentName: React.FC<ComponentNameProps> = ({
  // 分割代入されたプロップス
}) => {
  return (
    <div className={cn(
      // styling-tokens.md からのベーススタイル
      // 条件付きスタイル
    )}>
      {/* コンポーネント内容 */}
    </div>
  );
};

ステップ4: Combat.tsx への配線

コンポーネント作成後:

  1. components/combat/index.ts からエクスポート
  2. Combat.tsx にインポート
  3. 対応するセクションを置き換え
  4. 既存の状態から必要なプロップスを渡す

クイック実装コマンド

全ファイル作成 (スキャフォールディング)

# ディレクトリ作成
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';

既存コードからのプロップマッピング

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インターフェース
  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

関連スキル