data-minimization-audit

data-minimization-audit is a skill for Claude Code, Codex from cruisediary/apple-app-review-skills. It costs 41 tokens per session (1,617 once invoked), scanned A, original, MIT.

A code audit that checks whether an app collects more user data or requests broader permissions than its stated function needs. Data minimization means collecting only the information required for a job.

In plain words
What is it for?
Use it on iOS or macOS projects to review permission requests and data-collection code for less intrusive alternatives.
Why use it?
It helps identify unnecessary access, such as requesting an entire photo library when the app only needs one selected photo, reducing privacy and review risks.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it on iOS or macOS projects to review permission requests and data-collection code for less intrusive alternatives.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cruisediary/apple-app-review-skills/data-minimization-audit
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add cruisediary/apple-app-review-skills --skill data-minimization-audit
Clone the repo
git clone --depth 1 https://github.com/cruisediary/apple-app-review-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for data-minimization-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/cruisediary/apple-app-review-skills/data-minimization-audit/github.svg)](https://agentmods.dev/skills/cruisediary/apple-app-review-skills/data-minimization-audit)
Your own site
<a href="https://agentmods.dev/skills/cruisediary/apple-app-review-skills/data-minimization-audit"><img src="https://agentmods.dev/badge/skills/cruisediary/apple-app-review-skills/data-minimization-audit/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for data-minimization-audit

Your own site · 80×15
<a href="https://agentmods.dev/skills/cruisediary/apple-app-review-skills/data-minimization-audit"><img src="https://agentmods.dev/badge/skills/cruisediary/apple-app-review-skills/data-minimization-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,617 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00041 $0.01617
Opus 5 $0.00020 $0.00809
Sonnet 5 $0.00008 $0.00323
Haiku 4.5 $0.00004 $0.00162

Measured 7d ago against content hash 0caaaa658c85, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

data-minimization-audit scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/privacy/data-minimization-audit/SKILL.md · 132 lines

How it starts

The opening of the file, as written. The whole thing — 132 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Skill: Data Minimization Audit

Purpose

Detects data collection patterns that exceed what is necessary for the app's stated functionality, enforcing Guideline 5.1.1(iii) data minimization requirements.

Apple Guideline

  • Primary: 5.1.1(iii) — Data Collection and Storage: Data Minimization
  • Related: 5.1.1(ii), 5.1.2
  • Reference: references/guidelines/5-legal.md

Real-World Rejection Cases

  • Case: App requested full photo library access just to let user pick a profile picture — rejected Source: Apple Developer Forums Root cause: PHPickerViewController gives access without requiring NSPhotoLibraryUsageDescription — full access not needed for single selection; Apple reviewers specifically look for this pattern

Trigger

Invoke on any iOS/macOS project to identify permission requests and data collection calls that can be replaced with privacy-preserving alternatives.

Inputs

Name Type Default Description
project_root path cwd iOS/macOS project root
shared_context object nil Pre-collected context from appstore-full-audit Phase 1

Actions

Phase 1: Context Collection

Skip this phase if shared_context is provided.

  1. Glob **/*.swift — collect all Swift source files.
  2. Glob **/*.m — collect Objective-C source files.
  3. Glob **/*.entitlements — locate entitlements files for background location check.
  4. Glob **/PrivacyInfo.xcprivacy — locate privacy manifest for identifier declaration check.

Phase 2: Checks

  1. Full photo library access for selection use case Grep pattern PHPhotoLibrary.*requestAuthorization.*readWrite in **/*.swift. If found, also Grep PHPickerViewController — if picker not used, flag → 🟠 HIGH. PHPickerViewController provides privacy-preserving photo selection without full library authorization; developers should migrate to this API for profile photo or single-image selection flows.

Read the full file on GitHub · 132 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 132 lines · 41 tokens per session scan A 0caaaa658c85

Subscribe to this mod's changes

data-minimization-audit is a skill published in the GitHub repository cruisediary/apple-app-review-skills (16 stars, last pushed 4mo ago), licensed MIT. It adds 41 tokens to every session and 1,617 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-05.

Related

Other skills, from other repositories

benchmark

Run performance + quality benchmarks. ASR reports WER, RTF, process memory, and throughput across engines/variants. Arguments include asr, tts, vad, diarize, asr-quick.

soniqo/speech-swift · 0 tokens

review-pr

Review a pull request for conceptual fit, architecture impact, adversarial failure modes, security risk, docs impact, regression risk, test coverage, and merge readiness. Use when asked to review a PR, check whether a PR is safe to merge, decide if more tests are needed, perform adversarial or security review, or…

soniqo/speech-swift · 71 tokens

boutique-best-practices

Best practices for using Boutique with Swift 6 concurrency, @Observable, @ObservationIgnored, Sendable conformance, testing with preview stores, and dependency injection. Use when troubleshooting Boutique issues, migrating to Swift 6, or setting up tests.

mergesort/Boutique · 56 tokens

boutique-store

Create and use Boutique Store for Swift data persistence, including initialization, @Stored controllers, CRUD operations, operation chaining, and granular event monitoring. Use when persisting arrays of items, building data controllers, or working with Boutique's Store type.

mergesort/Boutique · 52 tokens

boutique-stored-values

Persist individual values with Boutique's @StoredValue (UserDefaults) and @SecurelyStoredValue (Keychain), including set, reset, toggle, bindings, keypath setters, array and dictionary helpers, and async observation. Use when storing preferences, settings, feature flags, or sensitive data like auth tokens.

mergesort/Boutique · 68 tokens

boutique-swiftui

Integrate Boutique with SwiftUI views using onChange, onStoreDidLoad, bindings, and preview stores. Use when building SwiftUI views that display or react to Boutique-persisted data.

mergesort/Boutique · 45 tokens