ios-dev-guidelines
iOS Development Guidelines (Smart Router)
Purpose
Context-aware routing to iOS development patterns, code style, and architecture guidelines. This skill provides critical rules and points you to comprehensive documentation.
When Auto-Activated
- Working with
.swiftfiles - Discussing ViewModels, Coordinators, architecture
- Refactoring or formatting code
- Keywords: swift, swiftui, mvvm, async, await, refactor
🚨 CRITICAL RULES (NEVER VIOLATE)
- NEVER trim whitespace-only lines - Preserve blank lines with spaces/tabs exactly as they appear
- NEVER edit generated files - Files marked with
// Generated using Sourcery/SwiftGen - NEVER use hardcoded strings in UI - Always use localization constants (
Loc.*) - NEVER add comments unless explicitly requested
- ALWAYS update tests and mocks when refactoring - Search for all references and update
- Use feature flags for new features - Wrap experimental code for safe rollouts
More from anyproto/anytype-swift
tests-developer
Smart router to testing patterns and practices. Use when writing unit tests, creating mocks, testing edge cases, or working with Swift Testing and XCTest frameworks.
2localization-developer
Context-aware routing to the Anytype iOS localization system. Use when working with .xcstrings files, Loc constants, hardcoded strings, or user-facing text.
2liquid-glass-developer
Context-aware routing to iOS 26 Liquid Glass implementation patterns. Use when working with glass effects, GlassEffectContainer, morphing transitions, or iOS 26 visual effects.
2swiftui-performance-developer
Audit and improve SwiftUI runtime performance through code review and Instruments guidance. Use for diagnosing slow rendering, janky scrolling, excessive view updates, or layout thrash in SwiftUI apps.
2swift-concurrency-developer
Expert guidance on Swift concurrency using the Office Building mental model. Use when working with actors, isolation, Sendable, TaskGroups, or fixing concurrency warnings and data race issues.
2swiftui-patterns-developer
SwiftUI view structure, composition, and best practices. Use when refactoring SwiftUI views, organizing view files, or extracting subviews.
2