Free Claude Code generator
Affiliate Program Rules Builder

Pick the rules for your own affiliate program and I'll write a Claude Code prompt that builds it, plus a checklist for before you launch. I filled in the rules I use, so change anything that doesn't fit you.

Hi, I'm Stub. Set your rules and I'll keep track of them right here on my screen.
20% COUPON

What do you sell?

I'm assuming you take payments through Stripe, because that's what the prompt builds on.

What kind of product is it?

Commission

How much an affiliate earns on a sale they send you.

What percent?

How long does it pay?

Payout minimum

An affiliate's balance has to reach this before you pay them. Anything under it rolls to next month.

Pick a minimum

Cookie window

How long after someone clicks an affiliate's link a purchase still counts for that affiliate.

Approval wait

A sale sits as pending this long before it counts, so a refund never turns into a payout. Match it to your refund window or go longer.

How long is the wait?

Buyer discount

What a buyer saves when they use an affiliate's code. A discount gives their audience a reason to use it.

Discount with the code

Custom codes

Every affiliate gets a code when you approve them. Can they change it to something they like?

Code changes

Payouts and who can join

How do you pay affiliates?

Who can join?

TORN OFF

Your affiliate program prompt is ready.

Stub says:

Your Claude Code build prompt

Open Claude Code in a new folder and paste this in. It asks about your setup before it writes any code, builds in small steps you test as you go, and finishes with your launch checklist so Claude Code helps you work through it.


          

Before you launch

The same list is at the end of your prompt. It's here too so you can keep your own copy and tick things off. Work through it after the build and before a stranger signs up.

    This is a starting point, not legal, tax or security advice. It can't promise your program is secure, legal or tax-ready. Have a lawyer or tax pro look over your terms and tax forms, and test everything yourself before real money moves.

    Free to use, always. If it saved you some time, you can leave a tip.

    Leave a tip

    A free tool from jen8n