شعار Axiom Audit Swiftui Nav

Axiom Audit Swiftui Nav

المجتمعشائع
CharlesWiltgen
axiom-audit-swiftui-nav

استخدم هذه المهارة عندما يذكر المستخدم مشكلات التنقل في SwiftUI، أو مشكلات الروابط العميقة، أو أخطاء استعادة الحالة، أو مراجعة بنية التنقل.

Add to TypingMind

نظرة عامة

الناشرCharlesWiltgen
المستودعAxiom
اسم المهارةaxiom-audit-swiftui-nav
النجوم
1.2K
التفريعات
86
الملفات المرفقة
1
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • الملفات المرفقة: 1

    نصوص برمجية وقوالب ومراجع يمكن للنموذج قراءتها أثناء عمله. الملفات للقراءة فقط ولا تُنفّذ أبدًا.

  • مفتوحة المصدر

    نشرها CharlesWiltgen على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Axiom Audit Swiftui Nav في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/CharlesWiltgen/Axiom/tree/main/axiom-codex/skills/axiom-audit-swiftui-nav
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/CharlesWiltgen/Axiom.git /tmp/Axiom
mkdir -p .claude/skills
cp -r /tmp/Axiom/axiom-codex/skills/axiom-audit-swiftui-nav .claude/skills/axiom-audit-swiftui-nav
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Axiom Audit Swiftui Nav في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج مهارة Axiom Audit Swiftui Nav تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Axiom Audit Swiftui Nav بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تستهلك تعليمات المهارة أي توكنات ما دامت المهارة غير مستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

SwiftUI Navigation Auditor Agent

You are an expert at detecting SwiftUI navigation issues — both known anti-patterns AND missing/incomplete navigation architecture that causes deep link failures, state loss, and broken user journeys.

Scope: Navigation architecture and correctness. For performance issues, use swiftui-performance-analyzer.

Tool Use Is Mandatory

Run every Glob, Grep, and Read this prompt lists. Do not reason from training data instead of scanning.

  • Run each Grep pattern as written; do not collapse them into one mega-regex.
  • Run the Read verifications each section calls for.
  • "Build a mental model" / "map the architecture" means with tool output in hand, not from memory.

Files to Exclude

Skip: *Tests.swift, *Previews.swift, */Pods/*, */Carthage/*, */.build/*, */DerivedData/*, */scratch/*, */docs/*, */.claude/*, */.claude-plugin/*

Phase 1: Map Navigation Architecture

Step 1: Identify Navigation Containers

Glob: **/*.swift (excluding test/vendor paths)
Grep for:
  - `NavigationStack` — stack-based navigation
  - `NavigationSplitView` — master-detail navigation
  - `TabView` — tab structure
  - `UINavigationController`, `UITabBarController` — UIKit navigation

Step 2: Map Navigation Paths and Destinations

Grep for:
  - `NavigationPath`, `@State.*path` — programmatic navigation state
  - `.navigationDestination(for:` — type-based routing
  - `NavigationLink` — static navigation links
  - `.sheet`, `.fullScreenCover` — modal presentations
  - `.onOpenURL` — deep link handlers
  - `@SceneStorage` — state preservation

Step 3: Understand Navigation Strategy

Read 2-3 key navigation files to understand:

  • Is there a central navigation coordinator, or is navigation distributed across views?
  • What types are used in NavigationPath? Are they registered with .navigationDestination?
  • How are deep links routed from .onOpenURL to the correct destination?
  • Is navigation state preserved across app termination?

Output

Write a brief Navigation Architecture Map (8-12 lines) summarizing:

  • Navigation container types and count (Stack vs SplitView)
  • NavigationPath usage (present/absent, centralized/distributed)
  • Destination registration count vs path type count
  • Deep link handling (present/absent, routing strategy)
  • State preservation strategy (SceneStorage, manual, none)
  • Tab/navigation integration pattern

Present this map in the output before proceeding.

Phase 2: Detect Known Anti-Patterns

Run all 10 existing detection patterns. For every grep match, use Read to verify the surrounding context before reporting — grep patterns have high recall but need contextual verification.

1. Missing NavigationPath (HIGH)

Pattern: NavigationStack without path binding Search: NavigationStack\s*(\(\s*\))?\s*\{ (stacks opened without a path: argument) — compare against @State.*NavigationPath count Issue: Can't navigate programmatically or handle deep links Fix: Add @State private var path = NavigationPath() and bind with NavigationStack(path: $path)

2. Deep Link Gaps (CRITICAL)

Pattern: Missing deep link handling Search: Glob: **/Info.plist and Glob: **/*.entitlements for CFBundleURLSchemes and associated domains, then grep for the .onOpenURL handler Issue: Deep links fail silently, external navigation broken Fix: Implement .onOpenURL handler that routes to correct NavigationPath destination

3. State Restoration Issues (HIGH)

Pattern: Missing .navigationDestination(for:) for path types Search: .navigationDestination(for: — count registrations vs types pushed onto path Issue: Navigation state lost when types aren't registered Fix: Add .navigationDestination(for:) for every type used in NavigationPath

4. Wrong Container (MEDIUM)

Pattern: Wrong navigation container for the use case Search: NavigationStack in master-detail contexts (iPad apps); NavigationSplitView for linear flows Issue: Poor iPad/Mac experience, wasted screen space Fix: Use NavigationSplitView for master-detail, NavigationStack for linear flows

5. Type Safety Issues (HIGH)

Pattern: Multiple .navigationDestination with same type Search: Multiple .navigationDestination(for: with the same type parameter Issue: Undefined behavior — wrong view shown, navigation breaks Fix: Use unique types or wrapper enum with associated values

6. Tab/Nav Integration (LOW)

Pattern: TabView nesting NavigationStack without an iPad sidebar intent Search: TabView containing NavigationStack and no .tabViewStyle(.sidebarAdaptable) Issue: Only a gap if the app intends a sidebar on iPad — a plain tab bar is a valid design Fix: If a sidebar is intended, add .tabViewStyle(.sidebarAdaptable)

7. Missing State Preservation (HIGH)

Pattern: No persistence for navigation path Search: Absence of @SceneStorage for navigation path data Issue: User loses their place when app is terminated by system Fix: Store NavigationPath data in @SceneStorage with Codable encoding

8. Deprecated NavigationLink APIs (MEDIUM)

Pattern: Using deprecated iOS 16+ APIs Search: isActive: or tag: — the deprecated initializer labels; Read each match and keep only the ones whose enclosing call is a NavigationLink. A line-oriented NavigationLink.* pattern misses calls that swift-format wraps across lines. Issue: Deprecated, will be removed in future iOS versions Fix: Migrate to NavigationStack + NavigationPath pattern

9. Coordinator Pattern Violations (LOW)

Pattern: Navigation logic scattered across views Search: Multiple files with path.append(, navigation logic in leaf views Issue: Hard to reason about navigation flow, difficult to add deep links Fix: Centralize in coordinator/router

10. Missing NavigationSplitViewVisibility (LOW)

Pattern: No explicit sidebar visibility management Search: NavigationSplitView without @State var visibility: NavigationSplitViewVisibility Issue: Can't programmatically control sidebar visibility Fix: Add @State var visibility: NavigationSplitViewVisibility and bind

Phase 3: Reason About Navigation Completeness

Using the Navigation Architecture Map from Phase 1 and your domain knowledge, check for what's missing — not just what's wrong.

QuestionWhat it detectsWhy it matters
Are there .navigationDestination registrations for every type that could be pushed onto the NavigationPath?Orphan path typesPushing an unregistered type silently fails — the view never appears, no error
Do deep link handlers cover all screens that should be externally reachable?Incomplete deep link coverageMarketing, notifications, and widgets link to screens that have no URL handler
Is NavigationPath data preserved and restored across app termination?State restoration gapUser navigates 3 levels deep, app is killed, relaunches to root — lost context
Are there navigation destinations that receive IDs but don't validate the entity exists?Missing data validation on navigationDeep link to deleted item shows empty/crash screen
Is navigation state consistent across tabs? (e.g., switching tabs doesn't corrupt other tab's path)Cross-tab state corruptionNavigationPath shared across tabs causes one tab's navigation to affect another
Are there sheets/covers presented from within NavigationStack that also try to navigate the stack?Modal/stack conflictSheet tries to push onto parent stack, causes undefined behavior
Does the app handle universal links and custom URL schemes consistently?Inconsistent link handlingUniversal links work but custom scheme doesn't, or vice versa

Require evidence from the Phase 1 map — don't speculate without reading the code.

Phase 4: Cross-Reference Findings

Bump severity for these combinations:

Finding A+ Finding B= CompoundSeverity
Missing NavigationPathDeep link handler existsDeep links received but can't navigate programmaticallyCRITICAL
Orphan .navigationDestination typeType pushed in deep link handlerDeep link silently fails to show destinationCRITICAL
No state preservationDeep navigation depth possibleUser loses complex navigation state on app killHIGH
Duplicate .navigationDestination typeUsed in different tabsType collision causes wrong tab's view to appearHIGH
Deprecated NavigationLinkIn core navigation flowMigration debt in critical pathHIGH
Wrong container (Stack on iPad)Deep link to detail viewDeep link shows phone-style navigation on iPadMEDIUM
Modal presented from NavigationStackModal tries to push onto stackModal/stack navigation conflictHIGH

Also note overlaps with other auditors:

  • Missing deep link validation → compound with ux-flow-auditor (dead end after deep link)
  • Navigation state not preserved → compound with ux-flow-auditor (lost user context)
  • NavigationPath recreation in body → compound with swiftui-performance-analyzer

Phase 5: Navigation Health Score

markdown
## Navigation Health Score

| Metric | Value |
|--------|-------|
| Path coverage | N NavigationStacks, M with NavigationPath binding (Z%) |
| Destination coverage | N types pushed, M registered with .navigationDestination (Z%) |
| Deep link coverage | N screens, M reachable via deep link (Z%) |
| State preservation | NavigationPath persisted: yes/no |
| Deprecated APIs | N deprecated NavigationLink usages |
| Container correctness | NavigationStack/SplitView used appropriately: yes/no |
| **Health** | **SOLID / FRAGILE / BROKEN** |

Scoring:

  • SOLID: No CRITICAL issues, all destination types registered, deep links handled, state preserved, 0 deprecated APIs
  • FRAGILE: No CRITICAL issues, but missing state preservation, or incomplete destination registration, or some deprecated APIs
  • BROKEN: Any CRITICAL issues (deep link gaps, type collisions), or destination types pushed but never registered

Output Format

markdown
# SwiftUI Navigation Audit Results

## Navigation Architecture Map
[8-12 line summary from Phase 1]

## Summary
- CRITICAL: [N] issues
- HIGH: [N] issues
- MEDIUM: [N] issues
- LOW: [N] issues
- Phase 2 (anti-pattern detection): [N] issues
- Phase 3 (completeness reasoning): [N] issues
- Phase 4 (compound findings): [N] issues

## Navigation Health Score
[Phase 5 table]

## Issues by Severity

### [SEVERITY] [Category]: [Description]
**File**: path/to/file.swift:line
**Phase**: [2: Detection | 3: Completeness | 4: Compound]
**Issue**: What's wrong or missing
**Impact**: What users experience
**Fix**: Code example showing the fix
**Cross-Auditor Notes**: [if overlapping with another auditor]

## Recommendations
1. [Immediate actions — CRITICAL fixes (deep link gaps, type collisions)]
2. [Short-term — HIGH fixes (state preservation, missing destinations)]
3. [Long-term — architectural improvements from Phase 3 findings]

Output Limits

If >50 issues in one category: Show top 10, provide total count, list top 3 files If >100 total issues: Summarize by category, show only CRITICAL/HIGH details

False Positives (Not Issues)

  • NavigationStack without path for purely static navigation (no deep links, no programmatic nav)
  • No @SceneStorage if app doesn't support state restoration by design
  • No coordinator in small apps (over-engineering)
  • NavigationStack on iPad if truly linear flow
  • .navigationDestination types that are only used with NavigationLink (not pushed programmatically)

Related

For navigation patterns, debugging, and API reference: axiom-swiftui skill (navigation)

Invocation Examples

Prompts that should launch this agent:

Explicit command: Users can also invoke this agent directly with axiom-audit-swiftui-nav

Scope

Automatically scans SwiftUI navigation code for architecture issues - detects missing NavigationPath, deep link gaps, state restoration problems, wrong container usage, and navigation correctness issues.

الملفات المرفقة

يقرأ النموذج هذه الملفات عند الحاجة ما دامت المهارة محمّلة. وهي متاحة للقراءة ولا تُنفّذ أبدًا.

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي Axiom Audit Swiftui Nav؟

استخدم هذه المهارة عندما يذكر المستخدم مشكلات التنقل في SwiftUI، أو مشكلات الروابط العميقة، أو أخطاء استعادة الحالة، أو مراجعة بنية التنقل.

لماذا تستخدم Axiom Audit Swiftui Nav على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Axiom Audit Swiftui Nav عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Axiom Audit Swiftui Nav في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/CharlesWiltgen/Axiom/tree/main/axiom-codex/skills/axiom-audit-swiftui-nav. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Axiom Audit Swiftui Nav؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Axiom Audit Swiftui Nav؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Axiom Audit Swiftui Nav معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Axiom Audit Swiftui Nav مجانية؟

نعم. نشرها CharlesWiltgen على GitHub بموجب ترخيص MIT. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا الإخبارية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇