AGENT SKILL

React Native/Expo 移动应用开发

vercel-react-native-skills

用于构建高性能移动应用的 React Native 和 Expo 最佳实践。在构建 React Native 组件、优化列表性能、实现动画或使用原生模块时使用。适用于涉及 React Native、Expo、移动性能或原生平台 API 的任务。

License 许可
MIT
最近更新
2026-11-14
Stars
★ 0
Forks
0

01 前言 Front Matter

name
vercel-react-native-skills
license
MIT
metadata
{ "author": "vercel", "version": "1.0.0" }
description
React Native and Expo best practices for building performant mobile apps. Use when building React Native components, optimizing list performance, implementing animations, or working with native modules. Triggers on tasks involving React Native, Expo, mobile performance, or native platform APIs.

02 资源文件 42

03 SKILL.md 正文

React Native Skills

Comprehensive best practices for React Native and Expo applications. Contains rules across multiple categories covering performance, animations, UI patterns, and platform-specific optimizations.

When to Apply

Reference these guidelines when:

  • Building React Native or Expo apps
  • Optimizing list and scroll performance
  • Implementing animations with Reanimated
  • Working with images and media
  • Configuring native modules or fonts
  • Structuring monorepo projects with native dependencies

Rule Categories by Priority

Priority Category Impact Prefix
1 List Performance CRITICAL list-performance-
2 Animation HIGH animation-
3 Navigation HIGH navigation-
4 UI Patterns HIGH ui-
5 State Management MEDIUM react-state-
6 Rendering MEDIUM rendering-
7 Monorepo MEDIUM monorepo-
8 Configuration LOW fonts-, imports-

Quick Reference

1. List Performance (CRITICAL)

  • list-performance-virtualize - Use FlashList for large lists
  • list-performance-item-memo - Memoize list item components
  • list-performance-callbacks - Stabilize callback references
  • list-performance-inline-objects - Avoid inline style objects
  • list-performance-function-references - Extract functions outside render
  • list-performance-images - Optimize images in lists
  • list-performance-item-expensive - Move expensive work outside items
  • list-performance-item-types - Use item types for heterogeneous lists

2. Animation (HIGH)

  • animation-gpu-properties - Animate only transform and opacity
  • animation-derived-value - Use useDerivedValue for computed animations
  • animation-gesture-detector-press - Use Gesture.Tap instead of Pressable

3. Navigation (HIGH)

  • navigation-native-navigators - Use native stack and native tabs over JS navigators

4. UI Patterns (HIGH)

  • ui-expo-image - Use expo-image for all images
  • ui-image-gallery - Use Galeria for image lightboxes
  • ui-pressable - Use Pressable over TouchableOpacity
  • ui-safe-area-scroll - Handle safe areas in ScrollViews
  • ui-scrollview-content-inset - Use contentInset for headers
  • ui-menus - Use native context menus
  • ui-native-modals - Use native modals when possible
  • ui-measure-views - Use onLayout, not measure()
  • ui-styling - Use StyleSheet.create or Nativewind

5. State Management (MEDIUM)

  • react-state-minimize - Minimize state subscriptions
  • react-state-dispatcher - Use dispatcher pattern for callbacks
  • react-state-fallback - Show fallback on first render
  • react-compiler-destructure-functions - Destructure for React Compiler
  • react-compiler-reanimated-shared-values - Handle shared values with compiler

6. Rendering (MEDIUM)

  • rendering-text-in-text-component - Wrap text in Text components
  • rendering-no-falsy-and - Avoid falsy && for conditional rendering

7. Monorepo (MEDIUM)

  • monorepo-native-deps-in-app - Keep native dependencies in app package
  • monorepo-single-dependency-versions - Use single versions across packages

8. Configuration (LOW)

  • fonts-config-plugin - Use config plugins for custom fonts
  • imports-design-system-folder - Organize design system imports
  • js-hoist-intl - Hoist Intl object creation

How to Use

Read individual rule files for detailed explanations and code examples:

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

Each rule file contains:

  • Brief explanation of why it matters
  • Incorrect code example with explanation
  • Correct code example with explanation
  • Additional context and references

Full Compiled Document

For the complete guide with all rules expanded: AGENTS.md

04 同仓库更多 Skills

lDuang
lDuang/mcp-skill-registry

Excel 电子表格处理

xlsx

当电子表格文件是主要输入或输出时,使用本技能。即用户想要执行以下任意任务:打开、读取、编辑或修复现有的 .xlsx、.xlsm、.xltx、.csv 或 .tsv 文件(例如添加列、计算公式、设置格式、制作图表、清理杂乱数据);从零开始或从其他数据源创建新的电子表格;或在表格文件格式之间进行转换。尤其当用户按名称或路径提及某个电子表格文件时触发——即使是随意提及(如“我下载文件夹里的 xlsx”)——并希望对其进行处理或从中生成内容。也适用于将杂乱的表格数据文件(格式错误的数据行、错位的表头、垃圾数据)清理或重组为规范的电子表格。交付物必须是电子表格文件。当主要交付物是 Word 文档、HTML 报告、独立的 Python 脚本、数据库管道或 Google Sheets API 集成时,不要触发,即使涉及表格数据。

数据分析师文档处理
★ 0
lDuang
lDuang/mcp-skill-registry

Web 应用自动化测试工具

webapp-testing

使用 Playwright 与本地 Web 应用程序进行交互和测试的工具包。支持验证前端功能、调试 UI 行为、捕获浏览器截图以及查看浏览器日志。

测试工程师测试与质量保障
★ 0
lDuang
lDuang/mcp-skill-registry

Web 工件构建工具

web-artifacts-builder

一套工具,用于使用现代前端 Web 技术(React、Tailwind CSS、shadcn/ui)创建精细的、多组件的 claude.ai HTML 工件。适用于需要状态管理、路由或 shadcn/ui 组件的复杂工件,不适用于简单的单文件 HTML/JSX 工件。

软件开发工程师前端开发与界面实现
★ 0
lDuang
lDuang/mcp-skill-registry

作品主题样式设置

theme-factory

用于为作品应用主题样式的工具包。这些作品可以是幻灯片、文档、报告、HTML 落地页等。提供 10 个包含颜色和字体的预设主题,可应用于任何已创建的作品,也可以即时生成新主题。

视觉设计师作品主题样式设计
★ 0
lDuang
lDuang/mcp-skill-registry

Slack 动图 GIF 制作

slack-gif-creator

用于创建针对 Slack 优化的动画 GIF 的知识和工具。提供相关约束条件、验证工具和动画概念。当用户请求制作用于 Slack 的动画 GIF 时使用,例如“帮我做一个 X 做 Y 的 GIF 用于 Slack”。

动效设计师动图 GIF 制作
★ 0
lDuang
lDuang/mcp-skill-registry

技能创建与优化

skill-creator

创建新技能、修改和改进现有技能,并衡量技能性能。当用户想要从零开始创建技能、编辑或优化现有技能、运行评测以测试技能、通过方差分析对技能性能进行基准测试,或优化技能描述以提高触发准确率时使用。

AI 工程师插件与技能管理
★ 0