combat-ui-pattern-a
Implement split-panel combat UI
Game developers building combat interfaces need consistent, well-architected UI components. This skill provides complete implementation guidance including TypeScript interfaces, CSS Grid layouts, animation specifications, and responsive styling tokens for the Pattern A combat UI system.
下載技能 ZIP
在 Claude 中上傳
前往 設定 → 功能 → 技能 → 上傳技能
開啟並開始使用
測試它
正在使用「combat-ui-pattern-a」。 Create ActionDock component for the combat UI
預期結果:
- CombatLayout.tsx grid container with PhaseHeader, ConfrontationZone, and ActionDock children
- ActionDock with QuickActionsSection (4-6 side/toggle skills) and MainActionsSection (2-4 main skills)
- Control buttons for Auto Combat and End Turn functionality
- Responsive layout: stacked on mobile, horizontal split on tablet and larger screens
- Skills filtered by actionType: SIDE, TOGGLE, MAIN, PASSIVE categories
正在使用「combat-ui-pattern-a」。 Show me the animation timing guidelines for combat effects
預期結果:
- Feedback animations: 150-300ms duration for user action responses
- Combat animations: 300-600ms duration for attack and damage visuals
- Transition animations: 200-400ms duration for state changes
- Critical hit effects: combine dramatic shake with scale animations
- Floating text animations: 60% travel distance over 400-600ms
安全審計
安全Pure documentation skill containing only TypeScript interface definitions, CSS/Tailwind styling tokens, animation specifications, and implementation workflows for UI component development. All 263 static findings are FALSE POSITIVES caused by pattern-matching markdown code blocks and Tailwind color class names without contextual understanding.
風險因素
⚙️ 外部命令 (212)
🌐 網路存取 (1)
📁 檔案系統存取 (1)
品質評分
你能建構什麼
Build combat interface
Create horizontal split-panel combat UI with player and enemy panels for confrontation gameplay
Design action dock
Implement skill bar with quick actions (SIDE/TOGGLE) and main action cards (MAIN) following design system
Add combat animations
Add floating text, screen shake, and character attack animations with timing guidelines
試試這些提示
Create CombatLayout component for Pattern A split-panel combat UI following the CSS Grid structure in layout-specs.md
Implement CharacterPanel component with player and enemy variants using the interfaces from component-interfaces.md
Add floating text and screen shake animations following the keyframe definitions in animations.md
Apply styling tokens from styling-tokens.md to create consistent color palette and spacing for combat components
最佳實務
- Use TypeScript interfaces from component-interfaces.md for type safety across all components
- Apply styling tokens consistently from styling-tokens.md to maintain design system cohesion
- Implement responsive breakpoints with mobile-first approach (stacked layout below 768px)
- Follow the four-phase migration strategy: Layout Foundation, Component Extraction, Visual Polish, Cleanup
避免
- Hardcoding colors instead of using defined styling tokens from the design system
- Ignoring the mobile fallback layout (stacked) for tablet and larger split-panel designs
- Skipping animation timing guidelines (150ms micro-interactions, 400ms attack animations)
- Not following the component hierarchy from CombatLayout down to individual action cards