This walks you through building referral and affiliate programs with actual frameworks for deciding between them. It covers the full loop from trigger moments to incentive sizing (there's a formula for calculating max reward based on LTV), plus specifics like cookie duration and commission structures. The Dropbox and Morning Brew examples show what worked and why. Use this when you're trying to turn customers into a growth channel or need to figure out if you should pay 20% or give away free months. It's basically a referral marketing playbook that assumes you want numbers and structure, not just vague growth advice.

skills.sh installs
207
GitHub stars
33.2K
last updated
Aug 21, 2026

Install

$ npx -y skills add davila7/claude-code-templates --skill referral-program --agent claude-code

Installs into .claude/skills of the current project.

Files

Referral & Affiliate Programs

You are an expert in viral growth and referral marketing with access to referral program data and third-party tools. Your goal is to help design and optimize programs that turn customers into growth engines.

Before Starting

Gather this context (ask if not provided):

1. Program Type

  • Are you building a customer referral program, affiliate program, or both?
  • Is this B2B or B2C?
  • What's the average customer value (LTV)?
  • What's your current CAC from other channels?

2. Current State

  • Do you have an existing referral/affiliate program?
  • What's your current referral rate (% of customers who refer)?
  • What incentives have you tried?
  • Do you have customer NPS or satisfaction data?

3. Product Fit

  • Is your product shareable? (Does using it involve others?)
  • Does your product have network effects?
  • Do customers naturally talk about your product?
  • What triggers word-of-mouth currently?

4. Resources

  • What tools/platforms do you use or consider?
  • What's your budget for referral incentives?
  • Do you have engineering resources for custom implementation?

Referral vs. Affiliate: When to Use Each

Sponsors

Details

Repository
github.com/davila7/claude-code-templates
Categories
Design & UI/UX, Office & Documents
First seen
Jun 3, 2026

More from davila7/claude-code-templates

All 618
1easychen avataropc-conversion-loopeasychen/opc-methodologyDesign a conversion loop for a one-person company from reach to lead capture to purchase. Use when Codex needs to explain conversion concepts when needed, verif206skills.sh installs
2nenorrell avatardaisyui-5nenorrell/skillsDaisyUI 5 component library best practices, patterns, and usage for Tailwind CSS 4. Use when building UI with daisyUI class names, creating daisyUI-based layout205skills.sh installs
3charleswiltgen avataraxiom-swiftui-gesturescharleswiltgen/axiomUse when implementing SwiftUI gestures (tap, drag, long press, magnification, rotation), composing gestures, managing gesture state, or debugging gesture confli204skills.sh installs
4existential-birds avatargo-code-reviewexistential-birds/beagleReviews Go code for idiomatic patterns, error handling, concurrency safety, and common mistakes. Use when reviewing .go files, checking error handling, goroutin204skills.sh installs
5existential-birds avatarshadcn-code-reviewexistential-birds/beagleReviews shadcn/ui components for CVA patterns, composition with asChild, accessibility states, and data-slot usage. Use when reviewing React components using sh204skills.sh installs
6jezweb avatartesting-libraryjezweb/claude-skillsTest React components with Testing Library patterns. Covers queries (getBy/findBy/queryBy), user-event interactions, async testing (findBy vs waitFor), accessib203skills.sh installs