privacy-and-network-audit
Proves Pocket Arcade code makes no network requests (N3) - banned SDKs and pods, bundle/runtime checks, privacy manifest, App Privacy answers, key safety, release audit. Use when native code lands, a release is near, or audit:network fails. Not for installing packages (dependency-management).
- License 许可
- MIT
- 最近更新
- 2026-11-05
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- privacy-and-network-audit
- description
- Proves Pocket Arcade code makes no network requests (N3) - banned SDKs and pods, bundle/runtime checks, privacy manifest, App Privacy answers, key safety, release audit. Use when native code lands, a release is near, or audit:network fails. Not for installing packages (dependency-management).
02 资源文件 338
- 资产文件assets/permission-allowlist.json1.8 KB
- 资产文件assets/prettierrc.json203 B
- 资产文件assets/privacy-facts.json9.0 KB
- 资产文件assets/shared.json1.2 KB
- 参考文档examples/audit-run.md4.8 KB
- 参考文档references/data-safety.md4.7 KB
- 参考文档references/n3-layers.md23.7 KB
- 参考文档references/privacy-manifest-and-labels.md12.0 KB
- 参考文档references/release-audit.md12.6 KB
- 参考文档references/secrets-and-supply-chain.md8.4 KB
- 脚本scripts/.gitignore14 B
- 脚本scripts/audit-app-bundle.mjs14.9 KB
- 脚本scripts/audit-bundle.mjs8.6 KB
- 脚本scripts/audit-privacy-manifest.mjs9.3 KB
- 脚本scripts/audit-repo.mjs29.3 KB
- 脚本scripts/check-lib.mjs44.4 KB
- 脚本scripts/check-template-format.mjs3.0 KB
- 脚本scripts/lib/assemble-fixtures.mjs3.6 KB
- 脚本scripts/lib/plist.mjs3.0 KB
- 脚本scripts/lib/repo-scan.mjs5.6 KB
- 脚本scripts/lib/ship-placeholders.mjs15.7 KB
- 脚本scripts/lib/tracking-text.mjs2.7 KB
- 脚本scripts/package-lock.json803 B
- 脚本scripts/package.json417 B
- 脚本scripts/selftest.mjs5.2 KB
- 脚本templates/packages/shell/src/config/privacy-manifest.test.ts1.2 KB
- 脚本templates/packages/shell/src/config/privacy-manifest.ts1.3 KB
- 脚本templates/packages/shell/src/screens/debug/network-guard.test.ts2.1 KB
- 脚本templates/packages/shell/src/screens/debug/network-guard.ts2.7 KB
- 参考文档templates/packages/tooling/network-audit/gradle-baseline.json662 B
- 参考文档templates/packages/tooling/network-audit/js-baseline.json2.3 KB
- 参考文档templates/packages/tooling/network-audit/native-baseline.json1.9 KB
- 脚本templates/packages/tooling/src/audit/android-manifest-audit.test.ts5.4 KB
- 脚本templates/packages/tooling/src/audit/android-manifest-audit.ts3.6 KB
- 脚本templates/packages/tooling/src/audit/audit-network.ts6.6 KB
- 脚本templates/packages/tooling/src/audit/audit-privacy.ts6.4 KB
- 脚本templates/packages/tooling/src/audit/bundle-modules.ts1.4 KB
- 脚本templates/packages/tooling/src/audit/data-safety.test.ts2.5 KB
- 脚本templates/packages/tooling/src/audit/data-safety.ts2.0 KB
- 脚本templates/packages/tooling/src/audit/network-app-layers.test.ts998 B
- 脚本templates/packages/tooling/src/audit/network-app-layers.ts893 B
- 脚本templates/packages/tooling/src/audit/network-baseline.test.ts1.2 KB
- 脚本templates/packages/tooling/src/audit/network-baseline.ts1.2 KB
- 脚本templates/packages/tooling/src/audit/network-config-layer.test.ts4.0 KB
- 脚本templates/packages/tooling/src/audit/network-config-layer.ts6.0 KB
- 脚本templates/packages/tooling/src/audit/network-gradle-layer.test.ts6.4 KB
- 脚本templates/packages/tooling/src/audit/network-gradle-layer.ts6.1 KB
- 脚本templates/packages/tooling/src/audit/network-js-layer.test.ts2.2 KB
- 脚本templates/packages/tooling/src/audit/network-js-layer.ts1.8 KB
- 脚本templates/packages/tooling/src/audit/network-native-layer.test.ts6.3 KB
- 脚本templates/packages/tooling/src/audit/network-native-layer.ts6.5 KB
- 脚本templates/packages/tooling/src/audit/network-pods-layer.test.ts4.1 KB
- 脚本templates/packages/tooling/src/audit/network-pods-layer.ts3.5 KB
- 脚本templates/packages/tooling/src/audit/network-runtime-layer.test.ts8.2 KB
- 脚本templates/packages/tooling/src/audit/network-runtime-layer.ts8.1 KB
- 脚本templates/packages/tooling/src/audit/privacy-manifest.test.ts8.1 KB
- 脚本templates/packages/tooling/src/audit/privacy-manifest.ts8.5 KB
- 脚本templates/packages/tooling/src/audit/release-bundle-checks.test.ts1.1 KB
- 脚本templates/packages/tooling/src/audit/release-bundle-checks.ts1.2 KB
- 脚本templates/packages/tooling/src/audit/sample-sockets.ts1.8 KB
- 许可证templates/tooling-deps/license-exceptions.json3 B
- 脚本templates/tooling-deps/src/audit/audit-licenses.ts2.5 KB
- 许可证templates/tooling-deps/src/audit/license-policy.test.ts3.5 KB
- 许可证templates/tooling-deps/src/audit/license-policy.ts3.4 KB
- 脚本templates/tooling-deps/src/clock/system-clock.test.ts914 B
- 脚本templates/tooling-deps/src/clock/system-clock.ts584 B
- 脚本templates/tooling-deps/src/deps/app-lockstep.test.ts902 B
- 脚本templates/tooling-deps/src/deps/app-lockstep.ts1.3 KB
- 脚本templates/tooling-deps/src/deps/banned-packages.test.ts3.4 KB
- 脚本templates/tooling-deps/src/deps/banned-packages.ts4.7 KB
- 脚本templates/tooling-deps/src/deps/check-deps.ts5.0 KB
- 脚本templates/tooling-deps/src/deps/expo-patch-age.test.ts6.1 KB
- 脚本templates/tooling-deps/src/deps/expo-patch-age.ts5.6 KB
- 脚本templates/tooling-deps/src/deps/release-age-excludes.test.ts2.8 KB
- 脚本templates/tooling-deps/src/deps/release-age-excludes.ts2.6 KB
- 参考文档tests/fixtures/audit-app-bundle/bad-admob-placeholder-app-id/EXPECT.txt178 B
- 参考文档tests/fixtures/audit-app-bundle/bad-admob-placeholder-app-id/mutation.json155 B
- 参考文档tests/fixtures/audit-app-bundle/bad-admob-placeholder-unit-per-platform/EXPECT.txt203 B
- 参考文档tests/fixtures/audit-app-bundle/bad-admob-placeholder-unit-per-platform/mutation.json547 B
- 参考文档tests/fixtures/audit-app-bundle/bad-admob-placeholder-unit/EXPECT.txt191 B
- 参考文档tests/fixtures/audit-app-bundle/bad-admob-placeholder-unit/mutation.json164 B
- 参考文档tests/fixtures/audit-app-bundle/bad-ats/EXPECT.txt6 B
- 参考文档tests/fixtures/audit-app-bundle/bad-ats/mutation.json239 B
- 参考文档tests/fixtures/audit-app-bundle/bad-att-string-missing/EXPECT.txt212 B
- 参考文档tests/fixtures/audit-app-bundle/bad-att-string-missing/mutation.json189 B
- 参考文档tests/fixtures/audit-app-bundle/bad-bundle-com-example/EXPECT.txt109 B
- 参考文档tests/fixtures/audit-app-bundle/bad-bundle-com-example/mutation.json154 B
- 参考文档tests/fixtures/audit-app-bundle/bad-get-task-allow/EXPECT.txt17 B
- 参考文档tests/fixtures/audit-app-bundle/bad-get-task-allow/mutation.json214 B
- 参考文档tests/fixtures/audit-app-bundle/bad-live-id-in-test/ARGS.txt31 B
- 参考文档tests/fixtures/audit-app-bundle/bad-live-id-in-test/EXPECT.txt62 B
- 参考文档tests/fixtures/audit-app-bundle/bad-live-id-in-test/mutation.json517 B
- 参考文档tests/fixtures/audit-app-bundle/bad-mixed-variant/EXPECT.txt58 B
- 参考文档tests/fixtures/audit-app-bundle/bad-mixed-variant/mutation.json174 B
- 参考文档tests/fixtures/audit-app-bundle/bad-no-privacy-manifest/EXPECT.txt24 B
- 参考文档tests/fixtures/audit-app-bundle/bad-no-privacy-manifest/mutation.json63 B
- 参考文档tests/fixtures/audit-app-bundle/bad-owner-placeholders-only/ARGS.txt31 B
- 参考文档tests/fixtures/audit-app-bundle/bad-owner-placeholders-only/EXPECT.txt1.1 KB
- 参考文档tests/fixtures/audit-app-bundle/bad-owner-placeholders-only/mutation.json969 B
- 参考文档tests/fixtures/audit-app-bundle/bad-privacy-host-example/EXPECT.txt177 B
- 参考文档tests/fixtures/audit-app-bundle/bad-privacy-host-example/mutation.json156 B
- 参考文档tests/fixtures/audit-app-bundle/bad-rehearsal-off-owner-placeholders/ARGS.txt63 B
- 参考文档tests/fixtures/audit-app-bundle/bad-rehearsal-off-owner-placeholders/EXPECT.txt1.4 KB
- 参考文档tests/fixtures/audit-app-bundle/bad-rehearsal-off-owner-placeholders/mutation.json1.7 KB
- 参考文档tests/fixtures/audit-app-bundle/bad-rehearsal-off-sample-ad-ids/ARGS.txt63 B
- 参考文档tests/fixtures/audit-app-bundle/bad-rehearsal-off-sample-ad-ids/EXPECT.txt547 B
- 参考文档tests/fixtures/audit-app-bundle/bad-rehearsal-off-sample-ad-ids/mutation.json1.3 KB
- 参考文档tests/fixtures/audit-app-bundle/bad-sample-ad-unit-live/EXPECT.txt221 B
- 参考文档tests/fixtures/audit-app-bundle/bad-sample-ad-unit-live/mutation.json547 B
- 参考文档tests/fixtures/audit-app-bundle/bad-sample-id-in-store/EXPECT.txt45 B
- 参考文档tests/fixtures/audit-app-bundle/bad-sample-id-in-store/mutation.json187 B
- 参考文档tests/fixtures/audit-app-bundle/bad-storekit-file/EXPECT.txt37 B
- 参考文档tests/fixtures/audit-app-bundle/bad-storekit-file/mutation.json119 B
- 参考文档tests/fixtures/audit-app-bundle/bad-test-only-code/EXPECT.txt48 B
- 参考文档tests/fixtures/audit-app-bundle/bad-test-only-code/mutation.json131 B
- 参考文档tests/fixtures/audit-app-bundle/bad-units-in-off/ARGS.txt15 B
- 参考文档tests/fixtures/audit-app-bundle/bad-units-in-off/EXPECT.txt67 B
- 参考文档tests/fixtures/audit-app-bundle/bad-units-in-off/mutation.json357 B
- 参考文档tests/fixtures/audit-app-bundle/bad-unsigned-without-flag/ARGS.txt20 B
- 参考文档tests/fixtures/audit-app-bundle/bad-unsigned-without-flag/EXPECT.txt39 B
- 参考文档tests/fixtures/audit-app-bundle/bad-unsigned-without-flag/mutation.json3 B
- 参考文档tests/fixtures/audit-app-bundle/bad-xctest/EXPECT.txt51 B
- 参考文档tests/fixtures/audit-app-bundle/bad-xctest/mutation.json329 B
- 参考文档tests/fixtures/audit-app-bundle/error-rehearsal-off-no-game/ARGS.txt81 B
- 参考文档tests/fixtures/audit-app-bundle/error-rehearsal-off-no-game/EXPECT.txt58 B
- 参考文档tests/fixtures/audit-app-bundle/error-rehearsal-off-no-game/mutation.json526 B
- 参考文档tests/fixtures/audit-app-bundle/good/CASE.txt60 B
- 参考文档tests/fixtures/audit-app-bundle/pass-owner-values-per-platform/ARGS.txt31 B
- 参考文档tests/fixtures/audit-app-bundle/pass-owner-values-per-platform/EXPECT.txt80 B
- 参考文档tests/fixtures/audit-app-bundle/pass-owner-values-per-platform/mutation.json547 B
- 参考文档tests/fixtures/audit-app-bundle/pass-owner-values/ARGS.txt31 B
- 参考文档tests/fixtures/audit-app-bundle/pass-owner-values/EXPECT.txt80 B
- 参考文档tests/fixtures/audit-app-bundle/pass-owner-values/mutation.json3 B
- 参考文档tests/fixtures/audit-app-bundle/pass-rehearsal-off-owner-values/ARGS.txt63 B
- 参考文档tests/fixtures/audit-app-bundle/pass-rehearsal-off-owner-values/EXPECT.txt162 B
- 参考文档tests/fixtures/audit-app-bundle/pass-rehearsal-off-owner-values/mutation.json1.3 KB
- 参考文档tests/fixtures/audit-app-bundle/pass-unsigned-rehearsal/ARGS.txt31 B
- 参考文档tests/fixtures/audit-app-bundle/pass-unsigned-rehearsal/EXPECT.txt101 B
- 参考文档tests/fixtures/audit-app-bundle/pass-unsigned-rehearsal/mutation.json3 B
- 参考文档tests/fixtures/audit-bundle/bad-android-sample-id/ARGS.txt19 B
- 参考文档tests/fixtures/audit-bundle/bad-android-sample-id/EXPECT.txt56 B
- 参考文档tests/fixtures/audit-bundle/bad-android-sample-id/mutation.json368 B
- 参考文档tests/fixtures/audit-bundle/bad-baseline-reason/EXPECT.txt25 B
- 参考文档tests/fixtures/audit-bundle/bad-baseline-reason/mutation.json142 B
- 参考文档tests/fixtures/audit-bundle/bad-debug-screen/EXPECT.txt46 B
- 参考文档tests/fixtures/audit-bundle/bad-debug-screen/mutation.json461 B
- 参考文档tests/fixtures/audit-bundle/bad-external-links-fetch/EXPECT.txt74 B
- 参考文档tests/fixtures/audit-bundle/bad-external-links-fetch/mutation.json301 B
- 参考文档tests/fixtures/audit-bundle/bad-first-party-fetch/EXPECT.txt74 B
- 参考文档tests/fixtures/audit-bundle/bad-first-party-fetch/mutation.json246 B
- 参考文档tests/fixtures/audit-bundle/bad-first-party-url/EXPECT.txt73 B
- 参考文档tests/fixtures/audit-bundle/bad-first-party-url/mutation.json241 B
- 参考文档tests/fixtures/audit-bundle/bad-links-elsewhere/EXPECT.txt79 B
- 参考文档tests/fixtures/audit-bundle/bad-links-elsewhere/mutation.json227 B
- 参考文档tests/fixtures/audit-bundle/bad-new-category/EXPECT.txt39 B
- 参考文档tests/fixtures/audit-bundle/bad-new-category/mutation.json256 B
- 参考文档tests/fixtures/audit-bundle/bad-new-package/EXPECT.txt35 B
- 参考文档tests/fixtures/audit-bundle/bad-new-package/mutation.json430 B
- 参考文档tests/fixtures/audit-bundle/bad-sample-id/EXPECT.txt56 B
- 参考文档tests/fixtures/audit-bundle/bad-sample-id/mutation.json246 B
- 参考文档tests/fixtures/audit-bundle/bad-storekit-test-code/EXPECT.txt21 B
- 参考文档tests/fixtures/audit-bundle/bad-storekit-test-code/mutation.json224 B
- 参考文档tests/fixtures/audit-bundle/bad-test-only-code/EXPECT.txt59 B
- 参考文档tests/fixtures/audit-bundle/bad-test-only-code/mutation.json466 B
- 参考文档tests/fixtures/audit-bundle/bad-test-variant-network/ARGS.txt15 B
- 参考文档tests/fixtures/audit-bundle/bad-test-variant-network/EXPECT.txt22 B
- 参考文档tests/fixtures/audit-bundle/bad-test-variant-network/mutation.json238 B
- 参考文档tests/fixtures/audit-bundle/error-android-export-missing/ARGS.txt63 B
- 参考文档tests/fixtures/audit-bundle/error-android-export-missing/EXPECT.txt18 B
- 参考文档tests/fixtures/audit-bundle/error-unknown-platform/ARGS.txt59 B
- 参考文档tests/fixtures/audit-bundle/error-unknown-platform/EXPECT.txt37 B
- 参考文档tests/fixtures/audit-bundle/good/CASE.txt48 B
- 参考文档tests/fixtures/audit-bundle/pass-android-export/ARGS.txt19 B
- 参考文档tests/fixtures/audit-bundle/pass-android-export/EXPECT.txt13 B
- 参考文档tests/fixtures/audit-bundle/pass-android-export/mutation.json121 B
- 参考文档tests/fixtures/audit-privacy-manifest/bad-app-tracking-domains/EXPECT.txt54 B
- 参考文档tests/fixtures/audit-privacy-manifest/bad-app-tracking-domains/mutation.json245 B
- 参考文档tests/fixtures/audit-privacy-manifest/bad-app-tracking/EXPECT.txt41 B
- 参考文档tests/fixtures/audit-privacy-manifest/bad-app-tracking/mutation.json182 B
- 参考文档tests/fixtures/audit-privacy-manifest/bad-missing-reason/EXPECT.txt103 B
- 参考文档tests/fixtures/audit-privacy-manifest/bad-missing-reason/mutation.json274 B
- 参考文档tests/fixtures/audit-privacy-manifest/bad-new-pod-reason/EXPECT.txt95 B
- 参考文档tests/fixtures/audit-privacy-manifest/bad-new-pod-reason/mutation.json656 B
- 参考文档tests/fixtures/audit-privacy-manifest/bad-prebuilt-stale/EXPECT.txt68 B
- 参考文档tests/fixtures/audit-privacy-manifest/bad-prebuilt-stale/mutation.json381 B
- 参考文档tests/fixtures/audit-privacy-manifest/bad-tracking-domains/EXPECT.txt46 B
- 参考文档tests/fixtures/audit-privacy-manifest/bad-tracking-domains/mutation.json435 B
- 参考文档tests/fixtures/audit-privacy-manifest/bad-tracking-pod/EXPECT.txt61 B
- 参考文档tests/fixtures/audit-privacy-manifest/bad-tracking-pod/mutation.json396 B
- 参考文档tests/fixtures/audit-privacy-manifest/good/CASE.txt46 B
- 参考文档tests/fixtures/audit-privacy-manifest/pass-app-privacy-answer/EXPECT.txt167 B
- 参考文档tests/fixtures/audit-repo/bad-aliased-global-fetch/EXPECT.txt81 B
- 参考文档tests/fixtures/audit-repo/bad-aliased-global-fetch/mutation.json267 B
- 参考文档tests/fixtures/audit-repo/bad-aliased-websocket/EXPECT.txt100 B
- 参考文档tests/fixtures/audit-repo/bad-aliased-websocket/mutation.json290 B
- 参考文档tests/fixtures/audit-repo/bad-android-allowlist-drift/EXPECT.txt100 B
- 参考文档tests/fixtures/audit-repo/bad-android-allowlist-drift/mutation.json238 B
- 参考文档tests/fixtures/audit-repo/bad-android-blocked-const-unused/EXPECT.txt98 B
- 参考文档tests/fixtures/audit-repo/bad-android-blocked-const-unused/mutation.json571 B
- 参考文档tests/fixtures/audit-repo/bad-android-cleartext-plugin/EXPECT.txt58 B
- 参考文档tests/fixtures/audit-repo/bad-android-cleartext-plugin/mutation.json475 B
- 参考文档tests/fixtures/audit-repo/bad-android-cleartext/EXPECT.txt84 B
- 参考文档tests/fixtures/audit-repo/bad-android-cleartext/mutation.json237 B
- 参考文档tests/fixtures/audit-repo/bad-android-permission/EXPECT.txt94 B
- 参考文档tests/fixtures/audit-repo/bad-android-permission/mutation.json324 B
- 参考文档tests/fixtures/audit-repo/bad-android-plugin-permission/EXPECT.txt88 B
- 参考文档tests/fixtures/audit-repo/bad-android-plugin-permission/mutation.json538 B
- 参考文档tests/fixtures/audit-repo/bad-android-short-permission/EXPECT.txt55 B
- 参考文档tests/fixtures/audit-repo/bad-android-short-permission/mutation.json286 B
- 参考文档tests/fixtures/audit-repo/bad-ats/EXPECT.txt13 B
- 参考文档tests/fixtures/audit-repo/bad-ats/mutation.json298 B
- 参考文档tests/fixtures/audit-repo/bad-att-import-outside-adapter/EXPECT.txt101 B
- 参考文档tests/fixtures/audit-repo/bad-att-import-outside-adapter/mutation.json344 B
- 参考文档tests/fixtures/audit-repo/bad-att-locale-missing/EXPECT.txt126 B
- 参考文档tests/fixtures/audit-repo/bad-att-locale-missing/mutation.json136 B
- 参考文档tests/fixtures/audit-repo/bad-att-plugin-missing/EXPECT.txt162 B
- 参考文档tests/fixtures/audit-repo/bad-att-plugin-missing/mutation.json227 B
- 参考文档tests/fixtures/audit-repo/bad-att-text-hardcoded/EXPECT.txt177 B
- 参考文档tests/fixtures/audit-repo/bad-att-text-hardcoded/mutation.json295 B
- 参考文档tests/fixtures/audit-repo/bad-att/EXPECT.txt114 B
- 参考文档tests/fixtures/audit-repo/bad-att/mutation.json245 B
- 参考文档tests/fixtures/audit-repo/bad-banned-package/EXPECT.txt47 B
- 参考文档tests/fixtures/audit-repo/bad-banned-package/mutation.json174 B
- 参考文档tests/fixtures/audit-repo/bad-baseline-no-reason/EXPECT.txt26 B
- 参考文档tests/fixtures/audit-repo/bad-baseline-no-reason/mutation.json181 B
- 参考文档tests/fixtures/audit-repo/bad-deny-rules/EXPECT.txt27 B
- 参考文档tests/fixtures/audit-repo/bad-deny-rules/mutation.json181 B
- 参考文档tests/fixtures/audit-repo/bad-fetch-in-shell/EXPECT.txt73 B
- 参考文档tests/fixtures/audit-repo/bad-fetch-in-shell/mutation.json260 B
- 参考文档tests/fixtures/audit-repo/bad-gitignore/EXPECT.txt41 B
- 参考文档tests/fixtures/audit-repo/bad-gitignore/mutation.json104 B
- 参考文档tests/fixtures/audit-repo/bad-global-fetch-bracket/EXPECT.txt72 B
- 参考文档tests/fixtures/audit-repo/bad-global-fetch-bracket/mutation.json303 B
- 参考文档tests/fixtures/audit-repo/bad-global-websocket/EXPECT.txt66 B
- 参考文档tests/fixtures/audit-repo/bad-global-websocket/mutation.json238 B
- 参考文档tests/fixtures/audit-repo/bad-gradle-allowlist-drift/EXPECT.txt100 B
- 参考文档tests/fixtures/audit-repo/bad-gradle-allowlist-drift/mutation.json260 B
- 参考文档tests/fixtures/audit-repo/bad-guard-in-app/EXPECT.txt63 B
- 参考文档tests/fixtures/audit-repo/bad-guard-in-app/mutation.json255 B
- 参考文档tests/fixtures/audit-repo/bad-iap-options/EXPECT.txt64 B
- 参考文档tests/fixtures/audit-repo/bad-iap-options/mutation.json189 B
- 参考文档tests/fixtures/audit-repo/bad-key-file/EXPECT.txt36 B
- 参考文档tests/fixtures/audit-repo/bad-key-file/mutation.json108 B
- 参考文档tests/fixtures/audit-repo/bad-keystore-deny/EXPECT.txt76 B
- 参考文档tests/fixtures/audit-repo/bad-keystore-deny/mutation.json156 B
- 参考文档tests/fixtures/audit-repo/bad-keystore-file/EXPECT.txt44 B
- 参考文档tests/fixtures/audit-repo/bad-keystore-file/mutation.json116 B
- 参考文档tests/fixtures/audit-repo/bad-keystore-ignored/EXPECT.txt52 B
- 参考文档tests/fixtures/audit-repo/bad-keystore-ignored/mutation.json105 B
- 参考文档tests/fixtures/audit-repo/bad-kitapi/EXPECT.txt24 B
- 参考文档tests/fixtures/audit-repo/bad-kitapi/mutation.json201 B
- 参考文档tests/fixtures/audit-repo/bad-manifest-missing-reason/EXPECT.txt80 B
- 参考文档tests/fixtures/audit-repo/bad-manifest-missing-reason/mutation.json383 B
- 参考文档tests/fixtures/audit-repo/bad-manifest-tracking/EXPECT.txt50 B
- 参考文档tests/fixtures/audit-repo/bad-manifest-tracking/mutation.json182 B
- 参考文档tests/fixtures/audit-repo/bad-missing-baseline/EXPECT.txt36 B
- 参考文档tests/fixtures/audit-repo/bad-missing-baseline/mutation.json80 B
- 参考文档tests/fixtures/audit-repo/bad-missing-script/EXPECT.txt51 B
- 参考文档tests/fixtures/audit-repo/bad-missing-script/mutation.json150 B
- 参考文档tests/fixtures/audit-repo/bad-netinfo-import/EXPECT.txt48 B
- 参考文档tests/fixtures/audit-repo/bad-netinfo-import/mutation.json323 B
- 参考文档tests/fixtures/audit-repo/bad-no-privacy-config/EXPECT.txt51 B
- 参考文档tests/fixtures/audit-repo/bad-no-privacy-config/mutation.json164 B
- 参考文档tests/fixtures/audit-repo/bad-onside-pod/EXPECT.txt43 B
- 参考文档tests/fixtures/audit-repo/bad-onside-pod/mutation.json166 B
- 参考文档tests/fixtures/audit-repo/bad-pod-allowlist/EXPECT.txt36 B
- 参考文档tests/fixtures/audit-repo/bad-pod-allowlist/mutation.json178 B
- 参考文档tests/fixtures/audit-repo/bad-private-key-text/EXPECT.txt56 B
- 参考文档tests/fixtures/audit-repo/bad-private-key-text/mutation.json305 B
- 参考文档tests/fixtures/audit-repo/bad-remote-image/EXPECT.txt46 B
- 参考文档tests/fixtures/audit-repo/bad-remote-image/mutation.json323 B
- 参考文档tests/fixtures/audit-repo/bad-service-account-file/EXPECT.txt57 B
- 参考文档tests/fixtures/audit-repo/bad-service-account-file/mutation.json147 B
- 参考文档tests/fixtures/audit-repo/bad-service-account-ignored/EXPECT.txt61 B
- 参考文档tests/fixtures/audit-repo/bad-service-account-ignored/mutation.json125 B
- 参考文档tests/fixtures/audit-repo/bad-transitive-netinfo/EXPECT.txt80 B
- 参考文档tests/fixtures/audit-repo/bad-transitive-netinfo/mutation.json242 B
- 参考文档tests/fixtures/audit-repo/bad-unknown-pod/EXPECT.txt27 B
- 参考文档tests/fixtures/audit-repo/bad-unknown-pod/mutation.json170 B
- 参考文档tests/fixtures/audit-repo/bad-updates-on/EXPECT.txt48 B
- 参考文档tests/fixtures/audit-repo/bad-updates-on/mutation.json180 B
- 参考文档tests/fixtures/audit-repo/bad-vendor-in-screen/EXPECT.txt66 B
- 参考文档tests/fixtures/audit-repo/bad-vendor-in-screen/mutation.json327 B
- 参考文档tests/fixtures/audit-repo/bad-websocket-in-game/EXPECT.txt66 B
- 参考文档tests/fixtures/audit-repo/bad-websocket-in-game/mutation.json198 B
- 参考文档tests/fixtures/audit-repo/good/CASE.txt107 B
- 参考文档tests/fixtures/audit-repo/pass-android-blocked-const/EXPECT.txt13 B
- 参考文档tests/fixtures/audit-repo/pass-android-blocked-const/mutation.json584 B
- 参考文档tests/fixtures/audit-repo/pass-android-blocked-permission/EXPECT.txt13 B
- 参考文档tests/fixtures/audit-repo/pass-android-blocked-permission/mutation.json459 B
- 其他tests/fixtures/base-app/DemoGame.app/ckb.lproj/InfoPlist.strings103 B
- 其他tests/fixtures/base-app/DemoGame.app/de.lproj/InfoPlist.strings102 B
- 其他tests/fixtures/base-app/DemoGame.app/en.lproj/InfoPlist.strings102 B
- 其他tests/fixtures/base-app/DemoGame.app/EXConstants.bundle/app.config508 B
- 其他tests/fixtures/base-app/DemoGame.app/fa.lproj/InfoPlist.strings102 B
- 其他tests/fixtures/base-app/DemoGame.app/Info.plist633 B
- 其他tests/fixtures/base-app/DemoGame.app/main.jsbundle53 B
- 其他tests/fixtures/base-app/DemoGame.app/PrivacyInfo.xcprivacy228 B
- 其他tests/fixtures/base-app/entitlements.xml351 B
- 脚本tests/fixtures/base-bundle/export/_expo/static/js/ios/index-0123456789abcdef.js40 B
- 其他tests/fixtures/base-bundle/export/_expo/static/js/ios/index-0123456789abcdef.js.map1.4 KB
- 参考文档tests/fixtures/base-bundle/export/metadata.json50 B
- 参考文档tests/fixtures/base-bundle/js-baseline.json1.0 KB
- 其他tests/fixtures/base-pods/apps/demo-game/ios/DemoGame/PrivacyInfo.xcprivacy1.1 KB
- 其他tests/fixtures/base-pods/apps/demo-game/ios/Pods/Google-Mobile-Ads-SDK/Frameworks/GoogleMobileAdsFramework/GoogleMobileAds.xcframework/ios-arm64/GoogleMobileAds.framework/PrivacyInfo.xcprivacy3.6 KB
- 其他tests/fixtures/base-pods/apps/demo-game/ios/Pods/GoogleUserMessagingPlatform/Frameworks/Release/UserMessagingPlatform.xcframework/ios-arm64/UserMessagingPlatform.framework/PrivacyInfo.xcprivacy1.7 KB
- 其他tests/fixtures/base-pods/apps/demo-game/ios/Pods/ReactNativeDependencies/framework/ReactNativeDependencies.xcframework/ios-arm64/ReactNativeDependencies.framework/ReactNativeDependencies_glog.bundle/PrivacyInfo.xcprivacy502 B
- 脚本tests/fixtures/base-pods/packages/shell/src/config/privacy-manifest.ts888 B
- 参考文档tests/fixtures/base-repo/.claude/settings.json325 B
- 其他tests/fixtures/base-repo/.gitignore163 B
- 脚本tests/fixtures/base-repo/apps/demo-game/app.config.ts193 B
- 脚本tests/fixtures/base-repo/apps/demo-game/game.config.ts298 B
- 其他tests/fixtures/base-repo/apps/demo-game/ios/Podfile.lock411 B
- 参考文档tests/fixtures/base-repo/apps/demo-game/package.json247 B
- 参考文档tests/fixtures/base-repo/package-lock.json799 B
- 参考文档tests/fixtures/base-repo/package.json330 B
- 参考文档tests/fixtures/base-repo/packages/shell/package.json66 B
- 脚本tests/fixtures/base-repo/packages/shell/src/app/test-only-api.ts351 B
- 脚本tests/fixtures/base-repo/packages/shell/src/app/test-only-entry.ts294 B
- 脚本tests/fixtures/base-repo/packages/shell/src/config/external-links.ts337 B
- 脚本tests/fixtures/base-repo/packages/shell/src/config/shell-plugins.ts687 B
- 脚本tests/fixtures/base-repo/packages/shell/src/config/with-shell.test.ts492 B
- 脚本tests/fixtures/base-repo/packages/shell/src/config/with-shell.ts665 B
- 参考文档tests/fixtures/base-repo/packages/shell/src/i18n/catalogs/ckb.json324 B
- 参考文档tests/fixtures/base-repo/packages/shell/src/i18n/catalogs/de.json219 B
- 参考文档tests/fixtures/base-repo/packages/shell/src/i18n/catalogs/en.json191 B
- 参考文档tests/fixtures/base-repo/packages/shell/src/i18n/catalogs/fa.json323 B
- 其他tests/fixtures/base-repo/packages/shell/src/screens/home/home-screen.tsx304 B
- 脚本tests/fixtures/base-repo/packages/shell/src/services/connectivity/expo-network-connectivity-adapter.ts286 B
- 脚本tests/fixtures/base-repo/packages/shell/src/services/consent/admob-consent-adapter.ts422 B
- 参考文档tests/fixtures/base-repo/packages/tooling/package.json103 B
- 脚本tests/fixtures/base-repo/skills/demo-skill/tests/fixtures/bad-network/packages/shell/src/screens/planted.ts273 B
- 参考文档tests/fixtures/base-repo/skills/release-notes/references/keys.md246 B
- 参考文档tests/fixtures/check-template-format/bad-unformatted-baseline/EXPECT.txt62 B
- 参考文档tests/fixtures/check-template-format/bad-unformatted-baseline/mutation.json294 B
- 参考文档tests/fixtures/check-template-format/bad-unformatted-ts/EXPECT.txt61 B
- 参考文档tests/fixtures/check-template-format/bad-unformatted-ts/mutation.json283 B
- 参考文档tests/fixtures/check-template-format/good/CASE.txt145 B
03 SKILL.md 正文
Privacy and network audit
Proves the privacy promise of every game: our own code makes no network requests, only the AdMob and store-purchase components can go online, the iOS privacy manifest and the Android merged manifest declare only what the SDKs need, the App Privacy and Data safety answers match, no key or test artefact ever ships, and four scripts show it on the repo, the bundle, the pods and the built app, on iOS and Android.
Rules that must hold
- Our code never calls
fetch,XMLHttpRequest,WebSocket,EventSourceorsendBeacon, and holds nohttp(s)://,ws(s)://orftp://literal except the OS hand-off links inpackages/shell/src/config/external-links.ts. Why: spec N3; remote images, fonts and downloads make requests withoutfetch. - Exactly two network-capable components:
react-native-google-mobile-adsandexpo-iap, each imported only by its adapter (packages/shell/src/services/*/*-adapter.ts, likeexpo-network). Android: the same two, as Google Mobile Ads with UMP and Play Billing throughopeniap-google. Why: the allowlist stays at two, and a vendor SDK cannot leak into a screen. - No first-party module may appear in the bundle's network findings; every third-party finding needs a baseline entry with categories and a reason, committed with a
Gate-Change:trailer and the owner's approval. Why: our code is exactly what N3 forbids; baselines are gate files. - Only three pods may come from the CocoaPods trunk:
Google-Mobile-Ads-SDK,GoogleUserMessagingPlatform,openiap; on Android, a network-capable Maven artifact in the release runtime classpath must beplay-services-ads(-lite, -identifier),user-messaging-platform,billing(-ktx),openiap-google, a Google library they pull in, or a reasonedgradle-baseline.jsonentry. Why: a binary SDK bypasses every source-level layer. - No banned SDK anywhere (OTA updates, dev client, NetInfo, analytics, crash reporting, attribution, purchase servers, push, web views, HTTP clients, Facebook, mediation),
updates.enabled: false, noNSAllowsArbitraryLoads, no expo-iap plugin options or Onside switches; on Android nousesCleartextTrafficand nonetworkSecurityConfig. Why: each one adds a network path or a server (spec N2/N3). - App Tracking Transparency, as Apple's guideline 5.1.2(i) asks (owner decision O1, 2026-09-30):
expo-tracking-transparencyis a no-network system wrapper, imported only bypackages/shell/src/services/consent/admob-consent-adapter.ts; with ads enabled the tracking prompt text exists once (the plugin'suserTrackingPermissioninshell-plugins.ts,withShell's localizedNSUserTrackingUsageDescription, the four catalogs'consent.tracking.usage-description), the AdMob plugin'suserTrackingUsageDescriptionstays unset, and every built app carries the text inInfo.plistand in en, de, fa and ckb. Why: Apple requires the prompt before tracking and kills an app that asks without the text; one source keeps every language and game on the same reviewed words. - Declare every required-reason API any pod declares in
PRIVACY_MANIFESTS(throughwithShell), withNSPrivacyTracking: falseand noNSPrivacyTrackingDomains; only Google's ad pods may declare tracking. Why: Apple does not reliably read static pods' manifests; our code tracks nothing, and listed domains are blocked for players who decline ATT, which would stop their ads; a tracking pod means an analytics SDK slipped in. Android: every permission in the merged release manifest,android.permissionsand the Shell's config plugins is onassets/permission-allowlist.json(twelve, each with who declares it), or removed throughandroid.blockedPermissions. Why: a permission is what Data safety and the store page show players, and the APK and store-AAB gates check the same list. - The App Privacy answers match the aggregated SDK manifests: Device ID is collected, linked to the user and used for tracking by the third-party ads SDK (Google Mobile Ads), and the app asks ATT first. The Google Play Data safety answers say the same (spec 4.2 point 1): device or other IDs, approximate location, app interactions and diagnostics are collected and shared by the ads SDK for advertising, encrypted in transit; our own code collects nothing; there is no account to delete. Why: Apple builds its privacy report from the manifests, and Google makes the developer responsible for the match.
- Never open, print, copy, move, commit or log the
.p8key, the Android upload keystore (*.jks,*.keystore), the Play service-account JSON, or a token made from them;.gitignoreand the Claude Code deny rules cover all of them, and they live outside the repo (~/.appstoreconnect/private_keys/,~/.android-keys/). Why: each one can publish apps as us. - Test builds install the JS network guard; E2E asserts "network attempts: 0" and samples the app's sockets. Store builds never contain the guard. Why: the runtime layer catches what static layers miss.
- A store build ships only after the release audit passes: no test-only sentinel, no sample ad IDs outside the AdMob library, a live
GADApplicationIdentifier, the rightexpo.extra, no*.storekit,*.xctestorget-task-allow, aPrivacyInfo.xcprivacy. Why: spec S15 and 8.8; mixed variants happen silently. - Fix findings, never the audit: never loosen a baseline, an allowlist, a lint rule or a checker to get green. Stop and ask the owner for any baseline or allowlist change.
Workflow
- Read references/n3-layers.md for what each layer catches.
- If the audit tooling is missing, copy
templates/packages/tooling/src/audit/,templates/packages/tooling/network-audit/,templates/packages/shell/src/config/privacy-manifest.tsandtemplates/packages/shell/src/screens/debug/network-guard.ts(+ tests) into the repo, andtemplates/tooling-deps/intopackages/tooling/where those files are missing (banned-packages.ts,audit-licenses.ts);release-bundle-checks.tsreads Google's sample publisher from admob-ads'packages/shell/src/config/ads-config.ts(copied at Shell step 5). Wireios.privacyManifests: PRIVACY_MANIFESTSinwithShell, the threeaudit:*npm scripts, and the guard: the test-only entry exportsinstallNetworkGuard, and e2e-maestro'screateDebugPartsinstalls it first in test builds. Run their Jest tests andnpx prettier --check packages/tooling. This tooling lands before the first simulator build:npm run build:ios:simrunsaudit:privacyafter every prebuild and stops before the prebuild whenpackages/tooling/src/audit/audit-privacy.tsis missing. - Run
node ${CLAUDE_SKILL_DIR}/scripts/audit-repo.mjs .before every push and after any dependency, config or native change. Fix eachFAIL(file, rule, fix) and rerun untilRESULT: PASS. - After a native install or an SDK upgrade:
npx expo prebuild --platform ios --clean, thennode ${CLAUDE_SKILL_DIR}/scripts/audit-privacy-manifest.mjs .(andnpm run audit:privacy). Add missing reasons toprivacy-manifest.ts, prebuild again. Read references/privacy-manifest-and-labels.md for the App Privacy input and the App Tracking Transparency decision with its sources. - Run
npm run audit:network(all apps), thennode ${CLAUDE_SKILL_DIR}/scripts/audit-bundle.mjs --export dist-audit/<game-id> .. ANEWfinding: find why the package can connect; baseline it only when unused and unreachable, with a reason, aGate-Change:trailer and the owner's approval. A crash (ENOENT ... apps/<game>/node_modules/react-native, or a scandir error underios/Pods) means an old copy ofnetwork-native-layer.ts: copy the template again (layer C in the n3 reference). - Layer F: make sure the E2E smoke flow ends with "network attempts: 0" and the socket sampler report is empty (Release, test variant,
ADS_MODE=off), from samplers proven alive to the end (each writes a status file after every sample; the runner fails on one that never started, stopped, failed or never found the app). - For a release, follow references/release-audit.md: the store export through
audit-bundle.mjs, then the unzipped IPA throughnode ${CLAUDE_SKILL_DIR}/scripts/audit-app-bundle.mjs --app <Payload/App.app> --variant store --ads-mode live --game <game-id>. A keyless rehearsal on an archive built withCODE_SIGNING_ALLOWED=NOadds--unsigned(it printsREHEARSAL: not a release gateand is never release evidence); a store/off rehearsal also needs--gameand reads the live AdMob ids fromapps/<game>/game.config.ts, so before owner steps G3 and G5 it ends with the two link lines (G3), the four AdMob lines (G5),OWNER STEPS PENDING: G3, G5andRESULT: FAIL, the expected result (release-audit reference, "The keyless rehearsal"). - Check secrets hygiene with references/secrets-and-supply-chain.md (key location and mode, deny rules,
.gitignore, the keystore and the service-account JSON beside the.p8); on any leak, stop and walk the owner through the leak response. - Android: after
npx expo prebuild --platform android,npm run audit:networkadds the Gradle layer and, after a Release build, the merged-manifest audit (both printSKIPPED ...lines before then); export with--platform androidand runaudit-bundle.mjs --platform android --export dist-audit/<game-id>-android .; print the Data safety answers for owner step GP4 withnpm run audit:privacy -- --platform android --app <game-id>(references/data-safety.md; the Android layers are in the n3 reference). - After editing any template of this skill, run
node ${CLAUDE_SKILL_DIR}/scripts/check-template-format.mjs ${CLAUDE_SKILL_DIR}/templates(once per machine firstnpm ci --prefix ${CLAUDE_SKILL_DIR}/scripts): a template that is not Prettier-clean turns the repo'sformat:checkred when copied. - Report to the owner in plain words (model: examples/audit-run.md): what passed, any baseline change waiting for approval, and the App Privacy input.
Definition of done
- [ ] The audit tooling, baselines,
privacy-manifest.tsand the network guard are in place (before the first simulator build), wired, Prettier-clean, and their Jest tests pass. - [ ] Lint is clean with the N3 rules;
npm run audit:networkpasses for every app (no first-party hit, no unexplained NEW finding, the three trunk pods only, no config problem, no banned package). - [ ] After the latest prebuild the privacy manifest declares every pod reason, the app's own manifest declares no tracking and no tracking domains, only Google's pods declare tracking, and the App Privacy answers match (Device ID used for tracking by the ads SDK, ATT asked first).
- [ ] With ads enabled, the ATT plugin, the localized text and the four catalog strings are in place (
audit-reporuleatt-config), and the built app carries the text in every language (audit-app-bundleruleatt-string). - [ ] Android: the Gradle layer and the merged-manifest audit pass after the latest Android prebuild and Release build (no NEW artifact, every permission on the allowlist, no cleartext), and the owner has the Data safety answers
audit:privacy --platform androidprints. - [ ] E2E shows "network attempts: 0" and no non-loopback socket.
- [ ] Store build:
audit-bundle.mjsandaudit-app-bundle.mjs --variant store --ads-mode live --game <game-id>pass (nocom.example.*id, noowner-placeholderline); test build:--variant test --ads-mode testpasses. Before the owner's G3 and G5 the store audit ends only withowner-placeholderlines andOWNER STEPS PENDING: G3, G5(a store/off rehearsal reads the AdMob ids fromgame.config.ts, so it names G5 too), the expected result, reported as owner steps (not blocking). - [ ] No key material in the repo, logs or reports; every baseline or allowlist change has a
Gate-Change:trailer and the owner's approval. - [ ]
node ${CLAUDE_SKILL_DIR}/scripts/audit-repo.mjs .printsRESULT: PASS
Anti-patterns
- Baselining a first-party finding or adding a pod to the allowlist "to unblock the release". Remove the code or the SDK; allowlist changes are the owner's call.
- Grepping the raw bundle for the sample ad ID. The AdMob library's
TestIdsis in every bundle; use the source-mapped export (audit-bundle.mjs). - Installing
@react-native-community/netinfofor online detection. Its reachability probe fetches Google; useexpo-networkbehind ConnectivityPort. - Loading a remote image, font or JSON "just once". Draw it in code or bundle it.
- Editing
ios/(PrivacyInfo, Info.plist) by hand. Prebuild overwrites it; changeprivacy-manifest.tsor the config plugin. - Answering App Privacy with "no data collected", or Device ID "not used for tracking". The ads SDK collects data and uses Device ID for tracking; take the table from the audit output, and keep the app's own
NSPrivacyTracking: false(Google's pods declare their tracking). - Listing Google's domains in
NSPrivacyTrackingDomains"to be safe". iOS then blocks those requests for every player who declines ATT, and their ads stop; the app's own manifest lists none. - Asking ATT from a screen, a hook or a second plugin. Only the consent adapter asks (after Google's form, never with ads off), and only
expo-tracking-transparency's plugin sets the text. - Printing the JWT or a request with its headers while debugging the App Store Connect client. Log the error body only.
- Running layer F on a Debug build. Metro's WebSocket makes it fail; use a Release build.
- Checking only the variables at prebuild. Export
APP_VARIANT,EXPO_PUBLIC_APP_VARIANTandADS_MODEfor the whole build, and letaudit-app-bundle.mjsconfirm what shipped.
Files in this skill
| File | What it is | Read/run when |
|---|---|---|
| references/n3-layers.md | The promise, the six layers, lint entries, bundle/native/pods/config layers, the Android Gradle, manifest and config layers, the runner, the runtime guard and sampler, baselines | Workflow step 1, and on any NEW or STALE finding |
| references/privacy-manifest-and-labels.md | Why and how the manifest is aggregated, PRIVACY_MANIFESTS, the App Privacy table, the App Tracking Transparency decision (O1) with Apple's and Google's sources |
Workflow step 4, and at the store step |
| references/secrets-and-supply-chain.md | The .p8 key rules, the upload keystore and the service-account JSON, deny rules, leak response, supply-chain guards, banned SDKs and pods |
Workflow step 8, and before adding any package |
| references/data-safety.md | The Google Play Data safety answers, why each holds, the ads-off case, how to print them, when they change | Workflow step 9, and at owner step GP4 |
| references/release-audit.md | The two halves of the release audit, what is checked where, commands, test builds, checklist | Workflow step 7 |
| examples/audit-run.md | A complete audit run with outputs, a NEW finding handled, and the owner report | Workflow step 11, as the model |
templates/packages/tooling/src/audit/ |
audit-network.ts and its layers (bundle modules, JS with the one external-links exemption, native with hoisting-aware roots and no symlink walk, pods, config, baseline; network-app-layers.ts runs config on every call and pods only after a prebuild), release bundle checks, runtime layer and sampler (these three synced from the library, identical to e2e-maestro's copies; do not edit them here), audit-privacy.ts + privacy-manifest.ts (the trunk and the development pods' manifests), Android: network-gradle-layer.ts (the release classpath against the ads and billing allowlist), android-manifest-audit.ts (merged permissions, cleartext), data-safety.ts (audit-privacy.ts --platform android), with tests |
Workflow step 2 |
templates/packages/tooling/network-audit/ |
Starting js-baseline.json (12 packages), native-baseline.json (11, iOS and Android) and gradle-baseline.json (React Native's OkHttp stack) with reasons, Prettier-formatted |
Workflow step 2 |
templates/packages/shell/src/config/privacy-manifest.ts |
PRIVACY_MANIFESTS (seven verified reasons in four categories, NSPrivacyTracking: false, no tracking domains) |
Workflow steps 2 and 4 |
templates/packages/shell/src/config/privacy-manifest.test.ts |
Its test: pins every reason the linked pods declare, development pods included, and no tracking | Workflow steps 2 and 4 (add a reason here first) |
templates/packages/shell/src/screens/debug/ |
The test-only JS network guard and its test (synced from the library, identical to e2e-maestro's copy; do not edit here) | Workflow step 2 |
templates/tooling-deps/ |
banned-packages.ts, audit-licenses.ts, licence policy, clock and deps checks with tests (synced from the library; do not edit here) |
Workflow step 2, when they are missing |
assets/privacy-facts.json |
Allowed components, adapter pattern, pod allowlist, banned imports/packages/pods, required reasons, secrets patterns, deny rules, npm scripts, release facts; android: key ignore and deny rules, the Gradle artifact allowlist, the files the Android rules read |
Read by the scripts; change only with the owner |
scripts/audit-repo.mjs |
Static audit: layer A (calls, aliased network globals, URLs, imports; expo-tracking-transparency only in the consent adapter), banned packages, layer E, the ATT config (att-config), layer D, privacy-manifest config, tooling wiring, secrets; Android permissions and cleartext in the config and plugins (android-permissions, android-cleartext), the repo copies of the two Android allowlists (android-allowlists), the keystore and service-account ignore and deny rules (keystore-ignored) |
Workflow step 3, before every push |
scripts/audit-bundle.mjs |
Layer B + JS release checks on an expo export with its source map (--platform ios or android) |
Workflow steps 5, 7 and 9 |
scripts/audit-privacy-manifest.mjs |
Pod manifests vs privacy-manifest.ts, the app's own tracking and tracking domains, tracking pods, prebuilt manifest, App Privacy input with the tracking answer |
Workflow step 4 |
scripts/audit-app-bundle.mjs |
Binary release checks on a built .app: ad app id, expo.extra, app id, every owner placeholder by field, Google's sample (test) units in a live build included (owner-placeholder, then OWNER STEPS PENDING: G3, G5), the tracking text in every language, test code, artefacts, get-task-allow (--unsigned: a rehearsal SKIP), privacy manifest, ATS; exports PLACEHOLDERS |
Workflow step 7 |
scripts/check-template-format.mjs |
Every .ts/.tsx/.json template is in the repo's Prettier format (pinned Prettier, assets/prettierrc.json) |
Run by the self-test; after editing a template |
scripts/package.json |
The pinned Prettier (3.9.9, the repo's pin) for check-template-format.mjs |
Once per machine: npm ci --prefix ${CLAUDE_SKILL_DIR}/scripts |
scripts/package-lock.json |
Lockfile for that npm ci |
Never by hand |
scripts/.gitignore |
Keeps scripts/node_modules/ out of git |
Never by hand |
scripts/lib/repo-scan.mjs |
File listing and import parsing helpers | Read only to change a script |
scripts/lib/plist.mjs |
XML plist parser (binary plists through plutil) |
Read only to change a script |
scripts/lib/assemble-fixtures.mjs |
Builds each self-test case (good, bad-*, pass-*, error-*) from its base + mutation.json |
Read only to add a self-test case |
scripts/lib/ship-placeholders.mjs |
The scaffold placeholders the ship gates refuse by name, each with its owner step, ownerStepsPendingLine and the io.applander app id rule (synced from the library; do not edit here) |
Read only to change a script |
scripts/lib/tracking-text.mjs |
Reads NSUserTrackingUsageDescription from Info.plist and each .lproj/InfoPlist.strings (synced from the library; do not edit here) |
Read only to change a script |
scripts/selftest.mjs |
Pins PLACEHOLDERS, then proves the five scripts on clean bases, pass cases and planted problems, and that every template is Prettier-formatted (needs the npm ci above) |
After changing a script, a template or a fixture |
scripts/check-lib.mjs |
Shared script helper, synced from the library (do not edit here) | Never by hand |
assets/prettierrc.json |
The repo's .prettierrc.json (synced from the library; do not edit here) |
Read by check-template-format.mjs |
assets/permission-allowlist.json |
The Android permissions a Pocket Arcade app may hold, each with who declares it (synced from the library, the same list android-emulator-build and android-release-play check; do not edit here) | Before an Android permission changes; change only with the owner |
assets/shared.json |
Declares the shared files copied into this skill | When adding a shared file |
tests/fixtures/ |
Bases (base-repo/, base-bundle/, base-pods/, base-app/) and one mutation.json + EXPECT.txt (+ ARGS.txt) per case; check-template-format/ mutates the real templates |
When adding a rule |
Related skills
admob-ads- the ads SDK, its adapter and its privacy facts.premium-purchase- expo-iap, its banned server APIs and the StoreKit harness.dependency-management- pins, release age, install scripts and licences.typescript-and-lint-rules- the lint config that holds layer A.e2e-maestro- the smoke flow and socket sampler run of layer F.ios-release-testflight- archive, export, the store-artifact gate and the App Privacy human step.quality-gates- whereaudit:networkandaudit:privacyrun in verify and release.git-commits-and-reporting- theGate-Change:trailer and the owner report.
04 同仓库更多 Skills
unit-and-component-tests
Sets up Jest and writes Pocket Arcade test code - three projects, RNTL 14 async via renderWithShell, root SDK mocks, fakes, fast-check, coverage, Stryker. Use when a test needs the Shell wrapper, a mock or a fake, or Jest fails. Not for the red-green loop (tdd-workflow) or goldens (golden-tests).
typescript-and-lint-rules
Enforces Pocket Arcade's strict TypeScript 6 tsconfigs, ESLint 9 flat config, Prettier and size limits. Use when writing or splitting .ts/.tsx or fixing a tsc or lint error. Not for gate wiring (quality-gates), names (naming-conventions) or import zones (architecture-and-boundaries).
demo-skill
Builds a demo. Use when testing the pitfall checker.
demo-skill
Builds a demo. Use when testing the pitfall checker.
troubleshooting-playbook
Diagnoses and fixes Pocket Arcade failures with a catalogue of 300+ known ones (symptom, cause, fix). Use when something errors, crashes, hangs or renders wrong, or an error or log needs explaining. Not for gate setup (quality-gates) or running builds (ios-simulator-build, ios-release-testflight).
toybox-visual-parity
Proves a built Pocket Arcade screen matches its Toybox design screenshot (light/dark, en/fa) and drives the fixes: capture, element gates, sheets, sign-off. Use when any screen is built or changed, or for visual parity, design match, screenshot compare. Not for building screens (toybox-screens).