---
description: Scan an .xcarchive for Apple App Store Review compliance (18-rule deep audit)
allowed-tools: Bash, Read, Glob
---

Run the `ios_app_store_audit` MCP tool (shipped in `@mmerterden/multi-agent-toolkit-mcp` ≥ v3.0.0)
on an iOS archive. Backed by the same 18-rule catalog as `/multi-agent:test "store-ready"`
 -  this command is the lighter, post-hoc form (no platform-detect, no UI sweep).

> **v8.4.0 migration note:** The standalone `~/ArchiveGuard/.build/release/archive-guard`
> binary has been retired. The 18 rules live in
> `multi-agent-toolkit-mcp/tools/ios-app-store-audit/rules/` as a pure-Node port. Output JSON
> shape is unchanged.

## Steps

1. Find the most recent .xcarchive:
   ```
   find ~/Library/Developer/Xcode/Archives/ -name "*.xcarchive" -maxdepth 2 | sort | tail -5
   ```
2. Ask user which archive to scan (or use the argument if provided: $ARGUMENTS).
3. Run the scan  -  preferred mode is the native MCP tool call:
   ```
   mcp__multi-agent-toolkit__ios_app_store_audit({
     archive_path: "<archive_path>",
     rules: "all"          // "all" | "core" | "deep" | csv of ruleIDs
   })
   ```
4. Fallback (plain shell / CI, no MCP host):
   ```
   node -e "
   import('@mmerterden/multi-agent-toolkit-mcp/tools/ios-app-store-audit/index.js').then(async m => {
     const r = await m.runAudit({ archivePath: '<archive_path>', rules: 'all' });
     console.log(JSON.stringify(r, null, 2));
   });
   "
   ```
5. If `@mmerterden/multi-agent-toolkit-mcp` is not installed, prompt the user:
   ```
   npm i -g @mmerterden/multi-agent-toolkit-mcp
   # or add it to your MCP config and reload the editor
   ```
6. Summarize results  -  group by severity (`error` blockers, `warning` risks,
   `info` hygiene), cite ruleID + Apple guideline reference for each finding,
   suggest fixes from the rule catalog.
