/ab-testingA/B testing
Plans experiments from hypothesis to sample size and metrics.
Designs the in-app upgrade screens and when they appear.
$ npx skills add coreyhaines31/marketingskills --skill paywallsOpen your project folder in a terminal and paste this. Claude then uses the skill when a task calls for it. Add -g to install it for every project.
The original as published on GitHub. The summary above is Velin's.
You are an expert in in-app paywalls and upgrade flows. Your goal is to convert free users to paid, or upgrade users to higher tiers, at moments when they've experienced enough value to justify the commitment.
Check for product marketing context first:
If .agents/product-marketing.md exists (or .claude/product-marketing.md, or the legacy product-marketing-context.md filename, in older setups), read it before asking questions. Use that context and only ask for information not already covered or specific to this task.
Before providing recommendations, understand:
Upgrade Context - Freemium → Paid? Trial → Paid? Tier upgrade? Feature upsell? Usage limit?
Product Model - What's free? What's behind paywall? What triggers prompts? Current conversion rate?
User Journey - When does this appear? What have they experienced? What are they trying to do?
When user clicks a paid-only feature:
When user hits a limit:
When trial is ending:
After X days of free use:
Headline - Focus on what they get: "Unlock [Feature] to [Benefit]"
Value Demonstration - Preview, before/after, "With Pro you could..."
Feature Comparison - Highlight key differences, current plan marked
Pricing - Clear, simple, annual vs. monthly options
Social Proof - Customer quotes, "X teams use this"
CTA - Specific and value-oriented: "Start Getting [Benefit]"
Escape Hatch - Clear "Not now" or "Continue with Free"
[Lock Icon]
This feature is available on Pro
[Feature preview/screenshot]
[Feature name] helps you [benefit]:
• [Capability]
• [Capability]
[Upgrade to Pro - $X/mo]
[Maybe Later]
You've reached your free limit
[Progress bar at 100%]
Free: 3 projects | Pro: Unlimited
[Upgrade to Pro] [Delete a project]
Your trial ends in 3 days
What you'll lose:
• [Feature used]
• [Data created]
What you've accomplished:
• Created X projects
[Continue with Pro]
[Remind me later] [Downgrade]
For comprehensive experiment ideas: See references/experiments.md
For consumer iOS/Android subscription apps (paywall inside onboarding, yearly-first plans, trials and reminders, store fees, web checkout, revenue per download): See references/mobile-subscription-paywalls.md
{
"skill_name": "paywalls",
"evals": [
{
"id": 1,
"prompt": "Help me design the upgrade paywall for our project management tool. Free users can have 3 projects, and we want to show an upgrade screen when they try to create a 4th project.",
"expected_output": "Should check for product-marketing.md first. Should identify this as a usage limit trigger point. Should apply the paywall screen components: headline (communicate the value of upgrading, not just the limit), value demonstration (show what they get with paid plan), plan comparison (free vs paid), social proof, CTA (specific and action-oriented), and escape hatch (option to go back). Should provide specific copy recommendations. Should address the emotional state of the user at this moment (frustrated by the limit). Should warn against anti-patterns.",
"assertions": [
"Checks for product-marketing.md",
"Identifies as usage limit trigger",
"Applies paywall screen components framework",
"Includes headline, value demo, comparison, social proof, CTA",
"Provides specific copy recommendations",
"Addresses user's emotional state at the limit",
"Includes escape hatch option",
"Warns against anti-patterns"
],
"files": []
},
{
"id": 2,
"prompt": "Our free trial expires in 14 days and users see a generic 'Your trial has expired' screen. Upgrade rate from this screen is only 2%. How do we improve it?",
"expected_output": "Should identify this as a trial expiration trigger. Should apply the trial expiration paywall type guidance. Should recommend: show what they've built/accomplished during the trial (endowment effect), highlight specific features they used, show the value they'd lose, provide clear plan options, include social proof from similar users who upgraded. Should diagnose why 2% is low: likely a weak value prop, no personalization, no urgency or loss framing. Should provide specific redesign recommendations.",
"assertions": [
"Identifies as trial expiration trigger",
"Applies trial expiration paywall guidance",
"Recommends showing user's accomplishments during trial",
"Uses loss framing (what they'd lose)",
"Provides clear plan options",
"Includes social proof",
"Diagnoses why current 2% rate is low",
"Provides specific redesign recommendations"
],
"files": []
},
{
"id": 3,
"prompt": "when should we show upgrade prompts? we don't want to be annoying but we also need to convert free users to paid.",
"expected_output": "Should trigger on casual phrasing. Should apply the timing and frequency rules. Should recommend trigger points from the skill: feature gates (when they try a paid feature), usage limits (when they hit a threshold), value moments (when they've just experienced success), and natural transition points. Should address frequency capping to avoid being annoying. Should recommend the anti-patterns to avoid (blocking basic functionality, too frequent popups, dark patterns). Should provide a balanced approach that respects user experience while driving upgrades.",
"assertions": [
"Triggers on casual phrasing",
"Applies timing and frequency rules",
"Recommends specific trigger points",
"Addresses frequency capping",
"Warns against anti-patterns",
"Balances user experience with conversion goals",
"Provides specific recommendations for each trigger type"
],
"files": []
},
{
"id": 4,
"prompt": "Design a feature gate paywall. When free users click on 'Advanced Analytics' in our dashboard, we want to show them an upgrade prompt.",
"expected_output": "Should identify this as a feature gate trigger. Should apply the feature lock paywall type guidance. Should recommend: show a preview or screenshot of the advanced analytics feature, explain the specific benefit (not just 'this is a paid feature'), include a plan comparison relevant to analytics, provide a clear CTA to upgrade, and include an escape hatch to go back to basic analytics. Should recommend showing what insights they're missing. Should provide copy recommendations for the paywall screen.",
"assertions": [
"Identifies as feature gate trigger",
"Applies feature lock paywall guidance",
"Recommends showing preview of the feature",
"Explains specific benefit of the feature",
"Includes relevant plan comparison",
"Provides clear CTA and escape hatch",
"Provides copy recommendations"
],
"files": []
},
{
"id": 5,
"prompt": "What are common mistakes to avoid with in-app paywalls? I don't want to be pushy or make users feel tricked.",
"expected_output": "Should apply the anti-patterns section. Should cover: dark patterns (making it hard to find the close button, confusing opt-out language), conversion killers (blocking basic functionality, showing paywalls too early before value is demonstrated, no escape hatch), frequency issues (too many prompts, showing the same paywall repeatedly). Should provide positive alternatives for each anti-pattern. Should emphasize that good paywalls feel helpful, not pushy.",
"assertions": [
"Applies anti-patterns section",
"Covers dark patterns to avoid",
"Covers conversion killers",
"Covers frequency issues",
"Provides positive alternatives for each",
"Emphasizes helpful over pushy approach"
],
"files": []
},
{
"id": 6,
"prompt": "Can you help me optimize our public pricing page? We want more visitors to choose the Pro plan over the Basic plan.",
"expected_output": "Should recognize this is a public pricing page optimization task, not an in-app paywall task. Should defer to or cross-reference the cro skill for pricing page CRO. Paywall-upgrade-cro specifically handles in-app upgrade prompts for existing users, not public-facing pricing pages.",
"assertions": [
"Recognizes this as public pricing page optimization",
"References or defers to cro skill",
"Explains that paywalls is for in-app upgrade prompts",
"Does not attempt public pricing page optimization"
],
"files": []
},
{
"id": 7,
"prompt": "We're launching an AI calorie-tracking iOS and Android app. Where should the paywall go, how should we price it, and how much can we afford to pay per install?",
"expected_output": "Should load references/mobile-subscription-paywalls.md. Should place the paywall after onboarding produces a personalized result, not on first launch; lead with a yearly plan shown with a per-week equivalent while keeping the billed amount clear, with at most one shorter option; offer a trial with a reminder before it ends and treat trial length as a test; allow one abandon offer shown once. Should explain store fees as dated and to be checked (Apple Small Business Program 15%; Google Play's 10% service fee plus 5% billing in the US, UK and EEA, with the 10% still applying on web links; US iOS link-out commission still being set in court). Should compute revenue per download as trial start × trial-to-paid × yearly price × (1 − fee) and say to replace any starting estimate with the app's own numbers before setting install bids. Should name paywall testing tools as options, not pick one as best.",
"assertions": [
"Places the paywall after a personalized result in onboarding",
"Leads with a yearly plan and keeps the billed amount clear",
"Includes a trial with a pre-renewal reminder and treats trial length as a test",
"Limits the abandon offer to one showing",
"Presents store fees as dated and to be verified, including Google's 10% applying to web-link purchases",
"Gives a revenue-per-download formula net of store fees and says to use the app's own rates",
"Does not recommend one paywall tool as the best"
],
"files": []
}
]
}
Comprehensive list of A/B tests and experiments for paywall optimization.
Test discounts where they reward commitment or a real moment, not as a standing price cut for new buyers (see the offers skill on why acquisition discounts backfire). Any countdown must reflect a real deadline.
Consumer iOS and Android subscription apps (fitness, learning, focus, faith, scanners) run on different paywall mechanics from SaaS upgrade screens. Billing goes through the app stores, the paywall usually sits inside onboarding, and most revenue comes from a yearly plan sold on day one. Use this reference for those apps; the rest of the skill still applies to the copy, design, and testing.
The common pattern is onboarding → personalized result → paywall. Onboarding asks a few questions about the user's goal, the app shows something built for them (a plan, a score, a first analysis), and the paywall follows while that result is on screen. The result is the value moment the paywall leans on; a paywall on first launch, before anything personal has happened, asks for money with nothing to point at.
A hard paywall (no core use without a trial or purchase) and freemium (a capped free tier) are both legitimate. RevenueCat's State of Subscription Apps 2026 found hard-paywall apps converting roughly five times as many users to paid in the first 35 days as freemium apps, while one-year retention of yearly subscribers was about the same for both (27% vs. 28%). Freemium still fits when the free tier drives sharing or word of mouth. If you keep a free tier, cap it daily so the limit is felt in the habit, not after a month.
When someone closes the paywall without starting a trial, one discounted yearly offer is a standard move. Show it once, not on every close, and keep it consistent with the rules in the main skill (respect the no, no fake countdowns).
Fees change and differ by country, so treat these as a snapshot (October 2026) and check current terms before modeling:
Web-to-app funnel: ad → web onboarding quiz → web paywall → download link. It moves payment off the store and lets you test onboarding without app releases, but it adds a step between the ad and the app. Check each storefront's link-out rules before building it.
revenue per download = trial start rate × trial-to-paid rate × yearly price × (1 − store fee)
One founder's working estimate is 30% of downloads starting a trial and 30% of trials paying about $30 a year, which comes to about $2.70 per download before fees. Treat that as a starting assumption to replace with your own numbers within a few weeks of launch, not a benchmark. Revenue per download is what tells you how much you can pay per install on ads or creators.
paywall_viewed, trial_started, and subscription_started events fire with the paywall variant IDPatterns adapted from Blake Anderson's ai-app-playbook (MIT, October 2026); conversion and trial-length data from RevenueCat's State of Subscription Apps 2026; fees from Google's Android Developers Blog (June 2026), Apple's Small Business Program terms, and coverage of the Epic v. Apple link-out proceedings.
Plans experiments from hypothesis to sample size and metrics.
Reduces churn with cancel flows, save offers and payment recovery.
Gets new users to their first real result faster after signup.