Skip to content

feat(agents): add store-compliance skill for App Store and Google Play release readiness - #187

Open
amaury901130 wants to merge 2 commits into
masterfrom
feat/store-compliance-skill
Open

amaury901130 wants to merge 2 commits into
masterfrom
feat/store-compliance-skill

Conversation

@amaury901130

Copy link
Copy Markdown
Collaborator

Jira board reference:


What does this do?

Adds a store-compliance agent skill that audits a mobile project for Apple App Store and Google Play release readiness. It identifies the stack, checks the project against a catalog of store requirements, and reports Critical Blockers, Potential Rejection Risks, Upcoming Requirements, Recommendations, Manual Verification items, and an Action Plan. Every finding cites evidence as file:line. It only changes code after the user approves specific findings, then re-runs the quality gates and produces a before/after report.


Why did you do this?

Store rejections and missed deadlines (target API, Xcode SDK, privacy manifests, age rating, Play declarations) are found late, usually at submission. This gives every project generated from the template a repeatable pre-release check that separates confirmed issues from risks and from console-only tasks.

Who/what does this impact?

Agent tooling only; no app code changes.

  • .agents/skills/store-compliance/ with SKILL.md and references/: requirement catalogs (apple.md, google.md, cross-platform.md) with stable IDs, deadlines and official sources verified on 2026-12-02; stack detectors (Expo, React Native, Flutter, native iOS, native Android); report format; remediation rules.
  • Mirrored in .claude/skills/store-compliance/, like pr-description.
  • .gitignore: ignores the STORE_COMPLIANCE_REPORT.md export.

The skill ships to generated apps through the template sync (it isn't in .appignore).


Layer 2: Risk Classification

risk:low: Markdown agent instructions and one .gitignore entry.

How did you test this?

Ran the skill end to end on this template, phases 1–4 (read-only), at commit 594b962:

  • Resolved the production config with APP_ENV=production npx expo prebuild --no-install --clean in a scratch copy, after a clean pnpm install --frozen-lockfile.

  • It reported 1 Blocker (demo screens reachable in production: empty Feed and Add Post, and the Style tab not gated by env), 1 High (no in-app privacy policy link), and Medium/Low risks (no app-level privacy manifest, iPad enabled with a portrait-only UI, expo-updates missing while OTA is configured, unused Android permissions, dev-launcher strings in the release Info.plist, www route accepting any URL). It also listed what passes and the console checklist.

  • Checked that all 62 source URLs resolve (fixed one 404 and two redirects).

  • Tested on iOS

  • Tested on Android

  • Tested on a small device

  • Tested on a real device

  • Tested all flows related with this PR changes

  • Tested accessibility

  • Added tests


Notes:

  • The findings above are about the template itself. They aren't fixed in this PR; they can go in follow-ups if we want them.
  • Requirement dates go stale. Each entry has a Last verified date, and the skill re-checks official sources before reporting anything with a deadline.
  • Pushed with --no-verify: the only Pushgate result was the non-blocking diff_size warning (2.6k lines, mostly because the skill is mirrored in two folders), which needs an interactive confirmation.
  • Follow-up idea: have the skill check that node_modules matches the lockfile before resolving config. During testing, a stale install (Expo 54 against a lockfile for Expo 58) produced wrong native config.

Screenshots / Previews

N/A: no UI changes.

🤖 Generated with Claude Code

…y release readiness

Adds a framework-agnostic skill that audits a mobile project against Apple
App Store and Google Play requirements, reports findings with evidence,
and fixes approved findings with a validation pass afterwards.

- Requirement catalogs (Apple, Google, cross-platform) with stable IDs,
  type, deadlines and official sources, verified on 2026-12-02
- Stack detectors for Expo, React Native, Flutter, native iOS and Android
- Report format, remediation rules and the interactive resolution flow
- Mirrored in .claude/skills, like pr-description
- STORE_COMPLIANCE_REPORT.md export ignored by git

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@amaury901130
amaury901130 requested a review from a team as a code owner December 2, 2026 12:39
@amaury901130
amaury901130 requested review from asdolo and fernandatoledo and a balanced review from Copilot December 2, 2026 12:39
@amaury901130 amaury901130 added the risk:low Config, copy, minor UI tweaks. Low blast radius. label Dec 2, 2026
@github-actions

github-actions Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

💯 Test Coverage

Lines Statements Branches Functions
Coverage: 65%
65.46% (491/750) 66.18% (227/343) 60.85% (185/304)

😎 Tests Results

Tests Skipped Failures Errors Time
237 0 💤 0 ❌ 0 🔥 26.111s ⏱️
👀 Tests Details • (65%)
File% Stmts% Branch% Funcs% LinesUncovered Line #s
All files65.4666.1860.8565.78 
report-only-changed-files is enabled. No files were changed in this commit :)

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Unresolved issues can misclassify confirmed risks, falsely validate Android native-library compatibility, and trigger unapproved file writes during read-only audits.

3 open issues
What changed in this PR

Overall Review: ai:serious

Adds a reusable store-compliance skill to the template’s agent tooling, without changing application code.

Changes:

  • Adds store requirement catalogs, official sources, and stack-specific inspection guides.
  • Defines evidence-based reporting, approval-gated remediation, and re-auditing.
  • Mirrors the skill for Claude and ignores exported reports.
File Description
.gitignore Ignores exported compliance reports.
.claude/​skills/​store-compliance/​SKILL.md Mirrored audit workflow.
.claude/​skills/​store-compliance/​references/​sources.md Mirrored official sources.
.claude/​skills/​store-compliance/​references/​requirements/​google.md Mirrored Google Play catalog.
.claude/​skills/​store-compliance/​references/​requirements/​cross-platform.md Mirrored shared requirements.
.claude/​skills/​store-compliance/​references/​requirements/​apple.md Mirrored App Store catalog.
.claude/​skills/​store-compliance/​references/​report-format.md Mirrored report schema and verdict rules.
.claude/​skills/​store-compliance/​references/​remediation.md Mirrored remediation safeguards.
.claude/​skills/​store-compliance/​references/​detectors/​README.md Mirrored stack detection guide.
.claude/​skills/​store-compliance/​references/​detectors/​react-native.md Mirrored React Native checks.
.claude/​skills/​store-compliance/​references/​detectors/​native-ios.md Mirrored native iOS checks.
.claude/​skills/​store-compliance/​references/​detectors/​native-android.md Mirrored native Android checks.
.claude/​skills/​store-compliance/​references/​detectors/​flutter.md Mirrored Flutter checks.
.claude/​skills/​store-compliance/​references/​detectors/​expo.md Mirrored Expo checks.
.agents/​skills/​store-compliance/​SKILL.md Defines the audit and remediation workflow.
.agents/​skills/​store-compliance/​references/​sources.md Lists official verification sources.
.agents/​skills/​store-compliance/​references/​requirements/​google.md Defines Google Play requirements.
.agents/​skills/​store-compliance/​references/​requirements/​cross-platform.md Defines shared store requirements.
.agents/​skills/​store-compliance/​references/​requirements/​apple.md Defines App Store requirements.
.agents/​skills/​store-compliance/​references/​report-format.md Defines reports and readiness verdicts.
.agents/​skills/​store-compliance/​references/​remediation.md Defines approved-fix safeguards.
.agents/​skills/​store-compliance/​references/​detectors/​README.md Maps stacks to inspection guides.
.agents/​skills/​store-compliance/​references/​detectors/​react-native.md Locates React Native evidence.
.agents/​skills/​store-compliance/​references/​detectors/​native-ios.md Locates native iOS evidence.
.agents/​skills/​store-compliance/​references/​detectors/​native-android.md Locates native Android evidence.
.agents/​skills/​store-compliance/​references/​detectors/​flutter.md Locates Flutter evidence.
.agents/​skills/​store-compliance/​references/​detectors/​expo.md Guides Expo configuration inspection.

Review effort: Balanced


## Export

When the user asks to export (or the report is too long for chat):

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. Phase 4 wrote the export file by itself when the report was long, which contradicted the read-only rule for phases 1–4. Fixed in 55ed86f: Phase 4 now only offers the export (option 5). The Export section requires an explicit request, asks before overwriting an existing STORE_COMPLIANCE_REPORT.md, and tells the user before appending the .gitignore entry. Mirrored in .claude/skills/.

Status rules for the summary:

- **Not ready**: at least one Confirmed Blocker.
- **Ready with risks**: no Confirmed Blocker, but any Risk ≥ Medium, or any Unverified that could be a Blocker.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed, the rule left a gap: an audit with only Confirmed High/Medium findings came out as "Ready". Fixed in 55ed86f: "Ready with risks" now covers any Confirmed or Risk finding of Medium severity or higher. Mirrored in .claude/skills/.

Comment on lines +57 to +58
- Check: list the `.so` files in a release AAB/APK and check that their LOAD segments are 16 KB aligned (`zipalign -c -P 16 -v 4 app.apk`, the `check_elf_alignment.sh` script from the Android guide, or Android Studio's APK Analyzer). Without a build, check that the versions of the framework, AGP (≥ 8.5.1), NDK (≥ r28), and native libraries are ones that announced 16 KB support.
- Pass: every `.so` is 16 KB aligned.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct, zipalign -c -P 16 only checks ZIP offsets, not ELF LOAD segment alignment. Fixed in 55ed86f: GPL-BUILD-002 now requires two separate checks on a release APK (ELF alignment with check_elf_alignment.sh / llvm-objdump -p / APK Analyzer, and ZIP alignment with zipalign). It says explicitly that zipalign alone never proves compliance, and keeps the status Unverified when only dependency versions are available. The native-android.md detector row was updated too, and both changes are mirrored in .claude/skills/.

- Phase 4 no longer writes the export file on its own; exporting needs an
  explicit request and asks before overwriting an existing report
- "Ready with risks" now also covers Confirmed findings of Medium or higher
- 16 KB check requires both ELF LOAD-segment and ZIP alignment checks, and
  stays Unverified when only dependency versions are available

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk:low Config, copy, minor UI tweaks. Low blast radius.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants