Token导航 LogoToken导航

Agent Skill · 前端设计

react-native-setup(React native 设置)

用于辅助前端页面、组件、样式和交互逻辑的开发与维护。它适合让 Agent 生成或审查 React、Next.js、Vue、Tailwind、CSS 等相关代码,整理组件结构,或定位布局和性能问题。使用时需要结合项目现有设计系统、路由和构建方式,避免只生成孤立片段;涉及页面改动时,应配合本地预览和构建检查确认视觉效果。

react-native-setup 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证为 MIT,第三方扫描已通过,按安装量在前端设计类的 10,216 个 Skill 里排第 6,766。

总安装 461周安装 19GitHub Stars 127下载 150核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:react-native-setup(React native 设置)
来源仓库:https://github.com/anton-abyzov/specweave
仓库路径:skills/react-native-setup
安装命令:
npx skills add https://github.com/anton-abyzov/specweave --skill react-native-setup
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/anton-abyzov/specweave --skill react-native-setup

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

专为 2025 年 React Native 0.83+ 和 Expo SDK 54+ 环境配置设计,支持跨平台开发。涵盖 Node.js 版本管理、Hermes 引擎启用、EAS Build 配置与开发环境优化。提供从零开始的初始化命令与组件添加流程,简化移动端开发门槛。

需确保 Node.js 20+ 环境,并注意不同操作系统下的依赖兼容性问题。建议在沙箱环境中先行验证,再迁移至正式项目。

来源仓库内路径:skills/react-native-setup

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/anton-abyzov/specweave --skill react-native-se…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

react-native-setup 怎么安装?

在终端执行 npx skills add https://github.com/anton-abyzov/specweave --skill react-native-setup。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

react-native-setup 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

react-native-setup 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

react-native-setup 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

react-native-setup 用的人多吗?

公开数据是累计安装 461 次,近一周安装 19 次,下载 150 次,GitHub 127 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

react-native-setup 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
react-native-setup

React native 设置 · 本页

461127接触敏感数据MIT通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

React Native Setup Expert (2025)

Expert in React Native 0.83+ and Expo SDK 54+ environment configuration across macOS, Windows, and Linux. Specializes in New Architecture setup, EAS Build configuration, and development environment optimization.

What I Know

Prerequisites & Installation (2025 Requirements)

Node.js & npm

  • Node.js 20.x or later required (Node 18 EOL April 2025)
  • Node.js 22 LTS recommended for best performance
  • Version verification: node --version && npm --version
  • Package managers: npm, yarn, pnpm, bun all supported
  • Corepack for yarn: corepack enable && corepack prepare yarn@stable --activate

Xcode (macOS - iOS Development)

  • Xcode 16.1 or later required (minimum for RN 0.83)
  • Xcode 26 recommended for iOS Liquid Glass support
  • Command line tools: xcode-select --install
  • License acceptance: sudo xcodebuild -license accept
  • iOS 15.1+ deployment target (minimum supported)
  • iOS 18+ for latest features, iOS 26 for Liquid Glass

Android Studio (Android Development)

  • Android Studio Ladybug or later (2024.2.1+)
  • Required SDK components:

- Android SDK Platform 35 (API level 35) - Android SDK Build-Tools 35.0.0 - Android Emulator - Android SDK Platform-Tools - NDK 27.1.12297006 (for native modules) - CMake 3.22.1+ (for Turbo Modules)

  • compileSdkVersion 35, targetSdkVersion 35, minSdkVersion 24
  • ANDROID_HOME environment variable setup
  • Edge-to-edge display support (Android 15+)

Watchman

  • Installation via Homebrew (macOS): brew install watchman
  • Purpose: File watching for fast refresh with Metro
  • Critical for large codebases
  • Cache clearing: watchman watch-del-all

Environment Configuration

iOS Setup

  • CocoaPods 1.15+ installation: sudo gem install cocoapods
  • Pod install with New Architecture: RCT_NEW_ARCH_ENABLED=1 pod install
  • Xcode project configuration for Fabric
  • Provisioning profiles and certificates
  • iOS Simulator management
  • Device selection: xcrun simctl list devices
  • Liquid Glass testing requires iOS 26 simulator

Android Setup

  • Gradle 8.10+ (bundled with Android Studio Ladybug)
  • Android SDK path configuration
  • Environment variables (ANDROID_HOME, PATH)
  • AVD creation with API 35 images
  • Emulator with edge-to-edge support
  • ADB troubleshooting
  • New Architecture: newArchEnabled=true in gradle.properties

Metro Bundler

  • Port 8081 configuration
  • Cache clearing: npx react-native start --reset-cache
  • Metro config for New Architecture
  • Symlink support for monorepos
  • Custom resolver configuration

EAS Build Setup (Expo)

  • Install EAS CLI: npm install -g eas-cli
  • Login: eas login
  • Configure: eas build:configure
  • Development builds for custom native code
  • EAS Update for OTA updates

Common Setup Issues

"Command not found" Errors

  • PATH configuration for Node, Android SDK, Xcode tools
  • Shell profile updates (.zshrc,.bash_profile)
  • Symlink issues with nvm/fnm

SDK Not Found

  • SDK path verification: echo $ANDROID_HOME
  • Environment variable troubleshooting
  • SDK Manager reinstallation
  • NDK path for native modules

Pod Install Failures

  • CocoaPods version issues (requires 1.15+)
  • Ffi gem compilation errors on Apple Silicon
  • Ruby version compatibility (use system Ruby or rbenv)
  • New Architecture pod failures: clean and rebuild
  • pod deintegrate && pod install strategy

Build Failures

  • Clean build strategies (see Pro Tips)
  • Dependency conflicts with New Architecture
  • Native module compilation errors
  • Xcode derived data clearing
  • Gradle cache corruption

New Architecture Issues

  • Turbo Module not found: check codegen ran
  • Fabric component not rendering: verify native setup
  • Bridge module compatibility: use interop layer

When to Use This Skill

Ask me when you need help with:

  • Initial React Native 0.83+ environment setup
  • Installing and configuring Xcode 16.1+ or Android Studio Ladybug
  • Setting up iOS simulators or Android emulators
  • Troubleshooting "Command not found" errors
  • Resolving SDK path or ANDROID_HOME issues
  • Fixing CocoaPods installation problems
  • Clearing Metro bundler cache
  • Configuring development environment variables
  • Troubleshooting build failures
  • Setting up watchman for file watching
  • Verifying development environment prerequisites
  • EAS Build configuration and troubleshooting
  • New Architecture setup and migration
  • Development build creation for custom native code
  • Hermes V1 experimental setup

Quick Setup Commands

iOS (macOS)

# Install Xcode command line tools
xcode-select --install

# Accept Xcode license
sudo xcodebuild -license accept

# Install CocoaPods (1.15+ required)
sudo gem install cocoapods

# Install watchman
brew install watchman

# Verify setup
xcodebuild -version  # Should be 16.1+
pod --version        # Should be 1.15+
watchman version

Android (All Platforms)

# Verify Android setup
echo $ANDROID_HOME
adb --version
emulator -version

# Verify SDK version
$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --list | grep "platforms;android-35"

# List available emulators
emulator -list-avds

# List connected devices
adb devices

React Native CLI Project

# Create new React Native project (New Architecture enabled by default)
npx @react-native-community/cli init MyProject

# Navigate to project
cd MyProject

# Install iOS dependencies with New Architecture
cd ios && RCT_NEW_ARCH_ENABLED=1 pod install && cd ..

# Start Metro bundler
npm start

# Run on iOS (separate terminal)
npm run ios

# Run on Android (separate terminal)
npm run android

Expo Project (Recommended)

# Create new Expo project
npx create-expo-app@latest MyProject

# Navigate to project
cd MyProject

# Start development server
npx expo start

# Create development build (for custom native code)
npx expo install expo-dev-client
eas build --profile development --platform ios
eas build --profile development --platform android

Pro Tips

  1. Clean Builds: When in doubt, clean everything # iOS (nuclear option) cd ios && rm -rf build Pods Podfile.lock && pod install && cd.. # Android cd android &&./gradlew clean && cd.. # Metro + Watchman watchman watch-del-all npx react-native start --reset-cache # Expo npx expo start --clear
  2. Environment Variables: Always verify environment variables after changes # Add to ~/.zshrc or ~/.bash_profile export ANDROID_HOME=$HOME/Library/Android/sdk export PATH=$PATH:$ANDROID_HOME/emulator export PATH=$PATH:$ANDROID_HOME/platform-tools export PATH=$PATH:$ANDROID_HOME/cmdline-tools/latest/bin # Reload shell source ~/.zshrc
  3. Simulator Management: List and boot specific devices # iOS xcrun simctl list devices xcrun simctl boot "iPhone 16 Pro" # Android (API 35 for edge-to-edge) emulator -list-avds emulator -avd Pixel_8_API_35
  4. Quick Health Check: Verify entire environment node --version # Should be 20+ npm --version # npm xcodebuild -version # Should be 16.1+ pod --version # Should be 1.15+ adb --version # Android tools watchman version # Watchman eas --version # EAS CLI (Expo)
  5. EAS Build Configuration: Essential eas.json {"build": {"development": {"developmentClient": true, "distribution": "internal"}, "preview": {"distribution": "internal"}, "production": {}}}
  6. Hermes V1 (Experimental): Enable next-gen engine // metro.config.js module.exports = {transformer: {hermesParser: true,},}; # Verify Hermes is running # In app: global.HermesInternal!== undefined

Version Compatibility Matrix (2025)

ComponentMinimumRecommendedNotes
Node.js20.x22 LTSNode 18 EOL April 2025
React Native0.76+0.83New Arch default since 0.76
React18.3+19.2Activity, useEffectEvent
Expo SDK52+54Native tabs, Liquid Glass
Xcode16.126iOS 26 for Liquid Glass
Android SDK3435Edge-to-edge support
CocoaPods1.141.15+New Arch compatibility
Gradle8.68.10+K2 compiler support

Integration with SpecWeave

This skill integrates with SpecWeave's increment workflow:

  • Use during /sw:increment planning for environment setup tasks
  • Reference in tasks.md for setup-related acceptance criteria
  • Include in spec.md for mobile-specific prerequisites
  • Document setup issues in increment reports/ folder
  • Use mobile-architect agent for architecture decisions

平台分布

Claude Code

28.85%
按下载量换算43

Antigravity

23.86%
按下载量换算36

Gemini CLI

17.6%
按下载量换算26

Cursor

12%
按下载量换算18

Codex

7.05%
按下载量换算11

OpenCode

3.79%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

继续浏览同类 Skills