SkillsWhitepaperHow It WorksResultsFAQ Join Waitlist
SKILL FILE

Teach Your Claude Code to Generate Ebooks & Lead Magnets

Real templates, real CSS systems, real PDF export workflows. Everything below is from the actual skill file. Read it, learn it, then download the complete version.

$0 Design tool cost
15min From idea to PDF
3x Higher conversion than blog posts
Download Skill File ↓

What this skill file teaches Claude

Drop one markdown file into your repo. Claude Code learns how to generate professional lead magnets from plain English prompts.

1

Content Generation

AI writes full chapters from topic outlines with examples and data points.

2

Brand-Consistent Design

HTML/CSS ebooks styled with your brand system automatically.

3

PDF Export

Print-ready PDFs via Puppeteer with cover pages, TOC, and page numbers.

4

Landing Pages

Gated download pages with email capture and CRM integration.

5

Multiple Formats

Ebooks, checklists, templates, worksheets, cheat sheets, case studies.

6

Download Tracking

Every download logged as a CRM event with lead source attribution.

Total cost: $0/mo (HTML/CSS generation + Netlify hosting)

What a high-converting lead magnet looks like

Every ebook follows the same proven structure. Here's each section with its purpose.

SOLOSTACK
How to Replace Your SaaS Stack with AI Agents
A practical guide for founders
1

Cover Page

Title, subtitle, author name, and brand logo. First impression matters — make it bold, clean, and instantly readable. Use your brand colors.

CONTENTS
01 The SaaS Problem
02 The AI-Native Alternative
03 Building Your Stack
04 Real Cost Comparison
05 Key Takeaways
2

Table of Contents

Clickable chapter links so readers can jump to what matters. Scannable structure shows the value at a glance. 3-7 chapters is ideal.

Chapter 2: The AI-Native Alternative
Most companies bolt together 20 SaaS tools, then spend years fixing data silos...
Key insight: Design for shared data from day one.
3

Chapter Content

Core content with real examples, data points, and callout boxes. Each chapter should teach one clear concept and include an actionable takeaway.

KEY TAKEAWAYS
✓ Replace $500/mo in SaaS with $13/mo
✓ Build tools in hours, not months
✓ One repo = one source of truth
4

Key Takeaways

Bullet point summary of the most important insights. Readers skim this first to decide if it's worth reading the full guide. Make every bullet specific.

Ready to build your stack?
Join 2,400+ founders who replaced their SaaS tools with AI agents.
Join Waitlist →
5

Call to Action

Single, clear next step: book a call, join a waitlist, or try the product. Never end an ebook without telling the reader what to do next.

Anatomy of a gated download page

Every lead magnet needs a landing page that converts visitors into email subscribers. Here's a real example with each element labeled.

Stop Paying $500/mo for Tools AI Can Replace
HEADLINE Leads with the benefit. States what the reader gains, not what the ebook covers.
A 15-page guide with real code, real costs, and real results.
SUBHEADLINE Specific and concrete. "15 pages" and "real code" set expectations.
How to Replace Your SaaS Stack with AI Agents
COVER MOCKUP Visual representation of the ebook. Makes it feel tangible. Simple CSS, no design tool needed.
✓ Real cost comparison: $492/mo SaaS vs $13/mo in-house
✓ Step-by-step setup with Claude Code prompts
✓ 6 tools you can replace on day one
BULLETS Specific outcomes, not vague promises. Each bullet answers "what will I learn?"
Name
Jane Smith
Email
jane@company.com
Download Free Guide
EMAIL GATE Name + email only. No phone number, no company name. Less friction = more downloads.
SOCIAL PROOF Specific numbers build trust. "2,400+ downloads" is better than "popular guide."

The lead magnet agent

These rules go into departments/marketing/agents/lead-magnet-generator.md. Claude Code follows them when generating every lead magnet.

1
Every chapter must include at least one actionable takeaway -- no fluff.

Readers download lead magnets to solve problems. Every section should give them something they can do immediately. Cut anything that doesn't teach or inspire action.

2
Use the brand CSS system (ebook-print.css) -- never hardcode colors or fonts.

All styling comes from packages/brand/css/ebook-print.css. This ensures every ebook looks consistent and can be re-branded by changing one config file.

3
Ebooks must have a cover page, TOC, and CTA -- even if they're short.

A 5-page guide still needs these three elements. The cover makes it feel professional. The TOC makes it scannable. The CTA converts readers to leads.

4
Checklist items should be specific and measurable, not vague.

"Set up SPF, DKIM, and DMARC records" is good. "Improve email deliverability" is bad. Every item should be completable in one sitting.

5
Landing page headlines must state the benefit, not describe the content.

"Stop Paying $500/mo for Tools AI Can Replace" beats "A Guide to AI-Native Business Tools." Lead with what the reader gains, not what you wrote.

6
Always include social proof -- download count, testimonials, or company logos.

Even early-stage: "Downloaded by 50+ founders this week" works. Social proof reduces friction at the email gate. Update the number as downloads grow.

How the pipeline works

Six stages. From topic idea to gated download page. Every stage feeds the next -- one repo, zero exports.

1
Topic
Choose subject and format
2
Outline
AI generates chapter structure
3
Write
AI writes content + examples
4
Design
HTML/CSS with brand styling
5
Export
Puppeteer generates PDF
6
Gate
Landing page + email capture

Brand System

Every lead magnet uses the same CSS from packages/brand/css/ebook-print.css. Change the brand config once, update every ebook automatically.

CRM Integration

Every download fires a webhook to your CRM. Contact record is created with lead_source, lead_magnet_name, and timestamp. Your sales team sees what each prospect downloaded.

Repurposable

One ebook becomes 5 LinkedIn carousels, 3 blog posts, and a checklist. AI breaks down chapters into standalone content pieces automatically.

Build lead magnets with plain English

Tell Claude Code what to create. It writes the content, designs the layout, exports to PDF, and builds the landing page.

claude — solostack/
you: |
Generated ebook: "How to Replace Your SaaS Stack with AI Agents"

  Format: Ebook (15 pages, HTML/CSS)
  Brand: SoloStack neo-brutalist (ebook-print.css)

  Structure:
  ├── Cover page
  ├── Table of contents
  ├── Ch 1: The SaaS Problem (3 pages)
  ├── Ch 2: The AI-Native Alternative (3 pages)
  ├── Ch 3: Building Your Stack (4 pages)
  ├── Ch 4: Real Cost Comparison (2 pages)
  ├── Key Takeaways (1 page)
  └── CTA: Join Waitlist (1 page)

  ✓ 15 pages generated
  ✓ 6 code examples included
  ✓ 3 comparison tables
  ✓ Brand CSS applied

→ Preview at localhost:3000/ebook-preview
you: |
Exported and published:

  PDF: departments/marketing/content/ebooks/saas-replacement-guide.pdf
    ✓ 15 pages, 2.4 MB
    ✓ Cover page with brand styling
    ✓ Clickable table of contents
    ✓ Page numbers in footer

  Landing page: /lead-magnets/saas-replacement-guide
    ✓ Headline: "Stop Paying $500/mo for Tools AI Can Replace"
    ✓ 5 bullet points (what's inside)
    ✓ Email capture form (Netlify Forms)
    ✓ Download count tracker
    ✓ CRM webhook configured

→ Live at trysolostack.com/lead-magnets/saas-replacement-guide
you: |
Generated checklist: "Cold Email Deliverability Checklist"

  Format: Checklist (1 page, print-ready)

  ✓ 12 checklist items across 4 categories:
    Domain Setup (3 items)
    Email Content (3 items)
    Sending Patterns (3 items)
    Monitoring (3 items)

  ✓ Brand CSS applied
  ✓ PDF exported: deliverability-checklist.pdf (340 KB)
  ✓ Can be used as email attachment or landing page download

→ Attach to cold email sequences or gate on landing page.

Formats & distribution

The skill file supports multiple lead magnet formats and distribution channels to maximize reach.

Format Pages Best Use Case
Ebook / Guide 10-30 Deep-dive educational content
Checklist 1-3 Quick-reference action items
Template 2-5 Fill-in-the-blank frameworks
Cheat Sheet 1-2 Reference cards, shortcuts

Distribution rules

Gate with email capture. Name + email only, no phone number. Less friction = more downloads.
Track every download as a CRM event. Log lead_source, lead_magnet_name, and timestamp for every submission.
A/B test landing page headlines. Benefit-focused vs curiosity-driven. Small changes, big impact on conversion.
Repurpose ebook chapters. Turn chapters into blog posts, LinkedIn carousels, and email sequences. One asset, five channels.
Include CTA on every page. Not just the last page. A subtle footer CTA on each page catches readers wherever they stop.

Get the full skill file

Everything above is 80% of the skill file. Download the complete version with full templates, CSS systems, PDF export code, and landing page setup instructions.

Common questions

For lead magnets, AI gets you 80% of the way in 5% of the time. A designer charges $500-2,000 for an ebook and takes 1-2 weeks. Claude Code generates the content, designs the layout with your brand CSS, and exports to PDF in a single session. The output is clean, professional, and brand-consistent. For Fortune 500 polish, you might want a final design pass — but for lead gen, AI-generated ebooks convert just as well because people download for the content, not the design.
It depends on your audience and funnel stage. Top-of-funnel: checklists and cheat sheets (quick to consume, high download rate). Mid-funnel: ebooks and guides (builds authority, qualifies interest). Bottom-of-funnel: templates and case studies (proves your methodology works). The skill file supports all formats. Start with a checklist — it's the easiest to create and has the highest conversion rate. Then repurpose the content into a longer ebook.
Three rules: solve one specific problem, make it actionable, and gate it with a simple form. The #1 mistake is writing a 30-page ebook that nobody finishes. A 1-page checklist that saves someone 2 hours converts better than a comprehensive guide. The skill file includes templates for each format with proven structures. For the landing page: headline states the benefit, 3-5 bullets explain what's inside, and the form asks for name + email only.
Both. The skill file generates standalone HTML/CSS that you can brand for any client. Change the colors, fonts, and logo in the theme config, and Claude Code generates a completely different-looking lead magnet. Agency owners use this to deliver lead magnets as a service — what used to take a designer a week now takes one Claude Code session. Each client gets their own brand config in the repo.
The ebook is built as HTML/CSS with print-specific styles (@page rules, page-break-before, print margins). Puppeteer loads the HTML in headless Chrome and calls page.pdf() to export. This gives you full CSS support including custom fonts, SVG icons, and responsive layouts. The output is a properly paginated, print-ready PDF with cover page, table of contents, and page numbers. No external tools or subscriptions needed.
The gated landing page uses a Netlify Form. When someone submits their email, the form data is captured and a webhook fires to your CRM. The contact record is created or updated with: lead_source='lead_magnet', lead_magnet_name='ebook-ai-agents', downloaded_at=timestamp. This means your sales team sees exactly which lead magnets each prospect downloaded, and your nurture sequences can reference the specific content they engaged with.

Keep building your content stack

Ready to build lead magnets that convert?

Join the waitlist and get early access to the full SoloStack lead magnet system.

Join Waitlist →