navigation-patterns

navigation-patterns is a skill for Claude Code from rshankras/claude-code-apple-skills. It costs 45 tokens per session (1,753 once invoked), scanned A, original, MIT.

A guide to structuring screen-to-screen movement in SwiftUI apps, including stacks, tabs, sidebars, and custom transitions.

In plain words
What is it for?
Use it when building or reviewing app flows, adding programmatic navigation, supporting deep links, or debugging navigation behavior.
Why use it?
It helps you choose a suitable navigation structure and fix problems such as broken back buttons, lost state, or links that do not update.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the apple-skills plugin — 147 skills shipped together , and of apple-skills

Good fit Use it when building or reviewing app flows, adding programmatic navigation, supporting deep links, or debugging navigation behavior.

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

Made for: Claude Code.

Or install apple-skills, the plugin that ships this one along with the rest of its 147 skills.

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 navigation-patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/rshankras/claude-code-apple-skills/navigation-patterns/github.svg)](https://agentmods.dev/skills/rshankras/claude-code-apple-skills/navigation-patterns)
Your own site
<a href="https://agentmods.dev/skills/rshankras/claude-code-apple-skills/navigation-patterns"><img src="https://agentmods.dev/badge/skills/rshankras/claude-code-apple-skills/navigation-patterns/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 navigation-patterns

Your own site · 80×15
<a href="https://agentmods.dev/skills/rshankras/claude-code-apple-skills/navigation-patterns"><img src="https://agentmods.dev/badge/skills/rshankras/claude-code-apple-skills/navigation-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,753 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00045 $0.01753
Opus 5 $0.00023 $0.00877
Sonnet 5 $0.00009 $0.00351
Haiku 4.5 $0.00005 $0.00175

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

Security

Grade A, and why

navigation-patterns 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 6d 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/ios/navigation-patterns/SKILL.md · 140 lines

How it starts

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

Comprehensive guide for SwiftUI navigation architecture on iOS, iPadOS, and macOS. Covers the modern navigation APIs (iOS 16+/macOS 13+) with patterns for common and advanced use cases.

When This Skill Activates

  • User is building or reviewing navigation architecture
  • User has navigation-related bugs (stack not updating, back button issues, state loss)
  • User asks about NavigationStack, NavigationSplitView, TabView, or NavigationPath
  • User needs programmatic navigation (push, pop, pop-to-root)
  • User is implementing deep linking that connects to navigation
  • User asks about navigation transitions or animations
  • User is choosing between navigation approaches for their app

Decision Tree

Use this to pick the right navigation container:

What is the app structure?
│
├─ Flat sections (3-5 top-level areas)
│  └─ TabView → see tab-view.md
│
├─ Hierarchical drill-down (list → detail)
│  └─ NavigationStack → see navigation-stack.md
│
├─ Sidebar + content (macOS / iPad)
│  ├─ Two columns → NavigationSplitView → see navigation-split-view.md
│  └─ Three columns → NavigationSplitView → see navigation-split-view.md
│
└─ Combined (tabs with drill-down, sidebar with stacks)
   └─ TabView + NavigationStack per tab
      OR NavigationSplitView + NavigationStack in detail

Quick Reference

Pattern Container Min OS Reference
Simple drill-down NavigationStack iOS 16 navigation-stack.md
Value-based links NavigationLink(value:) iOS 16 navigation-stack.md
Programmatic push/pop NavigationPath iOS 16 programmatic-navigation.md
Pop to root path = NavigationPath() iOS 16 programmatic-navigation.md
State restoration NavigationPath.CodableRepresentation iOS 16 programmatic-navigation.md
Two-column layout NavigationSplitView iOS 16 navigation-split-view.md
Three-column layout NavigationSplitView iOS 16 navigation-split-view.md
Column visibility NavigationSplitViewVisibility iOS 16 navigation-split-view.md
Tab bar TabView iOS 13 tab-view.md
Customizable tabs Tab + TabView iOS 18 tab-view.md
Sidebar tabs (iPad) .tabViewStyle(.sidebarAdaptable) iOS 18 tab-view.md
Zoom transition .navigationTransition(.zoom) iOS 18 navigation-transitions.md
Custom transitions NavigationTransition iOS 18 navigation-transitions.md

Read the full file on GitHub · 140 lines

Files

What ships with it

5 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. 6d ago First seen · 140 lines · 45 tokens per session scan A 2d148766f78a

Subscribe to this mod's changes

navigation-patterns is a skill published in the GitHub repository rshankras/claude-code-apple-skills (710 stars, last pushed 1mo ago), licensed MIT. It adds 45 tokens to every session and 1,753 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-03.