analytics-developer
Analytics Developer (Smart Router)
Purpose
Context-aware routing to the Anytype iOS analytics system. Helps you add analytics events, track user routes, and maintain consistent analytics patterns.
When Auto-Activated
- Working with analytics events or AnytypeAnalytics
- Adding route tracking or event properties
- Modifying
AnalyticsConstants.swiftorAnytypeAnalytics+Events.swift - Keywords: analytics, route tracking, logEvent, AnytypeAnalytics, AnalyticsConstants
🚨 CRITICAL RULES (NEVER VIOLATE)
- ALWAYS define route enums in AnalyticsConstants.swift - Never hardcode route strings
- ALWAYS use existing property keys - Use
AnalyticsEventsPropertiesKey.* - NEVER use string literals for routes - Use typed enums with
.rawValue - ALWAYS use
.compactMapValues { $0 }for optional properties - Removes nil values - ALWAYS track route context - Know how users reached a feature
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.
2ios-dev-guidelines
Context-aware routing to Swift/iOS development patterns, architecture, and best practices. Use when working with .swift files, ViewModels, Coordinators, refactoring, or discussing Swift/SwiftUI patterns.
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.
2