Axiom Swiftui Nav Diag
Generates SwiftUI navigation diagrams & code from axioms, streamlining app architecture and user flow design.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add axiom-swiftui-nav-diag npx -- -y @trustedskills/axiom-swiftui-nav-diag
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"axiom-swiftui-nav-diag": {
"command": "npx",
"args": [
"-y",
"@trustedskills/axiom-swiftui-nav-diag"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill helps diagnose issues with SwiftUI navigation by identifying problems related to path state management, view identity, or placement errors—common causes of unexpected navigation behavior. It provides a systematic approach to pinpointing root causes in minutes rather than hours and discourages wrapping SwiftUI's NavigationStack in a UINavigationController, which can introduce more complexity. The skill guides users through specific checks and logging techniques to isolate the source of navigation problems within their code.
When to use it
- When navigation taps do nothing (links are present but don’t push).
- When the back button pops to the wrong screen or root.
- When deep links open the app but display an incorrect screen.
- When navigation state is lost when switching tabs or the app backgrounds.
- When a
NavigationLinkpushes twice unexpectedly.
Key capabilities
- Provides diagnostics for SwiftUI navigation issues.
- Identifies problems related to path state management, view identity, and placement errors.
- Offers specific checks using logging techniques (e.g.,
NavigationPathlogging). - Guides users through a structured troubleshooting process.
- Discourages wrapping
NavigationStackinUINavigationController.
Example prompts
- "I'm having trouble with my SwiftUI navigation; can you help me diagnose the issue?"
- "My back button is taking me to the wrong screen. What should I check first?"
- "How do I debug a SwiftUI navigation problem related to path state management?"
Tips & gotchas
- Always start with the mandatory first steps: Implement
NavigationPathlogging, verifynavigationDestinationvisibility, and confirm thatNavigationLinkis within aNavigationStack. - State Location Matters: Ensure
@Statevariables are located in stable views (not recreated on every render). They must be declared as@State,@StateObject, or@Observable. - Isolate the Problem: Create a minimal, reproducible example to test basic navigation functionality.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.