mjmirza/app-store-compliance · 11k stars · Intermediate · 14 min · 2026-12-04

Stop your agent submitting a risky app build with app-store-compliance

app-store-compliance is a playbook plus a bash guard that scans an iOS or Android project for rejection risks and, installed as a hook in your coding agent, blocks the submit command while a critical risk stands.

TL;DR

mjmirza/app-store-compliance is a reference of 128 documented App Store and Google Play rejection patterns, a bash guard that scans your project for selected risks, and a skill for AI coding agents. Run the guard once against a folder, or install it so your agent's fastlane, eas submit or gradle bundleRelease call is stopped while a critical risk is open. It does not guarantee approval.

Why this repo matters

An agent can build and upload an app in minutes, but a rejection still costs days of review. The README's pitch is to catch the cause before the reviewer does and to be plain about what a scan can prove: it reads code, config and manifests, while a working demo account, a live backend or review notes need a person. The repo handles that gap explicitly instead of printing a reassuring "all good".

Best practices

  • Scan before you install anything. The README's first path is two commands: clone the repo, then run agent-os/hooks/app-store-compliance-guard.sh on your app folder. Nothing is installed and nothing in your app changes.
  • Read the verdict line, not just the findings. BLOCKED. means a critical risk, CLEAR. means no critical risk in code and is not an approval, and NOT CHECKED. means nothing relevant was scanned.
  • Record the human checks. Copy templates/app-review-readiness.json into the app folder, test each item on the release build, write pass, fail, n/a or todo, and set checked_on. A fail always blocks, and "enforce": true makes todo block too (useful in CI).
  • Install one way only. The README warns that using both the plugin and scripts/install.sh runs the guard twice on every shell command and loads two skills.
  • Keep the rule pack fresh. The report opens with a "Rule pack" line, and prints Rule pack STALE. when even the newest source is older than 60 days. Update with git pull.
  • Treat the override as an exception. APP_STORE_GUARD_OK=1 lets a submit through despite critical findings, so use it knowingly.

How-to

Where do I start?

1. Which one-off command do I run first?

Clone the repo and point the guard at the folder that holds your Xcode project or Android app. Quote the path.

git clone https://github.com/mjmirza/app-store-compliance ~/repositories/app-store-compliance
bash ~/repositories/app-store-compliance/agent-os/hooks/app-store-compliance-guard.sh "/path/to/your/app"

The guard needs git and bash. It prints the rule-pack line, the detected platforms, ranked findings, a manual-checks note, a regulatory deadline status and a verdict.

Next: How do I read the output?

Try it

Make a throwaway folder with ios/App/Info.plist (no usage strings) and a Swift file that calls CLLocationManager().requestWhenInUseAuthorization(). Run the guard on it and confirm it ends with BLOCKED.. Add the NSLocationWhenInUseUsageDescription key and re-run. Then pipe {"tool_name":"Bash","tool_input":{"command":"fastlane deliver"}} into the guard from inside the folder and check the exit code.

Pitfalls

  • A CLEAR. verdict means no critical risk in code. It is not approval, and Guideline 4.3 spam decisions cannot be settled by a static scan.
  • Installing both the plugin and install.sh runs the guard twice per command.
  • Codex runs no new hook until you approve it with /hooks, and the Codex plugin route gets the skills but not the hook.
  • Large projects can take up to a minute. The guard prints its scan time, and the hook entry has a timeout, so raise it if a slow scan is cut off.

Next steps