跳到正文
cccskills
免费在 GitHub 公开

vercel-react-native-skills

Build and improve mobile apps with React Native and Expo using prioritized implementation rules. Covers faster lists, animations, images, navigation, state management, and native dependencies, with explanations and code examples for reviewing common implementation choices.

中文简介正在准备中。当前显示英语简介。

原文查看原文说明

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.

集成工具Vercel
查看安装方法

适用场景

  • Improving long lists and scrolling performance
  • Reviewing Reanimated animations and gestures
  • Choosing image, navigation, and modal implementations
  • Organizing native dependencies in a monorepo

包含的文件(42)

  • SKILL.md4.3 KB
  • AGENTS.md72.0 KB
  • metadata.json896 B
  • README.md4.9 KB
  • rules/_sections.md2.2 KB
  • rules/_template.md631 B
  • rules/animation-derived-value.md1.3 KB
  • rules/animation-gesture-detector-press.md2.5 KB
  • rules/animation-gpu-properties.md2.0 KB
  • rules/design-system-compound-components.md1.6 KB
  • rules/fonts-config-plugin.md1.4 KB
  • rules/imports-design-system-folder.md1.4 KB
  • rules/js-hoist-intl.md1.6 KB
  • rules/list-performance-callbacks.md1.0 KB
  • rules/list-performance-function-references.md4.0 KB
  • rules/list-performance-images.md1.4 KB
  • rules/list-performance-inline-objects.md2.3 KB
  • rules/list-performance-item-expensive.md2.4 KB
  • rules/list-performance-item-memo.md2.2 KB
  • rules/list-performance-item-types.md2.7 KB
  • rules/list-performance-virtualize.md1.7 KB
  • rules/monorepo-native-deps-in-app.md1.1 KB
  • rules/monorepo-single-dependency-versions.md1.3 KB
  • rules/navigation-native-navigators.md4.8 KB
  • rules/react-compiler-destructure-functions.md1.2 KB
  • rules/react-compiler-reanimated-shared-values.md1.2 KB
  • rules/react-state-dispatcher.md2.2 KB
  • rules/react-state-fallback.md1.7 KB
  • rules/react-state-minimize.md1.7 KB
  • rules/rendering-no-falsy-and.md1.8 KB
  • rules/rendering-text-in-text-component.md697 B
  • rules/scroll-position-no-state.md1.9 KB
  • rules/state-ground-truth.md2.1 KB
  • rules/ui-expo-image.md1.6 KB
  • rules/ui-image-gallery.md2.5 KB
  • rules/ui-measure-views.md2.2 KB
  • rules/ui-menus.md4.5 KB
  • rules/ui-native-modals.md1.8 KB
  • rules/ui-pressable.md1.5 KB
  • rules/ui-safe-area-scroll.md1.5 KB
  • rules/ui-scrollview-content-inset.md1.3 KB
  • rules/ui-styling.md2.2 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

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

PriorityCategoryImpactPrefix
1List PerformanceCRITICALlist-performance-
2AnimationHIGHanimation-
3NavigationHIGHnavigation-
4UI PatternsHIGHui-
5State ManagementMEDIUMreact-state-
6RenderingMEDIUMrendering-
7MonorepoMEDIUMmonorepo-
8ConfigurationLOWfonts-, 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

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Deploy apps and websites to Vercel and get a URL to share. The skill selects a deployment method based on Git integration and authentication, using preview deployments by default and production deployments when explicitly requested.

中文简介正在准备中。当前显示英语简介。

  • Share an app through a preview URL
  • Deploy a website to production
  • Set up deployments triggered by Git pushes
vercel-labs/agent-skills3.3万2026年10月15日 更新

Deploy and manage Vercel projects using access tokens instead of interactive login. Covers selecting the right project and team, preview deployments, environment variables, domains, and checking deployment status and logs.

中文简介正在准备中。当前显示英语简介。

  • Deploy a preview using an access token
  • Add or retrieve environment variables
  • Check deployment status and build logs
vercel-labs/agent-skills3.3万2026年10月15日 更新

Refactor React components into reusable pieces with clearer interfaces. Provides patterns for replacing excessive boolean settings, sharing state through providers, and designing component libraries, with additional guidance for React 19 APIs.

中文简介正在准备中。当前显示英语简介。

  • Refactor components with too many boolean settings
  • Design a reusable component library
  • Review shared state and provider structure
vercel-labs/agent-skills3.3万2026年10月15日 更新

Audit deployed Vercel projects for cost and performance improvements using production metrics. Examines usage, settings, and relevant code, then produces ranked recommendations supported by verified files and documentation matching the framework version.

中文简介正在准备中。当前显示英语简介。

  • Investigate Vercel usage and cost drivers
  • Find routes with measured performance problems
  • Assess caching opportunities using traffic data
vercel-labs/agent-skills3.3万2026年10月15日 更新

Write, review, and refactor React and Next.js code using performance guidelines ranked by impact. Covers sequential data requests, downloaded code size, server work, and unnecessary rendering to guide concrete implementation improvements.

中文简介正在准备中。当前显示英语简介。

  • Review React and Next.js code for performance issues
  • Improve data fetching that waits on sequential requests
  • Reduce downloaded code size and loading time
vercel-labs/agent-skills3.3万2026年10月15日 更新

Add animations to React interfaces using the browser's built-in view transitions. Guides page changes, shared elements that move between views, list reordering, component appearance, and loading reveals, with CSS styling and Next.js integration guidance.

中文简介正在准备中。当前显示英语简介。

  • Animating shared images between list and detail views
  • Adding forward and back page transitions
  • Animating list reordering and component visibility
vercel-labs/agent-skills3.3万2026年10月15日 更新

查看 vercel-labs 的全部技能

报告此技能的问题