AGENT SKILL

Expo 项目 Codex 运行动作配置

codex-expo-run-actions

通过项目本地运行脚本和 `.codex/environments/environment.toml` 中的动作(actions),将 Expo 项目接入 Codex 应用。当用户需要 Codex 应用的运行按钮、构建/运行动作、动作按钮,或从 Codex 中稳定启动/运行 Expo 的工作流时使用。

License 许可
MIT
所属仓库
openai/plugins
最近更新
2026-11-14
Stars
★ 7.9k
Forks
1.0k

01 前言 Front Matter

name
codex-expo-run-actions
license
MIT
version
1.0.0
description
Wire Expo projects into the Codex app with project-local run scripts and .codex/environments/environment.toml actions. Use when the user wants the Codex app Run button, build/run actions, action buttons, or a stable Expo start/run workflow from Codex.

02 资源文件 2

03 SKILL.md 正文

Codex Run Actions for Expo

Use this skill to connect an Expo project to the Codex app action bar.

The goal is one project-local script plus .codex/environments/environment.toml, so the user can press Run in the Codex app and see the Expo CLI / Metro logs in an action terminal.

Workflow

  1. Confirm the current workspace is an Expo app.

    • Look for package.json.
    • Look for app.json, app.config.js, app.config.ts, or expo in package.json.
    • Do not wire the Codex action at a monorepo root if the Expo app is in a child package.
  2. Discover the package runner.

    • Prefer the package manager declared in packageManager.
    • Otherwise infer from lockfiles.
    • The generated run script should still have a safe fallback to npx expo.
  3. Create or update script/build_and_run.sh.

    • Use the reference file for the script shape.
    • Default no-argument mode starts the Expo dev server: expo start.
    • Keep the dev server in the foreground so the Codex action terminal owns logs and Ctrl-C behavior.
    • Support optional modes for direct buttons:
      • --ios starts Expo and opens iOS simulator.
      • --android starts Expo and opens Android.
      • --web starts Expo for web.
      • --dev-client starts in dev-client mode.
      • --tunnel starts a tunnel.
      • --export-web exports web.
  4. Write .codex/environments/environment.toml.

    • Always add or update one primary action named Run.
    • Wire Run to ./script/build_and_run.sh.
    • Add direct Run iOS, Run Android, Run Web, or Run Dev Client actions only when the user asks for those buttons or the project clearly needs them.
    • If the environment file already exists, update the existing matching action instead of duplicating it.
  5. Use the action script as the default local run path.

    • After wiring, run ./script/build_and_run.sh --help or a short non-server mode if you need to sanity-check syntax.
    • Do not start a long-lived Metro server during a setup-only task unless the user asked you to run the app.

References

  • references/expo-run-button-bootstrap.md: canonical Expo script/build_and_run.sh and Codex environment action examples.

Guardrails

  • Try Expo Go / expo start first; do not default the Codex Run button to expo run:ios, expo run:android, prebuild, or EAS Build.
  • Do not wire cloud actions such as eas build, eas submit, or store deployment into Codex buttons unless the user explicitly asks and accepts the auth / time / cost tradeoff.
  • Do not create a nested git repo.
  • Do not put secrets in .codex/environments/environment.toml or in the run script.
  • Do not background Metro from the run script; the action terminal should show the active server logs.
  • Do not hard-code npm if the project uses pnpm, yarn, or bun.

Output Expectations

When setup changes are made, summarize:

  • the Expo app root you wired
  • the run script path
  • the Codex environment file path
  • the actions added or updated
  • how to launch the same path from shell

04 同仓库更多 Skills

openai
openai/plugins

Postgres 性能优化最佳实践

supabase-postgres-best-practices

来自 Supabase 的 Postgres 性能优化与最佳实践。在编写、审查或优化 Postgres 查询、schema 设计或数据库配置时使用此技能。

数据库管理员数据库管理
★ 7.9k
openai
openai/plugins

极简技能示例

minimal-skill

用于 plugin-eval 测试的极简示例技能。当用户想要一个结构良好的技能的紧凑演示时使用。

软件开发工程师示例与演示技能
★ 7.9k
openai
openai/plugins

NVIDIA 物理 AI 神经重建

physical-ai-neural-reconstruction

NVIDIA NuRec/NRE 路由技能:USDZ 渲染、NCore 转换、3DGS、gRPC 传感器模拟、PhysicalAI Hugging Face(HF)数据集。不用于 SimReady 或基础设施搭建。

AI 工程师XR 与空间计算开发
★ 7.9k
openai
openai/plugins

NVIDIA 物理 AI 基础设施搭建与扩展

physical-ai-infrastructure-setup-and-resilient-scaling

当用户需要为跨本地 MicroK8s 或 Azure AKS 的合成数据生成工作流搭建、扩展、验证或加固 NVIDIA 物理 AI 基础设施时使用,包括 Kubernetes 集群、推理端点部署、OSMO 部署、工作负载提交准备以及基础设施故障恢复。触发关键词:physical ai infrastructure、resilient scaling、SDG infrastructure、microk8s、azure aks、NVCF deployment、NIM Operator、OSMO deploy、workflow scaling。不触发场景:OSMO 日志摘要或仅涉及工作负载的操作,除非明确要求基础设施搭建、扩展、验证或恢复。

AI 工程师云原生计算与容器编排
★ 7.9k
openai
openai/plugins

Omniverse USD 性能调优

omniverse-usd-performance-tuning

用于 USD 性能诊断与优化的顶层工作流技能。适用于加载缓慢、内存占用高、帧率(FPS)低或'优化我的场景'等请求;将认证/运行时设置委托给 Phase 0 负责人处理。

多媒体工程师XR 与空间计算开发
★ 7.9k
openai
openai/plugins

Omniverse 实时查看器 USD 应用路由

omniverse-realtime-viewer

作为 Omniverse Realtime Viewer(实时查看器)USD 应用请求及专项查看器参考文档的顶层路由使用。

多媒体工程师XR 与空间计算开发
★ 7.9k