Communitygithub.com

alfathafp/portofolio-web-design

React NativeおよびExpoを使用した高性能モバイルアプリ開発のためのベストプラクティス集。React Nativeコンポーネントの構築、リストパフォーマンスの最適化、アニメーションの実装、ネイティブモジュールの操作時に使用します。React Native、Expo、モバイルパフォーマンス、ネイティブプラットフォームAPIに関連するタスクで発動します。

portofolio-web-design とは?

このスキルは、React NativeおよびExpoアプリケーションを開発するための包括的なベストプラクティスを提供します。リストパフォーマンス(FlashListの使用やアイテムのメモ化など)、アニメーション(GPUプロパティのみをアニメーション化するなど)、ナビゲーション、UIパターン、状態管理、レンダリング、モノレポ構成、フォント設定など、幅広いカテゴリをカバーしています。各カテゴリには優先度が設定されており、特にリストパフォーマンスは「CRITICAL」と位置づけられています。このスキルは、Claude CodeやCursorなどのAIエージェントがReact Nativeのコードを生成・レビューする際に、パフォーマンスの高いモバイルアプリを実現するための具体的なルールとコード例を提供します。各ルールは個別のMarkdownファイルに詳細な説明とコード例が記載されており、開発者は必要に応じて参照できます。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/alfathafp/portofolio-web-design/tree/HEAD/.agents/skills/vercel-react-native-skills

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

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

ドキュメント

React Nativeスキル

React NativeおよびExpoアプリケーション向けの包括的なベストプラクティス。パフォーマンス、アニメーション、UIパターン、プラットフォーム固有の最適化など、複数のカテゴリにわたるルールが含まれています。

適用タイミング

以下の場合にこれらのガイドラインを参照してください:

  • React NativeまたはExpoアプリを構築する場合
  • リストおよびスクロールパフォーマンスを最適化する場合
  • Reanimatedを使用したアニメーションを実装する場合
  • 画像やメディアを扱う場合
  • ネイティブモジュールまたはフォントを設定する場合
  • ネイティブ依存関係を持つモノレポプロジェクトを構築する場合

優先度別ルールカテゴリ

優先度カテゴリ影響度プレフィックス
1リストパフォーマンスクリティカルlist-performance-
2アニメーション高animation-
3ナビゲーション高navigation-
4UIパターン高ui-
5状態管理中react-state-
6レンダリング中rendering-
7モノレポ中monorepo-
8設定低fonts-, imports-

クイックリファレンス

1. リストパフォーマンス(クリティカル)

  • list-performance-virtualize - 大きなリストにはFlashListを使用する
  • list-performance-item-memo - リストアイテムコンポーネントをメモ化する
  • list-performance-callbacks - コールバック参照を安定化させる
  • list-performance-inline-objects - インラインスタイルオブジェクトを避ける
  • list-performance-function-references - 関数をレンダリングの外に抽出する
  • list-performance-images - リスト内の画像を最適化する
  • list-performance-item-expensive - 高負荷な処理をアイテムの外に移動する
  • list-performance-item-types - 異種リストにはアイテムタイプを使用する

2. アニメーション(高)

  • animation-gpu-properties - transformとopacityのみをアニメーション化する
  • animation-derived-value - 計算されたアニメーションにはuseDerivedValueを使用する
  • animation-gesture-detector-press - Pressableの代わりにGesture.Tapを使用する

3. ナビゲーション(高)

  • navigation-native-navigators - JSナビゲーターよりもネイティブスタックとネイティブタブを使用する

4. UIパターン(高)

  • ui-expo-image - すべての画像にexpo-imageを使用する
  • ui-image-gallery - 画像ライトボックスにはGaleriaを使用する
  • ui-pressable - TouchableOpacityの代わりにPressableを使用する
  • ui-safe-area-scroll - ScrollViewでセーフエリアを処理する
  • ui-scrollview-content-inset - ヘッダーにはcontentInsetを使用する
  • ui-menus - ネイティブコンテキストメニューを使用する
  • ui-native-modals - 可能な場合はネイティブモーダルを使用する
  • ui-measure-views - measure()ではなくonLayoutを使用する
  • ui-styling - StyleSheet.createまたはNativewindを使用する

5. 状態管理(中)

  • react-state-minimize - 状態のサブスクリプションを最小化する
  • react-state-dispatcher - コールバックにはディスパッチャーパターンを使用する
  • react-state-fallback - 初回レンダリング時にフォールバックを表示する
  • react-compiler-destructure-functions - React Compilerのために分割代入する
  • react-compiler-reanimated-shared-values - コンパイラで共有値を処理する

6. レンダリング(中)

  • rendering-text-in-text-component - テキストはTextコンポーネントでラップする
  • rendering-no-falsy-and - 条件付きレンダリングにfalsy &&を使用しない

7. モノレポ(中)

  • monorepo-native-deps-in-app - ネイティブ依存関係はアプリパッケージに保持する
  • monorepo-single-dependency-versions - パッケージ全体で単一バージョンを使用する

8. 設定(低)

  • fonts-config-plugin - カスタムフォントには設定プラグインを使用する
  • imports-design-system-folder - デザインシステムのインポートを整理する
  • js-hoist-intl - Intlオブジェクトの生成をホイストする

使用方法

詳細な説明とコード例については、個別のルールファイルを参照してください:

rules/list-performance-virtualize.md
rules/animation-gpu-properties.md

各ルールファイルには以下が含まれています:

  • 重要である理由の簡単な説明
  • 説明付きの誤ったコード例
  • 説明付きの正しいコード例
  • 追加のコンテキストと参照

完全版コンパイルドキュメント

すべてのルールが展開された完全ガイドについては:AGENTS.md

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

alfathafp/portofolio-web-design

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).

alfathafp/portofolio-web-design

Tests in real browsers via Chrome DevTools MCP. Use when building or debugging anything that runs in a browser. Use when you need to inspect the DOM, capture console errors, analyze network requests, profile performance, or verify visual output with real runtime data. Requires the chrome-devtools MCP server to be configured.

alfathafp/portofolio-web-design

Automates CI/CD pipeline setup. Use when setting up or modifying build and deployment pipelines. Use when you need to automate quality gates, configure test runners in CI, or establish deployment strategies.

alfathafp/portofolio-web-design

Conducts multi-axis code review. Use before merging any change. Use when reviewing code written by yourself, another agent, or a human. Use when you need to assess code quality across multiple dimensions before it enters the main branch. Use when asked to review a diff or a pull request, even when the diff is pasted inline.

alfathafp/portofolio-web-design

Simplifies code for clarity. Use when refactoring code for clarity without changing behavior. Use when code works but is harder to read, maintain, or extend than it should be. Use when reviewing code that has accumulated unnecessary complexity.

alfathafp/portofolio-web-design

Establishes a project's quality bar as a written contract and stops agents quietly lowering it. Interviews the user on which dimensions matter, supplies sane default thresholds when they have no number in mind, records everything in CONSTRAINTS.md, and watches the diff for a weakened bar — new @ts-ignore or eslint-disable suppressions, skipped or deleted tests, assertions stripped out, unimplemented stubs, thresholds edited down. Use when no quality bar is written down, when the user says "set up constraints" or "define our standards", when the user wants dimensions they care about — accessibility, web performance, coverage — set up as enforced constraints, when an agent keeps silencing checks or skipping tests to get to green, when you need a coverage or performance threshold and don't know what number to pick, or when an agent writes more code than anyone will read.

alfathafp/portofolio-web-design

Optimizes agent context setup. Use when starting a new session, when agent output quality degrades, when switching between tasks, or when you need to configure rules files and context for a project.

alfathafp/portofolio-web-design

Guides systematic root-cause debugging. Use when tests fail, builds break, something that worked yesterday broke, behavior doesn't match expectations, or you encounter any unexpected error. Use when you need to figure out what broke and why — a systematic approach to finding and fixing the root cause rather than guessing.

alfathafp/portofolio-web-design

Deploy applications and websites to Vercel. Use when the user requests deployment actions like "deploy my app", "deploy and give me the link", "push this live", or "create a preview deployment".

alfathafp/portofolio-web-design

Manages deprecation and migration. Use when removing old systems, APIs, or features. Use when migrating users from one implementation to another. Use when migrating a database schema in production, such as renaming or dropping a column without downtime (expand/contract). Use when deciding whether to maintain or sunset existing code.

alfathafp/portofolio-web-design

Use when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.

alfathafp/portofolio-web-design

Use when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies

alfathafp/portofolio-web-design

Records decisions and documentation. Use when you need to document an architecture decision (ADR) or the reasoning behind a design choice, when changing public APIs, shipping features, or when you need to record context that future engineers and agents will need to understand the codebase.

alfathafp/portofolio-web-design

Subjects every non-trivial decision to a fresh-context adversarial review before it stands. Use when you want every assumption cross-examined before proceeding, when stress-testing a plan for hidden failure modes, when correctness matters more than speed, when working in unfamiliar code, when stakes are high (production auth, security-sensitive logic, a high-stakes migration, irreversible operations), or any time a confident output would be cheaper to verify now than to debug later.

alfathafp/portofolio-web-design

Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available

alfathafp/portofolio-web-design

Use when implementation is complete, all tests pass, and you need to decide how to integrate the work

alfathafp/portofolio-web-design

Builds production-quality, accessible, responsive user-facing UIs. Use when building or modifying interfaces and pages, creating components, implementing layouts, meeting WCAG accessibility requirements, managing state, or when the output needs to look and feel production-quality rather than AI-generated.

alfathafp/portofolio-web-design

Structures git workflow practices. Use when making any code change. Use when committing, branching, resolving conflicts, splitting uncommitted work in a messy working tree into clean atomic commits, opening or reviewing a pull request (PR), pushing to a remote, or when you need to organize work across multiple parallel streams. Use when cutting a release, choosing a semantic version bump, tagging, or writing a changelog.

alfathafp/portofolio-web-design

Refines raw ideas into sharp, actionable concepts through structured divergent and convergent thinking. Use when an idea is still vague, when you need to stress-test assumptions before committing to a plan, or when you want to expand options before converging on one. Triggers on "ideate", "refine this idea", or "stress-test my plan".

alfathafp/portofolio-web-design

Guides stable API and interface design. Use when designing APIs, module boundaries, or any public interface. Use when creating REST or GraphQL endpoints, defining type contracts between modules, or establishing boundaries between frontend and backend.

関連スキル