AI agent instructions for integrating Affitor affiliate tracking into any SaaS product.
Works with Claude Code, Cursor, GitHub Copilot, Windsurf, Aider, and any tool that supports AGENTS.md or SKILL.md.
npx skills add affitor/agent-skillsOr with the Affitor CLI (generates a project-specific AGENTS.md with your program ID and API key):
npx affitor init| Skill | Description |
|---|---|
| click-tracking | Install the Affitor tracker for affiliate click attribution |
| signup-tracking | Track signups via browser helper or server-side lead API |
| sale-tracking | Track revenue via Sale API or Stripe metadata |
| stripe-setup | Auto-configure Stripe webhooks via CLI |
| test-integration | Verify end-to-end tracking pipeline |
When you install these skills, your AI coding assistant learns how to:
- Add the Affitor tracker script to your site
- Wire up signup tracking after user registration
- Configure payment tracking (Sale API or Stripe)
- Test the full attribution pipeline
The AI reads the skill files and applies the correct integration pattern for your stack (React, Next.js, plain HTML, Node.js, Python, etc.).
# CLI setup (fastest)
npx affitor init # creates program + AGENTS.md
npx affitor setup stripe # auto-configures Stripe webhooks
npx affitor test sale # verifies pipeline
# API endpoints
POST https://api.affitor.com/api/v1/track/lead # signup tracking
POST https://api.affitor.com/api/v1/track/sale # sale tracking
# Auth
Authorization: Bearer YOUR_PROGRAM_API_KEYMIT