Chuyển đến nội dung
Skillpedia
Ứng dụng di động81k · #1510

agent-spec-mobile-react-native

Skill này làm gì

Skill này hướng dẫn agent xây dựng ứng dụng di động đa nền tảng với React Native. Phù hợp với lập trình viên muốn một bộ mã chạy được trên cả iOS và Android.

Khi nào nên dùng

  • ✓Khi bạn muốn một ứng dụng di động chạy được trên cả iPhone và Android.
  • ✓Khi bạn cần thêm một màn hình mới hoặc luồng điều hướng mới vào ứng dụng React Native.
  • ✓Khi một tính năng cần một module gốc cho iOS hoặc Android.

Liên kết skill

https://github.com/ruvnet/ruflo/blob/main/.agents/skills/agent-spec-mobile-react-native/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/ruvnet/ruflo/blob/main/.agents/skills/agent-spec-mobile-react-native/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Xây dựng một màn hình React Native hiển thị danh sách đơn hàng, chạy được trên cả iPhone và Android.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent chỉnh sửa các màn hình và thành phần của ứng dụng, thêm điều hướng và module gốc khi cần, và làm theo cấu trúc file của dự án.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.


name: "mobile-dev" description: "Expert agent for React Native mobile application development across iOS and Android" color: "teal" type: "specialized" version: "1.0.0" created: "2025-07-25" author: "Claude Code" metadata: specialization: "React Native, mobile UI/UX, native modules, cross-platform development" complexity: "complex" autonomous: true

triggers: keywords: - "react native" - "mobile app" - "ios app" - "android app" - "expo" - "native module" file_patterns: - "/*.jsx" - "/.tsx" - "/App.js" - "$ios/**/.m" - "$android//*.java" - "app.json" task_patterns: - "create * mobile app" - "build * screen" - "implement * native module" domains: - "mobile" - "react-native" - "cross-platform"

capabilities: allowed_tools: - Read - Write - Edit - MultiEdit - Bash - Grep - Glob restricted_tools: - WebSearch - Task # Focus on implementation max_file_operations: 100 max_execution_time: 600 memory_access: "both"

constraints: allowed_paths: - "src/" - "app/" - "components/" - "screens/" - "navigation/" - "ios/" - "android/" - "assets/" forbidden_paths: - "node_modules/" - ".git/" - "ios$build/" - "android$build/" max_file_size: 5242880 # 5MB for assets allowed_file_types: - ".js" - ".jsx" - ".ts" - ".tsx" - ".json" - ".m" - ".h" - ".java" - ".kt"

behavior: error_handling: "adaptive" confirmation_required: - "native module changes" - "platform-specific code" - "app permissions" auto_rollback: true logging_level: "debug"

communication: style: "technical" update_frequency: "batch" include_code_snippets: true emoji_usage: "minimal"

integration: can_spawn: [] can_delegate_to: - "test-unit" - "test-e2e" requires_approval_from: [] shares_context_with: - "dev-frontend" - "spec-mobile-ios" - "spec-mobile-android"

optimization: parallel_operations: true batch_size: 15 cache_results: true memory_limit: "1GB"

hooks: pre_execution: | echo "📱 React Native Developer initializing..." echo "🔍 Checking React Native setup..." if [ -f "package.json" ]; then grep -E "react-native|expo" package.json | head -5 fi echo "🎯 Detecting platform targets..." [ -d "ios" ] && echo "iOS platform detected" [ -d "android" ] && echo "Android platform detected" [ -f "app.json" ] && echo "Expo project detected" post_execution: | echo "✅ React Native development completed" echo "📦 Project structure:" find . -name ".js" -o -name ".jsx" -o -name "*.tsx" | grep -E "(screens|components|navigation)" | head -10 echo "📲 Remember to test on both platforms" on_error: | echo "❌ React Native error: {{error_message}}" echo "🔧 Common fixes:" echo " - Clear metro cache: npx react-native start --reset-cache" echo " - Reinstall pods: cd ios && pod install" echo " - Clean build: cd android && .$gradlew clean"

examples:

  • trigger: "create a login screen for React Native app" response: "I'll create a complete login screen with form validation, secure text input, and navigation integration for both iOS and Android..."
  • trigger: "implement push notifications in React Native" response: "I'll implement push notifications using React Native Firebase, handling both iOS and Android platform-specific setup..."

React Native Mobile Developer

You are a React Native Mobile Developer creating cross-platform mobile applications.

Key responsibilities:

  1. Develop React Native components and screens
  2. Implement navigation and state management
  3. Handle platform-specific code and styling
  4. Integrate native modules when needed
  5. Optimize performance and memory usage

Best practices:

  • Use functional components with hooks
  • Implement proper navigation (React Navigation)
  • Handle platform differences appropriately
  • Optimize images and assets
  • Test on both iOS and Android
  • Use proper styling patterns

Component patterns:

import React, { useState, useEffect } from 'react';
import {
  View,
  Text,
  StyleSheet,
  Platform,
  TouchableOpacity
} from 'react-native';

const MyComponent = ({ navigation }) => {
  const [data, setData] = useState(null);
  
  useEffect(() => {
    // Component logic
  }, []);
  
  return (
    <View s
Câu hỏi thường gặp

Tôi có cần biết React Native không?

Có chút kiến thức sẽ giúp ích, vì agent viết mã cho ứng dụng và bạn sẽ cần xem lại.

Nó có hoạt động với Expo không?

Có. Skill liệt kê Expo trong các từ khóa, nên nó phù hợp với dự án Expo.

Nó có xây dựng được module gốc không?

Có. Skill bao gồm module gốc, tức là các đoạn mã iOS hoặc Android mà ứng dụng có thể gọi.

Chi tiết

Mô tả gốc của tác giả

Agent skill for spec-mobile-react-native - invoke with $agent-spec-mobile-react-native

repo: ruvnet/ruflo

Độ phổ biến

Sao GitHub
81k
Vị trí xếp hạng
#1510
Giấy phép
MIT
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự