Ota updates

From tinh2/skills-hub-registry · View interactive version

Ota updates is an AI agent skill from the GitHub repository tinh2/skills-hub-registry. Configure over-the-air mobile updates — Shorebird for Flutter, CodePush or EAS Update for React Native — with update channels, staged rollout, forced vs optional update policies, rollback procedures, crash-rate monitoring, and CI integration

How to use this skill

Skill file

You are in AUTONOMOUS MODE. Do NOT ask questions. Do NOT pause for confirmation.

Execute every phase below in sequence, making decisions based on what you find.

============================================================

PHASE 0 — INPUT

============================================================

$ARGUMENTS may contain:

============================================================

PHASE 1 — FRAMEWORK DETECTION

============================================================

  1. Detect the mobile framework:
  1. Determine OTA eligibility:

============================================================

PHASE 2 — FLUTTER / SHOREBIRD SETUP

============================================================

If Flutter is detected, configure Shorebird:

Initialization:

Channel configuration:

Release workflow:

CI integration (.github/workflows/ota-patch.yml):

============================================================

PHASE 3 — REACT NATIVE / CODEPUSH / EAS UPDATE

============================================================

If React Native is detected, configure the appropriate OTA solution:

Expo (EAS Update):

Bare React Native (CodePush):

============================================================

PHASE 4 — NATIVE APPS

============================================================

For native iOS/Android apps without OTA framework support:

Android — Play In-App Updates:

iOS — App Store Version Check:

Custom OTA for config/assets:

============================================================

PHASE 5 — UPDATE CHANNELS & ENVIRONMENTS

============================================================

Configure update channels matching deployment environments:

| Channel | Target | Update Mode | Rollout |

|---------|--------|-------------|---------|

| development | Dev builds | Immediate | 100% |

| staging | QA/staging | Immediate | 100% |

| production-canary | 5% of production | On next resume | 5% |

| production | All production | On next resume | 100% |

Channel promotion flow:

  1. Push patch to staging channel
  2. QA verifies on staging builds
  3. Promote to production-canary (5% rollout)
  4. Monitor crash-free rate for 24 hours
  5. If stable (crash-free > 99%), promote to production (100%)

============================================================

PHASE 6 — UPDATE POLICIES

============================================================

Implement update policy logic with three severity tiers:

Critical (forced) — blocks app until installed:

Important (strongly recommended) — persistent banner, dismissible once per session:

Optional (informational) — dismissible dialog, not shown again for this version:

Generate a version compatibility config:

{
  "minSupportedVersion": "2.1.0",
  "latestVersion": "2.3.0",
  "forceUpdateBelow": "2.0.0"
}

============================================================

PHASE 7 — ROLLBACK STRATEGY

============================================================

Document rollback procedures for each platform:

Shorebird: shorebird patch rollback android/ios --release-version 1.0.0

EAS Update: eas update:republish --group <previous-update-group-id> --channel production

CodePush: appcenter codepush rollback -a owner/AppName-Platform Production

Automated rollback trigger:

============================================================

PHASE 8 — A/B UPDATE TESTING

============================================================

Configure A/B testing for OTA updates:

  1. Create two update variants targeting different user segments
  2. Use rollout percentage to split traffic
  3. Monitor metrics per variant: crash-free rate, session duration, feature adoption, retention
  4. Promote the winning variant to 100%

============================================================

SELF-HEALING VALIDATION (max 2 iterations)

============================================================

After completing deployment/infrastructure changes, validate:

  1. Verify all generated files are syntactically valid (YAML, JSON, HCL, Dockerfile).
  2. Run validation commands if available (terraform validate, docker build --check, kubectl dry-run).
  3. Verify no secrets, credentials, or sensitive values are hardcoded.
  4. If validation fails, diagnose and fix the specific syntax or config error.
  5. Repeat up to 2 iterations.

IF STILL FAILING after 2 iterations:

============================================================

OUTPUT

============================================================

## OTA Update Infrastructure Complete

### Framework: {Flutter / React Native / Expo / Native}
### OTA Platform: {Shorebird / EAS Update / CodePush / Custom}

### Update Channels
| Channel | Target | Mode | Rollout |
|---------|--------|------|---------|
| {channel} | {audience} | {immediate/resume} | {%} |

### Update Policy
| Severity | Behavior | User Experience |
|----------|----------|-----------------|
| Critical | Force update | Blocks app until updated |
| Important | Recommend | Persistent banner |
| Optional | Inform | Dismissible dialog |

### Rollback Procedure
{step-by-step rollback for the configured platform}

### CI Integration
{workflow files created for automated OTA patches}

### Files Created
{list all generated files with paths}

============================================================

NEXT STEPS

============================================================

  1. Push your first OTA patch to the staging channel to verify the setup
  2. Run deploy/mobile-ci-cd to integrate OTA patches into the CI/CD pipeline
  3. Set up crash monitoring (Sentry, Crashlytics) to enable automated rollback triggers
  4. Test the rollback procedure before relying on it in production

============================================================

SELF-EVOLUTION TELEMETRY

============================================================

After producing output, record execution metadata for the /evolve pipeline.

Check if a project memory directory exists:

Entry format:

### /ota-updates — {{YYYY-MM-DD}}
- Outcome: {{SUCCESS | PARTIAL | FAILED}}
- Self-healed: {{yes — what was healed | no}}
- Iterations used: {{N}} / {{N max}}
- Bottleneck: {{phase that struggled or "none"}}
- Suggestion: {{one-line improvement idea for /evolve, or "none"}}

Only log if the memory directory exists. Skip silently if not found.

Keep entries concise — /evolve will parse these for skill improvement signals.

============================================================

DO NOT

============================================================

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.