Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Widgetkit

ASecurity

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.

3 stars
0 votes
0 copies
0 views
Added 9/28/2026
developmentswiftangularapiperformancedocumentation

Works with

api

Security Analysis

A100/100

Scanned 9/28/2026

Install to Claude Code

$npx -y skills add thiennc-tesoglobal/ios-skills --skill widgetkit --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Widgetkit?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Widgetkit
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/thiennc-tesoglobal-widgetkit/badge)](https://www.skillsdirectory.com/skills/thiennc-tesoglobal-widgetkit)

More formats (shields.io, HTML) on the badges page.

Files
SKILL.md
---
name: widgetkit
description: "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."
---

# WidgetKit

Build glanceable Home Screen widgets, Lock Screen complications, Control Center controls, and StandBy or CarPlay widgets using `WidgetKit`. Targets Swift 6.3 / iOS 26+.

## Contents

- [Extension Architecture](#extension-architecture)
- [Widget Families and Surfaces](#widget-families-and-surfaces)
- [Timeline Management and Reload Budgets](#timeline-management-and-reload-budgets)
- [Interactive Controls and Intent Handoff](#interactive-controls-and-intent-handoff)
- [Route by Task](#route-by-task)
- [Common Mistakes](#common-mistakes)
- [Review Checklist](#review-checklist)
- [References](#references)

## Extension Architecture

1. **Separate extension target**: Widgets run in an out-of-process widget extension.
2. **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.
3. **Widget Bundle**: Group all widgets, live activities, and controls in a single `@main` `WidgetBundle`.

```swift
@main
struct AppWidgetsBundle: WidgetBundle {
    var body: some Widget {
        OrderStatusWidget()
        QuickActionControl()
    }
}
```

## 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 via `push-notifications` or use `activitykit` Live Activities.

## Interactive Controls and Intent Handoff

Widgets support interactive buttons and toggles:
- Use `Button(intent:)` and `Toggle(isOn:intent:)` conforming to `AppIntent`.
- 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](references/timelines-configuration-and-deep-links.md).
- For Live Activity registration in widget bundles and push-to-update tokens, read [Live Activity Presentation and Push](references/live-activity-presentation-and-push.md).
- For memory budget limits, container backgrounds, and relevance entries for Smart Stacks, read [Performance, Setup, and Lifecycle](references/performance-setup-and-lifecycle.md).

## 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`
- [ ] `.containerBackground` applied to all widget content views
- [ ] Accessory families designed for high-contrast, monochrome display
- [ ] Interactive controls trigger `AppIntent` without launching the main app unnecessarily
- [ ] Daily reload budget respected; urgent changes pushed via APNs

## References

- [Timelines, configuration, and deep links](references/timelines-configuration-and-deep-links.md)
- [Live Activity presentation and push](references/live-activity-presentation-and-push.md)
- [Performance, setup, and lifecycle](references/performance-setup-and-lifecycle.md)
- [WidgetKit documentation](https://sosumi.ai/documentation/widgetkit)
- [Widget](https://sosumi.ai/documentation/swiftui/widget)
- [TimelineProvider](https://sosumi.ai/documentation/widgetkit/timelineprovider)

Attribution

thiennc-tesoglobalthiennc-tesoglobal
View sourceMore from thiennc-tesoglobal →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Browser Extension Developer

Use this skill when developing or maintaining browser extension code in the `browser/` directory, including Chrome/Firefox/Edge compatibility, content scripts, background scripts, or i18n updates.

284972 votes

Seo Optimizer

SEO optimization with keyword analysis, readability assessment, technical validation, content quality. Use for search rankings, blog posts, content audits, or encountering keyword density, readability scores, meta tags, schema markup errors.

2222 votes

Google Official Seo Guide

Official Google SEO guide covering search optimization, best practices, Search Console, crawling, indexing, and improving website search visibility based on official Google documentation

1862 votes

Tanstack Start

Build a full-stack TanStack Start app on Cloudflare Workers from scratch — SSR, file-based routing, server functions, D1+Drizzle, better-auth, Tailwind v4+shadcn/ui. Use whenever the user mentions TanStack Start, asks to scaffold a full-stack Cloudflare app with SSR, wants an SSR dashboard, or asks for a React 19 + Cloudflare Workers app with file-based routing and server functions — even if they don't name TanStack Start specifically. No template repo — Claude generates every file fresh per ...

10311 votes

Pentest

PTES-aligned adversarial security audit for backend, frontend, and mobile applications. Produces a CVSS-scored Hacker Report with verified PoCs and phased remediation.

5491 votes
View all in development →