referral-viral-loops

referral-viral-loops is a skill for Claude Code, Codex from finsilabs/awesome-ecommerce-skills. It costs 31 tokens per session (2,479 once invoked), scanned A, original, MIT.

An ecommerce referral-program module for rewarding existing customers and the new customers they bring through tracked referral links.

In plain words
What is it for?
Use it to plan two-sided rewards, referral links, reward fulfilment, fraud controls, and measures such as the viral coefficient.
Why use it?
It turns informal word-of-mouth recommendations into a program whose rewards and results can be tracked. It also addresses abuse such as fraudulent referrals.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex; mentions Gemini CLI.

Good fit Use it to plan two-sided rewards, referral links, reward fulfilment, fraud controls, and measures such as the viral coefficient.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/finsilabs/awesome-ecommerce-skills/referral-viral-loops
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add finsilabs/awesome-ecommerce-skills --skill referral-viral-loops
Clone the repo
git clone --depth 1 https://github.com/finsilabs/awesome-ecommerce-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for referral-viral-loops

README.md
[![agentmods](https://agentmods.dev/badge/skills/finsilabs/awesome-ecommerce-skills/referral-viral-loops/github.svg)](https://agentmods.dev/skills/finsilabs/awesome-ecommerce-skills/referral-viral-loops)
Your own site
<a href="https://agentmods.dev/skills/finsilabs/awesome-ecommerce-skills/referral-viral-loops"><img src="https://agentmods.dev/badge/skills/finsilabs/awesome-ecommerce-skills/referral-viral-loops/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for referral-viral-loops

Your own site · 80×15
<a href="https://agentmods.dev/skills/finsilabs/awesome-ecommerce-skills/referral-viral-loops"><img src="https://agentmods.dev/badge/skills/finsilabs/awesome-ecommerce-skills/referral-viral-loops.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,479 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00031 $0.02479
Opus 5 $0.00015 $0.01239
Sonnet 5 $0.00006 $0.00496
Haiku 4.5 $0.00003 $0.00248

Measured 9d ago against content hash 08482daa3ed3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

referral-viral-loops scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/marketing-growth/referral-viral-loops/SKILL.md · 216 lines

How it starts

The opening of the file, as written. The whole thing — 216 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Referral Viral Loops

Overview

Word-of-mouth referral programs are one of the lowest-cost customer acquisition channels — referred customers have 37% higher retention rates and 25% higher LTV than non-referred customers. A dual-sided referral (reward both the referrer and the new customer) typically outperforms one-sided rewards by 2–3×. Dedicated referral apps (ReferralCandy, Friendbuy, Yotpo Loyalty) handle link generation, reward fulfillment, and fraud controls without custom code.

When to Use This Skill

  • When CAC is high and word-of-mouth is underutilized
  • When existing customers frequently refer friends informally but there is no structured program to track and reward it
  • When needing to scale a referral program that has been running manually
  • When wanting to calculate K-factor and optimize the program's viral coefficient

Core Instructions

Step 1: Choose the right referral platform

Platform Best For Shopify WooCommerce BigCommerce Price
ReferralCandy Simple setup, all major platforms App Store Plugin App Marketplace $59+/mo
Friendbuy Mid-market DTC, A/B testing rewards App Store Via JS Via JS $249+/mo
Yotpo Loyalty Brands already using Yotpo App Store Limited App Marketplace $199+/mo
Smile.io Referrals Already using Smile.io for loyalty App Store Plugin App Marketplace Included in $49/mo plan
Rewardful SaaS + ecommerce via Stripe Via Stripe Via Stripe Via Stripe $49+/mo
AffiliateWP WooCommerce-native Plugin $149/yr

Recommendation: Use ReferralCandy for most stores — quick setup, dual-sided rewards built in, fraud detection included, and competitive pricing. If you are already using Smile.io for loyalty, add their referral module instead of a separate app.

Step 2: Design your referral program structure

Before installing anything, define the reward structure:

Read the full file on GitHub · 216 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 216 lines · 31 tokens per session scan A 08482daa3ed3

Subscribe to this mod's changes

referral-viral-loops is a skill published in the GitHub repository finsilabs/awesome-ecommerce-skills (52 stars, last pushed 6mo ago), licensed MIT. It adds 31 tokens to every session and 2,479 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

referral-copy-writer

Writes the in-email referral section that asks existing subscribers to share the newsletter with colleagues or friends — including the ask, the framing of the reward or reciprocity, and the specific share copy subscribers can use verbatim.

ur-grue/autopunk-media-skills · 49 tokens

churn-prevention

Reduce voluntary and involuntary churn — cancel flow design, save offers, exit surveys, dunning sequences, and payment recovery.

SebastianLuser/claude-code-arcane · 30 tokens

amazon-reviews-api-skill

This skill helps users automatically extract Amazon product reviews via the Amazon Reviews API. Agent should proactively apply this skill when users express needs like getting reviews for Amazon product with ASIN B07TS6R1SF, analyzing customer feedback for a specific Amazon item, getting ratings and comments for a…

browser-act/skills · 124 tokens

amazon-competitor-analyzer

Scrapes Amazon product data from ASINs using browseract.com automation API and performs surgical competitive analysis. Compares specifications, pricing, review quality, and visual strategies to identify competitor moats and vulnerabilities.

browser-act/skills · 48 tokens

asc-subscription-localization

Bulk-localize subscription, subscription-group, and in-app purchase display names across App Store locales using asc, including API 4.4.1 version-scoped v2 resources. Use when filling or updating subscription/IAP names and descriptions without App Store Connect UI work.

rorkai/app-store-connect-cli-skills · 60 tokens

food-order

Reorder previous Foodora orders, preview cart contents, and track delivery ETA/status with ordercli. Use when the user wants to reorder food, check delivery status, or browse recent Foodora order history. Never confirm an order without explicit user approval.

Bitterbot-AI/bitterbot-desktop · 53 tokens