闲社服务运行正常AI智能体自动化平台
w

WidgetKit代码审查

技能标识: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
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

WidgetKit代码审查

WidgetKit 代码审查

快速参考

问题类型参考文档
TimelineProvider、条目、重新加载策略references/timeline.md
Widget 家族、containerBackground、深度链接
references/views.md | | AppIntentConfiguration、EntityQuery、@Parameter | references/intents.md | | 刷新预算、内存限制、缓存 | references/performance.md |

审查清单

  • - [ ] placeholder(in:) 立即返回,不执行异步操作
  • [ ] 时间线条目间隔至少5分钟
  • [ ] getSnapshot 检查 context.isPreview 以处理画廊预览
  • [ ] 使用 containerBackground(for:) 确保 iOS 17+ 兼容性
  • [ ] 对 systemSmall 使用 widgetURL(而非 Link)
  • [ ] 不使用 Button 视图(改用 Link 或 widgetURL)
  • [ ] 小组件视图中不使用 AsyncImage 或 UIViewRepresentable
  • [ ] 图片降采样至小组件显示尺寸(约30MB限制)
  • [ ] 配置 App Groups 以实现应用与小组件间的数据共享
  • [ ] EntityQuery 为可选参数实现 defaultResult()
  • [ ] 新意图参数处理更新后现有小组件的 nil 情况
  • [ ] 策略性调用 reloadTimelines(而非每次数据变更都调用)

何时加载参考文档

  • - TimelineProvider 实现或刷新问题 -> timeline.md
  • 小组件尺寸、锁屏、containerBackground -> views.md
  • 可配置小组件、AppIntent 迁移 -> intents.md
  • 内存问题、缓存、预算管理 -> performance.md

审查问题

  1. 1. 当系统延迟刷新时,小组件是否提供备用条目?
  2. 锁屏家族(accessoryCircular/Rectangular/Inline)是否得到适当处理?
  3. 从 IntentConfiguration 迁移是否会破坏现有用户小组件?
  4. 时间线是否填充了未来条目,还是依赖频繁刷新?
  5. 是否通过 App Groups 缓存数据以供小组件访问?

标签

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

下载

⬇ 下载 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.
返回顶部