Affiliate blog builder

From Affitor/affiliate-skills · View interactive version

Affiliate blog builder is an AI agent skill from the GitHub repository Affitor/affiliate-skills. Write SEO-optimized affiliate blog articles, product reviews, comparison posts, listicles, and how-to guides. Triggers on: "write a blog post about", "review of [product]", "best [category] article", "comparison blog", "affiliate blog", "SEO article", "write a review", "product roundup", "blog conte

How to use this skill

Skill file

Affiliate Blog Builder

Write full SEO-optimized blog articles that rank on Google and drive passive affiliate revenue. Supports four formats: product review, head-to-head comparison, best-of listicle, and how-to guide. Each article includes keyword strategy, structured headings, comparison tables, CTAs, FAQ schema, and FTC-compliant disclosure.

Stage

S3: Blog — The highest-value content type in the affiliate funnel. Blog articles rank on Google, drive organic traffic for months/years, and convert at higher rates than social posts because readers have high purchase intent.

When to Use

Input Schema

product:                    # REQUIRED — the affiliate product to feature
  name: string              # Product name (e.g., "HeyGen")
  description: string       # What it does
  reward_value: string      # Commission (e.g., "30% recurring")
  url: string               # Affiliate link URL
  reward_type: string       # "recurring" | "one-time" | "tiered"
  cookie_days: number       # Cookie duration
  tags: string[]            # e.g., ["ai", "video", "saas"]

format: string              # OPTIONAL — "review" | "comparison" | "listicle" | "how-to"
                            # Default: "listicle" (highest traffic potential)

compare_with: object[]      # OPTIONAL — competitors for comparison/listicle formats
  - name: string            # Competitor name
    description: string     # Brief description
    url: string             # URL (non-affiliate OK)
    pricing: string         # Starting price

target_keyword: string      # OPTIONAL — primary SEO keyword to target
                            # Default: auto-generated from product name + category

blog_platform: string       # OPTIONAL — "wordpress" | "ghost" | "hugo" | "astro" | "webflow" | "markdown"
                            # Default: "markdown" (universal)

tone: string                # OPTIONAL — "professional" | "conversational" | "technical"
                            # Default: "conversational"

word_count_target: number   # OPTIONAL — override default word count for the format

Chaining from S1: If affiliate-program-search was run earlier in the conversation, automatically pick up recommended_program from its output as the product input. The field mapping:

If the user says "now write a blog about it" after running S1 — use the recommended program. No need to ask again.

Workflow

Step 1: Determine Format

Choose the article format based on user request or defaults:

| Signal | Format |

|---|---|

| User says "review", "my experience with" | review |

| User mentions two+ products, "vs", "compare" | comparison |

| User says "best", "top", "roundup", numbers | listicle |

| User says "how to", "tutorial", "guide", "step by step" | how-to |

| No clear signal | listicle (default — highest traffic potential) |

If format = comparison and compare_with is empty or has only 1 product:

If format = listicle and compare_with is empty:

Step 2: SEO Framework

Read references/seo-checklist.md for the complete SEO guidelines. Then:

  1. Generate target keyword (if not provided):
  1. Generate secondary keywords (3-5):
  1. Build title using the formula from seo-checklist.md matching the format
  1. Write meta description (150-160 chars) following the checklist format
  1. Plan heading structure:
  1. Generate slug from target keyword (lowercase, hyphens, no stop words)

Step 3: Write Article

Read references/blog-templates.md and use the template matching the chosen format. Then write the full article following these rules:

Content Rules:

Required Sections (all formats):

Affiliate CTA Placement (2-4 per article):

  1. After the pricing section
  2. After a key feature demonstration
  3. In the final verdict
  4. Optionally: in a callout box after the "who is this for" section

CTA Formats:

Things to AVOID:

Step 4: Format Output

Produce the final output in this exact structure:

Part 1: SEO Metadata Block

---
SEO METADATA
---
Title: [SEO title]
Slug: [url-slug]
Meta Description: [150-160 chars]
Target Keyword: [primary keyword]
Secondary Keywords: [comma-separated list]
Word Count: [actual count]
Format: [review/comparison/listicle/how-to]
---

Part 2: Full Article

The complete markdown article ready to paste into any blogging platform.

Part 3: Supplementary Data

---
SUPPLEMENTARY
---
FAQ Questions (for schema markup):
1. [Question] → [Answer]
2. [Question] → [Answer]
...

Image Suggestions:
1. [Description] — alt: "[alt text]"
2. [Description] — alt: "[alt text]"
...

Products Featured:
- [Product 1]: [affiliate URL] (featured/mentioned)
- [Product 2]: [affiliate URL] (compared/mentioned)
...

Next Steps:
- Personalize: Add your own experience, screenshots, and results
- Images: Take product screenshots and add them at suggested locations
- Links: Replace affiliate URLs with your own tracking links
- Publish: See references/wordpress-deploy.md for WordPress setup guide
- Promote: Run viral-post-writer to create social posts promoting this article
---

Step 5: Self-Validation

Before presenting output, verify:

If any check fails, fix the output before delivering. Do not flag the checklist to the user — just ensure the output passes.

Output Schema

output_schema_version: "1.0.0"  # Semver — bump major on breaking changes
article:
  title: string             # SEO-optimized title
  slug: string              # URL-friendly slug
  meta_description: string  # 150-160 character meta description
  target_keyword: string    # Primary keyword targeted
  format: string            # review | comparison | listicle | how-to
  content: string           # Full markdown article
  word_count: number        # Actual word count
  headings:                 # Article structure
    - level: number         # 2 for H2, 3 for H3
      text: string          # Heading text

seo:
  secondary_keywords: string[]    # 3-5 secondary keywords used
  faq_questions:                  # For FAQ schema markup
    - question: string
      answer: string
  image_suggestions:              # Recommended images
    - description: string         # What to screenshot/create
      alt_text: string            # SEO alt text
      placement: string           # After which section

products_featured:                # All products mentioned
  - name: string
    url: string                   # Affiliate URL
    role: string                  # "primary" | "compared" | "mentioned"
    reward_value: string          # Commission info
    pricing: string | null        # Starting price (e.g., "$49/mo") — for S4 landing page chaining

Output Format

Present the output as a single markdown document with three clearly separated sections:

  1. SEO Metadata — fenced block with all SEO settings for easy copy into WordPress/Yoast
  2. Article — the full blog post in markdown, ready to paste
  3. Supplementary — FAQ for schema markup, image suggestions, products list, and next steps

The article should be immediately publishable — not a draft or outline. The user should be able to copy-paste it into their blog editor, add their own screenshots and personal touches, and publish.

Error Handling

Examples

Example 1: Product Review (chained from S1)

User: "Now write a detailed review of HeyGen for my blog"

Context: S1 previously returned HeyGen as recommended_program

Action: Auto-detect format=review, pick up HeyGen product data from S1 output, generate full review article targeting "heygen review" keyword.

Example 2: Comparison Article

User: "Write a comparison blog post: HeyGen vs Synthesia vs Colossyan for AI video creation"

Action: Format=comparison, primary product=HeyGen (if from S1, else first mentioned), compare_with=[Synthesia, Colossyan], target keyword="heygen vs synthesia vs colossyan".

Example 3: Listicle (Default Format)

User: "Write a blog post about the best AI video tools"

Action: Format=listicle (matches "best"), web_search for top AI video tools, target keyword="best ai video tools", write 3-5K word roundup with 5-7 products.

Example 4: How-To Guide

User: "Write a tutorial blog post on how to create AI-generated videos for YouTube with HeyGen"

Action: Format=how-to (matches "tutorial", "how to"), target keyword="how to create ai videos for youtube", write step-by-step guide featuring HeyGen with affiliate CTAs.

Example 5: Minimal Input

User: "Blog post about Semrush"

Action: No format specified → default to listicle? No — single product implies review. Use format=review, web_search Semrush for features/pricing/reviews, target keyword="semrush review", generate full article.

Format detection logic for ambiguous cases: If only one product is mentioned with no format keyword, default to review. If a category is mentioned with no specific product, default to listicle.

References

Flywheel Connections

Feeds Into

Fed By

Feedback Loop

Quality Gate

Before delivering output, verify:

  1. Would I share this on MY personal social?
  2. Contains specific, surprising detail? (not generic)
  3. Respects reader's intelligence?
  4. Remarkable enough to share? (Purple Cow test)
  5. Irresistible offer framing? (if S4 offer skills ran)

Any NO → rewrite before delivering.

chain_metadata:
  skill_slug: "affiliate-blog-builder"
  stage: "blog"
  timestamp: string
  suggested_next:
    - "content-pillar-atomizer"
    - "landing-page-creator"
    - "internal-linking-optimizer"
    - "seo-audit"
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.