# The App Playbook

**From an idea to Google Play, for first-time app builders and vibe coders.**

By Inigo. Written from building and shipping four Android apps with AI coding agents
([Heart Apps](https://heartapps.github.io/)), including every mistake along the way.

> **How to use this file.** Save it in your project folder and tell your AI coding agent (Claude Code, Codex, Cursor,
> Gemini CLI or any other): *"Read PLAYBOOK.md fully, then take me through it from stage 1. Stop at every gate and
> wait for my answer."* You make the decisions; the agent does the work. You don't need to know how to code, but you
> do need to read what the agent shows you at each gate.

Version 1.0, 30 November 2026. The stack here is Expo and React Native for Android. Tools change fast, so the agent
should check current documentation instead of trusting its memory.

---

## Contents

- [Part A. Before you start](#part-a-before-you-start)
  - [A1. What you need: accounts, tools and agent skills](#a1-what-you-need)
  - [A2. Ground rules for your agent](#a2-ground-rules-for-your-agent)
  - [A3. Words you will meet](#a3-words-you-will-meet)
- [Part B. The twelve stages](#part-b-the-twelve-stages)
  1. [Idea and brief](#1-idea-and-brief)
  2. [Name, icon and logo](#2-name-icon-and-logo)
  3. [Look and feel](#3-look-and-feel)
  4. [Project setup](#4-project-setup)
  5. [Data and backend](#5-data-and-backend)
  6. [Building it](#6-building-it)
  7. [Quality check](#7-quality-check)
  8. [Builds and signing](#8-builds-and-signing)
  9. [Website and privacy policy](#9-website-and-privacy-policy)
  10. [Store listing](#10-store-listing)
  11. [Google Play Console](#11-google-play-console)
  12. [Release and after](#12-release-and-after)
- [Part C. Traps we already fell into](#part-c-traps-we-already-fell-into)
- [Part D. Templates and prompts](#part-d-templates-and-prompts)

---

## Part A. Before you start

### A1. What you need

**Accounts**

| Account | Cost | Needed? | What for |
| --- | --- | --- | --- |
| GitHub | Free | Yes | Keeps your code safe and its history; hosts your app's website and downloadable APKs |
| Expo | Free plan | Yes | Builds the app in the cloud (a limited number of free builds a month) and sends updates to phones |
| Google Play Console | One-time US$25 | Yes, to be on Play | Your store page, testing and release. New personal accounts must run a closed test with 12 testers for 14 days before going public |
| Supabase | Free plan | Only if the app has accounts or sync | Sign-in, a database and file storage. Free projects pause after a week unused |
| A domain name | About US$10 a year | No | A short web address. GitHub Pages works free without one |

**Tools on your computer**

| Tool | Needed? | What for |
| --- | --- | --- |
| An AI coding agent | Yes | Writes and runs the code with you |
| Node.js (LTS) | Yes | Runs Expo and the build tools |
| Git | Yes | Saves versions of your work |
| A code editor (VS Code or similar) | Recommended | Reading what the agent wrote |
| An Android phone with a USB cable | Yes | The only true test of your app |
| GitHub CLI (`gh`) | Recommended | Lets the agent create repos and releases |
| Java JDK 17 and the Android SDK | Only for builds on your own computer | Cloud builds don't need them |
| Python | Optional | Small helper scripts |
| Android emulator | Optional | Quick checks without a phone |

You never install the Expo build tool globally: the agent runs it with `npx eas-cli@latest`.

**Agent skills (optional, but they make a real difference)**

Skills are instruction packs your agent loads for a kind of task. Many agents can install them with
`npx skills add <owner/repo>`. These helped most:

| Skill | Install from | Helps with |
| --- | --- | --- |
| Expo skills (native UI, design system, animation) | `expo/skills` | Code that follows current Expo practice |
| React Native best practices | `callstackincubator/agent-skills` | Speed and structure |
| impeccable | `pbakaus/impeccable` | Writing down who the app is for and its design system, then design reviews |
| Supabase agent skills | `supabase/agent-skills` | Safe database rules, if you use Supabase |
| Modern web guidance | `GoogleChrome/modern-web-guidance` | Your app's website |
| A "humanizer" style skill | for example `blader/humanizer` | Store and website text that sounds like you, not like an AI |

A **worst-case data** habit matters more than any skill: ask the agent to fill every screen with very long names,
empty lists and huge numbers, and fix what breaks.

### A2. Ground rules for your agent

Give these to the agent with the playbook. They came from real problems.

**Safety**
- Never print, paste or commit passwords, API keys or signing keys. Keys live in environment variables or a private
  file that git ignores.
- Ask before anything that leaves the computer: pushing code, publishing an update, creating an account, uploading to
  the store, sending notifications.
- The app's **package name** (like `com.yourname.appname`) is permanent once on Google Play. Agree it before the first
  build.

**Inside the app**
- No technical text on screen, ever: no error codes or messages meant for programmers. "No connection. Check your
  internet and try again." is the kind of sentence people should see.
- Ask before removing anything (a photo, a note, an item), and offer undo where you can.
- Every update shows a short "What's new", written in plain words.
- Don't require hardware the app can live without (a camera, GPS, a portrait-only screen), or the store hides the app
  from some devices.
- Readable for everyone: strong contrast, large tap areas (48 dp), text that grows with the phone's font setting, and
  less motion when the phone asks for it.
- Use made-up demo data for screenshots and store images, never real people's data.

**Working style**
- Keep a `HANDOFF.md` in the project: what works, what is released, what is open, how to build. Update it after every
  piece of work, so any agent (or you, months later) can pick up the project.
- Commit after every milestone with a message that says what a user would notice.
- Check the current documentation before writing code for fast-moving tools (Expo changes with every release).

### A3. Words you will meet

| Word | Meaning |
| --- | --- |
| **Expo / React Native** | The toolkit: you write the app once in JavaScript or TypeScript, and it runs as a real Android app |
| **EAS** | Expo's cloud service that builds your app and sends updates |
| **APK** | An Android app file people can install directly |
| **AAB (app bundle)** | The file you upload to Google Play; Play turns it into APKs for each phone |
| **Package name** | Your app's permanent id, like `com.yourname.appname` |
| **versionCode** | A whole number that must go up with every build you release |
| **Keystore / signing key** | Proves an update comes from you. Lose it and you can't update your app; back it up |
| **OTA update** | An over-the-air update: new JavaScript reaches phones without a store release. Native changes still need a new build |
| **Runtime / fingerprint** | Which builds can take an OTA update. A new native change makes a new runtime |
| **Channel** | Where an update goes, for example `preview` (your test APK) and `production` (Play) |
| **Closed test** | A Play testing track for invited testers, required before a new personal account can publish |
| **Data safety form** | Play's form about what data your app collects; it must match your privacy policy and your code |
| **RLS (row-level security)** | Database rules so each person sees only their own data |
| **F-Droid** | An open app store; you can run your own F-Droid repository on GitHub Pages |
| **R8 / mapping file** | Shrinks the app; the mapping file lets Play turn crash reports back into readable names |

---

## Part B. The twelve stages

Every stage ends with a **gate**: the agent shows you something and waits for your yes. Saying "do all" covers only the
stage in front of you.

### 1. Idea and brief

**Goal:** know exactly what you're building and for whom, before any code.

- The agent asks you the questions in [D1](#d1-intake-questions), all at once, each with a suggested answer, so you
  can reply "defaults are fine" where you don't mind.
- The answers that change everything: who uses it and on what phones; offline or online; accounts or none; who can see
  whose data; languages; where it's distributed; where its content comes from and whether you may use it.
- The agent writes **PRODUCT.md** ([D2](#d2-productmd)): users, purpose, why it beats what people use now, where and
  how it's used, what it does, and what it won't do.
- For a bigger app it also writes **PLAN.md** ([D3](#d3-planmd)) with a **decisions table**: each open question with
  the agent's suggested answer. You only change the rows you disagree with.

**Gate 1:** you approve PRODUCT.md and the decisions table.

*Beginner trap:* starting to code from a one-line idea. Two pages of brief save days of rework.

### 2. Name, icon and logo

**Goal:** a name, a permanent package name, and an icon people recognise at a glance.

- Pick a short name, then a package name `com.<you>.<app>`. It can never change after the first Play upload.
- Ask for **two or three icon directions** side by side, at full size and at tiny sizes (48 and 24 pixels), on light
  and dark backgrounds. Choose one and refine it.
- What worked for us: an illustrated object that says what the app is (a film reel for a film diary), with one shared
  brand detail across all your apps (ours is a heart). Plain letters or generic shapes look like everyone else.
- If you have your own sketch or character, give it to the agent and ask it to build on yours. Drawings made from
  nothing often feel off.
- The agent draws the icon as SVG and renders every size with a script, so it can be remade later: app icon (1024 px),
  Android adaptive icon layers (foreground, background, monochrome, kept inside the central safe zone), splash image,
  a 512 px store icon, and a **notification icon** (white on transparent, simple enough to read at 24 dp).

**Gate 2:** you approve the name, the package name and the icon at full and tiny size.

### 3. Look and feel

**Goal:** a look that belongs to this app alone, written down so every screen follows it.

- Give the app its own world, tied to what it is: a cinema for a film diary (tickets, marquee titles), paper and ink
  for a journal, the college calendar for a campus app.
- The agent writes **DESIGN.md**: colours with rules for each, fonts, spacing, shapes, components, motion, do's and
  don'ts. (The impeccable skill does this well.)
- See it before it's built: ask for a design page with two or three palettes and two or three key screens to compare.
- Signs of AI-made design to avoid: purple gradients, glowing edges, gradient text, emoji as labels, see-through panels
  over text, everything in cards, uppercase labels everywhere.
- If you dislike the whole direction, say so and start again from references you like, rather than patching.

**Gate 3:** you approve the palette, type and key screens.

### 4. Project setup

**Goal:** an empty app that already follows every rule.

- The agent creates the app with the current Expo template (Expo Router, TypeScript), then sets up git and a private
  repo on GitHub.
- `.gitignore` covers keys from day one: `credentials.json`, `*.jks`, `.env*.local`, a `private/` folder, build
  outputs.
- `app.json`: name, package name, version and `versionCode`, the icons, a fingerprint runtime policy, update URL, only
  the permissions you use (block the rest, including the advertising id), backups of app data off unless you want them.
- Two build profiles in `eas.json`: `preview` makes an APK for you and testers, `production` makes the bundle for Play.
- Release builds shrink the code (R8) and include only the processor types phones use (ARM), which makes the app much
  smaller.
- Checks from the start: type check, lint, and a few tests the agent runs after every change.
- A "What's new" entry, an error helper that turns any failure into plain words, and a **Report a problem** button
  that opens an email with the app version and recent errors (never the user's own content).

**Gate 4:** the empty app opens on your phone and the checks pass.

### 5. Data and backend

**Goal:** the least backend the app needs, private by default.

| If the app needs | Use |
| --- | --- |
| Data on one phone only | A local database (SQLite). No server, no account, simplest privacy policy |
| Backup without your own server | An export file the user saves (to Drive or anywhere), ideally locked with a passphrase |
| Accounts and sync | Supabase: sign-in, Postgres with row-level security on every table, file storage |

With Supabase:
- Keep the database schema in the repo as SQL files, and test the security rules.
- Apply new SQL to the live database before releasing the app version that needs it.
- Free projects pause after a week without use; a daily scheduled ping (a GitHub Action in a private repo) keeps them
  awake.
- Accounts mean you need **Delete account** in the app and a public page explaining how to delete data (Play requires
  both).
- Only public ("publishable") keys go into the app. Secret keys stay on the server.

**Gate 5:** the database is set up and the security rules are tested.

### 6. Building it

**Goal:** the app, in milestones you can see.

- Milestone 0 is the skeleton: navigation, theme, fonts, one real screen. Then features in the order of PLAN.md.
- After each milestone the agent: runs the checks, looks at the screens on the web preview and the phone, updates
  HANDOFF.md, commits, and tells you in five lines what changed and what it did **not** check.
- Ask for a **demo mode** with made-up data, plus a worst-case data set, for screenshots and testing.
- Things that need a new build (new native libraries, icons, permissions) are planned into builds. Everything else can
  later reach phones as an OTA update.

**Gate 6:** at every milestone, you try it and say go.

*Beginner trap:* letting the agent build ten features before you open the app once. Look early and often.

### 7. Quality check

Before any build that leaves your computer:

- [ ] Type check, lint and tests pass; `npx expo-doctor` is clean.
- [ ] `npx expo install --fix` so every package matches your Expo version.
- [ ] "What's new" has a new entry.
- [ ] No programmer text can reach the screen.
- [ ] Worst-case data on every main screen: long names, empty lists, huge numbers, the largest font size.
- [ ] Light and dark mode, contrast, tap sizes, screen reader labels on icon buttons.
- [ ] Every screen says something useful offline.
- [ ] The permissions in the built app are only the ones you meant.

### 8. Builds and signing

**Goal:** a signed APK for testers and a signed bundle for Play, checked before anyone sees them.

- Cloud builds: `npx eas-cli@latest build -p android --profile preview` (APK) and `--profile production` (bundle).
  The first build creates your signing key on Expo's servers; download a backup copy and keep it private.
- Raise `versionCode` for every build you release. The APK and the bundle can share one rising sequence.
- Free cloud builds are limited each month. Building on your own computer is possible (JDK 17, Android SDK, a short
  folder path on Windows), but it's more fiddly; save it for when you run out.
- Check every file before release: right signing key (the same as your earlier releases, or updates won't install),
  right versionCode, right update channel, no hardware required.

### 9. Website and privacy policy

**Goal:** a page people can find, and a privacy policy Play accepts.

- A small site on GitHub Pages: what the app is, screenshots from demo data, a download button, and **privacy.html**
  written from facts in the code (what is stored, where, who can see it, how to delete it). Add **delete-account.html**
  if there are accounts.
- Download buttons point at `https://github.com/<you>/<repo>/releases/latest/download/<app>.apk`, and every release
  includes the APK under that same fixed name, so the button never needs editing.
- Optional: your own F-Droid repository on GitHub Pages, for people who avoid Google Play.
- A link preview image (1200 x 630, under about 300 KB so WhatsApp shows it).

**Gate 9:** you read the site and the privacy policy before they go live.

### 10. Store listing

**Goal:** everything Play asks for, written down before you open Play Console.

Keep a `store/` folder:
- `listing.md`: app name (30 characters), short description (80), full description (4000), category, contact
  email, and release notes for each version (500).
- `play-console.md`: an answer for every Play form, taken from what the code really does: privacy policy URL, app
  access (a test account if anything needs sign-in), ads, content rating, target audience (choose 13 and over unless
  the app is for children, which brings extra rules), and **Data safety**: each kind of data, collected or shared,
  required or optional, why, encrypted in transit, how to delete. Count the random install id that update services
  receive.
- `graphics/`: 512 px icon, 1024 x 500 feature graphic, 4 to 8 phone screenshots, all made by a script from demo data.

**Gate 10:** you read the listing and the Data safety answers.

### 11. Google Play Console

**Goal:** the app created, tested and live.

1. Create the app in Play Console: name, default language, free. Keep Play App Signing on.
2. Fill in every App content form from `store/play-console.md`, and the store listing from `store/listing.md`.
3. Upload the first bundle by hand to a **closed test**, with its mapping file.
4. Invite at least 12 testers and keep them opted in for 14 days in a row (new personal accounts). Start early, and
   invite a few spares.
5. Apply for production when Play offers it, then release.
6. From then on, the agent can upload new versions for you through the Google Play Developer API with a service
   account (a robot account in Google Cloud that you invite in Play Console under Users and permissions, with release
   permissions). Keep its key file private and out of git.

### 12. Release and after

**Release day, in one go:**
1. Everything committed and pushed.
2. A GitHub release tagged `v<version>` with the APK under its versioned name **and** its fixed name; check the
   download link answers with the new file.
3. Optional: publish the APK to your F-Droid repository.
4. Update any version text on the website.
5. Upload the bundle and mapping file to Play with release notes.
6. Update HANDOFF.md.

**After release:**
- JavaScript-only fixes go out as OTA updates to every runtime your users have, on every channel, each with a new
  "What's new".
- Anything native (icons, notifications, widgets, permissions) needs a new build, and a check on a real phone.
- Listen through Report a problem emails and Play reviews; fix, update What's new, ship.

---

## Part C. Traps we already fell into

| What happened | Why, and the fix |
| --- | --- |
| Users ended up with two separate apps | The package name changed after release. Decide it before the first upload |
| An update didn't reach some phones | Different builds have different runtimes. Publish OTA updates to every runtime still in use |
| An update reached no one | The update went to the wrong channel. Each build listens to one channel |
| Keys sat in the project folder | `.gitignore` didn't cover them. Add the key files on day one and delete downloaded keys after use |
| A release broke the website's download button | The fixed-name APK was missing from the release. Always attach both names |
| Play warned the app "requires a portrait screen" | Locking orientation marks the screen as required hardware. Mark hardware features optional |
| The Windows build failed with long-path errors | Build from a short folder such as `C:\b`, and use a newer CMake |
| The free database went to sleep | Free projects pause after a week. Add a daily keep-alive ping |
| A third free database was refused | Free plans limit projects per account |
| The APK wouldn't download on some mobile networks | GitHub's file server is blocked there. Mirror the APK on a web page you host |
| A release build wouldn't open on the emulator | ARM-only builds don't run on the usual x86_64 emulator. Test on a phone, or build with x86_64 for the emulator |
| A widget crashed after a compiler upgrade | Some widget libraries break with the React Compiler. Opt those files out |
| Store screenshots showed someone's real data | Always seed demo data for images |
| The agent's text sounded like an AI | Ask for plain, specific sentences, or use a humanizer skill, and read it before publishing |
| An agent re-did work another session had done | Keep HANDOFF.md current, and start every session by reading it |

---

## Part D. Templates and prompts

### D1. Intake questions

```text
1. In one sentence, what does the app do, and for whom?
2. What should someone feel after a week of using it?
3. Three apps it should beat, and one thing each does badly.
4. Online or fully offline? Accounts, or none?
5. Who can see whose data?
6. Languages.
7. Where will people get it: Google Play, a direct APK, F-Droid?
8. Where does its content come from, and may you use it?
9. Must-haves for version 1, and what can wait.
10. Notifications? Home-screen widgets? Sharing images?
11. Apps, sites or drawings you love the look of.
12. Name ideas, and the package name com.<you>.<app> (permanent).
```

### D2. PRODUCT.md

```markdown
# Product

## Platform
android

## Users
- **<who>** (<age, phones, context>). Each day they <what they do with it>.

## Product purpose
<The job it does and what success looks like.>

## Positioning
<Why this over what people use now.>

## Operating context
- <Where and how it's used: short bursts, offline, languages, how it's shared.>

## Capabilities and constraints
- <Feature, one line each.>
- Out of scope: <what it won't do>.
```

### D3. PLAN.md

```markdown
# <App>: build plan

1. The idea
2. What changed (newest first, dated)
3. Scope of version 1, and what waits
4. Stack
5. Content and its sources
6. Data: what is stored, what syncs, what never leaves the phone
7. Design summary (detail in DESIGN.md)
8. Screens, with empty and error states
9. Motion
10. Privacy, permissions, notifications, accessibility
11. Backup and sync
12. Store release plan
13. Milestones, each with what you will see at the end
14. Decisions for the owner (decision | suggested answer)
15. Acceptance checklist (testable lines)
```

### D4. Kickoff prompt

```text
Read PLAYBOOK.md, PRODUCT.md, DESIGN.md and PLAN.md fully. Build the app one milestone at a time, starting at
milestone 0. After each milestone: run the type check, lint and tests, look at the screens on a phone-sized preview,
update HANDOFF.md, commit, and tell me in five lines what changed and what you did not check. Follow DESIGN.md exactly.
Use demo data for every screenshot. Never print keys. Ask before pushing, publishing or creating any account.
```

### D5. HANDOFF.md

```markdown
# <App>: handoff

Read this first. Updated <date>.

## Start here
<One paragraph: what works, what's released, what's next.>

## Live
| What | Where | Version |
| --- | --- | --- |
| Google Play | production / closed test | <version> (versionCode <n>) |
| APK | GitHub release v<version> | <app>.apk |
| OTA runtimes | preview <id>, production <id> | |
| Backend | <project, migrations applied> | |

## How to build, test and release
<Commands and anything unusual.>

## Open work
- <dated item: what, why, what's left>

## Decisions
- <dated decision, who made it, why>
```

### D6. Release checklist

```text
[ ] Quality check (stage 7) passes
[ ] Version and versionCode raised, What's new updated, committed
[ ] APK and bundle built and signed with the release key, and checked
[ ] Code pushed
[ ] GitHub release with versioned and fixed-name APK; download link checked
[ ] F-Droid published (if you run a repository)
[ ] Website version text updated and published
[ ] Bundle, mapping file and release notes uploaded to Play
[ ] HANDOFF.md updated
[ ] Downloaded keys deleted; build folders cleared
```

### D7. Prompts that work

- *"Show me three icon directions side by side at 1024, 48 and 24 pixels, on light and dark."*
- *"Fill every screen with worst-case data: very long names, empty lists, huge numbers, the biggest font. List what
  breaks and fix it."*
- *"Read the built APK and tell me its signing certificate, versionCode, permissions and whether it requires any
  hardware."*
- *"Write the Play Data safety answers from what the code actually does, and show me where each answer comes from."*
- *"Write the privacy policy from facts in the code. No promises the code doesn't keep."*
- *"Before you end, update HANDOFF.md and tell me what you didn't check."*

---

The App Playbook by Inigo Papu Vinodhan (https://inigo.co.in/playbook/) is licensed under CC BY 4.0
(https://creativecommons.org/licenses/by/4.0/). Share and adapt it freely, with credit and a link back.
