# Expo prebuild and config plugins

> Expo prebuild and config plugins is an open-source agent skill for developer tools. Keeps iOS and Android folders generated from app.config.ts and tested Expo config plugins. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/zakariaf/ReactNative-Skills/tree/main/skills/expo-prebuild-and-config-plugins
- **Repository:** https://github.com/zakariaf/reactnative-skills
- **GitHub stars:** 16
- **License:** MIT
- **Skill name:** expo-prebuild-and-config-plugins
- **Collection:** https://github.com/zakariaf/ReactNative-Skills
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-04

## About

This skill sets up an Expo app so its ios/ and android/ folders are build output of app.config.ts, its config plugins and installed native packages, rather than hand-edited code. It sorts each native change into a config key first and a plugin only when no key covers it, and it keeps generated folders out of git and out of scripts.

The workflow walks the agent through placing a change, writing a typed local plugin in plugins/ with an idempotent, option-validating design, and testing it with a sibling Jest test that runs through Expo's mod chain. It then lists the plugin by path, runs introspection per build variant, and compares the output against a committed native config snapshot so every new permission or entitlement shows up in review.

Two bundled checker scripts, written in Node, verify the app's config, plugin list, test coverage, ignore rules and snapshot, and report each failure with the file, rule and fix. The skill expects an Expo SDK 57 or 58 project with Jest, and it points to sibling skills for dependency installs, variants and native module code.

## When your agent uses it

> Keeps ios/ and android/ generated from app.config.ts and tested config plugins. Use when adding a plugin, an Info.plist or AndroidManifest entry, or a prebuild step. Not for native code (native-modules-and-new-architecture).

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Runs shell, JavaScript and TypeScript scripts](https://github.com/zakariaf/ReactNative-Skills/tree/HEAD/skills/expo-prebuild-and-config-plugins)
- [No network calls found in its scripts](https://github.com/zakariaf/ReactNative-Skills/tree/HEAD/skills/expo-prebuild-and-config-plugins)
- [License: MIT](https://github.com/zakariaf/ReactNative-Skills/tree/HEAD/skills/expo-prebuild-and-config-plugins)

## Features

- **Config-first native changes:** Guides the agent to use app.config.ts keys such as infoPlist and permissions before reaching for a plugin.
- **Typed local config plugins:** Provides the shape for default-exported, typed plugins with idempotent mods and validated options.
- **Plugin test harness:** Supplies a runMod helper and test pattern to exercise plugins through Expo's own mod chain under Jest.
- **Native config snapshot:** Introspects the native config per variant and compares it with a committed snapshot to surface drift.
- **Generated folder hygiene:** Covers anchored gitignore rules, clean prebuild before builds, and recording a decision to leave generation.
- **Automated checker scripts:** Runs bundled Node checkers that report PASS or FAIL lines naming the file, rule and fix.

## Good for

- Add an Info.plist entry for a new iOS feature without editing the ios folder
- Write a local Expo config plugin for an Android manifest permission
- Audit which native permissions prebuild adds for each app variant
- Set up an Expo project so ios and android folders are not committed
- Check that an installed package's config plugin is listed in app.config.ts

## Install

### Claude Code

This skill ships in the `react-native` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add zakariaf/ReactNative-Skills
/plugin install react-native@react-native-skills
```

Or copy only this skill to `~/.claude/skills/expo-prebuild-and-config-plugins`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zakariaf/ReactNative-Skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/expo-prebuild-and-config-plugins &&
cp -R "$tmp/skills/expo-prebuild-and-config-plugins" ~/.claude/skills/expo-prebuild-and-config-plugins &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/expo-prebuild-and-config-plugins` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/expo-prebuild-and-config-plugins` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zakariaf/ReactNative-Skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/expo-prebuild-and-config-plugins &&
cp -R "$tmp/skills/expo-prebuild-and-config-plugins" ~/.agents/skills/expo-prebuild-and-config-plugins &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/expo-prebuild-and-config-plugins` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/expo-prebuild-and-config-plugins` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zakariaf/ReactNative-Skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/expo-prebuild-and-config-plugins &&
cp -R "$tmp/skills/expo-prebuild-and-config-plugins" ~/.cursor/skills/expo-prebuild-and-config-plugins &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/expo-prebuild-and-config-plugins` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/zakariaf/ReactNative-Skills.git --path skills/expo-prebuild-and-config-plugins
```

Or copy the folder to `~/.gemini/skills/expo-prebuild-and-config-plugins` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/expo-prebuild-and-config-plugins`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zakariaf/ReactNative-Skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/expo-prebuild-and-config-plugins &&
cp -R "$tmp/skills/expo-prebuild-and-config-plugins" ~/.copilot/skills/expo-prebuild-and-config-plugins &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/expo-prebuild-and-config-plugins` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/zakariaf/ReactNative-Skills.git
```

Then copy `ReactNative-Skills/skills/expo-prebuild-and-config-plugins` into your agent's skills folder as `expo-prebuild-and-config-plugins`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When does Expo prebuild and config plugins trigger?

It is meant for adding a plugin, an Info.plist or AndroidManifest entry, or a prebuild step in an Expo app. Native code in local modules is handled by a different skill.

### Does Expo prebuild and config plugins change how the app is built?

It sets rules for generated native folders, clean prebuild and config snapshots. Changes such as gitignore entries and the test Jest config are made through its workflow steps.

### What tools does Expo prebuild and config plugins need?

It runs bundled Node scripts and expects an Expo project using Jest. No allowed-tools list is set in the skill.

### How do I install Expo prebuild and config plugins in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/expo-prebuild-and-config-plugins to use it in all your projects, or to .claude/skills/expo-prebuild-and-config-plugins in one project. Or install the react-native plugin, which includes it: /plugin marketplace add zakariaf/ReactNative-Skills, then /plugin install react-native@react-native-skills.

### Does Expo prebuild and config plugins run scripts?

Yes. It runs shell, JavaScript and TypeScript scripts. No network calls were found in its scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Expo prebuild and config plugins?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Expo prebuild and config plugins?

The closest alternatives to Expo prebuild and config plugins are Expo module, Expo project bootstrap, Expo SDK upgrade, Dependency management and Expo brownfield.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Expo module](https://ai-powered.com/skills/expo-module): Expo module is an open-source agent skill for developer tools.
- [Expo project bootstrap](https://ai-powered.com/skills/expo-project-bootstrap): Expo project bootstrap is an open-source agent skill for developer tools.
- [Expo SDK upgrade](https://ai-powered.com/skills/expo-sdk-upgrade): Expo SDK upgrade is an open-source agent skill for developer tools.
- [Dependency management](https://ai-powered.com/skills/dependency-management): Dependency management is an open-source agent skill for developer tools.
- [Expo brownfield](https://ai-powered.com/skills/expo-brownfield): Expo brownfield is an open-source agent skill for developer tools.
- [Expo upgrade](https://ai-powered.com/skills/expo-upgrade): Expo upgrade is an open-source agent skill for developer tools.
- [App variants and environment](https://ai-powered.com/skills/app-variants-and-environment): App variants and environment is an open-source agent skill for developer tools.
- [Expo native UI](https://ai-powered.com/skills/expo-native-ui-scaledockhq): Expo native UI is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/expo-prebuild-and-config-plugins
