safe-area-compliance

safe-area-compliance is a skill for Claude Code, Codex from cruisediary/apple-app-review-skills. It costs 39 tokens per session (1,438 once invoked), scanned A, original, MIT.

A code checker for iOS layouts that finds unsafe handling of the screen’s protected margins around the Dynamic Island, notch, and home indicator. These margins keep content and controls away from areas covered by device hardware or system controls.

In plain words
What is it for?
Use it to find unsafe safe-area overrides and fixed inset values that can violate Apple’s adaptive layout guidance.
Why use it?
It helps prevent content from being hidden or controls from becoming unreachable on iPhones with different screen cutouts and insets.

Skill for Claude CodeCodex

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

Good fit Use it to find unsafe safe-area overrides and fixed inset values that can violate Apple’s adaptive layout guidance.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cruisediary/apple-app-review-skills/safe-area-compliance
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 safe-area-compliance
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 safe-area-compliance

README.md
[![agentmods](https://agentmods.dev/badge/skills/cruisediary/apple-app-review-skills/safe-area-compliance/github.svg)](https://agentmods.dev/skills/cruisediary/apple-app-review-skills/safe-area-compliance)
Your own site
<a href="https://agentmods.dev/skills/cruisediary/apple-app-review-skills/safe-area-compliance"><img src="https://agentmods.dev/badge/skills/cruisediary/apple-app-review-skills/safe-area-compliance/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 safe-area-compliance

Your own site · 80×15
<a href="https://agentmods.dev/skills/cruisediary/apple-app-review-skills/safe-area-compliance"><img src="https://agentmods.dev/badge/skills/cruisediary/apple-app-review-skills/safe-area-compliance.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,438 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.00039 $0.01438
Opus 5 $0.00019 $0.00719
Sonnet 5 $0.00008 $0.00288
Haiku 4.5 $0.00004 $0.00144

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

Security

Grade A, and why

safe-area-compliance 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/layout/safe-area-compliance/SKILL.md · 130 lines

How it starts

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

Skill: Safe Area Compliance

Purpose

Detects unsafe safe-area overrides and hardcoded inset values that hide content behind the Dynamic Island, notch, or home indicator, violating Apple's Human Interface Guidelines for adaptive layout.

Apple Guideline

  • Primary: HIG — Adaptivity and Layout (Apple Human Interface Guidelines)
  • Related: 2.1
  • Reference: references/hig/adaptive-layout.md

Real-World Rejection Cases

  • Case: Content hidden behind Dynamic Island on iPhone 14 Pro and later Source: Apple Developer Forums Root cause: View used .edgesIgnoringSafeArea(.all) without compensating insets, pushing interactive controls into the Dynamic Island cutout area.

  • Case: Bottom navigation buttons unreachable behind home indicator Source: App Store Connect rejection feedback Root cause: Tab bar and custom buttons were positioned at y = screenHeight - 49 — correct for notchless iPhones but obscured by the home indicator on Face ID devices.

  • Case: Developer hardcoded top: 44 inset — broke on devices with different safe areas Source: Apple Developer Forums Root cause: The status-bar height is not a fixed constant; devices with Dynamic Island, notch, or no notch all have different top safe-area values.

Trigger

Invoke on any iOS project that targets iPhone or iPad to verify safe-area insets are respected.

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 Swift source files.
  2. Glob **/*.m — collect Objective-C source files.
  3. Glob **/*.storyboard and **/*.xib — note Interface Builder files for manual safe-area review.

Read the full file on GitHub · 130 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 · 130 lines · 39 tokens per session scan A bdb5d1e714fe

Subscribe to this mod's changes

safe-area-compliance is a skill published in the GitHub repository cruisediary/apple-app-review-skills (16 stars, last pushed 4mo ago), licensed MIT. It adds 39 tokens to every session and 1,438 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

apple-design

Complete Apple Human Interface Guidelines (HIG) and Apple Design System standard. Use when designing, building, or auditing UI/UX for iOS, iPadOS, macOS, watchOS, visionOS, or Apple-styled web and mobile applications.

billythekidz/apple-design-skill · 55 tokens

mobile-app

A design template for a single-screen iPhone 15 Pro app mockup, including the phone frame, status bar, app header, main content, and bottom navigation.

nexu-io/html-anything · 21 tokens

mobile-onboarding

A visual template showing three mobile-app onboarding screens side by side: a splash screen, a feature introduction, and sign-in.

nexu-io/html-anything · 18 tokens

iOS SwiftUI Accessibility

Enforces WCAG 2.2 accessible coding patterns when writing SwiftUI — labels, traits, Dynamic Type, contrast, touch targets, focus management, orientation, and more. Based on the ios-swiftui-accessibility-techniques project with 41 static analysis rules across 23 WCAG criteria.

cvs-health/ios-swiftui-accessibility-techniques · 67 tokens

add-component

Add a SwiftUI component from ShipSwift. Use when the user says "add component", "add a view", "add X view", "I need a chart", "add animation", or wants a specific UI element.

signerlabs/ShipSwift · 48 tokens

maui-accessibility

Improve MAUI accessibility. USE FOR: semantic labels, hints, headings, screen-reader focus/announcements, AutomationProperties, touch targets, decorative content, TalkBack/VoiceOver/Narrator checks. DO NOT USE FOR: general layout, automation-only tests, performance.

dotnet/maui-labs · 60 tokens