thiennc-tesoglobal/ios-skills/widgetkit
Claude Code and agent skill by thiennc-tesoglobal/ios-skills
- community
Checking that the SKILL.md file is still in the repository.
Builds or reviews WidgetKit widgets and controls for Home Screen, Lock Screen, StandBy, CarPlay, and Control Center. Use for timelines, App Intent configuration, interactive controls, push reloads, refresh budgets, deep links, Smart Stack relevance, rendering, extensions, and App Groups.
Install
npx vskill@latest install thiennc-tesoglobal/ios-skills/widgetkitSKILL.md
The same SKILL.md was published earlier as thienqo/ios-skills/widgetkit.
WidgetKit
Build glanceable Home Screen widgets, Lock Screen complications, Control Center controls, and StandBy or CarPlay widgets using WidgetKit. Targets Swift 6.4 / iOS 26+.
Contents
- Extension Architecture
- Widget Families and Surfaces
- Timeline Management and Reload Budgets
- Interactive Controls and Intent Handoff
- Route by Task
- Common Mistakes
- Review Checklist
- References
Extension Architecture
- Separate extension target: Widgets run in an out-of-process widget extension.
- Shared storage with App Groups: Use
UserDefaults(suiteName: "group.com.example.app")or shared container directories to share data between the main app and the widget. - Widget Bundle: Group all widgets, live activities, and controls in a single
@mainWidgetBundle.
Widget Families and Surfaces
| Surface | Supported Families | Configuration | Key API | |
|---|---|---|---|---|
| Home Screen | .systemSmall, .systemMedium, .systemLarge, .systemExtraLarge | AppIntentConfiguration | containerBackground(for:) | |
| Lock Screen | .accessoryCircular, .accessoryRectangular, .accessoryInline | StaticConfiguration | Monochrome / accented styling | |
| StandBy | .systemSmall, .systemMedium | Same as Home Screen | Night mode / red tint adaptation | |
| Control Center | ControlWidget (buttons & toggles) | StaticControlConfiguration | ControlWidgetButton, ControlWidgetToggle |
Timeline Management and Reload Budgets
Timelines provide entries into the future:
.atEnd: Requests a new timeline after the last entry date passes..after(Date): Schedules a reload at a specific future timestamp..never: Never reloads automatically; relies on app foreground reloads or push notifications.
[!IMPORTANT]The system enforces a daily reload budget (typically 40-70 reloads per day). Do not schedule sub-minute reloads with.after. For urgent real-time state, push remote updates viapush-notificationsor useactivitykitLive Activities.
Interactive Controls and Intent Handoff
Widgets support interactive buttons and toggles:
- Use
Button(intent:)andToggle(isOn:intent:)conforming toAppIntent. - Route detailed intent modeling and parameter resolution to
app-intents. - Route Dynamic Island and Lock Screen real-time progress to
activitykit.
Route by Task
- For timeline provider setups, deep link handling (
widgetURL), and configurable intents, read Timelines, Configuration, and Deep Links. - For Live Activity registration in widget bundles and push-to-update tokens, read Live Activity Presentation and Push.
- For memory budget limits, container backgrounds, and relevance entries for Smart Stacks, read Performance, Setup, and Lifecycle.
Common Mistakes
- Performing network requests or expensive computations inside the SwiftUI widget view instead of the
TimelineProvider. - Hardcoding views without
.containerBackground(for: .widget), breaking iOS 17+ StandBy and Lock Screen rendering. - Scheduling timeline reloads every few seconds, rapidly exhausting the daily reload budget.
- Forgetting App Group entitlement when reading data stored by the main app.
- Attempting to display videos, web views, or complex continuous animations in widget views.
Review Checklist
- [ ] App Group configured on both app and widget extension targets
- [ ] Timeline entries include future dates with appropriate reload policy (
.atEnd,.after) - [ ] Widget views support all declared
supportedFamilies - [ ]
.containerBackgroundapplied to all widget content views - [ ] Accessory families designed for high-contrast, monochrome display
- [ ] Interactive controls trigger
AppIntentwithout launching the main app unnecessarily - [ ] Daily reload budget respected; urgent changes pushed via APNs
References
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/widgetkit/SKILL.md
Popularity
- Repository stars
- 3
- 7-day trend score
- 7
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/thiennc-tesoglobal/ios-skills/widgetkit)