Skill: michael-laffin/landing-page-generator (version 1.0.0)

--- name: landing-page-generator description: Generate high-converting landing pages for products, services, and lead generation. Use when creating marketing pages, product launches, squeeze pages, or digital asset sales pages. --- # Landing Page Generator ## Overview Generate high-converting landing pages with copy, structure, and HTML/CSS ready for deployment. Create marketing pages that convert visitors into customers. ## Core Capabilities ### 1. Page Templates **Pre-built templates for:** - Product launch pages (pre-launch and launch) - Squeeze pages (email capture) - Webinar registration pages - Digital product sales pages (courses, ebooks, templates) - Service booking pages - Affiliate review pages - Comparison pages (Product A vs Product B) - Thank you/confirmation pages ### 2. Copywriting Frameworks **Built with proven frameworks:** - AIDA (Attention, Interest, Desire, Action) - PAS (Problem, Agitation, Solution) - Story-based hooks - Social proof integration - Objection handling - Scarcity/urgency elements ### 3. SEO Optimization **Automatically includes:** - Optimized meta tags (title, description, keywords) - Header tags (H1, H2, H3) - Alt text for images - Structured data (schema markup) - Mobile-responsive design - Fast loading structure ### 4. Conversion Elements **Built-in conversion triggers:** - Clear value propositions - Benefit-oriented bullet points - Testimonials/social proof - FAQ sections - Multiple CTAs (above and below fold) - Guarantee/risk-reversal statements - Countdown timers - Limited-time offers ### 5. Responsive Design **Optimized for:** - Desktop (1920px+) - Tablet (768px - 1024px) - Mobile (320px - 767px) - Cross-browser compatibility ## Quick Start ### Generate Product Launch Page ```python # Use scripts/generate_landing.py python3 scripts/generate_landing.py \ --type product-launch \ --product "SEO Course" \ --price 299 \ --benefits "learn SEO,rank higher,get traffic" \ --testimonials 3 \ --cta "Enroll Now" \ --output product_launch.html ``` ### Generate Squeeze Page ```python python3 scripts/generate_landing.py \ --type squeeze \ --headline "Get Free SEO Checklist" \ --benefits "checklist,tips,strategies" \ --cta "Send Me The Checklist" \ --output squeeze.html ``` ### Generate Affiliate Review Page ```python python3 scripts/generate_landing.py \ --type affiliate-review \ --product "Software XYZ" \ --affiliate-link "https://example.com/affiliate" \ --pros 5 \ --cons 2 \ --cta "Try XYZ Now" \ --output affiliate_review.html ``` ## Scripts ### `generate_landing.py` Generate landing page from parameters. **Parameters:** - `--type`: Page type (product-launch, squeeze, webinar, digital-product, service, affiliate-review, comparison, thank-you) - `--headline`: Main headline - `--subheadline`: Supporting subheadline - `--product`: Product/service name - `--price`: Price or "Starting at $X" - `--benefits`: Comma-separated benefits - `--features`: Comma-separated features - `--testimonials`: Number of testimonials to include - `--cta`: Call-to-action button text - `--guarantee`: Guarantee text (optional) - `--urgency`: Urgency message (optional) - `--output`: Output file **Example:** ```bash python3 scripts/generate_landing.py \ --type product-launch \ --headline "Master SEO in 30 Days" \ --subheadline "Complete course with live coaching" \ --product "SEO Mastery Course" \ --price 299 \ --benefits "rank higher,drive traffic,boost sales" \ --features "video lessons,templates,community" \ --testimonials 5 \ --cta "Enroll Now - Save 50% Today" \ --guarantee "30-day money-back guarantee" \ --urgency "Limited spots - Offer ends Friday" \ --output landing.html ``` ### `optimize_copy.py` Optimize existing landing page copy. **Parameters:** - `--input`: Input HTML file - `--framework`: Copywriting framework (AIDA, PAS, story) - `--add-social-proof`: Add testimonial placeholders - `--add-urgency`: Add scarcity elements - `--output`: Optimized output ### `ab_test_variations.py` Generate A/B testing variations. **Parameters:** - `--input`: Base landing page - `--variations`: Number to generate (default: 3) - `--test-elements`: What to test (headline, cta, price, colors) - `--output-dir`: Output directory for variations ## Page Templates ### Product Launch Page Structure ```html <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>[Product Name] - Transform Your Life</title> <meta name="description" content="..."> <!-- SEO meta tags --> <!-- Schema markup --> </head> <body> <!-- Hero Section --> <section class="hero"> <h1>[Headline]</h1> <p>[Subheadline]</p> <a href="#pricing" class="cta">[CTA]</a> </section> <!-- Problem Section --> <section class="problem"> <h2>Struggling with [Problem]?</h2> <p>You're not alone...</p> </section> <!-- Solution Section --> <section class="solution"> <h2>Introducing [Product Name]</h2> <ul>[Benefits List]</ul> </section> <!-- Features Section --> <section class="features"> <h2>What You'll Get</h2> <div class="feature-grid"> [Feature 1] [Feature 2] [Feature 3] </div> </section> <!-- Testimonials Section --> <section class="testimonials"> <h2>What People Are Saying</h2> [Testimonial Cards] </section> <!-- Pricing Section --> <section class="pricing" id="pricing"> <h2>Choose Your Plan</h2> [Pricing Cards] </section> <!-- Guarantee Section --> <section class="guarantee"> <h2>[Guarantee]</h2> <p>[Risk-free language]</p> </section> <!-- FAQ Section --> <section class="faq"> <h2>Frequently Asked Questions</h2> [FAQ Items] </section> <!-- Final CTA --> <section class="final-cta"> <a href="#pricing" class="cta">[CTA]</a> <p>[Urgency message]</p> </section> <!-- Footer --> <footer>[Legal links, contact info]</footer> </body> </html> ``` ## Best Practices ### Headlines - **Length:** 6-12 words maximum - **Format:** Clear, benefit-driven - **Punctuation:** Use numbers and brackets - **Examples:** - "Master SEO in 30 Days" - "[Product Name]: The #1 Solution" - "How to [Benefit] Without [Pain]" ### CTAs - **Positioning:** Above fold + multiple times below - **Color:** High contrast (green, orange, blue) - **Text:** Action-oriented (Enroll, Get, Start, Join) - **Urgency:** Add time or scarcity ### Social Proof - **Placement:** Near CTA sections - **Variety:** Mix of reviews, case studies, stats - **Specificity:** Include names, photos, results ### Pricing - **Anchoring:** Show expensive option first - **Tiered:** 3 tiers (Good, Better, Best) - **Highlight:** Make middle option stand out - **Psychological:** Use $299 instead of $300 ### Mobile Optimization - **CTA placement:** Above fold on mobile - **Font size:** Minimum 16px - **Touch targets:** 44px minimum buttons - **Form fields:** One input per screen ## Automation ### Bulk Landing Page Generation ```bash # Generate landing pages for multiple products 0 10 * * * /path/to/landing-page-generator/scripts/bulk_generate.py \ --csv products.csv \ --output-dir /path/to/landing-pages ``` ### A/B Test Automation ```bash # Generate variations for top pages 0 9 * * 1 /path/to/landing-page-generator/scripts/ab_test_variations.py \ --input /path/to/top-pages/ \ --variations 3 \ --output-dir /path/to/ab-tests ``` ## Integration Opportunities ### With Product Description Generator ```bash # 1. Generate product description product-description-generator/scripts/generate_description.py \ --product "Course Name" # 2. Extract benefits # 3. Generate landing page landing-page-generator/scripts/generate_landing.py \ --benefits "[extracted]" ``` ### With Review Summarizer ```bash # 1. Get review insights review-summarizer/scripts/scrape_reviews.py --url "[product_url]" # 2. Extract pros/cons # 3. Generate review page landing-page-generator/scripts/generate_landing.py \ --type affiliate-review \ --pros "[extracted]" \ --cons "[extracted]" ``` --- **Build pages. Convert visitors. Scale revenue.**

path: scripts/generate_landing.py
content: #!/usr/bin/env python3
"""
Landing Page Generator - Generate high-converting landing pages.
"""

import argparse
from datetime import datetime
from typing import List


def generate_html_landing_page(
    page_type: str,
    headline: str,
    product: str = None,
    price: str = None,
    benefits: List[str] = None,
    features: List[str] = None,
    testimonials: int = 3,
    cta: str = "Get Started Now",
    guarantee: str = None,
    urgency: str = None,
    subheadline: str = None
) -> str:
    """Generate HTML landing page."""

    # Generate meta title
    meta_title = f"{product} - {headline}" if product else headline

    # Generate benefits HTML
    benefits_html = ""
    if benefits:
        benefits_html = "<ul>\n"
        for benefit in benefits:
            benefits_html += f"      <li>{benefit}</li>\n"
        benefits_html += "    </ul>"

    # Generate features HTML
    features_html = ""
    if features:
        features_html = "<div class=\"feature-grid\">\n"
        for feature in features:
            features_html += f"      <div class=\"feature-card\">\n"
            features_html += f"        <h3>{feature}</h3>\n"
            features_html += "        <p>Feature description</p>\n"
            features_html += "      </div>\n"
        features_html += "    </div>"

    # Generate testimonials HTML
    testimonials_html = "<div class=\"testimonials\">\n"
    for i in range(testimonials):
        testimonials_html += f"      <div class=\"testimonial-card\">\n"
        testimonials_html += f"        <p>\"Amazing results! {product} exceeded my expectations.\"\n"
        testimonials_html += f"        <cite>- {f'Satisfied customer {i+1}'}</cite>\n"
        testimonials_html += "      </div>\n"
    testimonials_html += "    </div>"

    # Generate guarantee HTML
    guarantee_html = ""
    if guarantee:
        guarantee_html = f"    <h2>{guarantee}</h2>\n"
        guarantee_html += "    <p>Risk-free purchase with our satisfaction guarantee.</p>\n"

    # Generate urgency HTML
    urgency_html = ""
    if urgency:
        urgency_html = f"    <p class=\"urgency\">⚠️ {urgency}</p>\n"

    # Generate HTML
    html = f"""<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{meta_title}</title>
    <meta name="description" content="{headline}. Transform your results today.">
    <style>
        * {{ margin: 0; padding: 0; box-sizing: border-box; }}
        body {{ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.6; color: #333; }}
        .container {{ max-width: 1200px; margin: 0 auto; padding: 0 20px; }}
        .hero {{ text-align: center; padding: 80px 0; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; }}
        .hero h1 {{ font-size: 3em; margin-bottom: 20px; }}
        .hero p {{ font-size: 1.2em; margin-bottom: 30px; opacity: 0.95; }}
        .cta {{ display: inline-block; padding: 15px 30px; background: #ff6b6b; color: white; text-decoration: none; border-radius: 5px; font-weight: bold; font-size: 1.1em; }}
        .cta:hover {{ background: #ee5a5a; }}
        .section {{ padding: 60px 0; }}
        .section h2 {{ text-align: center; margin-bottom: 40px; }}
        ul {{ max-width: 600px; margin: 0 auto; }}
        li {{ font-size: 1.1em; margin-bottom: 15px; }}
        .feature-grid {{ display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; max-width: 1000px; margin: 0 auto; }}
        .feature-card {{ background: #f8f9fa; padding: 30px; border-radius: 10px; text-align: center; }}
        .testimonial-card {{ background: white; padding: 30px; border-radius: 10px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); margin-bottom: 20px; }}
        .urgency {{ color: #e74c3c; font-weight: bold; text-align: center; margin-top: 20px; }}
        @media (max-width: 768px) {{ .hero h1 {{ font-size: 2em; }} .feature-grid {{ grid-template-columns: 1fr; }} }}
    </style>
</head>
<body>
    <section class="hero">
        <div class="container">
            <h1>{headline}</h1>
            {f'<p>{subheadline}</p>' if subheadline else ''}
            <a href="#" class="cta">{cta}</a>
        </div>
    </section>

    <section class="section">
        <div class="container">
            <h2>Why Choose {product or 'This'}?</h2>
            {benefits_html}
        </div>
    </section>

    <section class="section">
        <div class="container">
            <h2>What You'll Get</h2>
            {features_html}
        </div>
    </section>

    <section class="section" style="background: #f8f9fa;">
        <div class="container">
            <h2>What People Are Saying</h2>
            {testimonials_html}
        </div>
    </section>

    {f'<section class="section">\n    <div class="container">\n' + guarantee_html + '    </div>\n</section>' if guarantee_html else ''}

    <section class="section">
        <div class="container" style="text-align: center;">
            <a href="#" class="cta" style="font-size: 1.3em; padding: 20px 40px;">{cta}</a>
            {urgency_html}
            {f'<p style="margin-top: 20px; font-size: 1.5em;">${price}</p>' if price else ''}
        </div>
    </section>

    <footer style="text-align: center; padding: 40px 0; background: #333; color: white;">
        <p>&copy; 2026 {product or 'Your Brand'}. All rights reserved.</p>
    </footer>
</body>
</html>"""

    return html


def main():
    parser = argparse.ArgumentParser(description="Generate landing page")
    parser.add_argument("--type", choices=["product-launch", "squeeze", "webinar", "digital-product", "service", "affiliate-review", "comparison", "thank-you"], default="product-launch", help="Page type")
    parser.add_argument("--headline", required=True, help="Main headline")
    parser.add_argument("--subheadline", help="Supporting subheadline")
    parser.add_argument("--product", help="Product/service name")
    parser.add_argument("--price", help="Price")
    parser.add_argument("--benefits", help="Comma-separated benefits")
    parser.add_argument("--features", help="Comma-separated features")
    parser.add_argument("--testimonials", type=int, default=3, help="Number of testimonials")
    parser.add_argument("--cta", default="Get Started Now", help="Call-to-action")
    parser.add_argument("--guarantee", help="Guarantee text")
    parser.add_argument("--urgency", help="Urgency message")
    parser.add_argument("--output", default="landing.html", help="Output file")

    args = parser.parse_args()

    # Parse benefits and features
    benefits = [b.strip() for b in args.benefits.split(",")] if args.benefits else []
    features = [f.strip() for f in args.features.split(",")] if args.features else []

    # Generate landing page
    html = generate_html_landing_page(
        args.type,
        args.headline,
        args.product,
        args.price,
        benefits,
        features,
        args.testimonials,
        args.cta,
        args.guarantee,
        args.urgency,
        args.subheadline
    )

    # Write output
    with open(args.output, "w", encoding="utf-8") as f:
        f.write(html)

    print(f"✅ Landing page generated: {args.output}")
    print(f"   Type: {args.type}")
    print(f"   Headline: {args.headline}")


if __name__ == "__main__":
    main()


Security scan verdicts — ClawScan: clean | static analysis: clean | VirusTotal: clean | SkillSpector: clean (LOW)