Best for
- Use when adding or auditing in-app tips, contextual help, coach marks, Tip, TipView, popoverTip, rules, events, actions, display frequency, testing overrides, reusable tip identifiers, or iOS 18+ TipGroup and CloudKit t…
dpearson2699/swift-ios-skills/skills/tipkit/SKILL.md
Implement and review Apple TipKit feature-discovery UI for iOS 17+ apps. Use when adding or auditing in-app tips, contextual help, coach marks, Tip, TipView, popoverTip, rules, events, actions, display frequency, testing overrides, reusable tip identifiers, or iOS 18+ TipGroup and CloudKit tip sync; avoid for generic SwiftUI navigation or layout outside tip presentation.
Decision brief
Use TipKit for small, contextual feature-discovery moments: inline tips, popover tips, rule-gated education, and lightweight coach marks. Keep generic SwiftUI architecture, navigation, layout, and long first-run onboarding flows in their sibling skills unless TipKit presentation…
Compatibility matrix
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Not declared | No explicit evidence | Portability before use |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/dpearson2699/swift-ios-skills --skill "skills/tipkit"Inspect the Agent Skill "tipkit" from https://github.com/dpearson2699/swift-ios-skills/blob/90c9573272531337962fbb3505036d61ed23389a/skills/tipkit/SKILL.md at commit 90c9573272531337962fbb3505036d61ed23389a. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
[ ] Tips.configure(:) runs once during app initialization before tips display.
TipKit's core Tip, TipView, popoverTip, rules, events, options, and testing overrides are available on iOS 17+, iPadOS 17+, macOS 14+, tvOS 17+, watchOS 10+, and visionOS 1+.
Call Tips.configure(:) once during app initialization, before any tip can display. Do not configure TipKit from a view's onAppear or .task.
Use CloudKit sync only on iOS 18+ and later. Enable iCloud + CloudKit and Background Modes Remote notifications, then pass a container:
Tips are small, transient help. Use them for features people can understand and try in a few simple steps. If the flow needs a long explanation, multiple screens, or critical safety/error information, use a tutorial, alert, inline warning, or onboarding flow instead.
Permission review
No configured static risk pattern was detected
This is not proof of safety. Runtime behavior, indirect dependencies, and hidden external systems are outside the static scan.
Evidence record
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 67/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 933 | Source | Repository attention, not individual Skill quality |
| Compatibility | 0 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
Use TipKit for small, contextual feature-discovery moments: inline tips, popover tips, rule-gated education, and lightweight coach marks. Keep generic SwiftUI architecture, navigation, layout, and long first-run onboarding flows in their sibling skills unless TipKit presentation is the core issue.
TipKit's core Tip, TipView, popoverTip, rules, events, options, and
testing overrides are available on iOS 17+, iPadOS 17+, macOS 14+, tvOS 17+,
watchOS 10+, and visionOS 1+.
Gate newer APIs explicitly:
| API | Availability | Use |
|---|---|---|
TipGroup | iOS 18+ | Group or sequence tips; apply the Tip Groups decision. |
.cloudKitContainer(...) | iOS 18+ | Sync tip state, parameters, events, and display counts across devices. |
MaxDisplayDuration | iOS 18+ | Automatically invalidate after cumulative display time. |
resetEligibility() | iOS 26+ | Make a previously invalidated tip eligible again without resetting the datastore. |
Call Tips.configure(_:) once during app initialization, before any tip can
display. Do not configure TipKit from a view's onAppear or .task.
import SwiftUI
import TipKit
@main
struct MyApp: App {
init() {
do {
try Tips.configure([
.datastoreLocation(.applicationDefault),
.displayFrequency(.daily)
])
} catch {
assertionFailure("TipKit configuration failed: \(error)")
}
}
var body: some Scene {
WindowGroup { ContentView() }
}
}
Use .datastoreLocation(.groupContainer(identifier:)) only when an app and
extension or app-group members intentionally share tip state. Keep option
settings consistent across app-group members because TipKit persists option
state with the tip record.
Use CloudKit sync only on iOS 18+ and later. Enable iCloud + CloudKit and Background Modes > Remote notifications, then pass a container:
try Tips.configure([
.cloudKitContainer(.named("iCloud.com.example.app.tips"))
])
Prefer a dedicated container with a .tips suffix. .automatic uses the first
entitled .tips container when present, then falls back to the primary
container.
Tips are small, transient help. Use them for features people can understand and try in a few simple steps. If the flow needs a long explanation, multiple screens, or critical safety/error information, use a tutorial, alert, inline warning, or onboarding flow instead.
Follow HIG-aligned defaults:
Tip conforms to Identifiable and Sendable. Provide title at minimum;
add message, image, actions, rules, options, and id only when they
improve the feature-discovery moment.
import TipKit
struct FavoriteTip: Tip {
var title: Text { Text("Save to Favorites") }
var message: Text? { Text("Tap the heart to keep items for quick access.") }
var image: Image? { Image(systemName: "heart.fill") }
}
By default, TipKit uses the tip type name as id. Override id for reusable
tips whose persisted state should vary by content:
struct NewItemTip: Tip {
let itemID: Item.ID
var id: String { "NewItemTip-\(itemID)" }
var title: Text { Text("New Item Available") }
}
Use stable, concrete identifiers. Do not derive IDs from transient copy or unstable ordering.
Use TipView for inline tips:
let favoriteTip = FavoriteTip()
VStack {
TipView(favoriteTip, arrowEdge: .bottom)
ItemListView()
}
Use .popoverTip when the tip should point to a control:
Button {
toggleFavorite()
favoriteTip.invalidate(reason: .actionPerformed)
} label: {
Image(systemName: "heart")
}
.popoverTip(favoriteTip, arrowEdge: .top)
Rules are ANDed together. A tip becomes eligible only when every rule passes.
Use @Parameter for persisted app state:
struct FavoriteTip: Tip {
@Parameter static var hasSeenList = false
var title: Text { Text("Save to Favorites") }
var rules: [Rule] {
#Rule(Self.$hasSeenList) { $0 == true }
}
}
Use Tips.Event for repeated user actions. TipKit queries the most recent 1000
donations by default, so keep event rules bounded and intentional.
struct ShortcutTip: Tip {
static let manualSaveEvent = Tips.Event(id: "manualSave")
var title: Text { Text("Save Faster") }
var rules: [Rule] {
#Rule(Self.manualSaveEvent) {
$0.donations.donatedWithin(.week).count >= 3
}
}
}
ShortcutTip.manualSaveEvent.sendDonation()
For richer event rules, define Tips.Event<DonationInfo> where
DonationInfo: Codable, Sendable. Keep donation payloads small.
Group related event definitions in a shared namespace when several tips use the same events; event IDs are the persistence boundary, so collisions can create confusing eligibility.
Use options sparingly; frequency and invalidation rules are part of the tip's persisted behavior.
struct DailyTip: Tip {
var title: Text { Text("Try Filters") }
var options: [any TipOption] {
MaxDisplayCount(3)
IgnoresDisplayFrequency(false)
}
}
MaxDisplayDuration is iOS 18+. It counts cumulative display time and has a
minimum continuous display duration before automatic invalidation can occur.
Do not use it as a replacement for explicit invalidate(reason:) when the app
knows the taught action or ordered step is complete.
Call invalidate(reason:) when the user performs the discovered action or the
tip is no longer relevant. Invalidation is permanent until the datastore is
reset or, on iOS 26+, the specific tip calls await resetEligibility().
favoriteTip.invalidate(reason: .actionPerformed)
Use .tipClosed for explicit dismissal and .displayCountExceeded or
.displayDurationExceeded only when describing automatic invalidation outcomes.
Add Action buttons when the user needs a direct route to settings, more
information, or a setup flow.
struct FeatureTip: Tip {
var title: Text { Text("Try the New Editor") }
var actions: [Action] {
Action(id: "open-editor", title: "Open Editor")
Action(id: "learn-more", title: "Learn More")
}
}
TipView(FeatureTip()) { action in
switch action.id {
case "open-editor":
openEditor()
case "learn-more":
showHelp()
default:
break
}
}
For custom appearance, prefer TipViewStyle.Configuration values over reading
directly from a concrete tip instance. That preserves labels, handlers, and
modifiers applied to the TipView.
struct CompactTipStyle: TipViewStyle {
func makeBody(configuration: Configuration) -> some View {
HStack(alignment: .top) {
configuration.image?
VStack(alignment: .leading) {
configuration.title?
configuration.message?
ForEach(configuration.actions) { action in
Button(action: action.handler) {
action.label()
}
}
}
}
.padding()
}
}
TipGroup is iOS 18+. Store groups in SwiftUI state so the observable group
object persists across view updates. In every review of a TipGroup(.ordered)
plan, explicitly distinguish the default priority from ordered sequences:
TipGroup defaults to .firstAvailable, and TipGroup(.ordered) is required
when each later tip must wait for all previous tips to be invalidated.
struct OnboardingView: View {
@State private var tips = TipGroup(.ordered) {
WelcomeTip()
SearchTip()
FilterTip()
}
var body: some View {
VStack {
TipView(tips.currentTip)
ContentView()
}
}
}
MaxDisplayDuration can cap display time, but it is not the sequencing
mechanism for an ordered group. Cast currentTip when the same group spans
multiple controls:
Button("Search") { openSearch() }
.popoverTip(tips.currentTip as? SearchTip)
Use testing overrides only in debug/test code, and apply them before
Tips.configure(_:).
#if DEBUG
if ProcessInfo.processInfo.arguments.contains("--reset-tips") {
try? Tips.resetDatastore()
}
if ProcessInfo.processInfo.arguments.contains("--show-all-tips") {
Tips.showAllTipsForTesting()
}
#endif
try Tips.configure()
Built-in launch arguments are also available:
-com.apple.TipKit.ResetDatastore 1-com.apple.TipKit.ShowAllTips 1-com.apple.TipKit.ShowTips TipTypeA,TipTypeB-com.apple.TipKit.HideAllTips 1Testing override precedence is specific show, specific hide, show all, then hide
all. Tips.resetDatastore() must run before Tips.configure(_:).
Configure during app initialization. View-level configuration can race with tip display and can also hit datastore-already-configured errors.
Gate TipGroup, CloudKit sync, and MaxDisplayDuration. For group priority,
apply the canonical Tip Groups decision.
Tips are dismissible and educational. Use alerts, confirmations, inline warnings, or blocking UI for safety, errors, data loss, and required steps.
showAllTipsForTesting() and related overrides bypass rules and frequency
limits. Keep them behind #if DEBUG, test scheme arguments, or UI-test-only
launch arguments.
Tip IDs own persistence. If a reusable tip's ID changes unexpectedly, users can see duplicate or stale education.
Tips.configure(_:) runs once during app initialization before tips display.Tips.resetDatastore() runs only before configuration and only for tests/debug.id with stable content-derived values.TipGroup stays in @State and follows the Tip Groups priority decision.configuration values and call action.label().Tips.configure(_:): https://sosumi.ai/documentation/tipkit/tips/configure(_:)TipGroup: https://sosumi.ai/documentation/tipkit/tipgroupAlternatives
coreyhaines31/marketingskills
When the user wants to plan, design, or implement an A/B test or experiment, or build a growth experimentation program. Also use when the user mentions "A/B test," "split test," "experiment," "test this change," "variant copy," "multivariate test," "hypothesis," "should I test this," "which version is better," "test two versions," "statistical significance," "how long should I run this test," "growth experiments," "experiment velocity," "experiment backlog," "ICE score," "experimentation program
event4u-app/agent-config
Use when the user says "review the design", "check the UI", or wants a comprehensive UI/UX review. Uses a 7-phase methodology covering interaction, responsiveness, accessibility, and more.
affaan-m/ECC
Design, implement, and refactor Ports & Adapters systems with clear domain boundaries, dependency inversion, and testable use-case orchestration across TypeScript, Java, Kotlin, and Go services.
event4u-app/agent-config
Use when shaping a Playwright suite — locator strategy, Page Object boundaries, fixture composition, flake-prevention architecture, CI-vs-local split — even on 'design our E2E tests'.