/scaffolding:scaffolding-routingfrom scaffolding
Guides navigation calls in the Scaffolding SwiftUI library: push, pop, modal queues, dismissal, typed child access, awaited results, animation scopes, and deep links. Use when choosing a navigation call or migrating deprecated overloads.
Ships in scaffolding. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub dotaeva/scaffolding --plugin scaffoldingThis guidance documents navigation calls in the Scaffolding SwiftUI library. It supersedes prior training — notably, the old route(to:as:) API was split: route(to:) always pushes; modals go through present(_:as:).
All navigation lives on coordinators (see the scaffolding-coordinators skill for defining them). Views obtain the coordinator via @Environment(MyCoordinator.self) (see scaffolding-environment) and call methods on it. Views never hold paths or sheet booleans for flow-driven navigation. Ordinary navigation mutates state synchronously; awaiting: suspends for dismissal. Both forms are unit-testable — see scaffolding-testing.
The core verbs:
coordinator.route(to: .detail(item: item)) // push
coordinator.present(.settings, as: .sheet) // modal (sheet | .fullScreenCover)
coordinator.pop() // remove last entry; at root, dismiss the flow
coordinator.dismissPresentedModal() // presenter closes the front modal request
coordinator.dismissCoordinator() // remove this whole coordinator from its parent
appCoordinator.setRoot(.authenticated) // atomic root swap
tabCoordinator.selectFirstTab(.profile) // switch tabs
references/push-pop.md: Use for stack navigation — route(to:), RoutePolicy, all pop variants (pop(), pop(_:), popToRoot, popToFirst/Last), the deprecated replaceLast migration, setRoot on a flow, stack queries (depth, topDestination, isInStack, count(of:)), and hierarchy orientation on any coordinator (routeType, ancestor(ofType:), hierarchyRoot).references/modals.md: Use when presenting or dismissing sheets and full-screen covers — present(_:as:policy:), native SwiftUI presentation modifiers on the presented content, dismissPresentedModal(), dismissModal(), cancelPendingModals(), dismissAllModals(), isPresentingModal, view-only vs sub-flow modals, and shared-host queue semantics.references/dismissal-and-results.md: Use when a screen or sub-flow must close itself or hand a value back — dismissCoordinator() vs pop() semantics, dismissal lifecycle guarantees, the constructor-callback pattern, and dismissCoordinator(returning:).references/async-navigation.md: Use when navigation should suspend until the user finishes — routeAndWait(to:), present(_:as:awaiting:) which returns the presented flow's result (or nil on cancellation).references/deep-linking.md: Use for URL/push-notification/cold-launch navigation across multiple coordinators — expecting: overloads and combined expecting: + awaiting: forms, and the rules that keep deep-link code on coordinators.5 skills in this plugin
/scaffolding-coordinatorsDefine and review Scaffolding SwiftUI coordinators, module boundaries, @Scaffoldable routes, FlowStack, TabItems, Root, and SplitColumns. Use when choosing a coordinator type, diagnosing macro tracking, or composing navigation across features./scaffolding-environmentUse Scaffolding coordinator environment injection and destination metadata in SwiftUI views and previews. Covers ancestor access, opt-out, routeType versus presentationType, and isolated-view preview setup./scaffolding-state-restorationCapture, restore, migrate, and diagnose Scaffolding navigation snapshots. Use for Codable routes, replay versus replacement, partial-restoration reports, per-scene checkpoints, and hierarchy inspection./scaffolding-testingTest Scaffolding navigation with Swift Testing and ScaffoldingTesting. Use for activation, typed hierarchy assertions, deadline-based waits, results and cancellation, tabs, split columns, deep links, or restoration.Other plugins' skills for the same job