본문으로 건너뛰기
cccskills
무료GitHub에 공개

subscription-offers

Generates StoreKit 2 code for all subscription offer types — introductory, promotional, offer codes, and win-back. Includes eligibility checks, offer presentation, and the preferredSubscriptionOffer modifier. Use when adding subscription offers, free trials, or promotional pricing.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(2)

  • SKILL.md9.3 KB
  • templates.md17.3 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Subscription Offers Generator

Generate complete StoreKit 2 implementation for all four subscription offer types with eligibility verification, offer presentation, and transaction handling.

When This Skill Activates

Use this skill when the user:

  • Asks to "add subscription offers" or "set up free trial"
  • Mentions "introductory offer", "promotional offer", or "offer codes"
  • Wants "StoreKit 2 offers" implementation
  • Asks about "subscription pricing" or "discounted subscription"
  • Mentions "preferredSubscriptionOffer" or "eligibility check"

Pre-Generation Checks

1. Project Context Detection

  • Check for existing StoreKit implementations (import StoreKit)
  • Check deployment target (iOS 16.4+ for SubscriptionStoreView offers, iOS 15+ for manual)
  • Look for existing product/subscription group IDs
  • Identify if paywall-generator was already used

2. Conflict Detection

Glob: **/*Offer*.swift, **/*Eligibility*.swift
Grep: "introductoryOffer" or "promotionalOffers" or "winBackOffers"

If existing offer code found, ask:

  • Extend with additional offer types?
  • Replace existing implementation?

Offer Types Reference

1. Introductory Offers

  • Who: New subscribers who haven't previously subscribed
  • Types: Free trial, pay-as-you-go, pay-up-front
  • Limit: One per subscription group per Apple ID
  • StoreKit 2: product.subscription?.introductoryOffer

2. Promotional Offers

  • Who: Current or lapsed subscribers. Baseline eligibility is deliberately broad — any current or lapsed subscriber of any subscription in the app, even mid-intro — so layer YOUR business rules on top
  • Types: Free, pay-as-you-go, pay-up-front (pay-up-front prices are deliberately NOT price-validated — this is what enables bundle-style pricing)
  • Limit: Up to 10 active offers per subscription
  • Requires: Server-side signature generation — sign server-side only; signatures are valid 24 hours, so generate just before display
  • StoreKit 2: product.subscription?.promotionalOffers
  • Attribution: identify redemptions by offerType (1 = introductory, 2 = promotional, 3 = offer code) + offerIdentifier

3. Offer Codes

  • Who: Anyone with a valid code (you distribute)
  • Types: Free or discounted period
  • Limit: Configurable per campaign in App Store Connect
  • StoreKit 2: try await AppStore.presentOfferCodeRedeemSheet()

4. Win-Back Offers

  • Who: Previously subscribed users who churned
  • Types: Free or discounted period
  • Eligibility: Automatic via App Store (iOS 18+)
  • StoreKit 2: product.subscription?.winBackOffers

Offer Strategy (Apple's Data)

  • Intro offers work: 60% of active paid subscriptions began with an introductory offer — mostly free trials, outside Greater China.
  • Trial length follows category norms — match what customers in your category already expect:
Typical trialCategories
~1 monthEntertainment, social, music, books
1 weekHealth & fitness, productivity, education, weather
3 daysPhoto/video, games, utilities, business
  • …and regional norms: monthly trials dominate in the US/Canada/Europe/Australia/NZ; 7-day in Greater China/Japan/Latin America; 3-day in Southeast Asia and EMEA.
  • Annual pricing: ~33% off the effective monthly rate is the cited pattern — "12 months for the price of 8".
  • Reduce trial anxiety: show an in-app countdown of trial days remaining and offer an opt-in push reminder before the trial converts.
  • ❌ Never hard-code offer merchandising ("Try 1 week free") — check isEligibleForIntroOffer and render only offers the user can actually redeem.

The Six Churn Playbooks (WWDC19 — still the strategy canon)

PlaybookTriggerMove
Win-backSubscription expiredOffer on relaunch / re-engagement
RetentionAuto-renew flipped off — you get the server notification the moment it flipsSave offer before expiry
UpgradeDowngrade notification receivedNudge back to the higher tier
Customer-service appeasementSupport flags a bad experienceOffer on next launch
LoyaltyLong tenure (e.g., a free month at the 11th consecutive renewal)Surprise reward
SaveUser heads to Manage SubscriptionsIntercept with an offer first

Configuration Questions

Ask user via AskUserQuestion:

  1. Which offer types? (multi-select)

    • Introductory offer (free trial / discounted first period)
    • Promotional offers (targeted discounts for eligible users)
    • Offer codes (redeemable codes you distribute)
    • Win-back offers (re-engage churned subscribers)
  2. Introductory offer details (if selected)

    • Free trial: 3 days / 7 days / 14 days / 30 days
    • Pay-as-you-go: discounted rate for X periods
    • Pay-up-front: discounted rate for full period
  3. Deployment target

    • iOS 15+ (manual offer UI)
    • iOS 16.4+ (SubscriptionStoreView with offers)
    • iOS 18+ (win-back offer support)
  4. Server-side signature (if promotional offers selected)

    • Will you generate signatures server-side?
    • Use App Store Server Library?

Generation Process

Step 1: Read Templates

Read templates.md for all offer implementation code.

Step 2: Create Core Files

  1. SubscriptionOfferManager.swift — Central offer management

    • Offer eligibility checking for all types
    • Offer presentation logic
    • Transaction handling for offer purchases
  2. OfferEligibility.swift — Eligibility verification

    • Introductory offer eligibility (isEligibleForIntroOffer)
    • Promotional offer eligibility (your business logic)
    • Win-back offer eligibility (iOS 18+)
  3. OfferConfiguration.swift — Offer type definitions and configuration

Step 3: Create UI Files (conditional)

  1. OfferBannerView.swift — Contextual offer banners

    • Shows appropriate offer based on user state
    • Introductory offer for new users
    • Promotional offer for at-risk subscribers
    • Win-back offer for churned subscribers
  2. OfferCodeRedemptionView.swift — Offer code entry UI (if offer codes selected)

Step 4: Create Optional Files

  1. OfferSignatureProvider.swift — Server-side signature handling (if promotional offers)
  2. OfferAnalytics.swift — Track offer impression, tap, and conversion events

Step 5: Determine File Location

- If Sources/Store/ exists → Sources/Store/Offers/
- If Store/ exists → Store/Offers/
- If Subscriptions/ exists → Subscriptions/Offers/
- Otherwise → Offers/

Output Format

Files Created

Store/Offers/
├── SubscriptionOfferManager.swift    # Central offer management
├── OfferEligibility.swift            # Eligibility verification
├── OfferConfiguration.swift          # Offer type definitions
├── OfferBannerView.swift             # Contextual offer UI
├── OfferCodeRedemptionView.swift     # Code entry (optional)
├── OfferSignatureProvider.swift      # Server signatures (optional)
└── OfferAnalytics.swift              # Offer tracking (optional)

Integration Steps

Check Introductory Offer Eligibility:

let manager = SubscriptionOfferManager()
let isEligible = await manager.isEligibleForIntroOffer(
    productID: "com.app.subscription.monthly"
)

Present Best Available Offer:

// Automatically selects the best offer for the user's state
let offer = await manager.bestAvailableOffer(
    for: "com.app.subscription.monthly"
)

// Use with SubscriptionStoreView (iOS 16.4+)
SubscriptionStoreView(groupID: groupID)
    .preferredSubscriptionOffer(offer)

Present Offer Code Sheet:

// iOS 16+
try await AppStore.presentOfferCodeRedeemSheet()

Win-Back Offer (iOS 18+):

let winBackOffers = await manager.availableWinBackOffers(
    for: "com.app.subscription.monthly"
)
if let bestOffer = winBackOffers.first {
    // Present win-back UI
}

Testing Instructions

  1. StoreKit Configuration file: Add offer configurations
  2. Test each offer type in Sandbox environment
  3. Verify eligibility logic: Test with new, current, and lapsed accounts
  4. Test edge cases: Expired trials, multiple subscription groups, family sharing

App Store Connect Setup

  1. Go to App Store Connect > Subscriptions > Your Group
  2. Introductory Offer: Set in subscription pricing section
  3. Promotional Offers: Create under "Subscription Prices" > "Promotional Offers"
  4. Offer Codes: Create under "Offer Codes" tab
  5. Win-Back Offers: Configure under "Win-Back Offers" (iOS 18+)

References

  • templates.md — All production Swift templates
  • Related: generators/win-back-offers — Dedicated win-back flow skill
  • Related: generators/paywall-generator — Full paywall with offer integration
  • Related: app-store/marketing-strategy — Strategic offer planning

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Run a structured accessibility audit on an iOS/macOS app — automated XCUITest audits, Accessibility Inspector, manual VoiceOver/Dynamic Type passes, and App Store Accessibility Nutrition Label evaluation. Use before release, when preparing Nutrition Label declarations, or for EU Accessibility Act compliance.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

rshankras/claude-code-apple-skills8142026년 7월 24일 업데이트

Generate accessibility infrastructure for VoiceOver, Dynamic Type, and accessibility features. Use when improving app accessibility, adding accessibility labels and hints, or auditing compliance.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

rshankras/claude-code-apple-skills8142026년 7월 24일 업데이트

Generates an Apple-compliant account deletion flow with multi-step confirmation UI, optional data export, configurable grace period, Keychain cleanup, and server-side deletion request. Use when user needs account deletion, right-to-delete, or Apple App Review compliance for account removal.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

rshankras/claude-code-apple-skills8142026년 7월 24일 업데이트

Privacy-preserving ad measurement with AdAttributionKit (SKAdNetwork's successor) — install and re-engagement attribution, conversion-value strategy under crowd anonymity, and end-to-end postback testing. Use when running paid acquisition beyond Apple Ads, measuring re-engagement campaigns, designing conversion values, or migrating from SKAdNetwork.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

rshankras/claude-code-apple-skills8142026년 7월 24일 업데이트

alarmkit

무료

AlarmKit integration for scheduling alarms and timers with custom UI, Live Activities, and snooze support. Use when implementing alarm or timer features in iOS 26+ apps.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

rshankras/claude-code-apple-skills8142026년 7월 24일 업데이트

Interpret app metrics and make data-driven decisions. Covers DAU/MAU, retention, LTV, ARPU, App Store Connect analytics, AARRR funnel analysis, cohort analysis, and diagnostic decision trees. Use when user wants to understand their metrics, diagnose problems, or build a data-driven growth plan.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

rshankras/claude-code-apple-skills8142026년 7월 24일 업데이트

rshankras의 스킬 모두 보기

이 스킬의 문제 신고