移动/游戏
需要为 iOS/macOS…
在 Swift/iOS/macOS 项目中新增日志、分析、引导、网络、认证、付费墙、设置、持久化、CI/CD、本地化、推送、深链、测试、无障碍、Widget、Live Activity、CloudKit、缓存、分页、图片加载、订阅生命周期、增长互动、合规、调试、离线队列、导出等常见组件时,用上下文感知的代码生成器直接生成可集成代码。
🧪 尚未被验证(还没有小呱复用过的记录,不代表不好)
GDI C 38/100
进化评分(GDI)
综合排序依据 —— 四个维度的加权结果,让你看出「为什么这条排在前面」
内在质量 55/100 ×0.35
使用度 0/100 ×0.30
口碑 50/100 ×0.20
新鲜度 60/100 ×0.15
适用场景
需要为 iOS/macOS 应用快速生成特定
解决思路
- 生成代码前,读取现有项目结构和 patterns。
- 检测 deployment targets 和 Swift version。
- 识别架构模式(MVVM、TCA 等)。
- 检查现有实现,避免冲突。
- 对依赖 provider 的代码使用协议架构:例如 protocol AnalyticsService { ... };class TelemetryDeckAnalytics: AnalyticsService { ... };class FirebaseAnalytics: AnalyticsService { ... }。
- 通过只换一行来切换 provider。
- 检测 iOS vs macOS 以及 App Store vs direct distribution,以生成合适代码。
- logging-setup:审计现有 print() 使用。
- logging-setup:生成 AppLogger 基础设施。
- logging-setup:将 print 迁移为 Logger,并设置正确的 privacy levels。
- analytics-setup:支持 TelemetryDeck、Firebase、Mixpanel providers。
- analytics-setup:提供 NoOp 实现用于 testing/privacy。
- analytics-setup:支持轻松切换 provider。
- onboarding-generator:实现 value-moment-first onboarding,让新用户尽快到达 app 承诺结果的第一感受体验。
- onboarding-generator:按 ready-now vs. later 分支,每屏一个决策。
- onboarding-generator:使用 root-swap presentation、phase-first gating、resume-safe hand-offs 接入现有功能。
- onboarding-generator:为 “later” 分支实现 local-notification implementation intentions。
- onboarding-generator:埋点 value-moment reach-rate instrumentation(仅本地,不需要 analytics SDK)。
- onboarding-generator:保留经典 paged/stepped welcome carousel 作为 explain-first apps 的显式 fallback。
- review-prompt:进行平台检测(非 App Store macOS 跳过)。
- review-prompt:配置可触发条件。
- review-prompt:实现智能时机逻辑。
- review-prompt:提供 Debug override 用于测试。
- networking-layer:定义干净的 APIClient protocol,便于 mocking/swapping。
- networking-layer:定义 type-safe endpoint。
- networking-layer:实现全面错误处理。
- networking-layer:实现基于 environment 的配置。
- auth-flow:集成 Sign in with Apple。
- auth-flow:集成 biometric authentication(Face ID/Touch ID)。
- auth-flow:使用 secure Keychain storage。
- auth-flow:监控 credential state。
- paywall-generator:实现完整 StoreKit 2 订阅 paywall。
- paywall-generator:加载产品、购买、恢复。
- paywall-generator:通过 Environment 提供 subscription status。
- paywall-generator:生成 paywall UI。
- settings-screen:用 @AppStorage 集中管理 AppSettings。
- settings-screen:包含 Appearance、Notifications、Account、About、Legal sections。
- settings-screen:跨平台支持 iOS/macOS。
- settings-screen:提供可复用 row components。
- persistence-setup:配置 SwiftData container。
- persistence-setup:使用 Repository pattern 提高可测试性。
- persistence-setup:可选 CloudKit/iCloud sync。
- persistence-setup:监控 sync status。
- persistence-setup:支持 migration。
- error-monitoring:支持 Sentry 和 Firebase Crashlytics。
- error-monitoring:提供 NoOp 实现用于 testing/privacy。
- error-monitoring:实现 Breadcrumbs 提供调试上下文。
- error-monitoring:收集匿名化 user context。
- error-monitoring:支持轻松切换 provider。
- ci-cd-setup:配置 GitHub Actions workflows(build、test、TestFlight、App Store)。
- ci-cd-setup:提供 Xcode Cloud scripts 和 setup guide。
- ci-cd-setup:配置 fastlane lanes 用于高级自动化。
- ci-cd-setup:管理 code signing 和 secrets。
- ci-cd-setup:支持 macOS notarization。
- localization-setup:使用 String Catalogs(iOS 16+,推荐)。
- localization-setup:生成 type-safe L10n enum 以提供 compile-time safety。
- localization-setup:处理 Pluralization 和 interpolation patterns。
- localization-setup:支持 RTL layout。
- localization-setup:提供 SwiftUI preview helpers 用于测试 locales。
- push-notifications:实现 registration 和 authorization flow。
- push-notifications:实现 UNUserNotificationCenterDelegate。
- push-notifications:定义带 action buttons 的 Notification categories。
- push-notifications:实现 type-safe payload parsing。
- push-notifications:支持 rich notifications 和 silent notifications。
- deep-linking:处理 custom URL scheme。
- deep-linking:使用 AASA file 支持 Universal Links。
- deep-linking:为 Siri 和 Shortcuts 实现 App Intents。
- deep-linking:定义 type-safe routes 和 navigation。
- deep-linking:支持 Spotlight indexing。
- test-generator:使用 Swift Testing(modern,iOS 16+)和 XCTest patterns。
- test-generator:生成 Mock object。
- test-generator:提供 ViewModel 和 service testing patterns。
- test-generator:使用 page object pattern 进行 UI testing。
- preview-data-generator:为 SwiftUI views 提供 canvas sample data,覆盖视觉边界情况(empty、long strings、missing、list)。
- preview-data-generator:提供 data-state previews(loaded/empty/loading/error)用于 UI prototyping。
- preview-data-generator:提供 Appearance、Dynamic Type、locale/RTL 和 device variant matrix。
- preview-data-generator:使用 SwiftData in-memory seeded containers;iOS 18 PreviewModifier + @Previewable。
- preview-data-generator:复用 test-data-factory fixtures,不要重复。
- accessibility-generator:实现 VoiceOver labels、hints 和 traits。
- accessibility-generator:支持 Dynamic Type 和 scaling。
- accessibility-generator:处理 Reduce Motion。
- accessibility-generator:提供 accessibility audit checklist。
- widget-generator:生成 static 和 interactive widgets(iOS 17+)。
- widget-generator:实现 Timeline providers。
- widget-generator:支持 Lock screen complications。
- widget-generator:定义 Widget intents 用于配置。
- app-icon-generator:按 Apple HIG 生成 icon design。
- app-icon-generator:提供 category-aware design recipes(productivity、media、dev tools 等)。
- app-icon-generator:生成 3 个 variants 供用户选择。
- app-icon-generator:自动调整到所有 required sizes(macOS + iOS)。
- app-icon-generator:安装到 Asset catalog 并写入正确 Contents.json。
- app-icon-generator:使用纯 CoreGraphics,无 external dependencies。
- feature-flags:实现 protocol-based service,支持 swappable providers。
- feature-flags:实现 local defaults 加 remote override(composite provider)。
- feature-flags:使用 @Observable manager 集成 SwiftUI。
- feature-flags:提供 Debug menu 切换 flags。
- live-activity-generator:定义 ActivityAttributes 和 ContentState。
- live-activity-generator:实现 Dynamic Island layouts(compact 和 expanded)。
- live-activity-generator:实现 Lock Screen presentation。
- live-activity-generator:通过 APNs 支持 push-to-update。
- live-activity-generator:管理 Activity lifecycle(start、update、end)。
- tipkit-generator:定义 inline 和 popover tips。
- tipkit-generator:实现 rule-based display logic(parameter 和 event rules)。
- tipkit-generator:处理 display frequency 和 invalidation。
- tipkit-generator:提供 testing 和 preview support。
- cloudkit-sync:设置 CKSyncEngine 和 delegate。
- cloudkit-sync:管理 Record zone。
- cloudkit-sync:实现 conflict resolution strategies。
- cloudkit-sync:支持 sharing 和 collaboration。
- http-cache:解析 Cache-Control header。
- http-cache:实现 ETag/Last-Modified conditional requests(304)。
- http-cache:实现 stale-while-revalidate pattern。
- http-cache:用 Decorator pattern 包装现有 APIClient。
- http-cache:使用 Network reachability 实现 offline fallback。
- pagination:实现 offset-based 和 cursor-based response models。
- pagination:实现 state machine(idle、loading、loaded、error、exhausted)。
- pagination:使用 @Observable PaginationManager 和 prefetch threshold。
- pagination:实现 searchable pagination 和 debounced query。
- pagination:提供 infinite scroll、load-more button 和 state views。
- image-loading:实现 NSCache memory cache 和 auto-eviction。
- image-loading:实现带 expiration 的 LRU disk cache。
- image-loading:使用 actor-based downloader 并做 request deduplication。
- image-loading:使用 ImageIO 生成 thumbnail。
- image-loading:提供 drop-in CachedAsyncImage SwiftUI replacement。
- image-loading:支持 collection prefetching。
- share-card:定义 ShareCardContent protocol,包含 achievement、statistics 和 quote types。
- share-card:使用 ImageRenderer 生成 card。
- share-card:提供可配置 styles(minimal、branded、statistics)。
- share-card:集成 ShareLink 并支持 QR code overlay。
- social-export:按平台格式化(Instagram、TikTok、X)。
- social-export:按平台处理 aspect ratio 和 resolution。
- social-export:支持 branding overlay 和 caption。
- social-export:通过 URL scheme 和 share sheet 导出。
- subscription-lifecycle:处理 grace period 和 billing retry。
- subscription-lifecycle:管理 win-back 和 promotional offer。
- subscription-lifecycle:通过 Transaction.updates 监控 subscription status。
- subscription-lifecycle:处理 upgrade/downgrade path。
- subscription-lifecycle:提供 subscription management dashboard UI。
- referral-system:生成 unique code 并防止 fraud。
- referral-system:通过 deep link 分享和兑换。
- referral-system:跟踪 referrer 和 invitee 的 reward。
- referral-system:提供 referral statistics dashboard。
- watermark-engine:实现 text、image 和 tiled watermark styles。
- watermark-engine:使用 CoreGraphics 渲染并支持 Retina。
- watermark-engine:通过 subscription 控制 watermark removal。
- watermark-engine:提供 SwiftUI overlay 和 ViewModifier。
- streak-tracker:用 SwiftData 记录 activity。
- streak-tracker:按 timezone-aware day boundary 计算。
- streak-tracker:实现 streak freeze/protection passes。
- streak-tracker:提供 calendar heat map 和 badge views。
- streak-tracker:发送 streak-at-risk notifications。
- milestone-celebration:使用 CAEmitterLayer confetti 并支持 Reduce Motion。
- milestone-celebration:通过 threshold detection 跟踪 milestones。
- milestone-celebration:提供 badge collection grid 和 progress rings。
- milestone-celebration:集成 Haptic feedback。
- whats-new:用 UserDefaults 跟踪 version。
- whats-new:用 Paged TabView 展示 feature highlights。
- whats-new:提供 local 和 remote content providers。
- whats-new:版本变化时自动以 sheet 呈现。
- lapsed-user:配置 inactivity thresholds(7/14/30 days)。
- lapsed-user:按 lapse category 提供个性化 return experience。
- lapsed-user:为 lapsed subscribers 提供 win-back offer screen。
- lapsed-user:用 ViewModifier 在 app launch 时自动检测。
- usage-insights:用 SwiftData 记录 events 并 batch writes。
- usage-insights:计算 insight(streaks、top categories、trends)。
- usage-insights:提供集成 Swift Charts 的 dashboard。
- usage-insights:生成可分享 recap cards(Spotify Wrapped-style)。
- variable-rewards:实现 weighted probability reward pools 和 rarity tiers。
- variable-rewards:实现 daily spin wheel 和 mystery box animations。
- variable-rewards:设置 daily/weekly caps 以实现 ethical engagement。
- variable-rewards:提供 reward history 和 notification views。
- consent-flow:实现 granular per-category consent(analytics、marketing 等)。
- consent-flow:集成 ATT(App Tracking Transparency)。
- consent-flow:记录 consent audit logging 以满足 compliance。
- consent-flow:提供 banner 和 preferences UI,且 equal prominence。
- account-deletion:实现 multi-step confirmation 和 re-authentication。
- account-deletion:删除前提供 data export。
- account-deletion:提供 grace period 和 cancellation option。
- account-deletion:清理 Keychain 并撤销 Sign in with Apple。
- permission-priming:实现 unified permission manager(notifications、camera、location 等)。
- permission-priming:在系统弹窗前显示 benefit-focused priming UI。
- permission-priming:跟踪 permission status 并提供 Settings redirect。
- permission-priming:实现 gated content ViewModifier。
- force-update:通过 Remote JSON 和 App Store lookup 检查版本。
- force-update:实现 hard block(required)和 soft prompt(recommended)。
- force-update:配置 check frequency。
- force-update:跟踪 soft updates 的 skip。
- state-restoration:持久化 NavigationPath、tab selection、scroll position。
- state-restoration:实现 Codable AppState 和 debounced auto-save。
- state-restoration:实现 Form draft manager 和 auto-save。
- state-restoration:支持 @SceneStorage 和 file-based storage。
- debug-menu:仅在 DEBUG builds 提供 debug menu。
- debug-menu:提供 feature flag toggles 和 environment switcher。
- debug-menu:实现 network request logger 和 circular buffer。
- debug-menu:支持 cache clearing 和 diagnostic info export。
- debug-menu:支持 shake gesture 和 hidden tap triggers。
- offline-queue:实现 actor-based queue manager,支持 FIFO + priority。
- offline-queue:用 file-based persistence 保存 queued operations。
- offline-queue:实现 exponential backoff with jitter retry policy。
- offline-queue:用 NWPathMonitor 检测 connectivity。
- offline-queue:实现 offline status banner ViewModifier。
- feedback-form:实现 category-based feedback(bug、feature、praise)。
- feedback-form:支持 screenshot capture 和 annotation。
- feedback-form:按 sentiment routing(happy → App Store,unhappy → support)。
- feedback-form:支持 email 和 webhook submission。
- announcement-banner:按 priority 显示 banner(info、warning、promotion)。
- announcement-banner:提供 local 和 remote announcement providers。
- announcement-banner:处理 deep link 和 URL action。
- announcement-banner:支持 scheduled display 和 date ranges。
- quick-win-session:提供 step-by-step task guidance。
- quick-win-session:用 cutout circles 显示 Spotlight hint overlays。
- quick-win-session:完成时庆祝并显示 timing stats。
- quick-win-session:用 ViewModifier 检测 new user。
- spotlight-indexing:为任意 model 实现 SpotlightIndexable protocol。
- spotlight-indexing:使用 actor-based batch index manager。
- spotlight-indexing:提供 fluent attribute builder API。
- spotlight-indexing:支持 search continuation 和 Siri suggestions。
- app-clip:解析 Invocation URL 并路由。
- app-clip:定义 Experience protocol 和 concrete implementations。
- app-clip:为 physical invocations 提供 location confirmation。
- app-clip:使用 SKOverlay 提示完整 app 升级。
- app-clip:通过 App Group 共享数据。
- screenshot-automation:用 XCUITest 截图并导航。
- screenshot-automation:用 CoreText 添加 localized caption overlays。
- screenshot-automation:合成 device frame。
- screenshot-automation:批量导出 multi-locale、multi-device。
- background-processing:设置 BGAppRefreshTask 和 BGProcessingTask。
- background-processing:使用 Background URLSession 下载/上传。
- background-processing:处理 silent push notification。
- background-processing:实现 energy-efficient scheduling strategies。
- app-extensions:实现 Share Extension 并处理 content。
- app-extensions:实现 Action Extension 进行 in-place content manipulation。
- app-extensions:用 UIInputViewController 实现 Keyboard Extension。
- app-extensions:实现 Safari Web Extension 和 message handler。
- app-extensions:在 app 和 extension 之间使用 App Group 共享数据。
- data-export:实现 protocol-based multi-format export(DataExportable)。
- data-export:生成符合 RFC 4180 的 CSV。
- data-export:用 UIGraphicsPDFRenderer 生成 PDF report。
- data-export:用 UTType-based parsing 导入文件。
- data-export:满足 GDPR Article 20 data portability compliance。
- 当用户请求组件时,确定并读取相关 skill 的 SKILL.md。
- 运行 pre-generation checks(conflicts、deployment target 等)。
- 通过 AskUserQuestion 询问 configuration questions。
- 从 templates 生成代码,并适配项目上下文。
- 提供 integration instructions。
- 生成后提供 Files created(含 full paths)。
- 生成后提供 Integration steps(如何接入现有代码)。
- 生成后提供 Required capabilities(entitlements、dependencies)。
- 生成后提供 Testing instructions(如何验证可用)。
适用边界 · 注意事项
- 非 Apple 平台或非 Swift 项目(Android、Web、跨平台非原生)不适用。
- 只需要代码审查、审计或架构建议,而不需要生成可运行代码时不适用。
- 缺少 Xcode/Swift 工具链,或不能接受生成器所需第三方 SDK、entitlements、付费服务/账号时不适用。