Communitygithub.com

page-speed-for-conversions

Speed up landing pages where it affects conversions - the first view, the hero (LCP) image and the CTA. A script summarises a saved page's scripts by host and category (analytics, tag manager, ad pixels, heatmaps, A/B testing, chat, consent, CDN libraries) with render-blocking and async/defer status, A/B anti-flicker snippets, render-blocking CSS, Google Fonts without display=swap, @font-face without font-display, font preloads and preconnects, images (formats, dimensions, srcset) and the likely LCP image (lazy-loaded, no fetchpriority, legacy format), and eager YouTube/map iframes; then a fix plan verified with PageSpeed Insights/Lighthouse field data. Use when the user says the landing page is slow, mobile bounce rate is high, PageSpeed or Core Web Vitals (LCP, INP, CLS) are poor, too many tracking tags or pixels are loaded, or before running paid traffic.

page-speed-for-conversions とは?

page-speed-for-conversions is a Claude Code agent skill that speed up landing pages where it affects conversions - the first view, the hero (LCP) image and the CTA. A script summarises a saved page's scripts by host and category (analytics, tag manager, ad pixels, heatmaps, A/B testing, chat, consent, CDN libraries) with render-blocking and async/defer status, A/B anti-flicker snippets, render-blocking CSS, Google Fonts without display=swap, @font-face without font-display, font preloads and preconnects, images (formats, dimensions, srcset) and the likely LCP image (lazy-loaded, no fetchpriority, legacy format), and eager YouTube/map iframes; then a fix plan verified with PageSpeed Insights/Lighthouse field data. Use when the user says the landing page is slow, mobile bounce rate is high, PageSpeed or Core Web Vitals (LCP, INP, CLS) are poor, too many tracking tags or pixels are loaded, or before running paid traffic.

対応✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/saizul/landing-page-cro-skills/tree/HEAD/skills/page-speed-for-conversions

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

Page speed for conversions

Focus on what delays the first screen and the first click: the hero image, fonts, render-blocking code and third-party tags. A faster page nobody can convert on is not the goal; never remove a tag without knowing who uses it.

Paths below are relative to this skill's folder (in Claude Code: ${CLAUDE_SKILL_DIR}).

When to use

  • "The landing page is slow", "PageSpeed score is 30 on mobile"
  • High mobile bounce rate on paid traffic
  • Many marketing tags (pixels, heatmaps, chat, A/B tools) on one page
  • Before launching ads, or after adding a new tool

When not to use

  • Server, hosting, caching and CDN configuration: use a DevOps/hosting skill
  • Framework build optimisation (Next.js bundles, code splitting) in depth: framework skill
  • Whole-page conversion review: landing-page-audit

Workflow

  1. Get field data first, if it exists. Ask for (or have the user run) PageSpeed Insights for the URL on mobile. Field data (CrUX) beats lab data. Targets: LCP under 2.5 s, INP under 200 ms, CLS under 0.1 at the 75th percentile.
  2. Summarise the assets (read-only).
    python3 scripts/asset_summary.py page.html --site-host example.com
    python3 scripts/asset_summary.py page.html --site-host example.com --json
    python3 scripts/asset_summary.py page.html --base-dir ./site --fail-on medium
    
    --site-host marks your own scripts as first-party; --base-dir adds local file sizes. Exit 1 = findings at or above --fail-on (default high).
  3. Fix the LCP element first (details in references/fixes.md): no loading="lazy" on the hero image, fetchpriority="high", WebP/AVIF at the displayed size with srcset, under ~150 KB; no hero slider.
  4. Unblock rendering: defer first-party scripts, remove jQuery if only a slider uses it, combine stylesheets, display=swap for Google Fonts or self-host fonts with font-display: swap, preload at most 1-2 fonts.
  5. Tame third parties: make a tag inventory with the owner and purpose of each tag (from the script output). For each: keep, load after consent/interaction, move into the tag manager, or remove. A/B testing anti-flicker snippets with a 4 s timeout hide the page for everyone: cut the timeout to 1 s or less, or test server-side. Load chat widgets on first interaction or after a delay. Ask before removing any tag.
  6. Stability (CLS): width/height on images, reserved space for embeds and cookie banners, no content injected above the hero.
  7. Verify: re-run the script, then PageSpeed Insights or npx lighthouse https://example.com --preset=perf --form-factor=mobile (lab), and watch field data over 28 days. Check conversion rate did not drop when tags moved.

Output

Assets: 14 external scripts (3 blocking in <head>), 11 third-party
  ab-testing 1 (blocking + 4 s anti-flicker), heatmap 2 (Hotjar + Clarity), ads 4, chat 1
LCP candidate: /img/hero.jpg - lazy-loaded, JPEG, no fetchpriority

Plan (biggest first)
1. Hero: remove loading="lazy", add fetchpriority="high", serve hero.avif 1200w/800w (est. LCP -1.5 s)
2. Anti-flicker: timeout 4000 -> 800 ms, or run the headline test server-side
3. Defer jquery.js and app.js; drop jQuery once the slider is removed
4. Keep one heatmap tool (Clarity: free, already used by marketing) - confirm with owner
5. Intercom: load on first scroll/click
6. Google Fonts: add &display=swap and preconnect to fonts.gstatic.com
Verify: PageSpeed mobile before 34 / LCP 5.8 s; re-test after deploy.

Individual skills in this repo

This repo contains 4 individual skills — each has its own dedicated page.

cta-optimization

Improve calls to action on landing pages, service pages and emails - lists every button and link on a saved page with its accessible text, destination and position using a script, flags vague labels ("Submit", "Click here", "Learn more", "Read more"), icon-only buttons without text, overlong labels, dead links (#, javascript:), generic form submits and one label pointing to different places, then rewrites CTAs with first-person, outcome-first patterns, placement rules, primary vs secondary hierarchy and click-to-call/WhatsApp CTAs for mobile. Use when the user asks to improve buttons, CTA copy or placement, says people do not click, wants CTA variants to test, or a page has many competing buttons.

landing-page-audit

Audit a landing page, service page or sales page for conversion problems with a deterministic script on the saved HTML - H1 presence and length, a call to action above the fold, number of competing CTAs, form field count, social proof (testimonials, ratings, customer counts, logos, review schema), trust markers (guarantees, privacy link, contact details), page weight (HTML size, scripts, render-blocking tags, images), meta title/description, viewport and lang - then a prioritised fix list. Use when the user asks to review, audit, roast or "CRO" a landing page, asks why a page does not convert or get leads, shares a page URL or HTML file, or before launching paid traffic to a page.

social-proof-and-trust

Find, grade and improve social proof and trust signals on landing and service pages - an inventory script on the saved HTML finds testimonials and grades them (name, role/company, photo, specific result), ratings and review counts, schema.org AggregateRating, review widgets (Trustpilot, Google reviews, G2), client logos, customer counts, press mentions, guarantees and risk reversal, security and certification badges, contact details and policy links; a checklist then covers collecting testimonials ethically, placement next to CTAs, guarantees that convert and local trust signals. Use when the user asks to add testimonials, reviews, logos, trust badges or a guarantee, says visitors "don't trust us", has a new business without reviews, or wants proof placed better on a page.

value-proposition-writer

Write and score value propositions, headlines and subheadlines for landing pages, service pages and ads. Gathers customer, problem, outcome and proof, drafts variants with proven frameworks (outcome + timeframe, problem-agitate-solve, before-after-bridge, "X for Y", jobs-to-be-done, Bangla/local market variants), then scores each headline/subhead pair with a deterministic script - length, jargon and buzzword list, unproven superlatives, specificity (numbers, timeframes, prices, percentages), you-vs-we focus, outcome verbs, readability. Use when the user asks for a better headline, hero copy, tagline, value proposition or USP, says visitors "don't get what we do", wants headline variants for an A/B test, or shares a page whose H1 is vague.

関連スキル