Build Affiliate Program logo

Build Affiliate Program

Community
khadinakbarlabs
build-affiliate-program

Build a referral / affiliate program for an iOS app to drive viral growth. Use when the user says 'affiliate program', 'referral program', 'invite friends feature', 'viral growth', 'creator program app'.

Overview

Publisherkhadinakbarlabs
Repositoryexpo-mobile-app-builder
Skill namebuild-affiliate-program
Stars
3
Forks
0
Bundled files
1
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by khadinakbarlabs on GitHub. Read the source before you install it.

Installation

Install the Build Affiliate Program AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/khadinakbarlabs/expo-mobile-app-builder/tree/main/skills/build-affiliate-program
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/khadinakbarlabs/expo-mobile-app-builder.git /tmp/expo-mobile-app-builder
mkdir -p .claude/skills
cp -r /tmp/expo-mobile-app-builder/skills/build-affiliate-program .claude/skills/build-affiliate-program
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Build Affiliate Program in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Build Affiliate Program on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Build Affiliate Program is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Build an Affiliate / Referral Program

Two flavors: peer referrals (give-get) and creator affiliates (commission). Both work for iOS.

Peer referral (give-get)

User invites friend, both get a reward.

Reward types

  • Both get 1 month free Pro
  • Both get $5 credit
  • Friend gets 50% off first month, you get 1 month free

Implementation

  1. Generate unique code/link per user

    • Backend: referrals table with (user_id, code)
    • Code: short readable: YOUR-REFERRAL-CODE
    • Link: https://yourapp.com/r/YOUR-REFERRAL-CODE
  2. Friend taps link

    • Goes to landing page (use universal links to deep-link into App Store with referral code preserved)
    • Or: "Continue in App" + Smart Banner
  3. Friend installs app

    • Use Branch.io OR AppsFlyer to track install attribution
    • Or: deferred deep link via Apple Search Ads attribution API
    • Friend signs up, code auto-applied
  4. Reward both

    • When friend converts to paid (or completes first action), credit both accounts
    • In RevenueCat: extend trial / grant entitlement programmatically

Tools for tracking install attribution

ToolCostNotes
Branch.ioFree tierBest deferred deep linking
AppsFlyerPaidEnterprise, more analytics
SingularPaidSimilar to AppsFlyer
Apple SKAdNetworkFreeLimited attribution windows
Build your ownFreePasteboard trick (user copies code from web, app reads on first launch)

DIY paste-board trick (no SDK needed)

Web landing page:

js
navigator.clipboard.writeText('REF:YOUR-REFERRAL-CODE');

App on first launch:

ts
import * as Clipboard from 'expo-clipboard';

const onboarding = async () => {
  const text = await Clipboard.getStringAsync();
  if (text?.startsWith('REF:')) {
    const code = text.slice(4);
    await applyReferralCode(code);
  }
};

Works without SDK, no install attribution provider needed. Limitation: user must consent to clipboard read on iOS 14+.

Creator affiliate program

Influencers / YouTubers send traffic, get % commission.

Why it works for iOS apps

  • Creators love $$ for content they'd post anyway
  • Higher trust than ads
  • Permanent backlinks (videos stay up)

Build it

  1. Affiliate signup page (your marketing site)

    • "Join our affiliate program" form
    • Capture: name, audience size, channels
  2. Approval flow

    • Manual at first (review each application)
    • Issue unique tracking link to each
  3. Tracking

    • Each affiliate has unique code
    • Track conversions via RevenueCat metadata or your own backend
    • Use first-party attribution (Apple Search Ads attribution API + your code)
  4. Commission structure

    • 30% of first year revenue (standard)
    • OR $X per paid signup (simpler)
    • Pay monthly through an owner-approved payout provider → affiliate's bank
  5. Affiliate dashboard

    • Show clicks, signups, paid users, earnings
    • Build basic version in Notion/Airtable + zapier first
    • Upgrade to Tolt / Rewardful / FirstPromoter at scale

Tools

  • Tolt — $39/mo, best for SaaS with subscriptions
  • Rewardful — $49/mo, integrates with Stripe (use if you have web tier)
  • FirstPromoter — $49/mo, similar
  • Roll your own — Notion + Airtable + Zapier for first 20 affiliates

Apple App Store + affiliate considerations

  • Apple Search Ads has its own attribution API; can pass referral codes through
  • App Store Connect doesn't support affiliate links directly
  • For non-paid acquisition: use universal links → your landing page → install

What works best for iOS apps in 2026

  1. Peer referral with give-get of 1 month free both
  2. Creator program for top 5 niche YouTubers in your category
  3. App Store CPP (Custom Product Pages) per major affiliate so attribution works visually

Common pitfalls

  • Reward too small → no one shares
  • Reward only for the inviter → friend has no reason to convert
  • Attribution too lossy → can't pay affiliates accurately, they leave
  • Manual payouts that take >2 weeks → affiliates churn

Pair with

  • add-deep-links (universal links setup)
  • custom-product-pages (CPP per affiliate for tracking)
  • add-posthog-rn (track funnel: click → install → trial → paid)

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Build Affiliate Program AI skill do?

Build a referral / affiliate program for an iOS app to drive viral growth. Use when the user says 'affiliate program', 'referral program', 'invite friends feature', 'viral growth', 'creator program app'.

Why use Build Affiliate Program on TypingMind?

Because you install it once and use it with any model. Build Affiliate Program is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Build Affiliate Program in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/khadinakbarlabs/expo-mobile-app-builder/tree/main/skills/build-affiliate-program. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Build Affiliate Program?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Build Affiliate Program?

As many as you like. As long as a model supports skills, you can use Build Affiliate Program with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Build Affiliate Program AI skill free?

Yes. It is published on GitHub by khadinakbarlabs under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇