axiom-extensions-widgets-ref
БесплатноБез исполняемых скриптовНе проверенUse when implementing widgets, Live Activities, Control Center controls, or app extensions - comprehensive API reference for WidgetKit, ActivityKit, App…
от ComeOnOliver★ 67 звёзд на GitHubОб этом скилле
Extensions & Widgets API Reference
Overview
This skill provides comprehensive API reference for Apple's widget and extension ecosystem:
- Standard Widgets (iOS 14+) — Home Screen, Lock Screen, StandBy widgets
- Interactive Widgets (iOS 17+) — Buttons and toggles with App Intents
- Live Activities (iOS 16.1+) — Real-time updates on Lock Screen and Dynamic Island
- Control Center Widgets (iOS 18+) — System-wide quick controls
- Liquid Glass Widgets (iOS 26+) — Accented rendering, glass effects, container backgrounds
- visionOS Widgets (visionOS 2+) — Mounting styles, textures, proximity awareness
- App Extensions — Shared data, lifecycle, entitlements
Widgets are SwiftUI archived snapshots rendered on a timeline by the system. Extensions are sandboxed executables bundled with your app.
When to Use This Skill
✅ Use this skill when:
- Implementing any type of widget (Home Screen, Lock Screen, StandBy)
- Creating Live Activities for ongoing events
- Building Control Center controls
- Sharing data between app and extensions
- Understanding widget timelines and refresh policies
- Integrating widgets with App Intents
- Adopting Liquid Glass rendering in widgets
- Supporting watchOS or visionOS widgets
- Implementing visionOS mounting styles, textures, or proximity awareness
❌ Do NOT use this skill for:
- Pure App Intents questions (use app-intents-ref skill)
- SwiftUI layout issues (use swiftui-layout skill)
- Performance optimization (use swiftui-performance skill)
- Debugging crashes (use xcode-debugging skill)
Related Skills
- app-intents-ref — App Intents for interactive widgets and configuration
- swift-concurrency — Async/await patterns for widget data loading
- swiftui-performance — Optimizing widget rendering
- swiftui-layout — Complex widget layouts
- extensions-widgets — Discipline skill with anti-patterns and debugging
Key Terminology
- Timeline — Series of entries defining when/what content to display; system shows entries at specified times
- TimelineProvider — Protocol supplying timeline entries (placeholder, snapshot, timeline generation)
- TimelineEntry — Struct with widget data + display date
- Timeline Budget — Daily limit (40-70) for timeline reloads
- Budget-Exempt — Reloads that don't count (user-initiated, app foregrounding, system-initiated)
- Widget Family — Size/shape (systemSmall, systemMedium, accessoryCircular, etc.)
- App Groups — Entitlement for shared data container between app and extensions
- ActivityAttributes — Static data (set once) + dynamic ContentState (updated during lifecycle)
- ContentState — Changing part of ActivityAttributes; must be under 4KB total
- Dynamic Island — iPhone 14 Pro+ Live Activity display; compact, minimal, and expanded sizes
- ControlWidget — iOS 18+ widgets for Control Center, Lock Screen, and Action Button
- Supplemental Activity Families — Enables Live Activities on Apple Watch or CarPlay
Part 1: Standard Widgets (iOS 14+)
Widget Configuration Types
StaticConfiguration
For widgets that don't require user configuration.
@main
struct MyWidget: Widget {
let kind: String = "MyWidget"
var body: some WidgetConfiguration {
StaticConfiguration(kind: kind, provider: Provider()) { entry in
MyWidgetEntryView(entry: entry)
}
.configurationDisplayName("My Widget")
.description("This widget displays...")
.supportedFamilies([.systemSmall, .systemMedium, .systemLarge])
}
}
AppIntentConfiguration (iOS 17+)
For widgets with user configuration using App Intents.
struct MyConfigurableWidget: Widget {
let kind: String = "MyConfigurableWidget"
var body: some WidgetConfiguration {
AppIntentConfiguration(
kind: kind,
intent: SelectProjectIntent.self,
provider: Provider()
) { entry in
MyWidgetEntryView(entry: entry)
}
.configurationDisplayName("Project Status")
.description("Shows your selected project")
}
}
Migration from IntentConfiguration: iOS 16 and earlier used IntentConfiguration with SiriKit intents. Migrate to AppIntentConfiguration for iOS 17+.
ActivityConfiguration
For Live Activities (covered in Live Activities section).
Choosing the Right Configuration
No user configuration needed? Use StaticConfiguration. Simple static options? Use AppIntentConfiguration with WidgetConfigurationIntent. Dynamic options from app data? Use AppIntentConfiguration + EntityQuery.
Quick Reference:
- StaticConfiguration — No customization (weather, battery status)
- AppIntentConfiguration (simple) — Fixed options (timer presets, theme selection)
- AppIntentConfiguration (EntityQuery) — Dynamic list from app data (project/contact/playlist picker)
- ActivityConfiguration — Live
Установить axiom-extensions-widgets-ref в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл axiom-extensions-widgets-ref?
Use when implementing widgets, Live Activities, Control Center controls, or app extensions - comprehensive API reference for WidgetKit, ActivityKit, App Groups, and extension lifecycle for iOS 14+
Как установить скилл axiom-extensions-widgets-ref?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл axiom-extensions-widgets-ref запускает скрипты?
Нет, скилл состоит только из инструкций (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