app-store
App Store optimization and marketing skills for descriptions, screenshots, keywords, review responses, and comprehensive…
Generates referral/invite infrastructure with unique codes, deep link sharing, reward tracking, and fraud prevention. Use when user wants referral codes, invite friends flow, or viral growth mechanics.
Claude Code
$ npx -y skills add rshankras/claude-code-apple-skills --skill referral-system --agent claude-code
Codex
$ npx skills add rshankras/claude-code-apple-skills --skill referral-system -a codex -y
Cursor
$ npx skills add rshankras/claude-code-apple-skills --skill referral-system -a cursor -y
Gemini CLI
$ npx skills add rshankras/claude-code-apple-skills --skill referral-system -a gemini-cli -y
GitHub Copilot
$ npx skills add rshankras/claude-code-apple-skills --skill referral-system -a github-copilot -y
OpenCode
$ npx skills add rshankras/claude-code-apple-skills --skill referral-system -a opencode -y
Windsurf
$ npx skills add rshankras/claude-code-apple-skills --skill referral-system -a windsurf -y
name: referral-system description: Generates referral/invite infrastructure with unique codes, deep link sharing, reward tracking, and fraud prevention. Use when user wants referral codes, invite friends flow, or viral growth mechanics. allowed-tools: [Read, Write, Edit, Glob, Grep, Bash, AskUserQuestion] last_verified: 2026-11-08 review_by: 2027-06-22 os_version: iOS 27 / macOS 27
Generate a production referral/invite system with unique code generation, deep link sharing, reward tracking, fraud prevention, and SwiftUI views for inviting friends and monitoring referral performance.
Use this skill when the user:
Search for existing referral/invite code:
Glob: **/*Referral*.swift, **/*Invite*.swift, **/*InviteCode*.swift Grep: "referralCode" or "inviteCode" or "ReferralManager"
If existing referral system found:
Search for existing deep link handling:
Glob: **/*DeepLink*.swift, **/*UniversalLink*.swift Grep: "onOpenURL" or "userActivity" or "NSUserActivity"
If deep link handling exists, integrate with it rather than generating a standalone handler.
Ask user via AskUserQuestion:
1. **Reward type?**
2. **Code format?**
3. **Sharing method?**
4. **Storage?**
Read `templates.md` for production Swift code.
Generate these files: 1. `ReferralCode.swift` -- Model with unique code generation, expiration, usage tracking 2. `ReferralManager.swift` -- @Observable manager for code lifecycle and redemption 3. `ReferralReward.swift` -- Reward configuration, conditions, and fulfillment tracking
4. `InviteView.swift` -- SwiftUI invite screen with code display and sharing 5. `ReferralDashboardView.swift` -- Stats view for referral performance
6. `ReferralDeepLinkHandler.swift` -- Deep link parsing and redemption triggering
Check project structure:
After generation, provide:
Referral/ ├── ReferralCode.swift # Code model with generation and validation ├── ReferralManager.swift # @Observable manager for code lifecycle ├── ReferralReward.swift # Reward config and fulfillment tracking ├── InviteView.swift # Invite screen with share actions ├── ReferralDashboardView.swift # Referral stats dashboard └── ReferralDeepLinkHandler.swift # Deep link parsing and redemption
**Add deep link handling in your App struct:**
@main
struct MyApp: App {
@State private var referralManager = ReferralManager()
private let deepLinkHandler = ReferralDeepLinkHandler()
var body: some Scene {
WindowGroup {
ContentView()
.environment(referralManager)
.onOpenURL { url in
if let code = deepLinkHandler.extractCode(from: url) {
Task {
await referralManager.redeemCode(code)
}
}
}
}
}
}**Present the invite screen:**
struct ProfileView: View {
@State private var showInvite = false
var body: some View {
Button("Invite Friends") { showInvite = true }
.sheet(isPresented: $showInvite) {
InviteView()
}
}
}**Show referral dashboard:**
NavigationLink("My Referrals") {
ReferralDashboardView()
}@Test
func generatedCodeIsUnique() async throws {
let manager = ReferralManager(store: InMemoryReferralStore())
let code1 = await manager.generateCode(for: "user-1")
let code2 = await manager.generateCode(for: "user-2")
#expect(code1.value != code2.value)
}
@Test
func redemptionGrantsReward() async throws {
let manager = ReferralManager(store: InMemoryReferralStore())
let code = await manager.generateCode(for: "referrer-1")
let result = await manager.redeemCode(code.value, redeemedBy: "invitee-1")
#expect(result == .success)
#expect(manager.rewards(for: "referrer-1").count == 1)
#expect(manager.rewards(for: "invitee-1").count == 1)
}
@Test
func selfReferralIsRejected() async throws {
let manager = ReferralManager(store: InMemoryReferralStore())
let code = await manager.generateCode(for: "A collection of Claude Code skills for iOS, macOS, watchOS, visionOS, and Apple platform development. These skills help you plan and build apps, maintain code quality, ensure HIG compliance, and guide you from idea to App Store.
App Store optimization and marketing skills for descriptions, screenshots, keywords, review responses, and comprehensive…
Privacy-preserving ad measurement with AdAttributionKit (SKAdNetwork's successor) — install and re-engagement attribution,…
Generate compelling App Store descriptions that convert browsers into users. Use when writing initial descriptions, improving…
Apple Search Ads campaign strategy for indie developers — paid acquisition, keyword bidding, budget planning, and ROAS…
Take a one-time in-app purchase from MISSING_METADATA to READY_TO_SUBMIT in App Store Connect — set its price schedule and…
Optimize app title, subtitle, and keywords for maximum App Store discoverability. Use when launching a new app, improving search…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.