Skip to content
Back to skills

Affiliate Link Finder

ASecurity

Automatically searches for the highest-rated supplement products on Amazon/iHerb and generates affiliate link suggestions whenever a new supplement is added to the database.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 27, 2026
documentationgodatabase

Security analysis

A100/100

Pro scans all 21 files and shows the line behind each finding

Scanned September 27, 2026

npx -y skills add David-Li0406/meta-skill-evloving --skill affiliate-link-finder --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Affiliate Link Finder?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Affiliate Link Finder
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-affiliate-link-finder/badge)](https://www.skillsdirectory.com/skills/david-li0406-affiliate-link-finder)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: Affiliate Link Finder
description: Automatically searches for the highest-rated supplement products on Amazon/iHerb and generates affiliate link suggestions whenever a new supplement is added to the database.
---

# Affiliate Link Finder Skill

## Purpose
This skill automates the process of finding optimal product listings and generating affiliate links when supplements are added to the app database.

## Trigger
This skill should be activated whenever:
- A new supplement is being added to `MockSupplementRepository`
- The user requests an affiliate link update for an existing supplement
- Bulk supplement data is being imported

## Workflow

### Step 1: Extract Supplement Information
From the supplement being added, identify:
- **Primary name** (e.g., "Omega-3", "Magnesium Glycinate")
- **Specific form/type** (e.g., "EPA/DHA", "Glycinate", "Citrate")
- **Target dosage range** (if relevant for search)

### Step 2: Web Search Strategy
Perform targeted searches using the `search_web` tool:

#### Amazon Search
```
Query: "{supplement_name} {form} supplement ADHD {dosage}"
Example: "Omega-3 EPA DHA supplement ADHD 1000mg"
```

**Look for:**
- Products with 4+ star ratings
- High review counts (500+)
- "Amazon's Choice" or "Best Seller" badges
- Third-party tested/certified products
- Brands mentioned in search results (Nordic Naturals, NOW Foods, Thorne, etc.)

#### iHerb Search (Alternative/Backup)
```
Query: "{supplement_name} {form} highest rated iHerb"
```

**Look for:**
- iHerb verified reviews
- Products with detailed supplement facts
- Brand reputation indicators

### Step 3: Extract Product Identifiers

#### For Amazon:
- Extract **ASIN** (Amazon Standard Identification Number)
  - Found in URL: `amazon.com/dp/{ASIN}`
  - Example: `B001U4OYGY`
- Extract product title for verification

#### For iHerb:
- Extract **Product ID**
  - Found in URL: `iherb.com/{product-id}`
  - Example: `81332`

### Step 4: Generate Affiliate Links

Use the `AffiliateService` class to generate tagged links:

```dart
// For Amazon
final affiliateService = AffiliateService();

// Single region
final usLink = affiliateService.getTaggedAffiliateLink(
  supplementId: 'B001U4OYGY',  // ASIN from Step 3
  region: UserRegion.us,
);

// All regions
final allLinks = affiliateService.getAllRegionLinks('B001U4OYGY');
```

**Result format:**
```
US:  https://www.amazon.com/dp/B001U4OYGY?tag=adhdsupplements-20
UK:  https://www.amazon.co.uk/dp/B001U4OYGY?tag=adhdsupplements-21
EU:  https://www.amazon.de/dp/B001U4OYGY?tag=adhdsupplements-22
```

#### For iHerb:
```
https://www.iherb.com/{product-id}?rcode=ADHDSUPP
Example: https://www.iherb.com/81332?rcode=ADHDSUPP
```

### Step 5: Present Recommendation

Provide output in this format:

```markdown
## Affiliate Link Suggestion: {Supplement Name}

### Recommended Product
**Title:** {Product Title from Amazon/iHerb}
**Rating:** {Star Rating} ({Review Count} reviews)
**ASIN/ID:** {Identifier}
**Price:** ${Price} (if available)

### Generated Affiliate Links
- **US Amazon:** {US Link}
- **UK Amazon:** {UK Link}
- **EU Amazon:** {EU Link}
- **iHerb:** {iHerb Link} (if applicable)

### Add to Mock Repository
```dart
Supplement(
  id: '{generate-uuid}',
  name: '{Supplement Name}',
  description: '{Brief description}',
  referralUrl: '{US Link}',  // Default to US
  benefits: [...],
  dosageInstruction: '{Dosage}',
  sideEffects: [...],
  focusLevel: {1-5},
)
```

### Notes
- {Any special considerations}
- {Alternative products if primary is unavailable}
```

## Example Execution

**User Input:**
"Add L-Tyrosine supplement to the database"

**Agent Actions:**
1. Search: "L-Tyrosine supplement ADHD 500mg amazon"
2. Identify top product: "NOW Foods L-Tyrosine 500mg"
3. Extract ASIN: `B0013OQGO6`
4. Generate links using `AffiliateService`
5. Present recommendation (see format above)

## Edge Cases

### No Amazon Listing Found
- Fall back to iHerb search
- Search for general category: "{supplement_name} best brand reddit"
- Suggest manual research with specific brand recommendations

### Multiple Strong Candidates
- Present top 3 options ranked by:
  1. Rating × Review Count score
  2. Price per serving
  3. Third-party certification (USP, NSF, ConsumerLab)

### International Availability Issues
- Note if product unavailable in UK/EU
- Suggest region-specific alternatives
- Update affiliate link map accordingly

## Quality Checks

Before finalizing recommendation:
- [ ] ASIN/Product ID is valid
- [ ] Product matches supplement specification (name, form, dosage)
- [ ] Rating ≥ 4.0 stars
- [ ] Review count ≥ 100 (or note if lower)
- [ ] Affiliate tag is correctly formatted
- [ ] Link opens to correct product page

## Maintenance

This skill should be reviewed quarterly to:
- Update affiliate tag IDs if changed
- Verify top-rated products are still available
- Add new platforms (e.g., Fullscript, Wellevate)
- Refine search queries based on accuracy

Files in this skill

  • .agent/rules/adhd_expert.md648 B
  • .agent/rules/hardened_flutter.md543 B
  • .agent/rules/local_rules.md832 B
  • .agent/skills/address-github-comments/SKILL.md1.2 KB
  • .agent/skills/adhd-ui-optimizer/SKILL.md981 B
  • .agent/skills/affiliate_agent/SKILL.md580 B
  • .agent/skills/affiliate_agent/scripts/link_gen.py1.7 KB
  • .agent/skills/agent-evaluation/SKILL.md2 KB
  • .agent/skills/agent-manager-skill/SKILL.md1 KB
  • .agent/skills/agent-memory-systems/SKILL.md2.3 KB
  • .agent/skills/agent-tool-builder/SKILL.md1.6 KB
  • .agent/skills/ai-agents-architect/SKILL.md2.5 KB
  • .agent/skills/ai-product/SKILL.md2.1 KB
  • .agent/skills/ai-wrapper-product/SKILL.md6.5 KB
  • .agent/skills/analytics-tracking/SKILL.md10.5 KB
  • .agent/skills/api-patterns/SKILL.md2.4 KB
  • .agent/skills/api-patterns/api-style.md1.1 KB
  • .agent/skills/api-patterns/auth.md576 B
  • .agent/skills/api-patterns/documentation.md549 B
  • .agent/skills/api-patterns/graphql.md977 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…