---
name: app-store-compliance
license: LicenseRef-OpenRoots-ORA-2.3
description: Run an enterprise pre submission compliance audit on a mobile app project before uploading to the Apple App Store or Google Play. Use when the user is about to submit, ship, or release an iOS or Android app, when an app was rejected and needs a fix plan, when reviewing App Store Review Guidelines or Google Play policy compliance, or when the user mentions App Store rejection, Play Console rejection, Resolution Center, Data Safety form, privacy nutrition labels, account deletion requirement, in app purchase rules, or app review.
title: app-store-compliance
canonical_url: https://skilld.dev/gh/mjmirza/app-store-compliance
last_updated: 2026-11-22T03:01:30.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> If the user asked to install this Skill, run `npx skilld install mjmirza/app-store-compliance/skill`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/skill`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/mjmirza/app-store-compliance/skill) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/skill`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/skill --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/skill --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# App Store Compliance Audit

This skill runs a full pre submission compliance audit against the Apple App Store Review Guidelines and the Google Play Developer Program Policies, then produces a fix plan ranked by severity. It exists because roughly one in four App Store submissions is rejected and Google blocked over 1.75 million Play submissions in 2025, almost always for the same handful of preventable causes.

## When to run it

- Before any upload to App Store Connect or the Play Console.
- After a rejection, to build the exact fix and appeal plan.
- During a release review, as a release blocker gate.

## How to run it

### Step 1. Locate the project and the reference

The compliance reference lives in the `app-store-compliance` repo. The key files are.

- `data/rejection-patterns.json` the machine readable taxonomy.
- `docs/APPLE.md` and `docs/GOOGLE-PLAY.md` the full rejection maps.
- `docs/PRE-SUBMISSION-CHECKLIST.md` the verifiable checklist.
- `docs/MISTAKE-PATTERNS.md` root causes, the appeal playbook, and real rejection case studies.
- `docs/BY-APP-TYPE.md` the rejection map routed by app type. Load the section that matches the app.
- `docs/ADVANCED-2026.md` the modern upload time and legal layer.
- `docs/EU-REGULATORY-2026.md` the EU legal hard rules with dated sources. the EU AI Act, the DMA and the Core Technology Fee, DSA trader status, and the European Accessibility Act. Load it for any app reaching EU users.
- `docs/GLOBAL-REGULATORY-2026.md` the USA and other-global legal hard rules with dated sources. COPPA, the US state App Store Accountability Acts, the external-link rules, the UK, Australia, Brazil, Canada, South Korea, India, and more, plus Apple's cross-region age-assurance spine. Load it for any app reaching those users.
- `docs/PLATFORM-MECHANICS-2026.md` the platform-mechanics and newer-policy hard rules with dated sources. macOS notarization, Guideline 4.2 and 4.3 with the June 2026 saturation tightening, reader apps, France ANSSI encryption, visionOS and watchOS and tvOS specifics, Android developer verification, Foreground Service types, Play Integrity, Play Billing v8, target API, Health Connect, and the cross-cutting CSAM, UGC, accessibility, sanctions, and PCI items. Load it for any app whose type touches these.
- `references/` the structured, AI loadable tree. Load `references/guidelines/by-app-type/<type>.md` for the app at hand and the relevant `references/rules/<category>.md` files for full context before judging.
- `templates/REVIEW-NOTES-TEMPLATE.md` the review notes template to hand the user for a new submission.
- `app-store-compliance-guard.sh` the automated scanner. The install puts it in your tool's hooks folder, listed in Step 2.

For the strongest audit, also run the metadata layer. A large share of rejections live in the listing text, not the source.

```
bash scripts/pull-metadata.sh apple      # pulls the live listing into ./metadata via the asc CLI
python3 scripts/metadata-audit.py ./metadata        # audits name, subtitle, keywords, description, URLs
python3 scripts/metadata-audit.py ./metadata --propose   # writes suggested fixes, source copy untouched
python3 scripts/metadata-audit.py ./metadata/android --platform google   # Google Play limits and rules
python3 scripts/release-audit.py /path/to/app --metadata ./metadata     # full gate, exit 0 clear, 2 blocked, 3 incomplete
```

The metadata audit checks character limits, other platform mentions, future functionality, negative Apple sentiment, profanity, ranking and price claims, keyword formatting, missing privacy policy and subscription terms, China storefront AI references, and malformed URLs (pass `--check-urls` to also test that each URL loads). It audits every locale folder on its own, filled from a fastlane `default/` folder and parent folders like fastlane does, and names the locale in each finding. It flags a URL that is not a real http or https address, an Apple listing with no support URL, a Google listing with no contact email, and a subscription with no real Terms or EULA link. Run it, then re run it after applying fixes. That is the detect, propose, re validate loop.

The release audit blocks on any critical or high finding with exit 2. It exits 3 when a scan failed or the listing was not audited, so pass `--metadata` with your pulled listing.

For monitoring evolving developer requirements, also run the Apple Developer requirements monitor. This tracks 25 key categories against active developer news/announcements and maps updates directly to repository impact:

```
python3 scripts/monitor.py --project /path/to/app/project
```

Or simulate a simulated track update (e.g., "Privacy Manifests") to preview impact:

```
python3 scripts/monitor.py --project /path/to/app/project --simulate "Privacy Manifests"
```

The monitor determines repository impact, identifies affected files, generates migration tasks, estimates release impact, and drafts a complete pull request description.

### Step 2. Run the automated scan

Run the guard against the project root. Use the copy the install put in your tool's hooks folder.

| Tool | Guard |
|---|---|
| Claude Code | `~/.claude/hooks/app-store-compliance-guard.sh` |
| Codex CLI | `~/.codex/hooks/app-store-compliance-guard.sh` |
| Gemini CLI | `~/.gemini/hooks/app-store-compliance-guard.sh` |
| OpenCode | `~/.config/opencode/hooks/app-store-compliance-guard.sh` |
| Cursor | `~/.cursor/hooks/app-store-compliance-guard.sh` |
| Copilot CLI | `~/.copilot/hooks/app-store-compliance-guard.sh`, or under `$COPILOT_HOME` when set |
| Grok | `~/.grok/hooks/app-store-compliance-guard.sh` |
| Qwen Code | `~/.qwen/hooks/app-store-compliance-guard.sh`, or under `$QWEN_HOME` when set |
| Kimi Code | `~/.kimi-code/hooks/app-store-compliance-guard.sh`, or under `$KIMI_CODE_HOME` when set |
| Factory Droid | `~/.factory/hooks/app-store-compliance-guard.sh` |
| Auggie | `~/.augment/hooks/app-store-compliance-guard.sh` |
| Windsurf | `~/.codeium/windsurf/hooks/app-store-compliance-guard.sh` |
| From a checkout | `~/repositories/app-store-compliance/agent-os/hooks/app-store-compliance-guard.sh` |

```
bash <guard path from the table> "/path/to/app/project"
```

The `scripts/` paths in this skill are relative to this skill's own folder.

It detects iOS and Android, scans for the rejection patterns, and prints findings ranked critical, high, medium. It exits 2 when a critical risk is present.

### Step 3. Run the human checks the scanner cannot see

Some rejection causes are not visible in code. Walk these by hand against the project.

- Is the production backend live and will it stay up during the entire review window.
- Is a working demo account provided in the Notes for Review or the Play test instructions.
- Do the privacy nutrition labels (Apple) and the Data Safety form (Google) match the real runtime behavior including every third party SDK. This is the single biggest cause on both stores.
- Do the screenshots show the app in use, not a splash or login screen.
- Does the listing claim only what the app actually does.
- For a new Google personal account, is the closed test of 12 testers over 14 days complete.
- Are the 2026 Apple age rating questions answered.
- For any app reaching EU, US, or other-global users, is the legal layer satisfied. the EU AI Act AI-disclosure and the European Accessibility Act, US COPPA and the state age-assurance laws, the DSA trader status, and the per-region 18-plus age gating. Store review does not check these. See `docs/EU-REGULATORY-2026.md` and `docs/GLOBAL-REGULATORY-2026.md`.
- Are the platform-mechanics gates satisfied for the app's type. macOS notarization, Guideline 4.2 and 4.3, reader-app rules, Android developer verification, Foreground Service types, Play Integrity, Play Billing v8, target API, Health Connect, and the cross-cutting CSAM, UGC, accessibility, deletion-URL, sanctions, and PCI items. See `docs/PLATFORM-MECHANICS-2026.md`.

### Step 4. Produce the fix plan

For every finding, output a table row. The pattern id, the platform, the cited guideline, the severity, the concrete fix, and the file or setting to change. Order by severity. Mark each critical as a release blocker.

### Step 5. If the app was already rejected

Read the exact guideline number the store cited, find the matching pattern in `data/rejection-patterns.json`, apply the fix, then follow the appeal playbook in `docs/MISTAKE-PATTERNS.md`. Never resubmit an unchanged build. On Google, a careless resubmit moves the account toward suspension.

## The two checks that matter most

If time is short, verify these two first, because they cause the majority of rejections across both stores.

1. A working demo account with a live backend.
2. A privacy declaration that matches actual runtime behavior, including every SDK.

The scan cannot prove either one. Ask the team to record them, with the other manual checks, in `.app-review-readiness.json` in the app folder (template in `templates/app-review-readiness.json`). The guard reads it, blocks on any check marked `fail`, and lists what is still open. Report scanner findings and manual checks as two separate halves, and quote the `Rule pack.` line from the guard so the reader knows how current the rules are. See `docs/WHAT-THE-SCAN-PROVES.md`.

## Output contract

The audit ends with a ranked findings table and a clear verdict. Clear to submit, or blocked with a numbered fix list. Never report clear while a critical finding stands.
