mcpField
P
platform-building

platform-building

github.com/bbeierle12開発955 回インストール1 日前に更新
リポジトリ

platform-building について

モバイルのタッチ操作、VR入力、アクセシビリティに対応するシステム開発向けのスキルです。入力アダプターと、プラットフォーム機能や代替フィードバックに関する指針を提供します。

主な機能

  1. 01モバイルのジェスチャー操作
  2. 02VRの手とコントローラー入力
  3. 03色覚モードとコントラスト設定
  4. 04スクリーンリーダー連携パターン
  5. 05プラットフォーム機能の検出

活用シーン

  1. 01モバイル建築へのタッチ操作追加
  2. 02快適性を考慮したVR建築の設計
  3. 03視覚フィードバックの代替手段の用意

インストール

コマンドをコピーしてターミナルで実行します。

$npx skills add https://github.com/bbeierle12/skill-mcp-claude --skill platform-building

インストール後、Claude Code で/platform-buildingを入力して読み込まれたか確認します。

同梱ファイル

SKILL.md と一緒にインストールされる参考資料やスクリプト。

_meta.json
references/
platform-considerations.md
scripts/
accessibility-config.js
touch-build-controller.js
vr-building-adapter.js

詳細

プラットフォーム構築

構築システムのためのタッチ操作、VR 入力、アクセシビリティのパターン。

クイックスタート

import { TouchBuildController } from './scripts/touch-build-controller.js';
import { VRBuildingAdapter } from './scripts/vr-building-adapter.js';
import { AccessibilityConfig } from './scripts/accessibility-config.js';

// Mobile touch building
const touch = new TouchBuildController(canvas, {
  doubleTapToPlace: true,
  pinchToRotate: true,
  swipeToChangePiece: true
});

touch.onPlace = (position, rotation) => buildingSystem.place(position, rotation);
touch.onRotate = (angle) => ghost.rotate(angle);

// VR building with hand tracking
const vr = new VRBuildingAdapter(xrSession, {
  dominantHand: 'right',
  snapToGrid: true,
  comfortMode: true // Reduces motion sickness
});

vr.onGrab = (piece) => selection.select(piece);
vr.onRelease = (position) => buildingSystem.place(position);

// Accessibility configuration
const a11y = new AccessibilityConfig({
  colorblindMode: 'deuteranopia', // red-green
  highContrast: true,
  screenReaderHints: true
});

// Apply to ghost preview
ghost.setColors(a11y.getValidityColors());

リファレンス

references/platform-considerations.md を参照してください。

  • モバイルのジェスチャーパターン(Fortnite Mobile、Minecraft PE)
  • VR 構築の研究と快適性に関するガイドライン
  • 色覚特性に配慮したパレットの推奨事項
  • スクリーンリーダーの統合パターン
  • クロスプラットフォームの入力抽象化

スクリプト

ファイル行数目的
touch-build-controller.js~450モバイルジェスチャー:タップ、ドラッグ、ピンチ、スワイプ
vr-building-adapter.js~400VR の手やコントローラーによる入力、快適性の設定
accessibility-config.js~350色覚特性に配慮したモード、コントラスト、スクリーンリーダー

プラットフォームの検出

// Detect platform capabilities
const platform = {
  isMobile: /Android|iPhone|iPad|iPod/i.test(navigator.userAgent),
  isTouch: 'ontouchstart' in window,
  isVR: navigator.xr !== undefined,
  prefersReducedMotion: window.matchMedia('(prefers-reduced-motion: reduce)').matches,
  prefersHighContrast: window.matchMedia('(prefers-contrast: more)').matches
};

// Initialize appropriate controllers
if (platform.isVR && xrSession) {
  setupVRControls();
} else if (platform.isTouch) {
  setupTouchControls();
} else {
  setupMouseKeyboard();
}

モバイルに関する考慮事項

Fortnite Mobile は、カスタマイズ可能な HUD、自動素材選択、ジェスチャーによるピースの回転を備えた、効果的なタッチ操作での構築を実現しています。主なパターンとして、専用の構築モード切り替え、大きなタッチターゲット(最小 44px)、すべての操作に対する視覚的なフィードバックがあります。

VR に関する考慮事項

VR での構築では、快適性への配慮が必要です。スナップ回転は乗り物酔いを軽減し、腕の長さに合わせた構築距離は疲労を防ぎます。ハンドトラッキングでは直感的につかんで配置でき、コントローラーでの構築ではレーザーポインターによる選択が離れた位置のピースに有効です。

アクセシビリティのパターン

Valheim は安定性のインジケーターに緑と赤ではなく青と黄色を使用し、最も一般的な色覚特性である第二色覚異常に対応しています。ハイコントラストモードでは重要なインジケーターに 7:1 の比率を使用し、すべての視覚的フィードバックに音声または触覚による代替手段を用意してください。

コメント