# App startup and bootstrap

> App startup and bootstrap is an open-source agent skill for developer tools. Orders an Expo app's cold start so the splash, storage and providers run in sequence. 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/app-startup-and-bootstrap
- **Repository:** https://github.com/zakariaf/reactnative-skills
- **GitHub stars:** 16
- **License:** MIT
- **Skill name:** app-startup-and-bootstrap
- **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 gives an Expo and React Native app a fixed startup sequence: polyfills and router entry, an error net, a module-scope splash hold, a synchronous storage open, provider nesting in dependency order, and a single splash release once the first screen is ready. It also covers flushing buffered writes from one root hook when the app leaves the foreground.

The skill ships a template root skeleton (root layout, app root, root stack, startup gate, background flush helpers, and a kit registry for optional add-ons such as crash reporting or analytics) along with a zero-dependency checker script that verifies the layout against a startup contract file. Reference documents explain the order step by step, splash behaviour, and deferred work rules.

The skill expects an Expo project using expo-router, with TypeScript and Jest for its tests, and it asks that the launch be checked on release builds on both iOS and Android.

## When your agent uses it

> Orders an Expo app's cold start - polyfills, error net, splash hold, storage open, providers, splash release, background flush. Use when editing the root _layout.tsx or the app root, or the splash hangs or flashes. Not for routes (navigation-and-routing).

## What it can access

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

- [Runs JavaScript and TypeScript scripts](https://github.com/zakariaf/ReactNative-Skills/tree/HEAD/skills/app-startup-and-bootstrap)
- [No network calls found in its scripts](https://github.com/zakariaf/ReactNative-Skills/tree/HEAD/skills/app-startup-and-bootstrap)
- [License: MIT](https://github.com/zakariaf/ReactNative-Skills/tree/HEAD/skills/app-startup-and-bootstrap)

## Features

- **Startup order rules:** Defines the sequence of polyfills, error net, splash hold, storage open, providers and splash release.
- **Splash hold and release:** Holds the native splash at module scope and releases it once the startup gate is ready.
- **Startup gate with deadline:** Runs blocking startup tasks under a literal deadline of at most 3000 ms.
- **Root kit registry:** Lets optional kits plug into typed slots without changing the root files.
- **Background flush hook:** Flushes buffered writes from one root hook before the app checkpoints on background.
- **Startup checker script:** Runs a checker that validates the root files against the startup contract.

## Good for

- Set up a new Expo app with a canonical root layout and splash handling
- Fix a splash screen that hangs or flashes on launch
- Add crash reporting or analytics as a root kit without editing root files
- Make a draft survive an app being swiped away from the switcher
- Verify that the startup order still matches the project's contract

## 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/app-startup-and-bootstrap`:

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

For one project only, put the folder in `.claude/skills/app-startup-and-bootstrap` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/app-startup-and-bootstrap` 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/app-startup-and-bootstrap &&
cp -R "$tmp/skills/app-startup-and-bootstrap" ~/.agents/skills/app-startup-and-bootstrap &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/app-startup-and-bootstrap` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/app-startup-and-bootstrap` 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/app-startup-and-bootstrap &&
cp -R "$tmp/skills/app-startup-and-bootstrap" ~/.cursor/skills/app-startup-and-bootstrap &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/app-startup-and-bootstrap` 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/app-startup-and-bootstrap
```

Or copy the folder to `~/.gemini/skills/app-startup-and-bootstrap` yourself.

### VS Code

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

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

For one project only, put the folder in `.github/skills/app-startup-and-bootstrap` 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/app-startup-and-bootstrap` into your agent's skills folder as `app-startup-and-bootstrap`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does App startup and bootstrap need to run?

An Expo project using expo-router, with TypeScript and Jest for the included tests, plus the checker script run from the repository root.

### When does App startup and bootstrap trigger?

When editing the root _layout.tsx or the app root, or when the splash hangs or flashes.

### Does App startup and bootstrap handle routes?

No. Routes and navigation are covered by the navigation-and-routing skill.

### How do I install App startup and bootstrap in Claude Code?

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

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 startup and bootstrap?

The closest alternatives to App startup and bootstrap are Expo project bootstrap, Expo project structure, Expo router, Background tasks and Debug menu and test hooks.

## Where this comes from

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

## Alternatives

- [Expo project bootstrap](https://ai-powered.com/skills/expo-project-bootstrap): Expo project bootstrap is an open-source agent skill for developer tools.
- [Expo project structure](https://ai-powered.com/skills/expo-project-structure-scaledockhq): Expo project structure is an open-source agent skill for developer tools.
- [Expo router](https://ai-powered.com/skills/expo-router-scaledockhq): Expo router is an open-source agent skill for developer tools.
- [Background tasks](https://ai-powered.com/skills/background-tasks): Background tasks is an open-source agent skill for developer tools.
- [Debug menu and test hooks](https://ai-powered.com/skills/debug-menu-and-test-hooks): Debug menu and test hooks 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.
- [Expo prebuild and config plugins](https://ai-powered.com/skills/expo-prebuild-and-config-plugins): Expo prebuild and config plugins is an open-source agent skill for developer tools.
- [Expo overview](https://ai-powered.com/skills/expo-overview): Expo overview is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/app-startup-and-bootstrap
