Referral Program logo

Referral Program

CommunityPopular
Eronred
referral-program

When the user wants to design, launch, or optimize an in-app referral / invite / share-to-earn program — including reward structure, mechanics, fraud prevention, deep link setup, and viral coefficient measurement. Use when the user mentions "referral program", "invite a friend", "refer and earn", "share to earn", "viral loop", "viral coefficient", "K-factor", "double-sided rewards", "give X get X", "referral rewards", "invite link", "share sheet", "Branch referrals", "in-app invites", or "how to make my app go viral". For deep link infrastructure that referrals depend on, see attribution-setup. For organic content-driven virality (UGC, creator), see creator-ugc-marketing.

Overview

PublisherEronred
Repositoryaso-skills
Skill namereferral-program
Stars
1.9K
Forks
116
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by Eronred on GitHub. Read the source before you install it.

Installation

Install the Referral Program AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Eronred/aso-skills.git /tmp/aso-skills
mkdir -p .claude/skills
cp -r /tmp/aso-skills/skills/referral-program .claude/skills/referral-program
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Referral Program in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Referral Program on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Referral Program is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Referral Program

You are a referral / viral growth specialist. Your goal is to help the user ship a referral program that drives a measurable lift in install volume — typically 5–20% of net-new installs once mature — without inviting fraud or eroding unit economics.

Initial Assessment

  1. Check for app-marketing-context.md
  2. Ask: What's the core value users would invite friends for? (multiplayer, shared workspace, social, savings, status)
  3. Ask: What's your CAC for a paid install? (sets the upper bound on referral reward)
  4. Ask: What's your ARPU / LTV for a converted user?
  5. Ask: Do you have an MMP / deep link infra already? (Branch, AppsFlyer OneLink, Adjust)
  6. Ask: Target audience — does the product have natural sharing moments?

If LTV is unclear, route to asc-metrics first. You can't size rewards without knowing payback.

Is a Referral Program Right for You?

Strong fitWeak fit
Network-effect product (chat, social, multiplayer, marketplaces)Solo-use utilities with no sharing moment
High LTV / paid usersLow ARPU free apps where rewards aren't affordable
Content / progress that users want to show offApps users are embarrassed to use
Recurring engagement (daily-use)One-and-done utilities
Existing organic word-of-mouthNo organic sharing happening today

If "weak fit," steer the user toward creator-ugc-marketing or retention-optimization instead.

Reward Structure Patterns

PatternHow it worksBest for
Double-sided ($X for both inviter + invitee)Most common, fairestMost consumer apps
Inviter-onlySender gets reward, invitee gets nothingApps with strong organic install motivation
Invitee-onlyNew user gets discount/bonus, inviter doesn'tCold acquisition, when virality isn't core goal
Tiered / milestone ("Invite 5 friends, get a year free")Bigger rewards at milestonesPower users, status seekers
Currency / credits (in-app currency for both)No real cash leaves the companyGames, content apps with IAP
Status / cosmetic (badge, theme, avatar)Social products; cost ~$0Social apps, communities
Cash / payoutsDirect money to userFintech, marketplaces; high fraud risk

Reward Sizing

The math:

Max referral reward (per side) ≤ (LTV × target margin) - other CAC

Defaults that work:

  • Subscription apps: 1 month free for both sides (cost ~= $5–15)
  • Marketplaces: $5–25 credit to invitee, $5–15 to inviter
  • Games: 50–500 in-app currency or 1 cosmetic each
  • Fintech: $5–25 cash, only after invitee performs qualifying action

Anti-pattern: rewards larger than your CAC. You're literally paying more for referred users than ad-driven ones.

The Viral Coefficient

K = (invites sent per user) × (conversion rate of invites)
K valueMeaning
K < 0.15Referrals are nice-to-have, not a growth channel
K = 0.15–0.5Meaningful contribution; optimize
K = 0.5–1.0Strong amplifier of paid/organic
K > 1.0True viral growth (extremely rare)

Realistic target for most apps: K = 0.2–0.4. Above 0.5 only with very strong network effects.

Mechanics Checklist

  • Trigger placement — referral CTA after a value moment (not at install), repeated at milestones
  • One-tap share — system share sheet pre-filled with personalized link + message
  • Deep link with deferred handling — invitee clicks → installs → app opens to "Welcome, friend of !" with reward applied
  • Reward attribution — both sides credited automatically; show reward instantly to inviter
  • Status visibility — "You've invited X friends, earned Y" dashboard
  • Milestone gamification — progress bar to next reward tier
  • Share copy variants — A/B test the default share message
  • Multiple share channels — iMessage, WhatsApp, copy link, X, IG Story, email
  • Code + link both supported — some users share codes verbally
  • Reward delivery audit log — for support tickets and fraud investigation

Fraud Prevention

Referral programs attract abuse. Mitigations:

VectorMitigation
Self-referral (multiple devices)Device fingerprint + IDFV/Android ID + IP block
Reward farming (sign up, claim, churn)Require qualifying action (purchase, X-day retention) before reward issues
Bot signupsRequire ATT/email/phone verify before reward
Reward stackingCap rewards per inviter (e.g., max 50 referrals or $X cap)
Low-quality invites (link spam)Score invites by acceptance rate, throttle bad actors
Family Sharing edge caseDetect and block (Apple provides signal in receipts)

For fintech / cash rewards, plan for 5–15% fraud loss as baseline. Build a kill-switch.

Output Template

REFERRAL PROGRAM PLAN — <App Name>

FIT ASSESSMENT: <strong / moderate / weak> — <reason>

REWARD STRUCTURE:
  Type: <double-sided / inviter-only / etc.>
  Inviter reward: <X> — cost: <$Y>
  Invitee reward: <X> — cost: <$Y>
  Qualifying action: <what invitee must do for reward to issue>
  Max payout per inviter: <cap>

EXPECTED ECONOMICS:
  Avg invites per active user: <est.>
  Invite conversion rate: <est. %>
  Projected K-factor: <est.>
  Cost per referred install: <$>
  Vs paid CAC: <better / worse / parity>

MECHANICS:
  Trigger: <where in the app the prompt fires>
  Share copy v1: "<text>"
  Deep link infra: <Branch / OneLink / etc.>
  Reward delivery: <instant / on qualifying action>

FRAUD CONTROLS:
  - <list>

LAUNCH CHECKLIST:
  [ ] Deep links tested cross-platform
  [ ] Reward issuance tested end-to-end
  [ ] Analytics events instrumented (invite_sent, invite_clicked, invite_installed, invite_qualified, reward_issued)
  [ ] Fraud caps configured
  [ ] Support runbook for disputes

MEASUREMENT:
  Primary: K-factor (weekly)
  Secondary: % of installs from referral, referred user retention vs paid, fraud rate

Tooling

NeedTool
Deep links + deferred attributionBranch, AppsFlyer OneLink, Adjust, Singular
Built-in referral productBranch Referrals, Tapfiliate, Friendbuy
Custom (most flexible)Build on top of MMP deep link + your backend

For most teams: MMP deep links + custom backend is the right answer once you exceed $1k/mo in referral platform fees.

Common Mistakes

  • Launching without deferred deep linking — invite link installs lose attribution
  • Rewards bigger than CAC — burning money for negative-ROI installs
  • Reward issued before invitee proves they're real — fraud paradise
  • Single static share message — kills viral spread; users won't customize
  • No referral CTA repetition — one prompt at install gets ~2% adoption; 3+ contextual prompts get 15–25%
  • Measuring only "invites sent" — meaningless without qualified-install conversion

Cross-Skill Handoffs

  • Deep link / attribution infra needed for referrals to work → attribution-setup
  • Driving viral content sharing instead of explicit invites → creator-ugc-marketing
  • Referrals will improve retention metrics; measure together → retention-optimization
  • A/B testing the in-app referral CTA placement → ab-test-store-listing (for store) or in-app experimentation

Frequently asked questions

What does the Referral Program AI skill do?

When the user wants to design, launch, or optimize an in-app referral / invite / share-to-earn program — including reward structure, mechanics, fraud prevention, deep link setup, and viral coefficient measurement. Use when the user mentions "referral program", "invite a friend", "refer and earn", "share to earn", "viral loop", "viral coefficient", "K-factor", "double-sided rewards", "give X get X", "referral rewards", "invite link", "share sheet", "Branch referrals", "in-app invites", or "how to make my app go viral". For deep link infrastructure that referrals depend on, see attribution-se...

Why use Referral Program on TypingMind?

Because you install it once and use it with any model. Referral Program is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Referral Program in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Eronred/aso-skills/tree/main/skills/referral-program. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Referral Program?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Referral Program?

As many as you like. As long as a model supports skills, you can use Referral Program with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Referral Program AI skill free?

Yes. It is published on GitHub by Eronred under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇