Communitygithub.com

ComeOnOliver/skillshub

SwiftUI コードの作成、レビュー、改善を行います。状態管理、ビュー構成、パフォーマンス、macOS 固有 API、iOS 26+ の Liquid Glass 採用など、ベストプラクティスに従います。新しい SwiftUI 機能の開発、既存ビューのリファクタリング、コード品質のレビュー、モダンな SwiftUI パターンの採用時に使用します。

skillshub とは?

このスキルは、SwiftUI 開発者がアプリケーションコードの品質を向上させるための包括的なアシスタントです。状態管理、ビュー構成、パフォーマンス、リスト、レイアウト、シートとナビゲーション、スクロールビュー、アニメーション(基礎・遷移・高度)、アクセシビリティ、Swift Charts、画像最適化、Liquid Glass(iOS 26+)、macOS 固有のシーンやウィンドウスタイルなど、幅広いトピックをカバーします。Claude Code や Cursor などの AI エージェントプラットフォーム上で動作し、指定された参照ファイルを活用して最新の API を優先し、非推奨 API を避けるように設計されています。タスクワークフローは、既存コードのレビュー、改善、新機能の実装の 3 つに分かれており、トピックルーターを使って該当する参照ファイルを参照します。また、`@State` は private にする、`ForEach` では安定した識別子を使う、iOS 26+ の API は `#available` でガードするなど、厳格な正確性チェックリストに従います。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/ComeOnOliver/skillshub/tree/HEAD/skills/AvdLee/SwiftUI-Agent-Skill/swiftui-expert-skill

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

SwiftUI エキスパートスキル

運用ルール

  • 各タスクの開始時に必ず references/latest-apis.md を参照し、非推奨 API を避けること
  • ブリッジングがどうしても必要な場合を除き、UIKit/AppKit へのブリッジングよりもネイティブの SwiftUI API を優先すること
  • 正確性とパフォーマンスに重点を置き、特定のアーキテクチャ(MVVM、VIPER など)を強制しないこと
  • テスト容易性のためにビジネスロジックをビューから分離することを推奨するが、方法を強制しないこと
  • Apple のヒューマンインターフェイスガイドラインと API 設計パターンに従うこと
  • ユーザーから明示的に要求された場合にのみ Liquid Glass を採用する(references/liquid-glass.md を参照)
  • パフォーマンス最適化は要件としてではなく、提案として提示すること
  • バージョン固有の API には #available ガードと賢明なフォールバックを使用すること

タスクワークフロー

既存の SwiftUI コードをレビューする

  • レビュー対象のコードを読み、どのトピックが該当するかを特定する
  • 非推奨 API をフラグする(references/latest-apis.md と比較)
  • 関連する各トピックについて、以下のトピックルーターを実行する
  • iOS 26+ の機能に対する #available ガードとフォールバックパスを検証する

既存の SwiftUI コードを改善する

  • 現在の実装をトピックルーターのトピックに照らして監査する
  • 非推奨 API を references/latest-apis.md の最新の同等機能に置き換える
  • ホットパスをリファクタリングして不要な状態更新を減らす
  • 複雑なビュー本文を個別のサブビューに抽出する
  • UIImage(data:) が使用されている場合は画像のダウンサンプリングを提案する(任意の最適化。references/image-optimization.md を参照)

新しい SwiftUI 機能を実装する

  • まずデータフローを設計する:所有状態と注入状態を特定する
  • 最適な差分検出のためにビューを構成する(サブビューは早期に抽出する)
  • 正しいアニメーションパターンを適用する(暗黙的 vs 明示的、遷移)
  • タップ可能な要素にはすべて Button を使用し、アクセシビリティのグループ化とラベルを追加する
  • バージョン固有の API を #available でガードし、フォールバックを提供する

トピックルーター

現在のタスクに関連する各トピックについて、該当する参照ファイルを参照すること:

トピック参照ファイル
状態管理references/state-management.md
ビュー構成references/view-structure.md
パフォーマンスreferences/performance-patterns.md
リストと ForEachreferences/list-patterns.md
レイアウトreferences/layout-best-practices.md
シートとナビゲーションreferences/sheet-navigation-patterns.md
ScrollViewreferences/scroll-patterns.md
アニメーション(基礎)references/animation-basics.md
アニメーション(遷移)references/animation-transitions.md
アニメーション(高度)references/animation-advanced.md
アクセシビリティreferences/accessibility-patterns.md
Swift Chartsreferences/charts.md
チャートのアクセシビリティreferences/charts-accessibility.md
画像最適化references/image-optimization.md
Liquid Glass(iOS 26+)references/liquid-glass.md
macOS シーンreferences/macos-scenes.md
macOS ウィンドウスタイルreferences/macos-window-styling.md
macOS ビューreferences/macos-views.md
非推奨 API 検索references/latest-apis.md

正確性チェックリスト

これらは厳格なルールです。違反は常にバグと見なされます:

  • @State プロパティは private であること
  • @Binding は子が親の状態を変更する場合にのみ使用すること
  • 渡された値を @State または @StateObject として宣言しないこと(更新が無視されるため)
  • ビューが所有するオブジェクトには @StateObject、注入されたオブジェクトには @ObservedObject を使用すること
  • iOS 17+:@Observable と組み合わせて @State を使用し、注入された監視可能オブジェクトでバインディングが必要な場合は @Bindable を使用すること
  • ForEach は安定した識別子を使用すること(動的コンテンツに .indices を使用しない)
  • ForEach の要素ごとにビュー数が一定であること
  • .animation(_:value:) には常に value パラメータを含めること
  • iOS 26+ の API は #available でガードし、フォールバックを提供すること
  • チャート型を使用するファイルには import Charts が存在すること

参照ファイル

  • references/latest-apis.md -- すべてのタスクで最初に読むこと。 非推奨から最新 API への移行(iOS 15+ から iOS 26+ まで)
  • references/state-management.md -- プロパティラッパー、データフロー、@Observable 移行
  • references/view-structure.md -- ビュー抽出、コンテナパターン、@ViewBuilder
  • references/performance-patterns.md -- ホットパス最適化、更新制御、_logChanges()
  • references/list-patterns.md -- ForEach の識別子、Table(iOS 16+)、インラインフィルタリングの落とし穴
  • references/layout-best-practices.md -- レイアウトパターン、GeometryReader の代替
  • references/accessibility-patterns.md -- VoiceOver、Dynamic Type、グループ化、Traits
  • references/animation-basics.md -- 暗黙的/明示的アニメーション、タイミング、パフォーマンス
  • references/animation-transitions.md -- ビュー遷移、matchedGeometryEffect、Animatable
  • references/animation-advanced.md -- フェーズ/キーフレームアニメーション(iOS 17+)、@Animatable マクロ(iOS 26+)
  • references/charts.md -- Swift Charts のマーク、軸、選択、スタイリング、Chart3D(iOS 26+)
  • references/charts-accessibility.md -- チャートの VoiceOver、Audio Graph、フォールバック戦略
  • references/sheet-navigation-patterns.md -- シート、NavigationSplitView、Inspector
  • references/scroll-patterns.md -- ScrollViewReader、プログラムスクロール
  • references/image-optimization.md -- AsyncImage、ダウンサンプリング、キャッシュ
  • references/liquid-glass.md -- iOS 26+ Liquid Glass エフェクトとフォールバックパターン
  • references/macos-scenes.md -- Settings、MenuBarExtra、WindowGroup、マルチウィンドウ
  • references/macos-window-styling.md -- ツールバースタイル、ウィンドウサイズ、Commands
  • references/macos-views.md -- HSplitView、Table、PasteButton、AppKit 相互運用

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

関連スキル