codex-expo-run-actions — скилл для Codex: что делает и как установить
Скилл настраивает кнопку Run в приложении Codex для проектов на Expo, создавая локальный скрипт запуска и конфигурацию окружения.
npx skills add openai/plugins --skill codex-expo-run-actions -a codexЧто делает codex-expo-run-actions
Скилл проверяет наличие package.json и конфигурационных файлов app.json или app.config.js. Если приложение Expo находится внутри монорепозитория, настройка привязывается именно к дочерней папке, а не к корню проекта. Агент определяет пакетный менеджер по полю packageManager или файлам блокировок, чтобы не зашивать npm при использовании pnpm, yarn или bun.
В проекте создаётся скрипт script/build_and_run.sh и файл .codex/environments/environment.toml. Основная кнопка Run запускает локальный сервер expo start. При необходимости добавляются флаги для запуска в симуляторе iOS, на эмуляторе Android или в браузере. Сервер Metro остаётся на переднем плане, поэтому терминал Codex перехватывает его логи и корректно обрабатывает комбинацию Ctrl-C.
Какие задачи решает
- привязать запуск Expo к кнопке Run в интерфейсе Codex
- сгенерировать скрипт script/build_and_run.sh под текущий пакетный менеджер
- добавить запуск проекта для iOS, Android или веб-версии в environment.toml
- перенести вывод логов Metro в активный терминал действий Codex
Примеры запросов агенту
- Настрой запуск Expo в приложении Codex для этого проекта
- Добавь кнопки Run iOS и Run Android в конфигурацию Codex
- Создай скрипт build_and_run.sh для Expo с поддержкой pnpm
Как установить codex-expo-run-actions
1Через Skills CLI (Vercel)
npx skills add openai/plugins --skill codex-expo-run-actions -a codex2Вручную: положить файлы
.agents/skills/codex-expo-run-actions/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add openai/plugins --skill codex-expo-run-actions -a claude-code2Вручную: положить файлы
~/.claude/skills/codex-expo-run-actions/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/codex-expo-run-actions/
Вручную: положить файлы
.cursor/skills/codex-expo-run-actions/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install openai/plugins codex-expo-run-actions2Вручную: положить файлы
.github/skills/codex-expo-run-actions/SKILL.mdКомандой платформы
gemini skills install https://github.com/openai/plugins --path plugins/expo/skills/codex-expo-run-actionsВручную: положить файлы
.devin/skills/codex-expo-run-actions/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Claude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Скиллы Codex: как установить, где лежат и как вызвать
Вопросы о codex-expo-run-actions
Как установить codex-expo-run-actions в Codex?
Выполните команду npx skills add openai/plugins --skill codex-expo-run-actions -a codex. Скилл подключится к конфигурации агента.
Что делает codex-expo-run-actions?
Он создаёт локальный скрипт script/build_and_run.sh и настраивает .codex/environments/environment.toml. Это связывает действия интерфейса Codex с командами Expo CLI.
Поддерживает ли скилл сборку в облаке через EAS?
По умолчанию скилл работает только с локальным expo start. Команды eas build и отправка в сторы не добавляются в кнопки Codex без отдельного прямого запроса.
Исходный текст
SKILL.md · MIT
---
name: codex-expo-run-actions
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.
version: 1.0.0
license: MIT
---
# 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
© Expo Team · MIT · openai/plugins