tipkit-generator
БесплатноБез исполняемых скриптовНе проверенGenerate TipKit infrastructure with inline/popover tips, rules, display frequency, and testing utilities. Use when adding contextual tips or feature discovery…
от rshankras★ 922 звезды на GitHubОб этом скилле
TipKit Generator
Generate a complete TipKit setup for contextual tips and feature discovery, including tip definitions, rules, display frequency, inline and popover presentation, and testing utilities.
When This Skill Activates
Use this skill when the user:
- Asks to "add tips" or "add TipKit"
- Mentions "contextual tips" or "feature discovery"
- Wants "popover tips" or "inline tips"
- Asks about "coach marks" or "user education"
- Mentions "onboarding hints" or "tip prompts"
- Wants to "highlight new features" or "guide users"
Pre-Generation Checks
1. Project Context Detection
- Check deployment target (TipKit requires iOS 17+ / macOS 14+)
- Identify if SwiftUI or UIKit project
- Find App entry point location for Tips.configure()
- Check for existing TipKit implementations
2. Conflict Detection
Search for existing TipKit usage:
Glob: **/*Tip*.swift
Grep: "import TipKit" or "Tips.configure"
If found, ask user:
- Extend existing tip infrastructure?
- Replace existing tips?
Configuration Questions
Ask user via AskUserQuestion:
What features need tips?
- List the features or UI elements that should have tips
- Example: "search bar, filter button, swipe-to-delete gesture"
Tip presentation style? (per tip or general preference)
- Inline (TipView embedded in layout)
- Popover (attached to a control)
- Both
Rule types needed?
- Parameter-based (show after user meets condition, e.g., has viewed a screen 3 times)
- Event-based (show after user performs an action N times)
- Both
Display frequency?
- Immediate (tips show as soon as eligible)
- Hourly
- Daily
- Weekly
- Monthly
Tip ordering?
- Independent (tips show whenever eligible)
- Ordered (use TipGroup to show tips in sequence)
Generation Process
Step 1: Read Templates
Read the templates file for code patterns:
Read("skills/generators/tipkit-generator/templates.md")
Step 2: Create Core Files
Generate these files based on configuration:
Tips/directory with one file per tip (e.g.,SearchTip.swift,FilterTip.swift)Tips/TipEvents.swift- Centralized event definitionsTips/TipsConfiguration.swift- Tips.configure() setup and testing utilities
Step 3: Determine File Location
Check project structure:
- If
Sources/exists ->Sources/Tips/ - If
App/exists ->App/Tips/ - Otherwise ->
Tips/
Step 4: Integrate Tips
- Add
Tips.configure()call in App entry point - Add
TipViewor.popoverTip()at the appropriate view locations - Wire up event donation at action sites
- Wire up tip invalidation where appropriate
Output Format
After generation, provide:
Files Created
Sources/Tips/
├── SearchTip.swift # Tip with rules and options
├── FilterTip.swift # Another tip definition
├── TipEvents.swift # Centralized event definitions
└── TipsConfiguration.swift # Tips.configure() + testing helpers
Integration Steps
App Entry Point (Required):
import TipKit
@main
struct MyApp: App {
var body: some Scene {
WindowGroup {
ContentView()
.task {
try? Tips.configure([
.displayFrequency(.daily),
.datastoreLocation(.applicationDefault)
])
}
}
}
}
Inline Tip:
import TipKit
struct SearchView: View {
let searchTip = SearchTip()
var body: some View {
VStack {
TipView(searchTip)
SearchBar()
}
}
}
Popover Tip:
import TipKit
struct ToolbarView: View {
let filterTip = FilterTip()
var body: some View {
Button("Filter", systemImage: "line.3.horizontal.decrease.circle") {
// action
}
.popoverTip(filterTip)
}
}
Event Donation (at action site):
Button("Search") {
performSearch()
SearchTip.searchPerformed.donate()
}
Tip Invalidation (when tip is no longer relevant):
func onFeatureUsed() {
// User discovered the feature, invalidate the tip
searchTip.invalidate(reason: .actionPerformed)
}
Testing Instructions
Reset DataStore between runs:
// Add to a debug menu or call in preview try? Tips.resetDatastore()Show all tips for testing:
// Ignores rules and frequency -- shows everything Tips.showAllTipsForTesting()Show specific tips for testing:
Tips.showTipsForTesting([SearchTip.self])Test scenarios:
- Launch app fresh -- eligible tips should appear per display frequency
- Perform actions that donate events -- event-based tips should appear when thresholds met
- Tap tip close button -- tip should not reappear
- Invalidate tip programmatically -- tip should dismiss and not
Установить tipkit-generator в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadWriteEditGlobGrepBashAskUserQuestionВложенные файлы
FAQ
Что делает скилл tipkit-generator?
Generate TipKit infrastructure with inline/popover tips, rules, display frequency, and testing utilities. Use when adding contextual tips or feature discovery to an iOS/macOS app.
Как установить скилл tipkit-generator?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл tipkit-generator запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic