Marketing skills for Claude Code and AI agents. CRO, copywriting, SEO, analytics, and growth engineering.
JavaScript agent-skillsai-agentsai-seoclaudeclaude-codeclaude-code-pluginclaude-skillscodexcontent-marketingconversion-rate-optimizationcopywritingcursoremail-marketinggenerative-engine-optimizationgrowth-marketingmarketingmarketing-automationsaas-marketingseoskill-md
feat: expand affiliate operations in referrals
Rudy Celekli2d5ae639929e
diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.jsonindex ea384a9..a6f60db 100644--- a/.claude-plugin/marketplace.json+++ b/.claude-plugin/marketplace.json@@ -6,7 +6,7 @@},"metadata": {"description": "Marketing skills for AI agents — conversion optimization, copywriting, SEO, paid ads, and growth",- "version": "2.11.17",+ "version": "2.11.18","repository": "https://github.com/coreyhaines31/marketingskills"},"plugins": [diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.jsonindex 83527da..d155ceb 100644--- a/.claude-plugin/plugin.json+++ b/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "marketing-skills","description": "Marketing skills for AI agents — conversion optimization, copywriting, SEO, paid ads, ad creative, and growth",- "version": "2.11.17",+ "version": "2.11.18","author": {"name": "Corey Haines"},diff --git a/.codex-plugin/plugin.json b/.codex-plugin/plugin.jsonindex 7f59e6e..5884655 100644--- a/.codex-plugin/plugin.json+++ b/.codex-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "marketing-skills","description": "Marketing skills for AI agents — conversion optimization, copywriting, SEO, paid ads, ad creative, and growth",- "version": "2.11.17",+ "version": "2.11.18","author": {"name": "Corey Haines"},diff --git a/VERSIONS.md b/VERSIONS.mdindex 404f2de..62bb470 100644--- a/VERSIONS.md+++ b/VERSIONS.md@@ -44,7 +44,7 @@ Current versions of all skills. Agents can compare against local versions to che| programmatic-seo | 2.0.0 | 2026-05-05 || prospecting | 1.1.2 | 2026-10-02 || public-relations | 1.2.0 | 2026-10-02 |-| referrals | 2.0.2 | 2026-10-02 |+| referrals | 2.1.0 | 2026-10-04 || revops | 2.0.1 | 2026-10-02 || sales-enablement | 2.3.2 | 2026-10-02 || schema | 2.0.0 | 2026-05-05 |@@ -57,6 +57,10 @@ Current versions of all skills. Agents can compare against local versions to che## Recent Changes+### 2.11.18 (2026-10-04)++- **referrals** (2.0.2 → 2.1.0): expands the affiliate branch requested in #476 with cohort economics, partner activation, attribution/eligibility/payout decisions, commission reconciliation and incrementality measurement. Preserves tracking rails and influencer handoffs; credits the #417 foundation.+### 2.11.17 (2026-10-02)- **video** (2.2.0 → 2.2.1) and the **Hyperframes integration guide** (reported in #600 by @pjthegiant): the old example called a `render({ frames })` API that the `hyperframes` package doesn't export. Both now lead with the CLI (`npx hyperframes init`, `preview`, `render -o output.mp4`) and explain the composition format: a root with `data-composition-id`, `class="clip"` elements with timing attributes, and a paused GSAP timeline. Rendering from code goes through `@hyperframes/producer` (`createRenderJob` + `executeRenderJob`). Checked against v0.8.114.diff --git a/skills/referrals/SKILL.md b/skills/referrals/SKILL.mdindex 5221f9f..d072203 100644--- a/skills/referrals/SKILL.md+++ b/skills/referrals/SKILL.md@@ -2,7 +2,7 @@name: referralsdescription: "When the user wants to create, optimize, or analyze a referral program, affiliate program, or word-of-mouth strategy. Also use when the user mentions 'referral,' 'affiliate,' 'ambassador,' 'word of mouth,' 'viral loop,' 'refer a friend,' 'partner program,' 'referral incentive,' 'how to get referrals,' 'customers referring customers,' or 'affiliate payout.' Use this whenever someone wants existing users or partners to bring in new customers. For launch-specific virality, see launch."metadata:- version: 2.0.2+ version: 2.1.0---# Referral & Affiliate Programs@@ -68,6 +68,8 @@ If the product is on the natural end, consider **product-embedded viral mechanis### Affiliate Programs+For partner recruitment/activation, cohort economics, executable terms, reconciliation, and measured incremental growth, load [the operating playbook](references/affiliate-operations.md). This expands the existing affiliate branch instead of creating an overlapping skill.+**Best for:**- Reaching audiences you don't have access to- Content creators, influencers, bloggersdiff --git a/skills/referrals/evals/evals.json b/skills/referrals/evals/evals.jsonindex 2f37f80..dc91c74 100644--- a/skills/referrals/evals/evals.json+++ b/skills/referrals/evals/evals.json@@ -98,6 +98,19 @@"References viral-mechanisms.md"],"files": []+ },+ {+ "id": 8,+ "prompt": "We want an affiliate program for B2B SaaS. Last month partner-attributed customers paid12000, refunds2000, variable costs3000, partner support800, operations1200, payout fees100. A20% commission applies to net collected eligible revenue. An agency introduced new buyers; a coupon site touched existing customers at checkout. Draft the program and explain how to tell if it grows the business.",+ "expected_output": "Uses the existing affiliate branch, computes eligible10000/commission2000/contribution2900, specifies actual attribution and payout policies, and separates attribution from incrementality. Proposes useful partner recruitment/activation/reconciliation rather than reflexively creating an overlapping skill or calling every coupon partner fraud.",+ "assertions": [+ "Computes cohort economics without double-counting refunds",+ "Separates incremental acquisition from credited coupon touches",+ "Defines eligibility, attribution priority, hold and payout decisions",+ "Distinguishes link creation from real partner activation",+ "Does not equate marked-paid status with a verified money transfer"+ ],+ "files": []}]}diff --git a/skills/referrals/references/affiliate-operations.md b/skills/referrals/references/affiliate-operations.mdnew file mode 100644index 0000000..d06fd75--- /dev/null+++ b/skills/referrals/references/affiliate-operations.md@@ -0,0 +1,66 @@+# Operating an Affiliate Program++Load this for recruiting and managing commission-based partners, rather than a customer refer-a-friend loop. Keep tracking and tool selection in `affiliate-programs.md`; creator sponsorship and audience/content vetting belong to influencer-marketing. Recruit suitable partners through prospecting, then use this playbook for economics, activation, terms, and reconciliation.++## 1. Check Economics Before Offering a Rate++Use collected eligible revenue and the business's actual variable costs, refund/churn history, partner support, tooling, recruitment, and payout fees. Define whether taxes, discounts, refunds, renewals, upgrades, and existing customers belong in the commission base. A headline percentage without its base and duration is not a program offer.++```text+cohort contribution = collected eligible revenue after refunds+ - product/service variable costs+ - affiliate commissions+ - partner support and program operations+ - payout fees+```++Illustrative cohort, not an industry benchmark: $12,000 collected minus $2,000 refunds leaves $10,000 eligible revenue. At 20%, commission is $2,000. With $3,000 variable costs, $800 partner support, $1,200 program operations, and $100 payout fees, contribution is $2,900. State the period and avoid counting support in both variable costs and operations. Deferred or clawed-back commissions need their own ledger entries, not a second subtraction of the same refund.++For recurring programs, model actual retention and commission duration by cohort. For lead/demo bounties, define an accepted action and duplicates, cancellations, and qualification criteria before quoting a rate. Compare with the same acquisition/payback period used for other channels; attributed revenue alone does not prove incremental revenue.++## 2. Recruit for an Audience and Activation Plan++Build a small prospect shortlist with audience/ICP evidence, relevant content, acquisition channel, and a realistic first placement. Distinguish editorial publishers, consultants/agencies, complementary products, creators, and coupon partners: they may introduce demand or intercept an existing purchase differently.++Use a funnel with denominators: qualified candidates → contacted → accepted → activated → first accepted conversion → retained productive partner. Count distinct partners: several placements can belong to one partner. An accepted application or generated link is not an activated partner. Define activation as a real, approved placement or campaign, and follow up with useful enablement rather than more generic recruitment messages.++Prepare an offer with audience fit, commission base/rate/duration, eligibility, allowed channels, payment timing, support contact, and the proposed first activity. Draft outreach without claiming familiarity with work you have not reviewed. Apply existing user authorization before sending.++## 3. Make the Rules Executable++Return a terms decision table for review, not invented legal boilerplate:++| Decision | Specify |+|---|---|+| Attribution | Link/code priority, window, repeat purchases, cross-device gaps, and competing partners |+| Eligible conversion | New/existing customer treatment, accepted lead/order, refunds and cancellations |+| Channel policy | Brand bidding, coupon publishing, email outreach, paid ads, self-referrals, and sub-affiliates |+| Commission | Base, rate, duration, tier transitions, currency and rounding |+| Payout | Hold period, threshold, schedule, verification, disputes and chargeback handling |+| Changes/exit | Effective date, treatment of accrued commissions, notice and dispute contact |++Use the user's agreed policy and the platform's capabilities; do not promise a tracking rule the tool cannot implement. Legitimate coupon partners are not automatically fraud. Shared IPs or devices can be a signal for review, not proof of abuse. Apply rules consistently and retain the evidence for decisions.++For US-facing endorsements, consult the [FTC's current affiliate disclosure guidance](https://www.ftc.gov/business-guidance/resources/ftcs-endorsement-guides-what-people-are-asking). Partners should explain the material connection clearly near the recommendation/link, rather than relying on a hidden terms page or an ambiguous label. Example draft: “I earn a commission if you buy through this link.” Match the actual relationship and language; do not fabricate personal use or authorize unsupported product claims. Other markets and channels need their applicable guidance.++## 4. Activate, Reconcile, and Support++Give the partner a tested link/code, truthful positioning, approved assets, disclosure guidance, a first-placement plan, and a support contact. Test the customer journey and attribution with authorized test data before inviting a broad cohort.++Reconcile the underlying eligible conversion to pending, approved/due, paid, refunded/adjusted, or disputed commission using the platform's actual states. Preserve stable order/customer/partner identifiers and effective policy version. Replayed webhooks and exports must not count a conversion or payment twice.++Choose the hold period from actual refund/cancellation exposure and agreed terms. Verify whether the tool only calculates commissions or also sends payouts; marking a commission paid is not necessarily a money transfer. For example, Rewardful documents its [commission payment workflow](https://help.rewardful.com/en/articles/2773351-how-do-i-pay-commissions) and [refund handling](https://www.rewardful.com/automated-refund-handling). Those capabilities do not establish every other platform's behavior.++Review a partner cohort regularly: inactive partners may need an asset or clearer audience fit; productive ones may need better landing pages or support. Handle a disputed sale with the actual attribution record, policy and refund state. Do not silently retroactively change earned commissions to make a report look better.++## 5. Measure Growth Separately from Attribution++Report active placements, accepted conversions, collected eligible revenue, refund/churn by cohort, commissions pending/due/paid, total program cost, and contribution. Keep new customers separate from existing-customer upgrades and late coupon touches. Trace acquisition quality through retention instead of optimizing raw affiliate clicks.++Where feasible, compare a bounded partner rollout or holdout with an equivalent untreated cohort. Label observational comparisons and attribution limitations honestly. Cookie/code attribution assigns credit; it cannot establish what would have happened without the affiliate.++### Deliverable++Return a cohort economics worksheet with explicit assumptions, partner shortlist and activation funnel, reviewed terms decisions, enablement checklist, reconciliation sample, and a small launch plan. Define success/stop criteria from the business's measured margins and coverage. Keep recruitment, policy edits, and payouts within the user's authorized scope.++Scope decision for [#476](https://github.com/coreyhaines31/marketingskills/issues/476): expand referrals rather than add a competing affiliate skill. The original program contribution was offered by @Adi29102000-s in #417; this operating playbook is newly authored, with credit for that foundation and the maintainer's split-scope request.diff --git a/skills/referrals/references/affiliate-programs.md b/skills/referrals/references/affiliate-programs.mdindex 423be46..e7e7b1d 100644--- a/skills/referrals/references/affiliate-programs.md+++ b/skills/referrals/references/affiliate-programs.md@@ -121,7 +121,7 @@ Provide affiliates with:**Partner Relationship Management (PRM):**- Introw — Full PRM with deal registration, commissions, tiers, QBRs, and partner engagement tracking ([integration guide](https://github.com/coreyhaines31/marketingskills/blob/main/tools/integrations/introw.md))-**Self-hosted:**+**Additional platforms:**- Rewardful — Stripe-integrated affiliates- Refersion — E-commerce affiliates@@ -142,7 +142,7 @@ Consider:### Common Referral Fraud- Self-referrals (creating fake accounts)- Referral rings (groups referring each other)-- Coupon sites posting referral codes+- Unauthorized coupon distribution or attribution interception- Fake email addresses- VPN/device spoofing