Skip to content
Skill

App variants and environment

Sets up dev, preview and production app variants with safe environment and secret handling

App variants and environment is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
JavaScript, TypeScript
Platforms
Claude Code, Codex, Cursor
GitHub stars
16
Last commit
License
MIT
Listing updated

Similar skills

About App variants and environment

This skill wires one Expo app into three build variants, development, preview and production, selected through APP_VARIANT. Each variant gets its own bundle identifier, app name, icon files and URL scheme so it installs beside the others without overwriting the store app. It also provides a single resolver for the variant, a Metro cache key tied to public environment values, and an EAS build profile layout where each profile names its variant and environment consistently.

The workflow covers merging the templates into an existing app config, generating badged development and preview icons, routing every public environment read through one typed reader in src/config, and moving paid or LLM API calls behind server routes so their keys never ship in the bundle. It also explains which values must stay out of git and which EAS variables to create, leaving any change to live EAS variables for the developer to approve.

The skill runs three checkers: one that evaluates the config per variant, one that scans source and files for leaked secrets and misplaced reads, and one that inspects exported bundles for test-only code. It expects an Expo project with a JavaScript or TypeScript codebase, and uses the Expo CLI and EAS CLI.

When your agent uses it

Wires APP_VARIANT builds: per-variant ids, names, icons, schemes, EXPO_PUBLIC_* as public, secrets in EAS/CI, test code out of store bundles. Use when adding a variant, env var, .env or secret. Not for signing (eas-build-and-submit).

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 54 files (517 KB) on GitHub on 5 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

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

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

Or copy only this skill to ~/.claude/skills/app-variants-and-environment:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zakariaf/ReactNative-Skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/app-variants-and-environment &&
cp -R "$tmp/skills/app-variants-and-environment" ~/.claude/skills/app-variants-and-environment &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/app-variants-and-environment inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/app-variants-and-environment to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zakariaf/ReactNative-Skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/app-variants-and-environment &&
cp -R "$tmp/skills/app-variants-and-environment" ~/.agents/skills/app-variants-and-environment &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/app-variants-and-environment inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/app-variants-and-environment to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zakariaf/ReactNative-Skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/app-variants-and-environment &&
cp -R "$tmp/skills/app-variants-and-environment" ~/.cursor/skills/app-variants-and-environment &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/app-variants-and-environment inside it instead.

Cursor docs on skills

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

gemini skills install https://github.com/zakariaf/ReactNative-Skills.git --path skills/app-variants-and-environment

Or copy the folder to ~/.gemini/skills/app-variants-and-environment yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/app-variants-and-environment:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zakariaf/ReactNative-Skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/app-variants-and-environment &&
cp -R "$tmp/skills/app-variants-and-environment" ~/.copilot/skills/app-variants-and-environment &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/app-variants-and-environment inside it instead.

VS Code docs on skills

Get the folder:

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

Then copy ReactNative-Skills/skills/app-variants-and-environment into your agent's skills folder as app-variants-and-environment. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Variant resolver
Chooses development, preview or production from one function and rejects unknown or mismatched names.
Per-variant app identity
Gives each variant its own bundle id, package name, display name, icons and URL scheme.
Public environment rules
Treats every EXPO_PUBLIC value as public and keeps secrets in EAS or CI and server routes.
Test code stripping
Uses literal comparisons at require calls so test-only modules are left out of store bundles.
Metro cache keying
Keys the Metro cache version on public environment values so variants never reuse each other's bundles.
Checker scripts
Runs checks on config, source, eas.json, .gitignore and exported bundles and reports pass or fail lines.

Good for

  • Add a development and preview build beside the production app
  • Move an OpenAI API call behind an Expo Router API route
  • Add a new public environment variable with a typed reader
  • Verify that test-only screens are absent from the production bundle
  • Set up EAS build profiles that match each app variant

App variants and environment FAQ

When does App variants and environment trigger?

It is meant for adding a build variant, an environment variable, a .env file or a secret to the app. Code signing is handled by a separate skill, eas-build-and-submit.

Which clients does App variants and environment work with?

It is a plain SKILL.md folder that follows the shared agent skills format, so it applies to all listed AI coding clients.

Does App variants and environment store secrets in the app?

No. The skill states that EXPO_PUBLIC values are public and that secrets belong in EAS or CI variables or in API routes that read process.env on the server.

What does the skill need to run?

It expects an Expo app and uses the Expo CLI and EAS CLI, with checker scripts written in JavaScript and TypeScript.

How do I install App variants and environment in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/app-variants-and-environment to use it in all your projects, or to .claude/skills/app-variants-and-environment 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 App variants and environment run scripts?

Yes. It runs 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 App variants and environment?

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 App variants and environment?

The closest alternatives to App variants and environment are Expo prebuild and config plugins, Eas build and submit, Expo overview, Expo overview and Expo project bootstrap.

Where this comes from

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

More from zakariaf/ReactNative-Skills

  1. Turns canvas taps, swipes and drags into typed intents hit-tested on the drawn layout

    • Open source
    • 16 GitHub stars
    • Developer tools
  2. Adds a gated debug menu, debug deep link and simulated clock and offline mode to React

    • Open source
    • 16 GitHub stars
    • Developer tools
  3. Checks React Native code for accessibility labels, touch targets, text scaling

    • Open source
    • 16 GitHub stars
    • Developer tools
  4. Sells a one-time Premium unlock through the App Store and Google Play

    • Open source
    • 16 GitHub stars
    • Finance and payments
  5. Walks an Expo app through an SDK, Xcode or Android toolchain upgrade in one commit

    • Open source
    • 16 GitHub stars
    • Developer tools
  6. Builds React Native forms with one valibot schema, catalog-key errors and keyboard-aware

    • Open source
    • 16 GitHub stars
    • Developer tools