apple-cleanup

apple-cleanup is a skill for Claude Code from markdavidgan/apple-dev-skills. It costs 77 tokens per session (7,453 once invoked), scanned A, original, MIT.

An engineering hardening process for iOS apps that checks Swift 6 compatibility, crash risks, App Store rejection risks, and technical debt. It creates a fix plan, addresses listed high-priority issues, and sends an alpha build to TestFlight.

In plain words
What is it for?
Use it for pre-submission cleanup, code hardening, compliance checks, and preparing an alpha for TestFlight testing.
Why use it?
It helps find problems that could cause crashes, store rejection, or maintenance work before submission. It also sets priorities for fixing them.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions subagents.

Part of the apple-dev-skills plugin — 62 skills, 25 commands, 7 agents shipped together

Good fit Use it for pre-submission cleanup, code hardening, compliance checks, and preparing an alpha for TestFlight testing.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/markdavidgan/apple-dev-skills/apple-cleanup
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 markdavidgan/apple-dev-skills --skill apple-cleanup
Clone the repo
git clone --depth 1 https://github.com/markdavidgan/apple-dev-skills

Made for: Claude Code.

Or install apple-dev-skills, the plugin that ships this one along with the rest of its 62 skills, 25 commands, 7 agents.

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 apple-cleanup

README.md
[![agentmods](https://agentmods.dev/badge/skills/markdavidgan/apple-dev-skills/apple-cleanup.svg)](https://agentmods.dev/skills/markdavidgan/apple-dev-skills/apple-cleanup)
Your own site
<a href="https://agentmods.dev/skills/markdavidgan/apple-dev-skills/apple-cleanup"><img src="https://agentmods.dev/badge/skills/markdavidgan/apple-dev-skills/apple-cleanup.svg" alt="Measured on agentmods" height="20"></a>
Per session 77 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,453 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.00077 $0.07453
Opus 5 $0.00039 $0.03726
Sonnet 5 $0.00015 $0.01491
Haiku 4.5 $0.00008 $0.00745

Measured 8d ago against content hash 4f20f50463e4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

apple-cleanup 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 8d 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.

platforms/claude/skills/apple-cleanup/SKILL.md · 931 lines

How it starts

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

Apple Cleanup — EXHAUSTIVE Engineering Hardening

Purpose: Transform an app from "development mode" to "production hardened" through EXHAUSTIVE engineering excellence — crash-free, App Store compliant, fully optimized. This is MISSION-CRITICAL cleanup. Lives depend on it. No shortcuts. No omissions.

☠️ ULTIMATE RULES (NON-NEGOTIABLE)

  1. NEVER START UI TESTS unless the user has explicitly approved it in the current conversation. This stands even if a plan says to run them. UI tests crash this user's Mac Mini.
  2. NEVER KEEP MULTIPLE VERSIONS OF A FEATURE IN CODE (v2Enabled, legacyMode, newFlow, etc.). When replacing a feature, replace it. Delete the old path. Systematic modular variants (enum injection, DI, strategy protocols) are allowed; inline boolean forks are forbidden.

Scope: EXHAUSTIVE — ALL priorities must be addressed:

  • P0 (Critical): Engineering crashes, data loss, security vulnerabilities — ZERO TOLERANCE
  • P1 (High): Compliance rejection risks, Swift 6 improvements, performance, error handling — MUST FIX
  • P2 (Medium): Tech debt, style cleanup, optimizations, documentation — MUST FIX
  • P3 (Low): Minor refinements — address if identified

THIS IS NOT OPTIONAL CLEANUP. Every identified issue from P0 to P2 MUST be fixed before completion. No exceptions.

No design reviews, no marketing narratives.

When to Use

  • Pre-submission hardening — "The app works, now make it bulletproof for App Review"
  • Swift 6 compliance pass — "Fix all concurrency warnings and strict mode issues"
  • Crash prevention sweep — "Find and fix every potential crash"
  • Post-development cleanup — "Clean up accumulated tech debt and AI slop"
  • Before TestFlight alpha — "Engineering validation before distributing"

Not for: Design reviews, feature additions, version management, or marketing copy.


Command Reference

/apple-cleanup              # Cleanup app in current directory
/apple-cleanup [app]        # Cleanup a specific app target

Read the full file on GitHub · 931 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 8d ago First seen · 931 lines · 77 tokens per session scan A 4f20f50463e4

Subscribe to this mod's changes

apple-cleanup is a skill published in the GitHub repository markdavidgan/apple-dev-skills (5 stars, last pushed 9d ago), licensed MIT. It adds 77 tokens to every session and 7,453 once invoked, about $0.0004 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-08-31.

Related

Other skills, from other repositories

asc-crash-triage

Triage TestFlight crashes, beta feedback, and performance diagnostics using asc. Use when the user asks about TF crashes, TestFlight crash reports, beta tester feedback, app hangs, disk writes, launch diagnostics, or wants a crash summary for a build or app.

rorkai/app-store-connect-cli-skills · 60 tokens

asc-revenuecat-catalog-sync

Reconcile App Store Connect subscriptions and in-app purchases with RevenueCat products, entitlements, offerings, and packages using asc and RevenueCat MCP. Use when setting up or syncing subscription catalogs across ASC and RevenueCat.

rorkai/app-store-connect-cli-skills · 51 tokens

asc-localize-metadata

Automatically translate and sync App Store metadata (description, keywords, what's new, subtitle) to multiple languages using LLM translation and asc CLI. Use when asked to localize an app's App Store listing, translate app descriptions, or add new languages to App Store Connect.

rorkai/app-store-connect-cli-skills · 60 tokens

asc-shots-pipeline

Orchestrate iOS screenshot automation with xcodebuild/simctl for build-run, AXe for UI actions, JSON settings and plan files, Koubou-based framing (asc screenshots frame), and screenshot upload (asc screenshots upload). Use when users ask for automated screenshot capture, AXe-driven simulator flows, frame composition…

rorkai/app-store-connect-cli-skills · 79 tokens

asc-metadata-sync

Sync, validate, and apply App Store metadata with the current asc canonical metadata workflow. Use when updating metadata, localizations, keywords, or migrating legacy fastlane metadata.

rorkai/app-store-connect-cli-skills · 39 tokens

asc-release-flow

Orchestrate App Store releases with asc, including staging a version, uploading or building an artifact, publishing, and submitting for review. Use when the user wants to prepare or execute a release. Keep Game Center item preparation in this skill; route other readiness failures, stuck submissions, cancellation, and…

rorkai/app-store-connect-cli-skills · 71 tokens