widget-generator

Generate WidgetKit implementations with timeline providers and App Intent configurations.

114|8|Updated Mar 4, 2025
One-click install
npx skills add https://github.com/gustavscirulis/snapgrid --skill widget-generator-gustavscirulis
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: widget-generator
Source: https://github.com/gustavscirulis/snapgrid/tree/main/.claude/skills/skills/generators/widget-generator
Command: npx skills add https://github.com/gustavscirulis/snapgrid --skill widget-generator-gustavscirulis

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill simplifies the complex process of creating WidgetKit widgets for iOS and macOS, enabling developers to add dynamic, interactive, and configurable widgets to their applications efficiently.

Core Features & Use Cases

  • Full Widget Implementation: Generates timeline providers, size-specific views, lock screen accessories, interactive elements, and App Intent configurations.
  • Customization: Supports various widget types (static, configurable, interactive) and data sources (local, network, App Groups).
  • Use Case: When you need to display real-time data like stock prices, weather updates, or task progress directly on the user's home screen or lock screen, this Skill provides all the necessary code.

Quick Start

Use the widget-generator skill to add a new home screen widget for displaying daily fitness stats.

Frequently Asked Questions about widget-generator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create interactive iOS widgets with App Intents and WidgetKit?

To create interactive iOS widgets with App Intents and WidgetKit, you need to implement timeline providers, size-specific SwiftUI views, and App Intent configurations. This Skill generates these complete WidgetKit implementations automatically across various widget families.

Can I build configurable macOS widgets that fetch network data?

Yes, you can build configurable macOS widgets fetching network data. The generator supports configurable widgets using local, network, and App Group data sources to display real-time information like stock prices or weather updates.

What is the best way to generate a timeline provider for a SwiftUI widget?

The best way to generate a timeline provider for a SwiftUI widget is using an automated generator that outputs the full timeline provider implementation alongside size-specific views and App Intent configurations, ensuring real-time data updates.

Does this widget generator support lock screen accessories and interactive elements?

Yes, this widget generator supports lock screen accessories and interactive elements. It produces complete WidgetKit implementations including static, configurable, and interactive widgets for both iOS and macOS platforms.

How do I add a static WidgetKit implementation to my iOS application?

To add a static WidgetKit implementation to your iOS application, generate the required timeline providers and SwiftUI views. This Skill outputs these components instantly, enabling you to display static information like daily fitness stats.