# local-build

local-build generates two shell scripts that produce release-ready Android APK and iOS simulator .app files for Expo projects using gradlew and xcodebuild, without cloud EAS.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 246 installs · ★ 150 repo stars
- Author: Code-with-Beto
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/Code-with-Beto/skills/tree/HEAD/plugins/cwb-local-build/skills/local-build/SKILL.md
- Updated: 2026-07-12
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/local-build

## What it does

This skill creates `scripts/build-android.sh` and `scripts/build-ios.sh`, which assemble release artifacts by reading your app's name, scheme, and bundle ID from `app.json` or `app.config.ts` and wiring them into `./gradlew assembleRelease` and `xcodebuild` commands. Output lands in `builds/` each time.

Release builds matter: Expo debug builds include `expo-dev-client`, which is the launcher screen showing available Development Servers, not your app itself. For e2e runs or real device testing, you need Release. The iOS script targets simulator only; physical devices need provisioning profiles and signing identity. Android APKs are signed with the debug keystore and safe for local testing, but unsuitable for Play Store—use `eas build` or set up a release keystore for production.

The skill checks that your directory is an Expo project (looks for `expo` in `package.json` dependencies and an `app.json` or config file), and that `ios/` and `android/` directories exist. If they don't, it suggests running `npx expo prebuild`. It does not hardcode app names; both scripts are bound to your actual project identity.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add Code-with-Beto/skills --skill local-build -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/local-build/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/local-build/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add Code-with-Beto/skills --skill local-build -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/local-build/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add Code-with-Beto/skills --skill local-build -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/local-build/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install Code-with-Beto/skills plugins/cwb-local-build/skills/local-build
```

2. **Manually: put the files in place**
- File: `.github/skills/local-build/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add Code-with-Beto/skills --skill local-build -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/Code-with-Beto/skills --path plugins/cwb-local-build/skills/local-build
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/local-build/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add Code-with-Beto/skills --skill local-build -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/Code-with-Beto/skills/tree/HEAD/plugins/cwb-local-build/skills/local-build/SKILL.md

## When to use it
- build a release APK locally without EAS or Play Console
- create an iOS simulator .app outside the cloud
- share a production-like build artifact with a teammate instantly
- run e2e tests against the actual app, not debug launcher
- iterate faster on a physical device without dev servers

## Example prompts
- Generate local build scripts for my Expo Android and iOS apps
- Create build-android.sh and build-ios.sh wired to my project config
- Set up shell scripts that produce APK and .app using gradlew and xcodebuild

## Similar
- [limrun-gradle](https://affpapa.org/en/nevibecode/skills/limrun-gradle.md) — skill · 42200 installs
- [expo-skill-eval](https://affpapa.org/en/nevibecode/skills/expo-skill-eval.md) — skill · 26300 installs
- [rnrepo](https://affpapa.org/en/nevibecode/skills/rnrepo.md) — skill · 1200 installs
- [mobile-cicd](https://affpapa.org/en/nevibecode/skills/mobile-cicd.md) — skill · 152 installs
- [simulators](https://affpapa.org/en/nevibecode/skills/simulators.md) — skill · ★ 149 repo stars
- [expo-deployment](https://affpapa.org/en/nevibecode/skills/expo-deployment.md) — skill · 1 install

From the same set: [code-with-beto/skills](https://affpapa.org/en/nevibecode/by/code-with-beto/skills.md) — 4 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
