lapsed-user
БесплатноБез исполняемых скриптовНе проверенGenerates lapsed user detection and re-engagement screens with personalized return experiences, win-back offers, and inactivity tracking. Use when user wants…
от rshankras★ 922 звезды на GitHubОб этом скилле
Lapsed User Re-Engagement Generator
Generate production infrastructure for detecting users who haven't opened the app in X days, showing personalized return screens that highlight what they missed, and optionally presenting win-back incentives to recover churned or lapsing users.
When This Skill Activates
Use this skill when the user:
- Asks about "lapsed user" detection or re-engagement
- Wants to handle "returning user" or "inactive user" scenarios
- Mentions "re-engagement" screens or flows
- Asks about "win-back" offers for churned users
- Wants to detect when a "user hasn't opened app" in a while
- Asks about "user retention" or "come back" experiences
Pre-Generation Checks
1. Project Context Detection
- Check Swift version (requires Swift 5.9+)
- Check deployment target (iOS 17+ / macOS 14+ for @Observable)
- Identify source file locations and project structure
2. Existing Engagement Tracking
Search for existing engagement or analytics infrastructure:
Glob: **/*Analytics*.swift, **/*Engagement*.swift, **/*Tracker*.swift, **/*Activity*.swift
Grep: "lastActiveDate" or "UserDefaults" or "scenePhase" or "applicationDidBecomeActive"
If existing tracking found:
- Ask if user wants to integrate with it or build standalone
- If integrating, adapt templates to use existing storage/events
3. Push Notification Setup
Search for existing push notification configuration:
Glob: **/*Notification*.swift, **/*Push*.swift
Grep: "UNUserNotificationCenter" or "UNNotification" or "registerForRemoteNotifications"
If push notifications are configured, offer push-based re-engagement as an option.
4. Conflict Detection
Search for existing lapsed user handling:
Glob: **/*LapsedUser*.swift, **/*WinBack*.swift, **/*ReturnExperience*.swift, **/*Reengag*.swift
Grep: "lapsedUser" or "winBack" or "returnExperience" or "daysInactive"
If existing implementation found:
- Ask if user wants to replace or extend it
- If extending, generate only the missing pieces
Configuration Questions
Ask user via AskUserQuestion:
Inactivity threshold?
- 7 days (light engagement apps — social, news)
- 14 days (moderate engagement — productivity, fitness) — recommended
- 30 days (low-frequency apps — finance, travel)
- Custom (user specifies days)
Re-engagement strategy?
- What-You-Missed (highlight new content, features, or activity since last visit)
- Special Offer (discount or extended trial for lapsed subscribers)
- Fresh Start (reset onboarding highlights, re-introduce key features)
- All of the above (tiered by lapse duration)
Trigger mechanism?
- Show on app return (present sheet when user opens app after inactivity)
- Via push notification (schedule local notification after X days inactive; promotional, so requires explicit in-app opt-in under Guideline 4.5.4, see Gotchas)
- Both — recommended
Include analytics events?
- Yes (track lapse detection, return screen shown, CTA tapped, offer redeemed) — recommended
- No (skip analytics, just UI)
Generation Process
Step 1: Read Templates
Read templates.md for production Swift code.
Step 2: Create Core Files
Generate these files:
InactivityTracker.swift— Tracks last active date, calculates days since last useLapsedUserDetector.swift— Evaluates inactivity against thresholds, returns lapse categoryLapsedUserManager.swift— Orchestrator combining detection + experience selection + analytics
Step 3: Create UI Files
ReturnExperienceView.swift— Personalized "Welcome back" screen with what-you-missedWinBackOfferView.swift— Special offer screen for lapsed subscribers
Step 4: Create Integration File
LapsedUserModifier.swift— SwiftUI ViewModifier for root view auto-detection and presentation
Step 5: Determine File Location
Check project structure:
- If
Sources/exists →Sources/LapsedUser/ - If
App/exists →App/LapsedUser/ - Otherwise →
LapsedUser/
Output Format
After generation, provide:
Files Created
LapsedUser/
├── InactivityTracker.swift # Tracks last active date in UserDefaults
├── LapsedUserDetector.swift # Evaluates inactivity thresholds
├── LapsedUserManager.swift # Orchestrator for detection + experience
├── ReturnExperienceView.swift # Welcome back screen with highlights
├── WinBackOfferView.swift # Special offer for lapsed subscribers
└── LapsedUserModifier.swift # ViewModifier for auto-detection
Integration at App Launch
Attach to root view:
@main
struct MyApp: App {
var body: some Scene {
WindowGroup {
ContentView()
.lapsedUserDetection()
}
}
}
Manual detection (if you need control over presentation):
struct ContentView: View {
@State private var manager = LapsedUserManager()
var body: some View {
NavigationStack {
Установить lapsed-user в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadWriteEditGlobGrepBashAskUserQuestionВложенные файлы
FAQ
Что делает скилл lapsed-user?
Generates lapsed user detection and re-engagement screens with personalized return experiences, win-back offers, and inactivity tracking. Use when user wants to re-engage inactive users, detect lapsed users, or build return flows.
Как установить скилл lapsed-user?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл lapsed-user запускает скрипты?
Нет, скилл состоит только из инструкций (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