Pdp builder

From tinh2/skills-hub-registry · View interactive version

Pdp builder is an AI agent skill from the GitHub repository tinh2/skills-hub-registry. Generate a production-grade Product Detail Page (PDP) optimized for the 2026 conversion benchmarks — 4-8% target vs 1.5-3% average. Triggers: \"product page\", \"PDP\", \"product detail page\", \"Shopify product page\", \"ecommerce conversion\".

How to use this skill

Skill file

Product Detail Page (PDP) Generator

You generate a complete, conversion-optimized PDP. The 2026 benchmark is clear: average sites convert at 1.5-3%, top performers at 4-8% — a 2-3× gap explained by measurable elements, not magic. Your job is to ship those elements.

The single biggest gap-closer: image quality + social proof + page speed. Walmart found each 1-second-faster page delivered +2% conversion. Page loading in 2.4s converts at 1.9%; 5.7s converts at 0.6%.

============================================================

=== PRE-FLIGHT ===

============================================================

Verify before building:

Recovery:

============================================================

=== PHASE 1: VISUAL HIERARCHY (F-PATTERN) ===

============================================================

Eye-tracking shows users scan PDPs in F-pattern. The viewport-above-fold zones (in priority order):

  1. Top-left: Hero image (largest, sharpest, fills 50%+ of mobile width).
  2. Top-right: Title + price + reviews snippet (X stars, N reviews).
  3. Second row left: Variant selectors (size, color) + add-to-cart CTA.
  4. Below fold: Detailed description, full reviews, related products, FAQ.

Generate the layout as semantic HTML with proper landmarks (<main>, <section>, <aside>). Mobile-first CSS (default styles for ≤768px, media queries for tablet/desktop). Touch targets ≥44px.

VALIDATION: Lighthouse mobile Best Practices ≥ 90. CLS < 0.1 (every image has explicit width/height). LCP image preloaded.

============================================================

=== PHASE 2: IMAGE PIPELINE ===

============================================================

93% of consumers cite visual appearance as the top purchase factor. The image system MUST:

VALIDATION: Hero image LCP < 2.5s on Slow 4G. Image markup passes Lighthouse Image best practices.

============================================================

=== PHASE 3: SOCIAL PROOF BLOCK ===

============================================================

Products with 5+ reviews convert 270% better. Build the proof block as:

  1. Aggregate rating (X.X stars, Y reviews) — top-right of hero, schema.org AggregateRating.
  2. Review excerpts — 3 verified reviews above the fold (rotate top-rated).
  3. Photo reviews — UGC from buyers; massively trust-boosting.
  4. Trust signals — returns policy, shipping speed, security badges, payment methods, "X people bought today" (only if true — fake urgency erodes trust).
  5. Press / endorsements — if applicable, "As seen in" logo strip with nofollow outbound links.
  6. Q&A section — buyer questions + answers (or store-curated FAQ).

VALIDATION: Above-fold area on mobile shows at least one social proof element. AggregateRating schema validates.

============================================================

=== PHASE 4: CTA & VARIANT SELECTOR ===

============================================================

Critical CTAs:

Variant selectors:

Inventory urgency (only if accurate):

VALIDATION: CTA is keyboard-focusable, has visible focus ring, aria-disabled when out-of-stock.

============================================================

=== PHASE 5: SCHEMA.ORG MARKUP ===

============================================================

Generate JSON-LD for the product:

{
  "@context": "https://schema.org",
  "@type": "Product",
  "name": "...",
  "image": ["..."],
  "description": "...",
  "sku": "...",
  "brand": { "@type": "Brand", "name": "..." },
  "offers": {
    "@type": "Offer",
    "url": "...",
    "priceCurrency": "USD",
    "price": 49.99,
    "availability": "https://schema.org/InStock",
    "itemCondition": "https://schema.org/NewCondition",
    "shippingDetails": { "@type": "OfferShippingDetails", ... },
    "hasMerchantReturnPolicy": { "@type": "MerchantReturnPolicy", ... }
  },
  "aggregateRating": { "@type": "AggregateRating", "ratingValue": 4.7, "reviewCount": 128 },
  "review": [ ... top 3 reviews ... ]
}

Include shippingDetails and hasMerchantReturnPolicy — these unlock Google Shopping rich results in 2026.

VALIDATION: Passes Google Rich Results Test for Product. AggregateRating has a real value (not 0/0).

============================================================

=== PHASE 6: CRO EXPERIMENTATION HARNESS ===

============================================================

Top performers run disciplined experiments and read the data honestly. Generate:

1. Hero image: lifestyle vs studio

2. CTA copy: "Add to cart" vs "Add to bag" vs "Buy now"

3. Social proof position: above-fold vs below-fold

VALIDATION: Sample-size calculator does the math (not just emits a TODO). Experiment config maps to user's chosen platform.

============================================================

=== PHASE 7: OUTPUT PACKAGE ===

============================================================

pdp/
├── README.md                    # Where to drop files in each platform
├── components/
│   ├── ProductHero.{tsx|liquid|vue}
│   ├── ProductGallery.{tsx|liquid|vue}
│   ├── ProductVariants.{tsx|liquid|vue}
│   ├── ProductSocialProof.{tsx|liquid|vue}
│   ├── ProductSchema.{tsx|liquid|vue}
│   └── ProductCTA.{tsx|liquid|vue}
├── styles/
│   └── pdp.css                  # Mobile-first responsive
├── schema/
│   └── product-jsonld.example.json
├── experiments/
│   └── pdp.experiments.json
├── tracking/
│   └── events.spec.md
└── perf/
    └── lighthouse-budget.json   # CI gate: LCP<2.5s, INP<200ms, CLS<0.1

============================================================

=== SELF-REVIEW ===

============================================================

Score 1–5:

Most common gap: forgetting LCP image preload → hero takes 4s on Slow 4G → conversion craters. Verify the <link rel="preload"> is in the head, not just <img loading="eager">.

============================================================

=== LEARNINGS CAPTURE ===

============================================================

Append to ~/.claude/skills/pdp-builder/LEARNINGS.md:

<YYYY-MM-DD> — <platform, vertical>

============================================================

=== STRICT RULES ===

============================================================

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.