返回顶部
w

widgetkit-code-review

Reviews WidgetKit code for timeline management, view composition, configurable intents, and performance. Use when reviewing code with import WidgetKit, TimelineProvider, Widget protocol, or @main struct Widget.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.2.0
安全检测
已通过
96
下载量
0
收藏
概述
安装方式
版本历史

widgetkit-code-review

# WidgetKit Code Review ## Quick Reference | Issue Type | Reference | |------------|-----------| | TimelineProvider, entries, reload policies | [references/timeline.md](references/timeline.md) | | Widget families, containerBackground, deep linking | [references/views.md](references/views.md) | | AppIntentConfiguration, EntityQuery, @Parameter | [references/intents.md](references/intents.md) | | Refresh budget, memory limits, caching | [references/performance.md](references/performance.md) | ## Review Checklist - [ ] `placeholder(in:)` returns immediately without async work - [ ] Timeline entries spaced at least 5 minutes apart - [ ] `getSnapshot` checks `context.isPreview` for gallery previews - [ ] `containerBackground(for:)` used for iOS 17+ compatibility - [ ] `widgetURL` used for systemSmall (not Link) - [ ] No Button views (use Link or widgetURL) - [ ] No AsyncImage or UIViewRepresentable in widget views - [ ] Images downsampled to widget display size (~30MB limit) - [ ] App Groups configured for data sharing between app and widget - [ ] EntityQuery implements `defaultResult()` for non-optional parameters - [ ] New intent parameters handle nil for existing widgets after updates - [ ] `reloadTimelines` called strategically (not on every data change) ## When to Load References - TimelineProvider implementation or refresh issues -> timeline.md - Widget sizes, Lock Screen, containerBackground -> views.md - Configurable widgets, AppIntent migration -> intents.md - Memory issues, caching, budget management -> performance.md ## Review Questions 1. Does the widget provide fallback entries for when system delays refresh? 2. Are Lock Screen families (accessoryCircular/Rectangular/Inline) handled appropriately? 3. Would migrating from IntentConfiguration break existing user widgets? 4. Is timeline populated with future entries or does it rely on frequent refreshes? 5. Is data cached via App Groups for widget access?

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 widgetkit-code-review-1776098949 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 widgetkit-code-review-1776098949 技能

通过命令行安装

skillhub install widgetkit-code-review-1776098949

下载 Zip 包

⬇ 下载 widgetkit-code-review v1.2.0

文件大小: 8.57 KB | 发布时间: 2026-4-14 14:39

v1.2.0 最新 2026-4-14 14:39
- Added comprehensive SKILL.md with quick references, review checklists, and review questions for WidgetKit code review.
- Now includes direct links to guides for timeline management, view composition, configuration intents, and performance considerations.
- Introduced practical checklists and targeted questions to improve widget code review accuracy and completeness.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部