← 返回 Skills 市场
Widgetkit Code Review
作者
Kevin Anderson
· GitHub ↗
· v1.2.1
· MIT-0
145
总下载
0
收藏
1
当前安装
2
版本数
在 OpenClaw 中安装
/install widgetkit-code-review
功能描述
Reviews WidgetKit code for timeline management, view composition, configurable intents, and performance. Use when reviewing code with import WidgetKit, Timel...
使用说明 (SKILL.md)
WidgetKit Code Review
Quick Reference
| Issue Type | Reference |
|---|---|
| TimelineProvider, entries, reload policies | references/timeline.md |
| Widget families, containerBackground, deep linking | references/views.md |
| AppIntentConfiguration, EntityQuery, @Parameter | references/intents.md |
| Refresh budget, memory limits, caching | references/performance.md |
Review Checklist
-
placeholder(in:)returns immediately without async work - Timeline entries spaced at least 5 minutes apart
-
getSnapshotcheckscontext.isPreviewfor gallery previews -
containerBackground(for:)used for iOS 17+ compatibility -
widgetURLused 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
-
reloadTimelinescalled 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
- Does the widget provide fallback entries for when system delays refresh?
- Are Lock Screen families (accessoryCircular/Rectangular/Inline) handled appropriately?
- Would migrating from IntentConfiguration break existing user widgets?
- Is timeline populated with future entries or does it rely on frequent refreshes?
- Is data cached via App Groups for widget access?
Hard gates (before reporting)
Complete in order for each finding you intend to report. Do not advance until the pass condition is satisfied.
- Location artifact — The finding includes
[FILE:LINE](or a line range) copied from the current file contents; the path resolves in this repo. - Scope read — You read the full surrounding implementation: the
TimelineProvider(includingplaceholder,getSnapshot, andgetTimelinewhen relevant), the@mainWidget/ widget bundle, or the configurable widget’sAppIntentConfiguration/ intent types—not only a diff hunk or snippet. - Platform or system claim (only if the finding depends on refresh budget, ~30MB memory guidance, Lock Screen accessory families, iOS 17+
containerBackground, App Groups data sharing, or migration fromIntentConfigurationtoAppIntentConfiguration) — You name one concrete artifact you inspected (for example.entitlements/ App Group id in project,WidgetFamilyhandling in source,IPHONEOS_DEPLOYMENT_TARGET, or the exact reference subsection you used) or you drop or downgrade the finding to an open question. - Protocol — Pre-report steps in review-verification-protocol are satisfied for this item (no finding if they are not).
Use the issue format [FILE:LINE] ISSUE_TITLE for each reported finding. Hard gate 4 is the full pre-report checklist for this skill’s review type.
安全使用建议
This skill is instruction-only and appears coherent for doing WidgetKit code reviews. Before using it, be aware that its hard-gate workflow requires the agent to read repository files (source files, entitlements, project settings) and include [FILE:LINE] snippets in findings — so do not run it on repos that contain secrets or credentials you don't want exposed. If you want extra caution, run reviews locally or sanitize sensitive files (keeps secrets out of source) before invoking the skill. If you need the agent to avoid copying code fragments verbatim, consider instructing it to redact or summarize findings instead.
能力评估
Purpose & Capability
Name and description match the instructions and reference material: all requirements are purely documentation/checklist-driven for WidgetKit reviews. No unrelated env vars, binaries, or installs are requested.
Instruction Scope
SKILL.md stays within the scope of source-code review: it requires reading TimelineProvider/@main Widget/AppIntentConfiguration implementations and related project artifacts (e.g., .entitlements, deployment target). The 'hard gates' require file:line artifacts from the repo and full-context reads, which is expected for rigorous code review but means the agent will inspect repository files and include code-location snippets in findings.
Install Mechanism
No install spec or code files are present (instruction-only). Nothing is downloaded or written to disk by the skill itself.
Credentials
The skill requests no environment variables, credentials, or config paths. The instructions reference project artifacts (entitlements, App Group ids, deployment target) which are appropriate and proportional to the WidgetKit review purpose.
Persistence & Privilege
always:false and default invocation settings are used. The skill does not request permanent presence or elevated privileges and does not modify other skills or system-wide agent settings.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install widgetkit-code-review - 安装完成后,直接呼叫该 Skill 的名称或使用
/widgetkit-code-review触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.2.1
- Added a new "Hard gates" section outlining step-by-step mandatory review protocols before reporting any findings.
- Clarified that each finding must specify a concrete source location and context, and reference artifacts when platform-specific claims are made.
- Incorporated explicit pre-report verification steps based on the review-verification-protocol.
- Updated guidance to require specific issue formatting and adherence to the protocol for consistent, high-quality reporting.
v1.2.0
- 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.
元数据
常见问题
Widgetkit Code Review 是什么?
Reviews WidgetKit code for timeline management, view composition, configurable intents, and performance. Use when reviewing code with import WidgetKit, Timel... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 145 次。
如何安装 Widgetkit Code Review?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install widgetkit-code-review」即可一键安装,无需额外配置。
Widgetkit Code Review 是免费的吗?
是的,Widgetkit Code Review 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Widgetkit Code Review 支持哪些平台?
Widgetkit Code Review 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Widgetkit Code Review?
由 Kevin Anderson(@anderskev)开发并维护,当前版本 v1.2.1。
推荐 Skills