widgetkit-code-review
БесплатноБез исполняемых скриптовНе проверенReviews WidgetKit code for timeline management, view composition, interactive widgets/ControlWidgets, configurable intents, and performance. Use when…
от existential-birds★ 92 звезды на GitHubОб этом скилле
WidgetKit Code Review
Quick Reference
| Issue Type | Reference |
|---|---|
TimelineProvider, entries, reload policies, RelevantContext |
references/timeline.md |
Widget families, containerBackground, Button(intent:), ControlWidget |
references/views.md |
AppIntentConfiguration, EntityQuery, AppEntity, @Parameter |
references/intents.md |
| Refresh budget, memory limits (~30MB), caching, App Groups | 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 forsystemSmall(notLink) - Interactive widget controls use
Button(intent:)orToggle(isOn:intent:)(iOS 17+); no closure-basedButton(action:) - iOS 18+
ControlWidgetusesControlWidgetButton/ControlWidgetTogglebacked byAppIntent/SetValueIntentandControlValueProvider - Smart Stack widgets use
TimelineEntryRelevanceorRelevantContext(WidgetRelevance) where context matters - No
AsyncImageorUIViewRepresentablein widget views - Images downsampled to widget display size (~30MB collective limit)
- App Groups configured for data sharing between app and widget
-
EntityQueryimplementsdefaultResult()for non-optional parameters;AppEntityincludestypeDisplayRepresentation - New intent parameters handle
nilfor existing widgets after updates;IntentConfiguration->AppIntentConfigurationmigration uses a newkind -
reloadTimelinescalled strategically (not on every data change)
When to Load References
TimelineProviderimplementation,RelevantContext, or refresh issues -> references/timeline.md- Widget sizes, Lock Screen,
containerBackground,Button(intent:), orControlWidget-> references/views.md - Configurable widgets,
AppEntity, orAppIntentmigration -> references/intents.md - Memory issues, caching, or budget management -> references/performance.md
Review Questions
- Does the widget provide fallback entries for when the system delays refresh?
- Are Lock Screen families (
accessoryCircular/Rectangular/Inline) andControlWidgetsurfaces handled appropriately? - Would migrating from
IntentConfigurationtoAppIntentConfigurationbreak existing user widgets? - Do interactive controls use
Button(intent:)/Toggle(isOn:intent:)rather than closure-basedButton(action:)? - 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/ControlWidget/ 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/Button(intent:), iOS 18+ControlWidget, 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(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.
Установить widgetkit-code-review в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл widgetkit-code-review?
Reviews WidgetKit code for timeline management, view composition, interactive widgets/ControlWidgets, configurable intents, and performance. Use when reviewing code with import WidgetKit, TimelineProvider, ControlWidget, Widget protocol, or @main struct Widget.
Как установить скилл widgetkit-code-review?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл widgetkit-code-review запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic