Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问clear审计未展示

expo-app-design展会应用程序设计

Agent Skill

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

总安装

441

周安装

18

GitHub Stars

公开资料未说明

下载量

141
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:expo-app-design(展会应用程序设计)
来源仓库:https://github.com/5dlabs/cto
仓库路径:skills/expo-app-design
安装命令:
npx skills add 5dlabs/cto --skill "expo-app-design"
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

AgentSkills.tonpx skills
npx skills add 5dlabs/cto --skill "expo-app-design"

简介

expo-app-design 用于辅助前端页面和组件开发,适合在 Codex、Claude、Cursor、Gemini CLI 中处理 React、Vue 等项目时使用。

  • 它支持代码生成、结构整理和布局问题排查。
  • 可通过 npx skills add 5dlabs/cto --skill "expo-app-design" 安装,建议结合原始 README 核验具体用法。
  • 安装前请确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写操作;涉及页面改动时应配合预览检查。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Expo App Design

Complete guide for building beautiful apps with Expo Router. Based on official Expo skills from expo/skills repository.

Running the App

CRITICAL: Always try Expo Go first before creating custom builds.

Most Expo apps work in Expo Go without any custom native code. Before running npx expo run:ios or npx expo run:android:

  1. Start with Expo Go: Run npx expo start and scan the QR code with Expo Go
  2. Check if features work: Test your app thoroughly in Expo Go
  3. Only create custom builds when required

When Custom Builds Are Required

You need npx expo run:ios/android or eas build ONLY when using:

  • Local Expo modules (custom native code in modules/)
  • Apple targets (widgets, app clips, extensions via @bacons/apple-targets)
  • Third-party native modules not included in Expo Go
  • Custom native configuration that can't be expressed in app.json

Code Style

  • Always use kebab-case for file names, e.g. comment-card.tsx
  • Always remove old route files when moving or restructuring navigation
  • Never use special characters in file names
  • Configure tsconfig.json with path aliases, prefer aliases over relative imports
  • Be cautious of unterminated strings and escape nested backticks properly

Routes

  • Routes belong in the app directory
  • Never co-locate components, types, or utilities in the app directory
  • Ensure the app always has a route that matches "/"

Library Preferences

Old/AvoidUse Instead
expo-avexpo-audio and expo-video
expo-permissionsIndividual package permission APIs
@expo/vector-iconsexpo-symbols (SF Symbols)
AsyncStorageexpo-sqlite/localStorage/install
expo-app-loadingexpo-splash-screen
Platform.OSprocess.env.EXPO_OS
React.useContextReact.use
Intrinsic imgexpo-image Image component
expo-linear-gradientexperimental_backgroundImage + CSS gradients
React Native SafeAreaViewreact-native-safe-area-context

Responsiveness

  • Always wrap root component in a scroll view for responsiveness
  • Use <ScrollView contentInsetAdjustmentBehavior="automatic" /> instead of <SafeAreaView>
  • Apply contentInsetAdjustmentBehavior="automatic" to FlatList and SectionList
  • Use flexbox instead of Dimensions API
  • ALWAYS prefer useWindowDimensions over Dimensions.get()

Styling (Apple HIG)

  • Prefer flex gap over margin and padding styles
  • Prefer padding over margin where possible
  • Inline styles not StyleSheet.create unless reusing styles
  • Add entering and exiting animations for state changes
  • Use {borderCurve: 'continuous'} for rounded corners unless creating a capsule
  • ALWAYS use a navigation stack title instead of custom text element
  • Use CSS boxShadow style prop, NEVER use legacy React Native shadow or elevation
  • CSS and Tailwind are not supported - use inline styles
// Correct shadow usage
<View style={{ boxShadow: "0 1px 2px rgba(0, 0, 0, 0.05)" }} />

Text Styling

  • Add selectable prop to <Text/> displaying important data or error messages
  • Counters should use {fontVariant: 'tabular-nums'} for alignment

Navigation

Link

Use <Link href="/path" /> from 'expo-router' for navigation:

import { Link } from 'expo-router';

// Basic link
<Link href="/path" />

// Wrapping custom components
<Link href="/path" asChild>
  <Pressable>...</Pressable>
</Link>

Include <Link.Preview> to follow iOS conventions for context menus and previews:

<Link href="/settings">
  <Link.Trigger>
    <Pressable><Card /></Pressable>
  </Link.Trigger>
  <Link.Preview />
</Link>

Context Menus

<Link href="/settings" asChild>
  <Link.Trigger>
    <Pressable><Card /></Pressable>
  </Link.Trigger>
  <Link.Menu>
    <Link.MenuAction title="Share" icon="square.and.arrow.up" onPress={handleShare} />
    <Link.MenuAction title="Block" icon="nosign" destructive onPress={handleBlock} />
    <Link.Menu title="More" icon="ellipsis">
      <Link.MenuAction title="Copy" icon="doc.on.doc" onPress={() => {}} />
      <Link.MenuAction title="Delete" icon="trash" destructive onPress={() => {}} />
    </Link.Menu>
  </Link.Menu>
</Link>

Modal

<Stack.Screen name="modal" options={{ presentation: "modal" }} />

Sheet

<Stack.Screen
  name="sheet"
  options={{
    presentation: "formSheet",
    sheetGrabberVisible: true,
    sheetAllowedDetents: [0.5, 1.0],
    contentStyle: { backgroundColor: "transparent" }, // Liquid glass on iOS 26+
  }}
/>

Native Tabs (SDK 54+)

Always prefer NativeTabs from 'expo-router/unstable-native-tabs':

import { NativeTabs, Icon, Label, Badge } from "expo-router/unstable-native-tabs";

export default function TabLayout() {
  return (
    <NativeTabs minimizeBehavior="onScrollDown">
      <NativeTabs.Trigger name="index">
        <Label>Home</Label>
        <Icon sf="house.fill" />
        <Badge>9+</Badge>
      </NativeTabs.Trigger>
      <NativeTabs.Trigger name="settings">
        <Icon sf="gear" />
        <Label>Settings</Label>
      </NativeTabs.Trigger>
      <NativeTabs.Trigger name="(search)" role="search">
        <Label>Search</Label>
      </NativeTabs.Trigger>
    </NativeTabs>
  );
}

NativeTabs Rules

  • Include a trigger for each tab
  • name must match route name exactly (including parentheses)
  • Place search tab last to combine with search bar
  • Use role prop for common tab types: search, favorites, more, etc.

Icon Component

<Icon sf="house.fill" />                              // SF Symbol only
<Icon sf="house.fill" drawable="ic_home" />           // With Android drawable
<Icon src={require('./icon.png')} />                  // Custom image
<Icon sf={{ default: "house", selected: "house.fill" }} /> // State variants

Badge Component

<Badge>9+</Badge>  // Numeric badge
<Badge />          // Dot indicator

SF Symbols (expo-symbols)

Use SF Symbols for native feel. Never use FontAwesome or Ionicons.

import { SymbolView } from "expo-symbols";
import { PlatformColor } from "react-native";

<SymbolView
  tintColor={PlatformColor("label")}
  resizeMode="scaleAspectFit"
  name="square.and.arrow.down"
  style={{ width: 16, height: 16 }}
/>

Common Icons

CategoryIcons
Navigationhouse.fill, gear, magnifyingglass, plus, xmark, chevron.left/right
Mediaplay.fill, pause.fill, stop.fill, speaker.wave.2.fill
Socialheart, heart.fill, star, star.fill, person, person.fill
Actionssquare.and.arrow.up (share), doc.on.doc (copy), trash (delete), pencil (edit)
Statuscheckmark.circle.fill, xmark.circle.fill, exclamationmark.triangle, bell.fill

Animated Symbols

<SymbolView
  name="checkmark.circle"
  animationSpec={{
    effect: { type: "bounce", direction: "up" }
  }}
/>

Effects: bounce, pulse, variableColor, scale

Symbol Weights

ultraLight, thin, light, regular, medium, semibold, bold, heavy, black

Common Route Structure

app/
  _layout.tsx          — <NativeTabs />
  (index,search)/
    _layout.tsx        — <Stack />
    index.tsx          — Main list
    search.tsx         — Search view
// app/_layout.tsx
import { NativeTabs, Icon, Label } from "expo-router/unstable-native-tabs";

export default function Layout() {
  return (
    <NativeTabs>
      <NativeTabs.Trigger name="(index)">
        <Icon sf="list.dash" />
        <Label>Items</Label>
      </NativeTabs.Trigger>
      <NativeTabs.Trigger name="(search)" role="search" />
    </NativeTabs>
  );
}
// app/(index,search)/_layout.tsx - Shared stack for both tabs
import { Stack } from "expo-router/stack";
import { PlatformColor } from "react-native";

export default function Layout({ segment }) {
  const screen = segment.match(/\((.*)\\)/)?.[1]!;
  const titles = { index: "Items", search: "Search" };

  return (
    <Stack
      screenOptions={{
        headerTransparent: true,
        headerShadowVisible: false,
        headerLargeTitleShadowVisible: false,
        headerLargeStyle: { backgroundColor: "transparent" },
        headerTitleStyle: { color: PlatformColor("label") },
        headerLargeTitle: true,
        headerBlurEffect: "none",
        headerBackButtonDisplayMode: "minimal",
      }}
    >
      <Stack.Screen name={screen} options={{ title: titles[screen] }} />
      <Stack.Screen name="i/[id]" options={{ headerLargeTitle: false }} />
    </Stack>
  );
}

Behavior

  • Use expo-haptics conditionally on iOS for delightful experiences
  • Use views with built-in haptics like <Switch /> and @react-native-community/datetimepicker
  • When a route belongs to a Stack, its first child should be a ScrollView with contentInsetAdjustmentBehavior="automatic"
  • Prefer headerSearchBarOptions in Stack.Screen options to add a search bar
  • Use <Text selectable /> for data that could be copied
  • Format large numbers (1.4M, 38k)
  • Never use intrinsic elements like 'img' or 'div' unless in webview or DOM component

Visual Effects

Blur Effects (expo-blur)

import { BlurView } from 'expo-blur';

<BlurView intensity={50} style={StyleSheet.absoluteFill} />

Liquid Glass (expo-glass-effect)

import { GlassView } from 'expo-glass-effect';

<GlassView style={styles.glass} cornerRadius={16} />

Validation Commands

npx tsc --noEmit        # Type check
npx eslint .            # Lint
npm test                # Tests
npx expo-doctor         # Doctor check
npx expo start          # Start dev

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

27.98%
按下载量换算39

OpenCode

21.59%
按下载量换算30

Antigravity

16.54%
按下载量换算23

Gemini CLI

12.92%
按下载量换算18

windsurf

8.26%
按下载量换算12

trae

3.09%
按下载量换算4

安全审计

暂无安全审计结果可展示。

权限和风险

敏感数据

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills