Affiliate Marketing skill

Affiliate Marketing is an agent skill for AI coding assistants (Claude Code, OpenClaw, Cursor, Codex). Affiliate program design, commission structures, partner recruitment, tracking implementation, and performance optimization. Install with: npx skills-ws install affiliate-marketing.

growthv1.0.0Updated
copied ✓
openclawclaude-codecursorcodex
0 installsVirusTotal: cleanSource code

Affiliate Marketing

Workflow

1. Program Structure

In-house vs network:

FactorIn-houseNetwork (ShareASale, Impact, etc.)
Setup costHigher (build tracking)Lower (platform fee)
Commission feeNone (just payouts)20-30% on top of commission
ControlFullLimited by platform rules
RecruitmentYou do it allAccess to affiliate marketplace
TrackingCustom or SaaS (Rewardful, FirstPromoter)Built-in
Best forSaaS, high-value productsE-commerce, consumer products

Recommendation: Start in-house with a SaaS tracker (Rewardful, PartnerStack, FirstPromoter). Move to network only if you need volume affiliate recruitment.

2. Commission Models

ModelStructureBest forExample
CPA (Cost Per Acquisition)Flat fee per signup/saleSaaS free trials, lead gen$50 per paid signup
CPS (Cost Per Sale)% of sale valueE-commerce, variable pricing20% of first purchase
Recurring% of subscription revenueSaaS with monthly billing20% recurring for 12 months
TieredIncreasing % at volume thresholdsMotivating top performers20% (1-10), 25% (11-50), 30% (50+)
HybridBase CPA + recurring bonusBalanced motivation$25 CPA + 10% recurring

Setting commission rates:

  • Calculate your CAC from other channels
  • Set affiliate commission at 30-50% of your average CAC (profitable from day 1)
  • For SaaS: recurring commission should cap at 12 months (prevents perpetual liability)
  • Review rates quarterly based on affiliate-sourced LTV vs other channels

3. Tracking Implementation

Server-side tracking (recommended — survives ad blockers):

// On referral click — store affiliate ID
app.get('/ref/:affiliateId', (req, res) => {
  res.cookie('affiliate_id', req.params.affiliateId, {
    maxAge: 30 * 24 * 60 * 60 * 1000, // 30-day cookie
    httpOnly: true,
    secure: true,
    sameSite: 'lax'
  });
  res.redirect('/');
});

// On conversion — attribute to affiliate
app.post('/api/signup', async (req, res) => {
  const affiliateId = req.cookies.affiliate_id;
  if (affiliateId) {
    await recordConversion({
      affiliateId,
      customerId: newUser.id,
      value: plan.price,
      type: 'signup'
    });
  }
});

Cookie window standards:

Product typeCookie windowRationale
SaaS30-90 daysLonger consideration cycle
E-commerce7-30 daysShorter purchase cycle
High-ticket90-180 daysEnterprise sales cycle

Attribution rules:

  • Last click wins (standard, simplest)
  • First click wins (rewards discovery, used by Amazon)
  • Linear (split credit) — complex, avoid unless needed
  • Direct traffic always overrides affiliate (prevent self-referral fraud)

4. Partner Recruitment

Ideal affiliate profiles:

TypeCharacteristicsApproach
Content creatorsBlog/YouTube in your nicheOutreach with free product + custom commission
Review sitesG2, Capterra, niche review blogsEnsure listing, offer affiliate tracking
InfluencersSocial following in target audienceCustom landing page + higher commission
Existing customersHappy users with audienceIn-app referral prompt + affiliate upgrade option
AgenciesServe your target marketReseller/referral hybrid program

Recruitment outreach template:

Subject: Partner with [Product] — [X]% commission

Hi [Name],

I've been following your content on [specific topic] — [genuine compliment].

We're building [Product], which helps [audience] with [value prop].
I think it'd be a natural fit for your audience.

Our affiliate program:
- [X]% recurring commission (or flat $X per signup)
- [X]-day cookie window
- Dedicated affiliate dashboard
- Custom landing pages and creatives

Interested in trying it out? Happy to set you up with a free account
and walk through the program.

[Name]

5. Compliance

FTC disclosure requirements:

  • Affiliates MUST disclose the relationship ("I earn a commission if you buy through my link")
  • Disclosure must be clear, conspicuous, and BEFORE the link
  • "Ad" or "Sponsored" labels on social media
  • Include disclosure guidelines in your affiliate agreement

Fraud prevention:

  • Monitor for self-referrals (same IP for click and conversion)
  • Flag unusually high conversion rates (> 20% = suspicious)
  • Require minimum cookie age (> 1 second between click and conversion)
  • Ban coupon/deal sites from bidding on your brand keywords
  • Review top affiliates manually quarterly

6. Performance Optimization

Monthly affiliate dashboard:

MetricCalculateBenchmark
Active affiliatesAffiliates with ≥1 conversion/month10-20% of total
Revenue per affiliateTotal affiliate revenue / Active affiliatesTrack trend
Conversion rateConversions / Clicks2-5% (depends on niche)
EPC (Earnings Per Click)Total commissions / Total clicks$0.50-2.00
Average commissionTotal paid / Total conversionsTrack vs CAC
Affiliate-sourced %Affiliate revenue / Total revenue10-30% target

Top performer strategy:

  • Identify top 10% of affiliates by revenue
  • Offer exclusive commission rates (+5-10%)
  • Provide early access to new features for content
  • Quarterly check-in call with affiliate manager
  • Custom creatives and co-branded landing pages