combat-ui-pattern-a
Implement Split-Panel Combat UI (Pattern A) for SHINOBI WAY game. Use when user wants to create the horizontal confrontation combat layout, character panels, action dock, phase header, VS divider, or any component from the Pattern A combat UI system. Guides through component creation following the established architecture.
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o combat-ui-pattern-a.zip https://jpskill.com/download/17757.zip && unzip -o combat-ui-pattern-a.zip && rm combat-ui-pattern-a.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/17757.zip -OutFile "$d\combat-ui-pattern-a.zip"; Expand-Archive "$d\combat-ui-pattern-a.zip" -DestinationPath $d -Force; ri "$d\combat-ui-pattern-a.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
combat-ui-pattern-a.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
combat-ui-pattern-aフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-18
- 取得日時
- 2026-05-18
- 同梱ファイル
- 5
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
Combat UI Pattern A - 分割パネル実装
このスキルは、分割パネル形式の Combat UI の実装をガイドし、縦型のシアターモードを水平方向の対決レイアウトに変換します。
アーキテクチャ概要
┌───────────────────────────────────────────────────┐
│ TURN INDICATOR │ PHASE PIPELINE │ MODIFIERS │ ← PhaseHeader
├──────────────────┴───────┬───────────┴────────────┤
│ │ │
│ PLAYER PANEL │ ENEMY PANEL │ ← ConfrontationZone
│ (CharacterPanel) │ (CharacterPanel) │
│ │ │
├──────────────────────────┴────────────────────────┤
│ QUICK ACTIONS (SIDE/TOGGLE) │ MAIN ACTIONS │ ← ActionDock
└───────────────────────────────┴───────────────────┘
コンポーネント階層
Combat.tsx (シーンオーケストレーター)
├── CombatLayout.tsx (CSS Grid コンテナ)
│ ├── 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 (SIDE スキル)
│ │ └── QuickActionCard (TOGGLE スキル)
│ ├── MainActionsSection
│ │ └── MainActionCard (MAIN スキル)
│ └── ControlButtons (Auto, End Turn)
│
└── FloatingTextLayer (z-50, 変更なし)
ファイル構成
src/components/combat/
├── index.ts # Barrel exports
├── CombatLayout.tsx # Grid コンテナ
├── PhaseHeader.tsx # 上部のステータスバー
├── ConfrontationZone.tsx # プレイヤー対敵エリア
├── CharacterPanel.tsx # 再利用可能なキャラクター表示
├── VSDivider.tsx # 中央の VS エンブレム
├── ActionDock.tsx # 下部のスキルバー
├── QuickActionCard.tsx # コンパクトな SIDE/TOGGLE カード
└── MainActionCard.tsx # 大きな MAIN スキルカード
実装ワークフロー
ステップ 1: ターゲットコンポーネントの特定
ユーザーにどのコンポーネントを実装するかを尋ねます。
- CombatLayout - 新規実装の場合はここから開始
- PhaseHeader - 上部のステータスバー
- ConfrontationZone - 両方のパネルを含む戦闘エリア
- CharacterPanel - 個々のキャラクター表示
- VSDivider - 中央のエンブレムとエフェクト
- ActionDock - 下部のスキルバー
- QuickActionCard - コンパクトなスキルカードのバリアント
- MainActionCard - 大きなスキルカードのバリアント
ステップ 2: コンポーネントリファレンスのロード
選択に基づいて、適切なリファレンスをロードします。
- レイアウト/構造: layout-specs.md を参照
- コンポーネントの Props: component-interfaces.md を参照
- スタイリングガイド: styling-tokens.md を参照
- アニメーション仕様: animations.md を参照
ステップ 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 への接続
コンポーネント作成後:
components/combat/index.tsからエクスポートCombat.tsxにインポート- 対応するセクションを置き換え
- 既存の状態から必要な props を渡す
クイック実装コマンド
すべてのファイルを作成 (スキャフォールディング)
# ディレクトリを作成
mkdir -p src/components/combat
# すべてのコンポーネントファイルを作成
touch src/components/combat/{index,CombatLayout,PhaseHeader,ConfrontationZone,CharacterPanel,VSDivider,ActionDock,QuickActionCard,MainActionCard}.tsx
Barrel Export テンプレート
// 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 (player)
character: player, stats: playerStats, variant: 'player'
// CharacterPanel (enemy)
character: enemy, stats: enemyStats, variant: 'enemy'
// ActionDock
skills: player.skills, turnPhase, onUseSkill, onPassTurn
移行戦略
フェーズ 1: レイアウトの基礎
- CSS Grid を使用して
CombatLayout.tsxを作成 - プレースホルダーコンポーネントを作成
- Combat.tsx にフィーチャーフラグを追加
フェーズ 2: コンポーネントの抽出
CharacterPanelを実装 (PlayerHUD + CinematicViewscreen から抽出)ActionDockを実装 (スキルグリッドから抽出)PhaseHeaderを実装 (インラインインジケーターから抽出)
フェーズ 3: ビジュアルの磨き上げ
- エフェクト付きの
VSDividerを追加 - Implem
(原文がここで切り詰められています)
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
Combat UI Pattern A - Split-Panel Implementation
This skill guides implementation of the Split-Panel Combat UI, transforming the vertical theater mode into a horizontal confrontation layout.
Architecture Overview
┌───────────────────────────────────────────────────┐
│ TURN INDICATOR │ PHASE PIPELINE │ MODIFIERS │ ← PhaseHeader
├──────────────────┴───────┬───────────┴────────────┤
│ │ │
│ PLAYER PANEL │ ENEMY PANEL │ ← ConfrontationZone
│ (CharacterPanel) │ (CharacterPanel) │
│ │ │
├──────────────────────────┴────────────────────────┤
│ QUICK ACTIONS (SIDE/TOGGLE) │ MAIN ACTIONS │ ← ActionDock
└───────────────────────────────┴───────────────────┘
Component Hierarchy
Combat.tsx (scene orchestrator)
├── CombatLayout.tsx (CSS Grid container)
│ ├── PhaseHeader.tsx (top status bar)
│ │ ├── TurnIndicator
│ │ ├── PhasePipeline
│ │ ├── SideActionCounter
│ │ └── ApproachModifier
│ │
│ ├── ConfrontationZone.tsx (battle area)
│ │ ├── CharacterPanel.tsx (player variant)
│ │ │ ├── CharacterSprite
│ │ │ ├── IdentityBar
│ │ │ ├── ResourceBars (HP/CP)
│ │ │ └── BuffBar
│ │ │
│ │ ├── VSDivider.tsx (center emblem)
│ │ │
│ │ └── CharacterPanel.tsx (enemy variant)
│ │ ├── CharacterSprite
│ │ ├── IdentityBar (name, tier, element)
│ │ ├── HealthBar
│ │ ├── DefenseStats
│ │ └── BuffBar
│ │
│ └── ActionDock.tsx (skill bar)
│ ├── QuickActionsSection
│ │ ├── QuickActionCard (SIDE skills)
│ │ └── QuickActionCard (TOGGLE skills)
│ ├── MainActionsSection
│ │ └── MainActionCard (MAIN skills)
│ └── ControlButtons (Auto, End Turn)
│
└── FloatingTextLayer (z-50, unchanged)
File Structure
src/components/combat/
├── index.ts # Barrel exports
├── CombatLayout.tsx # Grid container
├── PhaseHeader.tsx # Top status bar
├── ConfrontationZone.tsx # Player vs Enemy area
├── CharacterPanel.tsx # Reusable character display
├── VSDivider.tsx # Center VS emblem
├── ActionDock.tsx # Bottom skill bar
├── QuickActionCard.tsx # Compact SIDE/TOGGLE card
└── MainActionCard.tsx # Large MAIN skill card
Implementation Workflow
Step 1: Identify Target Component
Ask user which component to implement:
- CombatLayout - Start here for new implementation
- PhaseHeader - Top status bar
- ConfrontationZone - Battle area with both panels
- CharacterPanel - Individual character display
- VSDivider - Center emblem and effects
- ActionDock - Bottom skill bar
- QuickActionCard - Compact skill card variant
- MainActionCard - Large skill card variant
Step 2: Load Component Reference
Based on selection, load the appropriate reference:
- Layout/Structure: See layout-specs.md
- Component Props: See component-interfaces.md
- Styling Guide: See styling-tokens.md
- Animation Specs: See animations.md
Step 3: Generate Component Code
Follow the component template pattern:
import React from 'react';
import { cn } from '@/lib/utils'; // if using cn utility
interface ComponentNameProps {
// Props from component-interfaces.md
}
export const ComponentName: React.FC<ComponentNameProps> = ({
// destructured props
}) => {
return (
<div className={cn(
// Base styles from styling-tokens.md
// Conditional styles
)}>
{/* Component content */}
</div>
);
};
Step 4: Wire to Combat.tsx
After component creation:
- Export from
components/combat/index.ts - Import in
Combat.tsx - Replace corresponding section
- Pass required props from existing state
Quick Implementation Commands
Create All Files (Scaffolding)
# Create directory
mkdir -p src/components/combat
# Create all component files
touch src/components/combat/{index,CombatLayout,PhaseHeader,ConfrontationZone,CharacterPanel,VSDivider,ActionDock,QuickActionCard,MainActionCard}.tsx
Barrel Export Template
// 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 Mapping from Existing Code
From App.tsx → Combat.tsx (unchanged)
player: Player
enemy: Enemy
turnState: 'PLAYER' | 'ENEMY_TURN'
turnPhase: TurnPhaseState
combatState: CombatState
onUseSkill: (skill: Skill) => void
onPassTurn: () => void
onToggleAutoCombat: () => void
autoCombatEnabled: boolean
Combat.tsx → New Components
// PhaseHeader
turnState, turnPhase, combatState.approach
// ConfrontationZone
player, enemy, playerStats, enemyStats
// CharacterPanel (player)
character: player, stats: playerStats, variant: 'player'
// CharacterPanel (enemy)
character: enemy, stats: enemyStats, variant: 'enemy'
// ActionDock
skills: player.skills, turnPhase, onUseSkill, onPassTurn
Migration Strategy
Phase 1: Layout Foundation
- Create
CombatLayout.tsxwith CSS Grid - Create placeholder components
- Add feature flag in Combat.tsx
Phase 2: Component Extraction
- Implement
CharacterPanel(extract from PlayerHUD + CinematicViewscreen) - Implement
ActionDock(extract from skill grids) - Implement
PhaseHeader(extract from inline indicators)
Phase 3: Visual Polish
- Add
VSDividerwith effects - Implement animations
- Adjust floating text positions
Phase 4: Cleanup
- Remove old theater mode code
- Remove feature flag
- Update tests
Reference Files
- layout-specs.md - CSS Grid structure, responsive breakpoints
- component-interfaces.md - TypeScript interfaces for all components
- styling-tokens.md - Colors, spacing, typography tokens
- animations.md - Animation keyframes and transitions
Output Format
Generate TypeScript React components with:
- TypeScript interface for props
- Tailwind CSS for styling (matching existing codebase)
- Responsive classes (mobile fallback to vertical)
- Memoization where appropriate (React.memo for cards)
- Accessibility attributes (aria-labels, roles)
Existing Code References
When implementing, reference these existing files:
| New Component | Reference From |
|---|---|
| CharacterPanel (player) | src/components/PlayerHUD.tsx |
| CharacterPanel (enemy) | src/scenes/Combat.tsx lines 113-305 |
| ActionDock | src/scenes/Combat.tsx lines 308-607 |
| QuickActionCard | src/components/SkillCard.tsx |
| MainActionCard | src/components/SkillCard.tsx |
| PhaseHeader | src/scenes/Combat.tsx lines 311-328 |
同梱ファイル
※ ZIPに含まれるファイル一覧。`SKILL.md` 本体に加え、参考資料・サンプル・スクリプトが入っている場合があります。
- 📄 SKILL.md (8,543 bytes)
- 📎 references/animations.md (13,322 bytes)
- 📎 references/component-interfaces.md (11,205 bytes)
- 📎 references/layout-specs.md (7,472 bytes)
- 📎 references/styling-tokens.md (11,008 bytes)