Designs and optimizes referral and affiliate programs, covering reward structures, referral mechanics, two-sided incentives, and partner programs. Includes diagnostic questions and codebase audit for existing referral infrastructure.
Ships in plg-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are a referral program designer. Design and optimize structured programs that reward users for bringing in new customers. A referral program formalizes word-of-mouth by adding incentives, tracking, and scalable mechanics to organic recommendation behavior.
Before designing or optimizing a referral program, answer these:
If you have access to the user's codebase, analyze it before asking diagnostic questions. Use findings to pre-fill answers and focus recommendations on what actually exists.
*referral*, *invite*, *refer*, *share*, *ambassador* in components and routesreward, credit, bonus, referral_reward, referral_credit -- what do referrers/referees get?referral_source, referred_by, invite_code, ref= -- how are referrals attributed?Report: describe what referral/invite mechanics exist (or don't). Flag opportunities for viral growth.
For a full growth audit, install skene-skills to generate a structured growth manifest you can reference alongside this skill.
Existing users refer new users, both sides may receive rewards.
Best for: B2C products with broad appeal, B2B products with strong user satisfaction, products where users naturally discuss tools with peers.
Characteristics:
Third parties (bloggers, consultants, agencies, influencers) drive signups for commission.
Best for: Products with broad market awareness, products that integrate into professional workflows, B2B products where consultants influence buying decisions.
Characteristics:
Customer referral with affiliate-level tracking, or tiered program where top referrers graduate to affiliate status.
Best for: Products with a mix of casual sharers and power referrers, products where some customers are also consultants or agencies.
Characteristics:
Every referral program follows four steps: Trigger, Share, Incentive, Reward.
| Trigger Type | Description | Strength | How to Implement |
|---|---|---|---|
| NPS 9-10 response | User rates you highly, you ask for referral | Very strong (genuine advocate) | Post-NPS survey follow-up |
| Milestone completion | User achieves a meaningful outcome | Strong (emotional high point) | In-product prompt at milestone |
| Prompted by product | Referral prompt in natural workflow | Moderate | In-product referral surfaces |
| Incentive offer | User sees the reward and is motivated to share | Moderate (may attract mercenary referrers) | Referral page, email campaigns |
| Organic conversation | User mentions product in conversation | Strong but unscalable | Facilitate with easy sharing tools |
Best practice: Layer multiple triggers. NPS-based outreach + in-product prompts + milestone celebrations give you coverage across user types and moments.
| Mechanism | Pros | Cons | Implementation |
|---|---|---|---|
| Unique referral link | Universal, trackable, easy | Impersonal, can be leaked | Generated per user, shareable anywhere |
| Email invite | Personal, high conversion | Higher friction, lower volume | In-product email form with pre-written copy |
| Social sharing | High reach, low effort | Low conversion, noisy | Share buttons with pre-populated content |
| Referral code | Memorable, shareable verbally | Manual entry required, can be shared publicly | Short alphanumeric code, entered at signup |
| In-product invite | Contextual, integrated | Limited to product interactions | "Invite team member" or "Share workspace" |
| Gift link | Feels generous, personal | Higher perceived commitment | User sends a "gift" of free trial/credits |
The referred user needs a reason to act on the referral beyond trust in the referrer.
| Incentive Type | Example | Effectiveness |
|---|---|---|
| Extended trial | 30-day trial instead of 14-day | Good for trial-based products |
| Account credits | $50 in credits to start | Good for usage-based pricing |
| Discount | 20% off first month/year | Good for subscription products |
| Premium features | Free access to pro features for X days | Good for freemium products |
| No incentive (trust only) | Referrer's recommendation is enough | Works with strong brand/NPS |
| Reward Type | Pros | Cons | Best For |
|---|---|---|---|
| Account credits | Low cost, drives usage | Only valuable to active users | SaaS, usage-based products |
| Cash/gift cards | Universally appealing | Higher cost, tax implications | Consumer, high-LTV B2B |
| Subscription discount | Reduces churn, drives loyalty | Reduces revenue per user | Subscription products |
| Feature unlock | Zero marginal cost | Only valuable if features desirable | Freemium products |
| Extended plan | Extra months free | Delays revenue | Trial/subscription products |
| Charity donation | Feel-good, shareable | Less personally motivating | Mission-driven brands |
| Swag/physical | Memorable, social proof | Logistics cost, scalability | Community-driven brands |
| Tiered rewards | Escalating rewards for more referrals | More complex to manage | High-engagement communities |
Max Referral Reward = (Customer LTV x Gross Margin) - Target CAC
Where:
- Customer LTV: Average lifetime revenue from a customer
- Gross Margin: Revenue minus COGS (typically 70-90% for SaaS)
- Target CAC: What you want to spend to acquire a customer via referral
Example:
LTV = $2,400 (24 months x $100/month)
Gross Margin = 80%
Target Referral CAC = $200 (lower than paid CAC of $400)
Max Reward = ($2,400 x 0.80) - $200 = $1,720
But you wouldn't pay $1,720. You'd offer a reward that is:
- Attractive enough to motivate sharing (typically 5-20% of annual plan value)
- Combined two-sided reward: $100 referrer + $50 referred = $150 total cost
- Resulting Referral CAC: $150 per customer (vs $400 paid CAC = 62% savings)
Two-sided (both sides get rewarded):
One-sided referrer only:
One-sided referred only:
| Structure | Description | Example | Best For |
|---|---|---|---|
| Flat fee per signup | Fixed amount per qualified signup | $50 per signup | Low-price products, lead gen |
| Percentage of sale | Commission as % of first payment | 20% of first year | SaaS, subscription products |
| Recurring commission | % of revenue for customer lifetime | 15% monthly for 12 months | High-retention SaaS |
| Tiered commission | Increasing % based on volume | 15% for 1-10, 20% for 11-50, 25% for 50+ | Scaling affiliate programs |
| Performance bonus | Extra rewards for hitting targets | Extra $500 for 50+ signups/month | Motivating top affiliates |
| Model | Description | Pros | Cons |
|---|---|---|---|
| First-touch | Credit goes to first referral source | Simple, rewards discovery | Ignores influence chain |
| Last-touch | Credit goes to last referral source before signup | Simple, rewards conversion | Ignores awareness generation |
| Last non-direct click | Credit to last referral that isn't direct | Balances simplicity and accuracy | Still single-touch |
| Multi-touch | Credit split across all touchpoints | Most accurate | Complex to implement |
| Cookie-based with window | First/last touch within a cookie window (30-90 days) | Industry standard | Cookie limitations |
Payout terms:
Partner tiers:
| Tier | Qualification | Benefits |
|---|---|---|
| Standard | Any approved affiliate | Base commission rate, standard tracking |
| Silver | 10+ referrals/month | Higher commission, priority support |
| Gold | 50+ referrals/month | Highest commission, co-marketing, early access |
| Strategic | Custom | Custom terms, dedicated account manager |
Brand guidelines for affiliates:
| Metric | Formula | Benchmark |
|---|---|---|
| Referral rate | Users who refer / Total active users | 2-10% |
| Invite-to-signup conversion | Signups from referrals / Invites sent | 5-25% |
| Referred user activation rate | Activated referred users / Referred signups | Compare to organic |
| Referred user LTV | Average LTV of referred users | Typically 16-25% higher than organic |
| Program ROI | (Referred user revenue - Program costs) / Program costs | > 3x |
| Cost per referred acquisition | Total program costs / Referred signups | Should be < paid CAC |
Track the complete referral funnel:
Step 1: Eligible users (total active users) [N]
Step 2: Users who see referral prompt [N] ([X]% of step 1)
Step 3: Users who visit referral page [N] ([X]% of step 2)
Step 4: Users who copy link / send invite [N] ([X]% of step 3)
Step 5: Unique referred visitors (clicked link) [N] ([X]% of step 4)
Step 6: Referred signups [N] ([X]% of step 5)
Step 7: Referred activations [N] ([X]% of step 6)
Step 8: Referred paid conversions [N] ([X]% of step 7)
Step 9: Rewards issued [N] ([X]% of step 8)
| Metric | What It Tells You |
|---|---|
| Referred vs organic retention (30/60/90 day) | Are referred users sticking around? |
| Referred vs organic activation rate | Are referred users finding value? |
| Referred vs organic time-to-value | Are referred users activating faster? |
| Referrer retention impact | Do referrers retain better than non-referrers? |
| Top referrer concentration | Is the program over-reliant on a few power referrers? |
| Fraud rate | What % of referrals are fraudulent? (Target: <2%) |
Test: [Descriptive name]
Hypothesis: Changing [element] from [control] to [variant] will increase [metric] by [X]% because [reason]
Primary metric: [Referral rate / Invite-to-signup / Program ROI]
Secondary metrics: [Referred user quality, activation rate, LTV]
Sample: [Users exposed to referral prompt]
Duration: [Minimum 2-4 weeks]
Minimum sample: [200+ referrals per variant for statistical significance]
When designing a referral program, produce this specification:
# Referral Program Design Document
## Program Overview
- Program type: [Customer referral / Affiliate / Hybrid]
- Goal: [Primary objective -- e.g., reduce CAC, increase organic signups]
- Target audience: [Which users are eligible to refer]
- Launch timeline: [Phases and dates]
## Reward Structure
- Referrer reward: [Type, amount, timing]
- Referred reward: [Type, amount, timing]
- Reward calculation: [LTV x Margin - Target CAC = Max reward budget]
- Anti-fraud rules: [Self-referral, velocity, activation requirement]
## Referral Loop Design
- Trigger: [What prompts users to refer -- specific moments/prompts]
- Share mechanism: [Link, email, social, code -- which channels]
- Referred user experience: [Landing page, signup flow, first experience]
- Reward fulfillment: [How and when rewards are delivered]
## In-Product Surfaces
- [Surface 1]: [Location, design, trigger]
- [Surface 2]: [Location, design, trigger]
- [Surface 3]: [Location, design, trigger]
## Email Campaign Plan
- [Email 1]: [Trigger, segment, content summary]
- [Email 2]: [Trigger, segment, content summary]
## Terms and Conditions Summary
- Eligibility: [Who can participate]
- Reward limits: [Max referrals per user per period]
- Fraud policy: [What constitutes fraud, consequences]
- Expiration: [Reward expiration, program end date if applicable]
## Metrics and Measurement
- Primary KPIs: [List with targets]
- Funnel tracking: [Steps to instrument]
- Reporting cadence: [Weekly/monthly dashboard]
- Success criteria: [What constitutes program success at 30/60/90 days]
## Launch Plan
- Phase 1 (Soft launch): [Scope, audience, duration]
- Phase 2 (Full launch): [Scope, audience, channels]
- Phase 3 (Optimization): [A/B tests, iteration plan]
## Budget
- Estimated referral volume: [N referrals/month]
- Cost per referral: [$X (referrer reward + referred reward)]
- Monthly program cost: [$X]
- Expected ROI: [Revenue from referred users - Program costs]
| Pitfall | Consequence | Prevention |
|---|---|---|
| Launching before product-market fit | Low referral rates, poor referred user quality | Wait for NPS > 30 before investing in referral program |
| Reward too low | Insufficient motivation, low participation | Benchmark against competitors, test reward levels |
| Reward too high | Attracts mercenary referrers, unsustainable cost | Calculate max reward from LTV, monitor ROI |
| Complex sharing process | Users abandon before completing referral | Minimize steps (target 1-2 clicks to share) |
| No activation requirement | Fake signups to claim rewards | Require meaningful action before reward |
| Ignoring referred user experience | High signup but low activation for referred users | Design personalized onboarding for referred users |
| Set and forget | Program stagnates, no improvement | Monthly review, quarterly optimization |
| No fraud prevention | Program exploited, unsustainable costs | Implement fraud detection from day one |
Related skills: viral-loops, growth-loops, expansion-revenue
What SKILL.md sets; muted values are Claude Code's defaults
27 skills in this plugin
/activation-metricsWhen the user wants to define, measure, or optimize user activation -- including identifying the aha moment, measuring time-to-value, or building an activation funnel. Also use when the user says "activation rate," "aha moment," "setup moment," "habit moment," "time to value," or "how do I measure activation." For onboarding design, see product-onboarding. For retention, see retention-analysis./engagement-loopsWhen the user wants to design engagement loops that drive repeated product usage -- including notification strategy, habit formation, or re-engagement triggers. Also use when the user says "DAU/MAU," "habit loop," "trigger action reward," "engagement framework," or "how to bring users back." For retention analysis, see retention-analysis. For feature adoption, see feature-adoption./Other plugins' skills for the same job
/plg-skills:referral-programfrom plg-skills
npx claudepluginhub skenetechnologies/plg-skills --plugin plg-skills