Agent skill
Referral program
When the user wants to plan, implement, or optimize referral program strategy. Also use when the user mentions "referral program," "referral marketing,"...
New to this? An agent skill is a file of instructions your AI assistant follows for one job. The text above is written for the assistant. How to use a skill
What it does
Referral program is a marketing skill from kostja94/
In short, it walks your assistant through a marketing job the way a specialist would.
The file is 130 lines long and is set out in parts such as “Initial Assessment”, “Referral vs. Affiliate vs. Influencer”, “Reward Models” and “Mechanism Types”.
It is plain instructions, with no code to run.
When to use it
Reach for it when you are planning, writing or checking marketing work and want a repeatable process.
Everything it needs is in this one file.
It does not ask for special tools.
Safety check
Our checker read all 130 lines before we listed it.
It found no attack techniques, no hidden text and no steps that switch off your assistant's safety or send your data away.
It flagged nothing else to watch for.
The text links to no outside sites.
It is shared under the MIT license.
Still read it before you use it, like any instructions you give your AI.
Open in the appOriginal on GitHub
What is inside
- Initial Assessment
- Referral vs. Affiliate vs. Influencer
- Reward Models
- Mechanism Types
- Tracking & Attribution
- Fraud Prevention
- Design Framework
- Best Practices
How to use it
- Claude Code: save the text as
.claude/skills/referral-program/SKILL.mdin your project. Claude reads it when a task needs it. - Claude, ChatGPT or Gemini: tap Copy skill and paste it into the chat. It arrives with a short line asking the assistant to use it.
- Cursor and other agents: add it to the project rules or instructions.
Read the full guide to using an agent skill
Want your own? How to write an agent skill that works
The full skill
---
name: referral-program
description: When the user wants to plan, implement, or optimize referral program strategy. Also use when the user mentions "referral program," "referral marketing," "user referral," "refer-a-friend," "word-of-mouth growth," "referral rewards," "referral tracking," "referral code," "referral incentives," or "viral loop." For referral landing copy, use landing-page-generator.
metadata:
version: 1.0.1
---
# Channels: Referral
Guides referral program strategy for AI/SaaS products. Leverage existing users to drive growth; 3%-5% conversion vs 1%-2% for ads; CAC 50%-70% lower; referred users LTV 30%-50% higher, retention 20%-30% higher. Referral is necessity in overseas markets, not alternative.
**When invoking**: On **first use**, if helpful, open with 1-2 sentences on what this skill covers and why it matters, then provide the main output. On **subsequent use** or when the user asks to skip, go directly to the main output.
## Initial Assessment
**Project context:** Read root `{project}.md` when present and load only the modules relevant to this task. Without Contextus, use available project material or user-provided facts and ask for missing information; do not create a parallel context system.
Identify:
1. **Product type**: SaaS, AI tool, subscription
2. **User base**: Size, engagement, retention
3. **Goal**: Signups, purchases, or both
## Referral vs. Affiliate vs. Influencer
| Dimension | Referral | Affiliate | Influencer |
|-----------|----------|-----------|------------|
| **Who** | Existing users | Professional promoters | KOLs |
| **Incentive** | Discounts, credits | Commission | Fees, product |
| **Barrier** | Low (all users) | Medium | High |
| **Conversion** | 3%-5% | Varies | Varies |
**Referral vs affiliate**: Referral needs no landing page or application; integrated in dashboard. Affiliate requires landing page and approval.
## Reward Models
| Model | Use |
|-------|-----|
| **Two-way** | Both referrer and referee get rewards; highest participation |
| **One-way** | Only referrer rewarded; cost control |
| **Tiered** | Rewards increase with referral count (e.g. $10 for 1-5, $15 for 6-10, $20 for 11+); incentivizes volume |
**Benchmark**: Rewards typically 10%-30% of product price; ~11% off or ~$21 value; weak incentives = low participation. Triggers: signup, purchase, activation, or sustained use.
## Mechanism Types
| Type | Use |
|------|-----|
| **Link-based** | Unique referral link; easy to implement; accurate tracking; share via email, social, SMS; works for web and app |
| **Code-based** | Referral code (e.g. FRIEND20); memorable; offline events; mobile-friendly input |
| **Social referral** | Share buttons (Facebook, X, LinkedIn); viral spread; friend trust; young users |
## Tracking & Attribution
| Method | Use |
|-------|-----|
| **Cookie** | Web apps; 30-90 day window |
| **URL params** | All platforms; persistent in link |
| **Referral code** | Mobile, offline; manual entry |
| **Account association** | Long-term tracking; subscription products |
**Attribution window**: 30-90 days typical; 180 days for subscription. First-touch attribution to avoid double-counting.
## Fraud Prevention
| Risk | Action |
|------|--------|
| **Self-referral** | Detect same device, payment, IP |
| **Fake accounts** | Validate email, payment; monitor patterns |
| **Bulk/automation** | Rate limits; anomaly detection |
| **Per-user cap** | e.g. Max 10 referrals per user |
Use tool anti-fraud features; audit referrals regularly.
## Design Framework
1. **Reward structure**: Type (cash, discount, credits, free service); amount (10%-30% of price); trigger; cap
2. **Tracking**: Choose method; set attribution window; first-touch rule
3. **UX**: One-click share; clear rules; dashboard with referral data; notify on success
4. **Fraud prevention**: See above
5. **Monitor & optimize**: Referral rate, conversion, CAC, LTV; A/B test rewards and flow
## Best Practices
- **Run multiple programs**: Target different audiences, stages, goals
- **Tiered rewards**: Motivate top performers; progressive incentives
- **Friction-free sharing**: Mobile-friendly; one-click share
- **Time-boxed incentives**: "Refer this week for $15 off" creates urgency
- **Placement**: Web, email, app, in-product touchpoints; dashboard integration primary
## Implementation
| Approach | Use |
|----------|-----|
| **Self-build** | Full control; low cost; URL params or cookie + reward logic + fraud checks; open-source (e.g. RefRef) for faster start |
| **Third-party** | Fast launch; Cello, Viral Loops, ReferralCandy (e-commerce), Impact (enterprise); monthly fee |
**Placement**: Most programs integrate in product dashboard; no landing page or application needed. Optional landing page for value prop, rewards, and case studies.
**Startup cost**: Typically hundreds for tools + dev.
## Tools
| Tool | Use |
|------|-----|
| **Cello** | SaaS; AI-driven automation |
| **Viral Loops** | Referral + waitlist + contests |
| **ReferralCandy** | Shopify, e-commerce |
| **Impact** | Enterprise; unified platform |
| **RefRef** | Open-source; self-hosted |
## KPIs
Referral rate, conversion, CAC, LTV of referred users, referred-user retention.
## Output Format
- **Reward model** and mechanism type (link/code/social)
- **Tracking** approach and attribution window
- **Placement** (dashboard vs landing page)
- **Fraud prevention** measures
- **Tool** selection (self-build vs third-party)
- **KPI** framework
## Related Skills
- **discount-marketing-strategy**: Referral rewards (discounts, credits); 10–30% benchmark; campaign design
- **affiliate-marketing**: Different audience; can run both
- **influencer-marketing**: Brand building vs. user-driven growth
- **directory-submission**: Directory submission for discovery; referral for user-driven growth
- **analytics-tracking**: Referral link tracking, UTM
Copyright (c) 2025 kostja94.
Published under the MIT License, which you can read in full there.
Shown as published on GitHub, with credit and a link to the original.
Read it before you use it.
More skills
Product hunt launch
When the user wants to launch on Product Hunt, prepare a PH submission, or plan launch day (hunter, first comment, timing, upvotes).
Email marketing
When the user wants to plan email marketing, EDM, newsletter strategy, or email deliverability.
Affiliate marketing
When the user wants to plan, implement, or optimize affiliate marketing strategy.
Try it in your browser
Today's AI news, one card per swipe.
Free to start.