Buy @ Amazon

AI SDLC Lessons from Building Mobile Apps (Part 2): The Optimized Playbook


In Part 1, I shared the reality behind shipping production Android apps to the Google Play Store using Expo (React Native), Claude Code, and Google Antigravity.

With every mobile app development, my retrospective re-affirms an expensive truth: without deliberate AI-native engineering practices, coding agents dutifully recreates the same scaffolding, debugs the same dependency conflicts, and burn tokens on already-solved problems across every new repository.

As lessons compounded from building one app after another, I tried to synthesise and distil, the collated lessons on AI-Native SDLC. Instead of treating each app as a blank slate, the goal shifts to engineering leverage — structuring code, dependencies, and agent instructions  — so every subsequent app builds on verified foundations. 

In more ways than one this is good old software-craftsmanship principles shining at work in AI-native SDLC. One sure can do vibe-coding to make the LLM companies richer at your expense. Alternatively, you would be wise to leverage your software-craftsmanship experience to make this a win-win.

The Target Architecture: Compounding Leverage Across Apps

Before diving into each optimization mechanics, contrast Part 1's isolated copy-paste loop (that is well know as Vibe Coding Approach) with each of these listed mechanics (that I would call Software Craftsmanship Approach) to get a sense of potential mileage you get to gain from it. Each of the mechanics below solves a specific bottleneck from Part 1.

1. A Golden Expo Starter Template

The Problem: Cold-start bootstrapping friction, Expo SDK peer-dependency conflicts, and inconsistent folder layouts.

In the Expo ecosystem, compatibility between the Expo SDK, React Native, expo-router, react-native-reanimated, and storage libraries is non-negotiable. Asking an AI agent to assemble these from npx create-expo-app every time wastes thousands of tokens resolving version mismatches.

The Fix: Maintain a version-controlled Golden Expo Starter Template (a GitHub Template repository or local create-my-app scaffold) that comes pre-wired with:
  • Pre-pinned, verified library versions (package.json tested against npx expo-doctor).
  • Standardized Expo Router layout (app/(tabs)/index.tsx, bookshelf.tsx, practice.tsx, bookmarks.tsx, settings.tsx, about.tsx).
  • Pre-configured eas.json with development, preview (APK), and production (AAB) build profiles ready out of the box.
  • Baseline TypeScript strictness, linting, and path aliases (@core/*, @content/*).
SDLC Impact: Zero agent turns spent debugging package compatibility or Metro bundler configuration in early iterations.

2. Reusable Shared Core Libraries (UI + Utilities)

The Problem: Rebuilding common screens, theme divergence, and 6x maintenance overhead when fixing bugs.

Most of my apps share identical functional engines — they differ primarily in their content datasets, scripts/fonts, and app-level branding. Hardcoding domain terms (like kural or doha) inside UI components forced the agent to rewrite JSX across repos.

The Fix: Extract domain-agnostic building blocks into a shared internal package (via a pnpm/Turborepo monorepo or a private versioned npm package @expo-rn-starter/core):
Extract domain-agnostic building blocks into a shared internal package (via a pnpm/Turborepo monorepo or a private versioned npm package @expo-rn-starter/core):
  • Theme & Typography Engine (@expo-rn-starter/theme):
    • Standardized color tokens (Light, Dark, Sepia) and dynamic font-scale multipliers.
  • Live-Preview Settings Module (@expo-rn-starter/settings):
    • A self-contained, plug-and-play screen accepting sample preview text and supported locale options as props—rendering live font-size, theme, and transliteration changes identically across every app.
  • Storage, Bookmarks & Practice Engines (@expo-rn-starter/engines):
    • Generic TypeScript interfaces (ContentItem, CategoryNode, BookmarkRecord) backed by typed AsyncStorage / SQLite adapters.
    • Whether the item is a Thirukkural couplet, a Kabir Doha, or a Telugu Padyam, the bookmarking, search indexing, and recall practice logic run on the exact same tested code.
SDLC Impact: A bug fix or UX polish in Live-Preview Settings happens once in @expo-rn-starter/core and propagates cleanly to all apps.

3. Agent Scaffolding (CLAUDE.md & Antigravity Workspace Rules)

The Problem: "Prompt amnesia"—forcing Claude Code and Google Antigravity to re-discover your architecture, styling conventions, and constraints in every session.

Coding agents are only as consistent as the context anchored in the repository. Without explicit guardrails, an agent might introduce NativeWind in one session, StyleSheet in another, and inline styles in a third.

The Fix: Ship Agent Scaffolding directly inside the starter template and shared packages:
  • CLAUDE.md (and workspace rules for Google Antigravity): A concise, high-signal architectural contract at the repo root defining:
    • Directory map & boundaries: "Never modify @expo-rn-starter/core components for single-app content quirks; pass configuration via app.manifest.ts."
    • State & styling conventions: Exact rules for theme tokens, font scaling hooks, and offline-first storage.
    • Verification commands: Exact CLI commands (npx expo-doctor, npx tsc --noEmit, unit tests) the agent must run before marking a task complete.
  • Antigravity Task & Walkthrough Conventions: Structured implementation plans and browser/simulator verification checklists so multi-file edits stay auditable across sessions.
SDLC Impact: Every agent session starts with institutional memory intact, slashing review cycles and stylistic drift.

4. Reusable Agent Skills & Workflows

The Problem: Writing long, repetitive multi-step prompts for recurring SDLC workflows.

Across multiple mobile apps, you repeat high-level operational workflows—ingesting raw literary text into validated JSON/SQLite assets, generating theme palettes, or running Google Play Store release checks.

The Fix: Package recurring workflows as Reusable Agent Skills (SKILL.md directories shared across Claude Code and Google Antigravity) using progressive disclosure so they only load context when triggered:
  • ingest-content-pack skill: To convert raw source text into an app content bundle. It validates schema (id, chapter, originalScript, transliteration, meaning), checks UTF-8 rendering edge cases, and outputs typed JSON/SQLite assets.
  • generate-app-theme skill: To create brand palette & adaptive icon specs for [App]. It generates accessible Light/Dark/Sepia contrast tokens and updates app.config.ts splash/icon assets.
  • playstore-preflight skill: To prepare this app for EAS production release. It runs expo-doctor, bumps versionCode, verifies privacy policy URLs, checks offline fallback behavior, and validates eas.json.
SDLC Impact: Complex, error-prone multi-step prompts collapse into reliable single-command workflows with built-in quality gates.

5. White-Label Cloning + Data-Driven Configuration

The Problem: Overhead of maintaining separate app repositories when 90% of the app shell is identical.

When you have a family of closely related apps (like Thirukkural, Aathichudi, Hindi Dohe, and Telugu Padyalu), maintaining six separate codebases—even with shared libraries—still carries multi-repo overhead.

The Fix: Combine White-Label Cloning with Config-Driven Content Packs:
  • Replace static app.json with a dynamic app.config.ts driven by an APP_VARIANT environment variable (e.g., APP_VARIANT=thirukkural or APP_VARIANT=hindi_dohe).
  • Each variant defines its own Bundle ID / Android package, app name, adaptive icons, default locale, typography font family, and content bundle pointer.
  • For nearly identical apps: Build multiple Play Store AAB binaries directly from a single white-label codebase using EAS build profiles.
  • For apps that diverge functionally (like My Family Astro in my case): Clone the white-label shell as a clean starting point, keep @expo-rn-starter/core intact, and let the coding agent focus 100% of its tokens on the differentiating domain features.

Choosing the Right Strategy: Quick Decision Matrix

Not every app calls for the exact same level of consolidation. Here is how I decide which lever to pull:
  • Scenario - Apps share 85%+ UI & logic (differing only in language, dataset, and branding): The best strategy then is White-Label Cloning + Content Packs. This strategy leverages single codebase, single bug-fix surface, zero duplicated screens.
  • Scenario - Apps share core infrastructure (Settings, Themes, Auth, Storage) but have distinct core features: The best strategy then is Golden Starter Template + Shared Core Packages. This strategy keeps domain code isolated while eliminating boilerplate and UI drift. 
  • Scenario - Every new app or feature sprint using Claude Code / Google Antigravity: The best strategy then is Agent Scaffolding + Reusable Skills. This strategy compounds engineering standards and keeps LLM context lean regardless of repo topology. 


Heuristic Benchmarks: Usual Approach vs. Optimized AI SDLC

To put the compounding gains into perspective, here is a heuristic comparison based on my experience across the apps I built under my portfolio — contrasting the Vibe Coding Approach (Part 1) against the Software-Craftsman Approach (Part 2) to AI-native SDLC:
  • New App Bootstrapping (Setup, Navigation, Theme, Live-Preview Settings):
    • Usual Approach: ~2–3 days of iterative prompting and Expo SDK dependency debugging.
    • Optimized AI SDLC: ~2–4 hours using the Golden Starter Template and an app.config.ts variant.
    • Estimated Improvement: ~80–85% faster bootstrapping turnaround.
  • LLM Token Burn per New App (Infrastructure vs. Differentiating Features):
    • Usual Approach: ~60–70% of tokens spent rebuilding boilerplate, fixing broken imports, and resolving package conflicts.
    • Optimized AI SDLC: ~15–20% on setup, leaving 80%+ of token budget focused on unique app features and content.
    • Estimated Improvement: ~60–70% reduction in redundant LLM token spend.
  • Agent Context & Prompt Overhead:
    • Usual Approach: High—constantly pasting large reference files across repos and re-explaining architectural rules.
    • Optimized AI SDLC: Low—anchored by a concise CLAUDE.md / workspace contract and on-demand SKILL.md workflows.
    • Estimated Improvement: ~3x fewer corrective prompt turns per feature.
  • Cross-App Bug Fix or UX Upgrade (e.g., Live-Preview Settings Tweak):
    • Usual Approach: 6 separate agent sessions, 6 manual file patches, and 6 isolated regression test cycles.
    • Optimized AI SDLC: 1 fix in the shared core package or white-label shell, rolled out via automated EAS builds.
    • Estimated Improvement: ~80% reduction in ongoing maintenance effort.
  • Play Store Release Readiness:
    • Usual Approach: Manual release checks and ad-hoc edits to app.json and Android versionCode.
    • Optimized AI SDLC: Standardized and verified automatically via the playstore-preflight skill and pre-configured eas.json profiles.
    • Estimated Improvement: Near-zero release configuration regressions.


Summarising The Reflection

The biggest mindset shift in AI-Native Software Engineering is realizing that coding agents amplify whatever system you put them inside.

If you put a powerful coding agent inside an ad-hoc, copy-paste workflow, it will rapidly generate six slightly divergent codebases—and charge you tokens every time you need to synchronize them. If you instead invest upfront in golden templates, decoupled core packages, explicit agent scaffolding, reusable skills, and white-label configuration, your AI SDLC compounds with every release.

Building multiple mobile apps reinforced the fact that the lessons from software-craftsmanship remain golden even in the AI era and I bet it is a continuous process improvement endeavour.

Have you built multiple apps or microservices with AI coding agents? Which of these five pillars has saved you the most time and tokens—or what would you add to the playbook?