widget-generator
Widget Generator creates full WidgetKit implementations including timeline providers, size-specific views, lock screen accessories, and interactive elements for iOS 17+. It handles project detection, conflict resolution, and generates all necessary files with proper App Intent setup. Configure widget purpose, sizes, data sources, and update frequency through guided questions.
Widget Generator creates complete WidgetKit implementations with timeline providers and interactive elements for home and lock screens.
AI-generated summary based on this skill's SKILL.md
Decision gist · record as of 2026-07-24
Widget Generator creates complete WidgetKit implementations with timeline providers and interactive elements for home and lock screens. Widget Generator creates full WidgetKit implementations including timeline providers, size-specific views, lock screen accessories, and interactive elements for iOS 17+. It handles project detection, conflict resolution, and generates all necessary files with proper App Intent setup. Configure widget purpose, sizes, data sources, and update frequency through guided questions.
Use it when
- Yes, widget-generator supports lock screen accessory widgets for iOS 16 and later.
- Widget Generator's timeline provider setup creates the scheduling logic that determines when your widget updates.
Verify before relying
Read SKILL.md below before installing (2 files). Open directory: indexed for reading, not audited.
Install
rshankras/claude-code-apple-skills/widget-generator · repository language: Swift
Open directory. Skills are indexed for reading, not audited. Review a skill's body before installing it.
Frequently asked questions
AI-generated answers based on this skill's SKILL.md and metadata
How do I add widgets to my iOS app using widget-generator?
Widget Generator creates complete WidgetKit implementations for your iOS app. It generates timeline providers, size-specific views, and all necessary configuration files. The tool guides you through setup questions about widget purpose, supported sizes, data sources, and update frequency, then produces ready-to-use code that integrates directly into your Xcode project with proper App Intent setup.
Can widget-generator create lock screen accessory widgets for iOS 16+?
Yes, widget-generator supports lock screen accessory widgets for iOS 16 and later. It generates the specialized view hierarchies and timeline configurations needed for lock screen integration. The tool handles the unique constraints of lock screen widgets and produces code optimized for the smaller form factors and specific design requirements of iOS 16+ lock screen accessories.
What is a WidgetKit timeline provider and how does widget-generator set it up?
Widget Generator's timeline provider setup creates the scheduling logic that determines when your widget updates. The tool generates provider code that defines your widget's refresh policy, handles data fetching, and manages timeline entries. It configures appropriate update frequencies based on your widget's purpose and generates the complete provider implementation with proper error handling and data management.
How does widget-generator handle interactive widgets with buttons?
Widget Generator creates interactive widgets by generating App Intent configurations and button handlers. It produces code for interactive toggle buttons and other interactive elements, setting up the necessary intents that respond to user interactions. The generated implementation includes proper state management and refresh logic to update your widget when users interact with buttons or controls.
Can widget-generator set up widget data sharing via App Groups?
Widget Generator supports App Groups configuration for data sharing between your main app and widget extension. It generates the necessary setup code and handles the entitlements configuration needed for secure data sharing. The tool produces code that enables your widget to access shared data from your main application through App Groups containers.
Does widget-generator support multiple widget sizes and configurations?
Yes, widget-generator creates implementations supporting multiple widget sizes including systemSmall, systemMedium, and larger formats. It generates size-specific view layouts and configurations, allowing your widget to adapt across different home screen positions. The tool also handles widget bundle configuration and supports configurable widgets with App Intent setup for customizable widget behavior.
SKILL.md
Rendered from the published skill. Quoted content, verbatim.
Widget Generator
Generate a complete WidgetKit widget implementation with timeline providers, size-specific views, lock screen accessory widgets, interactive elements (iOS 17+), and App Intent configuration.
When This Skill Activates
Use this skill when the user: - Asks to "add widgets" or "add a widget" to their app - Mentions "WidgetKit" or "home screen widgets" - Wants "lock screen widgets" or "accessory widgets" - Asks about "widget timelines" or "timeline providers" - Wants "interactive widgets" with buttons or toggles - Mentions "widget configuration" or "configurable widgets" - Asks about "App Intent widgets" or "AppIntentConfiguration" - Wants to show data on the home screen or lock screen
Pre-Generation Checks
1. Project Context Detection
- [ ] Check for existing widget extension target
(truncated - see the full file via the links below)
File tree — 2 files
skills/generators/widget-generator/SKILL.md
skills/generators/widget-generator/templates.md
Let your AI agent find skills like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 56,283 agent skills by what they can do, searchable in plain language.
wish › “Generate complete WidgetKit widget with timeline provider and views”
Give your agent the search over MCP, or paste the wish link into any chat. No install? Search from any chat →
Related skills
WidgetKit guides you through implementing widgets across iOS surfaces—from Home Screen and Lock Screen to Control Center and StandBy mode. Learn to set up timeline providers, configure interactive widgets, handle deep links, and optimize Smart Stack relevance. The skill covers both static and configurable widget patterns, widget families, and iOS 18+ Control Center controls.
Master visionOS widget development with patterns for elevated and recessed mounting, material textures, and distance-aware layouts. Learn spatial widget families, container backgrounds, and rendering modes to create immersive widgets that adapt to user proximity and physical space.
RelevanceKit helps developers surface the right watchOS widgets at the right moment by providing contextual relevance signals to the system. Learn to implement time-based, location-based, fitness, and hardware relevance clues through timeline providers or the new RelevanceEntriesProvider, and master Smart Stack routing patterns for mixed widget ecosystems.
This skill equips you to develop watchOS applications using SwiftUI, covering essential navigation structures and interface patterns. It's part of a comprehensive toolkit for Apple platform development, helping you move from concept through to App Store deployment while maintaining design consistency.
Build polished settings interfaces for Apple platforms with this skill, which generates complete, production-ready screens organized into logical sections. Designed for iOS and macOS development, it handles layout, styling, and best practices automatically, letting you focus on app logic instead of UI boilerplate.
cloudkit-sync equips you with Claude Code expertise for integrating iCloud synchronization into iOS and macOS applications using current CloudKit patterns. This skill guides you through designing robust cloud persistence layers, managing data consistency, and leveraging Apple's native sync framework to keep user data seamlessly updated across devices.