Build Affiliate Programのロゴ

Build Affiliate Program

コミュニティ
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'.

概要

公開者khadinakbarlabs
リポジトリexpo-mobile-app-builder
スキル名build-affiliate-program
スター
3
フォーク
0
同梱ファイル
1
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 1個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    khadinakbarlabsがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Build Affiliate Program」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/khadinakbarlabs/expo-mobile-app-builder/tree/main/skills/build-affiliate-program
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

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
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでBuild Affiliate Programを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にBuild Affiliate Programを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Build Affiliate Programは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

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)

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「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'.

TypingMindでBuild Affiliate Programを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Build Affiliate Programはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにBuild Affiliate Programをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/khadinakbarlabs/expo-mobile-app-builder/tree/main/skills/build-affiliate-programを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Build Affiliate Programを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Build Affiliate Programで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもBuild Affiliate Programを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Build Affiliate Program」は無料ですか?

はい。khadinakbarlabsがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇