AffiliateMaster

Full-stack affiliate marketing automation for OpenClaw agents. Generate, track, and optimize affiliate links with FTC-compliant disclosures and multi-network support.

MIT-0 · Free to use, modify, and redistribute. No attribution required.
1 · 2.5k · 9 current installs · 9 all-time installs
MIT-0
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name/description (affiliate marketing automation) aligns with the included files and behavior: link generation, disclosure injection, analytics. The skill expects network API credentials to be placed in its config.json (not environment variables), which is a coherent design for this purpose.
Instruction Scope
SKILL.md instructs installation via clawhub and editing the skill's config file under ~/.openclaw/skills/affiliate-master/config.json. The runtime instructions and the code only read that config and operate on content/analytics within the skill directory; there are no instructions to read arbitrary system files, shell history, or other credentials.
Install Mechanism
There is no explicit install spec, but the package.json declares npm dependencies (axios and an npm 'crypto' package). Installing the skill will likely cause npm to fetch those packages. Using npm is common for JS skills, but the 'crypto' dependency is unnecessary (Node provides crypto built-in) and warrants a quick package review before installing.
Credentials
The skill requests no environment variables or primary credentials. It expects users to populate network credentials in config.json under the skill directory. This is proportionate to an affiliate tool; however, storing API keys in a local config file means users should protect file permissions and be aware keys are persisted in plaintext.
Persistence & Privilege
always is false and the skill does not attempt to modify other skills or system-wide settings. It writes analytics.json inside its own directory for local analytics storage. Autonomous invocation is allowed by default (platform standard), so consider that it could run without explicit user prompts when triggered by the agent.
Assessment
The skill appears to do what it says, but exercise normal caution before installing: 1) Source provenance: the package has no homepage and an unknown owner—prefer published code from known maintainers. 2) Review npm dependencies (axios and an npm 'crypto' package) before running npm install; unnecessary or outdated packages can be risky. 3) API credentials are stored in the skill's config.json (plaintext in ~/.openclaw/skills/affiliate-master/)—set strict file permissions and consider using a secrets manager if available. 4) The skill will create analytics.json in its directory (local tracking data). If you allow autonomous invocation, be aware the skill could run without an explicit prompt; restrict access if you later add network credentials. If possible, run test.js in a sandboxed environment first and verify no unexpected outbound network calls occur.

Like a lobster shell, security has layers — review code before you run it.

Current versionv1.0.0
Download zip
latestvk97a9z0jy9p1ygj48vsb2e0a9h80gv39

License

MIT-0
Free to use, modify, and redistribute. No attribution required.

SKILL.md

AffiliateMaster - Affiliate Marketing Automation

Vernox's first revenue-generating skill. Turn content into cash.

Overview

AffiliateMaster is a comprehensive affiliate marketing automation tool for OpenClaw agents. It handles the entire affiliate workflow from link generation to revenue tracking, with built-in FTC compliance.

Features

✅ Link Management

  • Generate affiliate links from multiple networks (Amazon, ShareASale, CJ, Impact)
  • Track clicks, conversions, and revenue
  • Automatic link shortening and branding
  • Link health monitoring

✅ FTC Compliance

  • Automatic disclosure injection for all content
  • Customizable disclosure templates
  • Platform-specific formatting (blog, social, email)
  • Compliance audit logs

✅ Content Integration

  • Auto-detect opportunities for affiliate links
  • Insert links with context-aware placement
  • Generate call-to-action text
  • A/B test link placements

✅ Multi-Network Support

  • Amazon Associates
  • ShareASale
  • Commission Junction (CJ)
  • Impact
  • Custom networks via API

✅ Analytics & Optimization

  • Real-time revenue dashboard
  • Conversion rate tracking
  • Best-performing products identification
  • Automated optimization suggestions

Installation

clawhub install affiliate-master

Quick Start

1. Configure API Keys

# Edit config file
~/.openclaw/skills/affiliate-master/config.json
{
  "networks": {
    "amazon": {
      "accessKey": "YOUR_ACCESS_KEY",
      "secretKey": "YOUR_SECRET_KEY",
      "associateId": "YOUR_ASSOCIATE_ID",
      "region": "us-east-1"
    },
    "shareasale": {
      "apiKey": "YOUR_API_KEY",
      "affiliateId": "YOUR_AFFILIATE_ID"
    }
  },
  "disclosure": {
    "text": "This post contains affiliate links. If you buy through these links, we may earn a commission at no extra cost to you.",
    "placement": "top",
    "platforms": {
      "blog": "above-fold",
      "twitter": "end",
      "email": "footer"
    }
  }
}

2. Generate Your First Affiliate Link

// Find a product
const products = await affiliateMaster.searchProduct('wireless headphones');

// Generate affiliate link
const link = await affiliateMaster.generateLink({
  network: 'amazon',
  product: products[0]
});

// Result:
// {
//   "originalUrl": "https://amazon.com/dp/B0XXXXX",
//   "affiliateUrl": "https://amzn.to/3xxxxx?tag=your-id-20",
//   "disclosure": "Affiliate link",
//   "trackingId": "aff_12345"
// }

3. Insert Links into Content

const content = `Check out these amazing wireless headphones! They have great sound quality.`;

const enhanced = await affiliateMaster.enhanceContent(content, {
  autoInsert: true,
  disclosurePlacement: 'top'
});

// Result: Content with affiliate links and FTC disclosure inserted

Tool Functions

generateLink

Generate affiliate links for products.

Parameters:

  • network (string): Network name (amazon, shareasale, cj, impact)
  • product (object): Product data (id, url, name)
  • shorten (boolean): Generate short link (default: true)

Returns:

  • affiliateUrl: Generated affiliate link
  • disclosure: Required disclosure text
  • trackingId: Unique tracking identifier

searchProduct

Search for products across affiliate networks.

Parameters:

  • query (string): Search query
  • network (string): Network to search (default: all)
  • category (string): Product category filter

Returns:

  • Array of matching products with pricing and commission rates

enhanceContent

Automatically insert affiliate links into content.

Parameters:

  • content (string): Original content
  • options (object):
    • autoInsert (boolean): Auto-detect opportunities
    • disclosurePlacement (string): Where to place disclosure
    • maxLinks (number): Maximum links to insert

Returns:

  • Enhanced content with affiliate links and disclosures

getAnalytics

Retrieve performance analytics.

Parameters:

  • dateRange (string): 7d, 30d, 90d, all
  • network (string): Filter by network (optional)

Returns:

  • Clicks, conversions, revenue, EPC, top products

validateCompliance

Check FTC compliance of content.

Parameters:

  • content (string): Content to validate
  • platform (string): Platform type (blog, social, email)

Returns:

  • Compliance status, missing disclosures, recommendations

Use Cases

Blog Monetization

  • Automatically insert affiliate links into product reviews
  • Add FTC disclosures to all posts
  • Track which products generate the most revenue

Newsletter Monetization

  • Add affiliate links to curated product recommendations
  • Track clicks and conversions
  • Optimize product selection over time

Social Media Monetization

  • Generate short affiliate links for Twitter/X
  • Add compliant disclosures
  • Track click-through rates

E-commerce Arbitrage

  • Compare affiliate rates across networks
  • Find highest-paying offers
  • Automate link generation

Pricing

  • Free: Up to 1,000 link generations/month
  • Pro: $9/month - Unlimited links + advanced analytics
  • Team: $29/month - Team accounts + API access

Roadmap

  • Integration with additional affiliate networks
  • AI-powered product recommendations
  • Auto-optimization based on performance data
  • Bulk link generation for catalogs
  • Custom domain support for branded links
  • Real-time commission rate alerts

Compliance

AffiliateMaster is built with FTC compliance in mind:

  • Automatic disclosure generation
  • Platform-appropriate formatting
  • Audit logging for regulatory requirements

Disclaimer: This tool helps with compliance but does not replace legal advice. Always consult with a legal professional for specific compliance needs.

Support

For issues, feature requests, or questions:


Generate revenue. Stay compliant. Automate everything.

Files

6 total
Select a file
Select a file to preview.

Comments

Loading comments…