呱呱聚合
← 返回基因库
移动/游戏

需要为 iOS/macOS…

在 Swift/iOS/macOS 项目中新增日志、分析、引导、网络、认证、付费墙、设置、持久化、CI/CD、本地化、推送、深链、测试、无障碍、Widget、Live Activity、CloudKit、缓存、分页、图片加载、订阅生命周期、增长互动、合规、调试、离线队列、导出等常见组件时,用上下文感知的代码生成器直接生成可集成代码。

被复用0 次
复用有效—
置信度55%
沉淀时间2026-09-23
🧪 尚未被验证(还没有小呱复用过的记录,不代表不好)
来自 yemaya 的小呱沉淀
GDI C 38/100

进化评分(GDI)

综合排序依据 —— 四个维度的加权结果,让你看出「为什么这条排在前面」

内在质量 55/100 ×0.35
使用度 0/100 ×0.30
口碑 50/100 ×0.20
新鲜度 60/100 ×0.15

适用场景

需要为 iOS/macOS 应用快速生成特定

解决思路

  1. 生成代码前,读取现有项目结构和 patterns。
  2. 检测 deployment targets 和 Swift version。
  3. 识别架构模式(MVVM、TCA 等)。
  4. 检查现有实现,避免冲突。
  5. 对依赖 provider 的代码使用协议架构:例如 protocol AnalyticsService { ... };class TelemetryDeckAnalytics: AnalyticsService { ... };class FirebaseAnalytics: AnalyticsService { ... }。
  6. 通过只换一行来切换 provider。
  7. 检测 iOS vs macOS 以及 App Store vs direct distribution,以生成合适代码。
  8. logging-setup:审计现有 print() 使用。
  9. logging-setup:生成 AppLogger 基础设施。
  10. logging-setup:将 print 迁移为 Logger,并设置正确的 privacy levels。
  11. analytics-setup:支持 TelemetryDeck、Firebase、Mixpanel providers。
  12. analytics-setup:提供 NoOp 实现用于 testing/privacy。
  13. analytics-setup:支持轻松切换 provider。
  14. onboarding-generator:实现 value-moment-first onboarding,让新用户尽快到达 app 承诺结果的第一感受体验。
  15. onboarding-generator:按 ready-now vs. later 分支,每屏一个决策。
  16. onboarding-generator:使用 root-swap presentation、phase-first gating、resume-safe hand-offs 接入现有功能。
  17. onboarding-generator:为 “later” 分支实现 local-notification implementation intentions。
  18. onboarding-generator:埋点 value-moment reach-rate instrumentation(仅本地,不需要 analytics SDK)。
  19. onboarding-generator:保留经典 paged/stepped welcome carousel 作为 explain-first apps 的显式 fallback。
  20. review-prompt:进行平台检测(非 App Store macOS 跳过)。
  21. review-prompt:配置可触发条件。
  22. review-prompt:实现智能时机逻辑。
  23. review-prompt:提供 Debug override 用于测试。
  24. networking-layer:定义干净的 APIClient protocol,便于 mocking/swapping。
  25. networking-layer:定义 type-safe endpoint。
  26. networking-layer:实现全面错误处理。
  27. networking-layer:实现基于 environment 的配置。
  28. auth-flow:集成 Sign in with Apple。
  29. auth-flow:集成 biometric authentication(Face ID/Touch ID)。
  30. auth-flow:使用 secure Keychain storage。
  31. auth-flow:监控 credential state。
  32. paywall-generator:实现完整 StoreKit 2 订阅 paywall。
  33. paywall-generator:加载产品、购买、恢复。
  34. paywall-generator:通过 Environment 提供 subscription status。
  35. paywall-generator:生成 paywall UI。
  36. settings-screen:用 @AppStorage 集中管理 AppSettings。
  37. settings-screen:包含 Appearance、Notifications、Account、About、Legal sections。
  38. settings-screen:跨平台支持 iOS/macOS。
  39. settings-screen:提供可复用 row components。
  40. persistence-setup:配置 SwiftData container。
  41. persistence-setup:使用 Repository pattern 提高可测试性。
  42. persistence-setup:可选 CloudKit/iCloud sync。
  43. persistence-setup:监控 sync status。
  44. persistence-setup:支持 migration。
  45. error-monitoring:支持 Sentry 和 Firebase Crashlytics。
  46. error-monitoring:提供 NoOp 实现用于 testing/privacy。
  47. error-monitoring:实现 Breadcrumbs 提供调试上下文。
  48. error-monitoring:收集匿名化 user context。
  49. error-monitoring:支持轻松切换 provider。
  50. ci-cd-setup:配置 GitHub Actions workflows(build、test、TestFlight、App Store)。
  51. ci-cd-setup:提供 Xcode Cloud scripts 和 setup guide。
  52. ci-cd-setup:配置 fastlane lanes 用于高级自动化。
  53. ci-cd-setup:管理 code signing 和 secrets。
  54. ci-cd-setup:支持 macOS notarization。
  55. localization-setup:使用 String Catalogs(iOS 16+,推荐)。
  56. localization-setup:生成 type-safe L10n enum 以提供 compile-time safety。
  57. localization-setup:处理 Pluralization 和 interpolation patterns。
  58. localization-setup:支持 RTL layout。
  59. localization-setup:提供 SwiftUI preview helpers 用于测试 locales。
  60. push-notifications:实现 registration 和 authorization flow。
  61. push-notifications:实现 UNUserNotificationCenterDelegate。
  62. push-notifications:定义带 action buttons 的 Notification categories。
  63. push-notifications:实现 type-safe payload parsing。
  64. push-notifications:支持 rich notifications 和 silent notifications。
  65. deep-linking:处理 custom URL scheme。
  66. deep-linking:使用 AASA file 支持 Universal Links。
  67. deep-linking:为 Siri 和 Shortcuts 实现 App Intents。
  68. deep-linking:定义 type-safe routes 和 navigation。
  69. deep-linking:支持 Spotlight indexing。
  70. test-generator:使用 Swift Testing(modern,iOS 16+)和 XCTest patterns。
  71. test-generator:生成 Mock object。
  72. test-generator:提供 ViewModel 和 service testing patterns。
  73. test-generator:使用 page object pattern 进行 UI testing。
  74. preview-data-generator:为 SwiftUI views 提供 canvas sample data,覆盖视觉边界情况(empty、long strings、missing、list)。
  75. preview-data-generator:提供 data-state previews(loaded/empty/loading/error)用于 UI prototyping。
  76. preview-data-generator:提供 Appearance、Dynamic Type、locale/RTL 和 device variant matrix。
  77. preview-data-generator:使用 SwiftData in-memory seeded containers;iOS 18 PreviewModifier + @Previewable。
  78. preview-data-generator:复用 test-data-factory fixtures,不要重复。
  79. accessibility-generator:实现 VoiceOver labels、hints 和 traits。
  80. accessibility-generator:支持 Dynamic Type 和 scaling。
  81. accessibility-generator:处理 Reduce Motion。
  82. accessibility-generator:提供 accessibility audit checklist。
  83. widget-generator:生成 static 和 interactive widgets(iOS 17+)。
  84. widget-generator:实现 Timeline providers。
  85. widget-generator:支持 Lock screen complications。
  86. widget-generator:定义 Widget intents 用于配置。
  87. app-icon-generator:按 Apple HIG 生成 icon design。
  88. app-icon-generator:提供 category-aware design recipes(productivity、media、dev tools 等)。
  89. app-icon-generator:生成 3 个 variants 供用户选择。
  90. app-icon-generator:自动调整到所有 required sizes(macOS + iOS)。
  91. app-icon-generator:安装到 Asset catalog 并写入正确 Contents.json。
  92. app-icon-generator:使用纯 CoreGraphics,无 external dependencies。
  93. feature-flags:实现 protocol-based service,支持 swappable providers。
  94. feature-flags:实现 local defaults 加 remote override(composite provider)。
  95. feature-flags:使用 @Observable manager 集成 SwiftUI。
  96. feature-flags:提供 Debug menu 切换 flags。
  97. live-activity-generator:定义 ActivityAttributes 和 ContentState。
  98. live-activity-generator:实现 Dynamic Island layouts(compact 和 expanded)。
  99. live-activity-generator:实现 Lock Screen presentation。
  100. live-activity-generator:通过 APNs 支持 push-to-update。
  101. live-activity-generator:管理 Activity lifecycle(start、update、end)。
  102. tipkit-generator:定义 inline 和 popover tips。
  103. tipkit-generator:实现 rule-based display logic(parameter 和 event rules)。
  104. tipkit-generator:处理 display frequency 和 invalidation。
  105. tipkit-generator:提供 testing 和 preview support。
  106. cloudkit-sync:设置 CKSyncEngine 和 delegate。
  107. cloudkit-sync:管理 Record zone。
  108. cloudkit-sync:实现 conflict resolution strategies。
  109. cloudkit-sync:支持 sharing 和 collaboration。
  110. http-cache:解析 Cache-Control header。
  111. http-cache:实现 ETag/Last-Modified conditional requests(304)。
  112. http-cache:实现 stale-while-revalidate pattern。
  113. http-cache:用 Decorator pattern 包装现有 APIClient。
  114. http-cache:使用 Network reachability 实现 offline fallback。
  115. pagination:实现 offset-based 和 cursor-based response models。
  116. pagination:实现 state machine(idle、loading、loaded、error、exhausted)。
  117. pagination:使用 @Observable PaginationManager 和 prefetch threshold。
  118. pagination:实现 searchable pagination 和 debounced query。
  119. pagination:提供 infinite scroll、load-more button 和 state views。
  120. image-loading:实现 NSCache memory cache 和 auto-eviction。
  121. image-loading:实现带 expiration 的 LRU disk cache。
  122. image-loading:使用 actor-based downloader 并做 request deduplication。
  123. image-loading:使用 ImageIO 生成 thumbnail。
  124. image-loading:提供 drop-in CachedAsyncImage SwiftUI replacement。
  125. image-loading:支持 collection prefetching。
  126. share-card:定义 ShareCardContent protocol,包含 achievement、statistics 和 quote types。
  127. share-card:使用 ImageRenderer 生成 card。
  128. share-card:提供可配置 styles(minimal、branded、statistics)。
  129. share-card:集成 ShareLink 并支持 QR code overlay。
  130. social-export:按平台格式化(Instagram、TikTok、X)。
  131. social-export:按平台处理 aspect ratio 和 resolution。
  132. social-export:支持 branding overlay 和 caption。
  133. social-export:通过 URL scheme 和 share sheet 导出。
  134. subscription-lifecycle:处理 grace period 和 billing retry。
  135. subscription-lifecycle:管理 win-back 和 promotional offer。
  136. subscription-lifecycle:通过 Transaction.updates 监控 subscription status。
  137. subscription-lifecycle:处理 upgrade/downgrade path。
  138. subscription-lifecycle:提供 subscription management dashboard UI。
  139. referral-system:生成 unique code 并防止 fraud。
  140. referral-system:通过 deep link 分享和兑换。
  141. referral-system:跟踪 referrer 和 invitee 的 reward。
  142. referral-system:提供 referral statistics dashboard。
  143. watermark-engine:实现 text、image 和 tiled watermark styles。
  144. watermark-engine:使用 CoreGraphics 渲染并支持 Retina。
  145. watermark-engine:通过 subscription 控制 watermark removal。
  146. watermark-engine:提供 SwiftUI overlay 和 ViewModifier。
  147. streak-tracker:用 SwiftData 记录 activity。
  148. streak-tracker:按 timezone-aware day boundary 计算。
  149. streak-tracker:实现 streak freeze/protection passes。
  150. streak-tracker:提供 calendar heat map 和 badge views。
  151. streak-tracker:发送 streak-at-risk notifications。
  152. milestone-celebration:使用 CAEmitterLayer confetti 并支持 Reduce Motion。
  153. milestone-celebration:通过 threshold detection 跟踪 milestones。
  154. milestone-celebration:提供 badge collection grid 和 progress rings。
  155. milestone-celebration:集成 Haptic feedback。
  156. whats-new:用 UserDefaults 跟踪 version。
  157. whats-new:用 Paged TabView 展示 feature highlights。
  158. whats-new:提供 local 和 remote content providers。
  159. whats-new:版本变化时自动以 sheet 呈现。
  160. lapsed-user:配置 inactivity thresholds(7/14/30 days)。
  161. lapsed-user:按 lapse category 提供个性化 return experience。
  162. lapsed-user:为 lapsed subscribers 提供 win-back offer screen。
  163. lapsed-user:用 ViewModifier 在 app launch 时自动检测。
  164. usage-insights:用 SwiftData 记录 events 并 batch writes。
  165. usage-insights:计算 insight(streaks、top categories、trends)。
  166. usage-insights:提供集成 Swift Charts 的 dashboard。
  167. usage-insights:生成可分享 recap cards(Spotify Wrapped-style)。
  168. variable-rewards:实现 weighted probability reward pools 和 rarity tiers。
  169. variable-rewards:实现 daily spin wheel 和 mystery box animations。
  170. variable-rewards:设置 daily/weekly caps 以实现 ethical engagement。
  171. variable-rewards:提供 reward history 和 notification views。
  172. consent-flow:实现 granular per-category consent(analytics、marketing 等)。
  173. consent-flow:集成 ATT(App Tracking Transparency)。
  174. consent-flow:记录 consent audit logging 以满足 compliance。
  175. consent-flow:提供 banner 和 preferences UI,且 equal prominence。
  176. account-deletion:实现 multi-step confirmation 和 re-authentication。
  177. account-deletion:删除前提供 data export。
  178. account-deletion:提供 grace period 和 cancellation option。
  179. account-deletion:清理 Keychain 并撤销 Sign in with Apple。
  180. permission-priming:实现 unified permission manager(notifications、camera、location 等)。
  181. permission-priming:在系统弹窗前显示 benefit-focused priming UI。
  182. permission-priming:跟踪 permission status 并提供 Settings redirect。
  183. permission-priming:实现 gated content ViewModifier。
  184. force-update:通过 Remote JSON 和 App Store lookup 检查版本。
  185. force-update:实现 hard block(required)和 soft prompt(recommended)。
  186. force-update:配置 check frequency。
  187. force-update:跟踪 soft updates 的 skip。
  188. state-restoration:持久化 NavigationPath、tab selection、scroll position。
  189. state-restoration:实现 Codable AppState 和 debounced auto-save。
  190. state-restoration:实现 Form draft manager 和 auto-save。
  191. state-restoration:支持 @SceneStorage 和 file-based storage。
  192. debug-menu:仅在 DEBUG builds 提供 debug menu。
  193. debug-menu:提供 feature flag toggles 和 environment switcher。
  194. debug-menu:实现 network request logger 和 circular buffer。
  195. debug-menu:支持 cache clearing 和 diagnostic info export。
  196. debug-menu:支持 shake gesture 和 hidden tap triggers。
  197. offline-queue:实现 actor-based queue manager,支持 FIFO + priority。
  198. offline-queue:用 file-based persistence 保存 queued operations。
  199. offline-queue:实现 exponential backoff with jitter retry policy。
  200. offline-queue:用 NWPathMonitor 检测 connectivity。
  201. offline-queue:实现 offline status banner ViewModifier。
  202. feedback-form:实现 category-based feedback(bug、feature、praise)。
  203. feedback-form:支持 screenshot capture 和 annotation。
  204. feedback-form:按 sentiment routing(happy → App Store,unhappy → support)。
  205. feedback-form:支持 email 和 webhook submission。
  206. announcement-banner:按 priority 显示 banner(info、warning、promotion)。
  207. announcement-banner:提供 local 和 remote announcement providers。
  208. announcement-banner:处理 deep link 和 URL action。
  209. announcement-banner:支持 scheduled display 和 date ranges。
  210. quick-win-session:提供 step-by-step task guidance。
  211. quick-win-session:用 cutout circles 显示 Spotlight hint overlays。
  212. quick-win-session:完成时庆祝并显示 timing stats。
  213. quick-win-session:用 ViewModifier 检测 new user。
  214. spotlight-indexing:为任意 model 实现 SpotlightIndexable protocol。
  215. spotlight-indexing:使用 actor-based batch index manager。
  216. spotlight-indexing:提供 fluent attribute builder API。
  217. spotlight-indexing:支持 search continuation 和 Siri suggestions。
  218. app-clip:解析 Invocation URL 并路由。
  219. app-clip:定义 Experience protocol 和 concrete implementations。
  220. app-clip:为 physical invocations 提供 location confirmation。
  221. app-clip:使用 SKOverlay 提示完整 app 升级。
  222. app-clip:通过 App Group 共享数据。
  223. screenshot-automation:用 XCUITest 截图并导航。
  224. screenshot-automation:用 CoreText 添加 localized caption overlays。
  225. screenshot-automation:合成 device frame。
  226. screenshot-automation:批量导出 multi-locale、multi-device。
  227. background-processing:设置 BGAppRefreshTask 和 BGProcessingTask。
  228. background-processing:使用 Background URLSession 下载/上传。
  229. background-processing:处理 silent push notification。
  230. background-processing:实现 energy-efficient scheduling strategies。
  231. app-extensions:实现 Share Extension 并处理 content。
  232. app-extensions:实现 Action Extension 进行 in-place content manipulation。
  233. app-extensions:用 UIInputViewController 实现 Keyboard Extension。
  234. app-extensions:实现 Safari Web Extension 和 message handler。
  235. app-extensions:在 app 和 extension 之间使用 App Group 共享数据。
  236. data-export:实现 protocol-based multi-format export(DataExportable)。
  237. data-export:生成符合 RFC 4180 的 CSV。
  238. data-export:用 UIGraphicsPDFRenderer 生成 PDF report。
  239. data-export:用 UTType-based parsing 导入文件。
  240. data-export:满足 GDPR Article 20 data portability compliance。
  241. 当用户请求组件时,确定并读取相关 skill 的 SKILL.md。
  242. 运行 pre-generation checks(conflicts、deployment target 等)。
  243. 通过 AskUserQuestion 询问 configuration questions。
  244. 从 templates 生成代码,并适配项目上下文。
  245. 提供 integration instructions。
  246. 生成后提供 Files created(含 full paths)。
  247. 生成后提供 Integration steps(如何接入现有代码)。
  248. 生成后提供 Required capabilities(entitlements、dependencies)。
  249. 生成后提供 Testing instructions(如何验证可用)。

适用边界 · 注意事项