Token导航 LogoToken导航TokenDH.com
前端设计只读github未标认证来源可访问许可证需确认审计通过

product-page-designproduct page 设计

Agent Skill

用于辅助界面设计、视觉规范、排版、配色、布局和交互体验优化。它适合让 Agent 根据产品场景整理页面结构、生成 UI 方案、检查视觉一致性或改进组件层级。使用时需要结合现有品牌、设计系统和用户任务,不应只堆装饰元素;涉及真实页面改动时,应通过截图或浏览器预览检查文本溢出、对齐和响应式表现。

总安装

917

周安装

39

GitHub Stars

19

下载量

321
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:product-page-design(product page 设计)
来源仓库:https://github.com/finsilabs/awesome-ecommerce-skills
仓库路径:skills/product-page-design
安装命令:
npx skills add https://github.com/finsilabs/awesome-ecommerce-skills --skill product-page-design
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/finsilabs/awesome-ecommerce-skills --skill product-page-design

简介

用于辅助界面设计、视觉规范、排版、配色、布局和交互体验优化。它适合让 Agent 根据产品场景整理页面结构、生成 UI 方案、检查视觉一致性或改进组件层级。

  • 使用时需要结合现有品牌、设计系统和用户任务,不应只堆装饰元素;涉及真实页面改动时,应通过截图或浏览器预览检查文本溢出、对齐和响应式表现。
  • 通过 npx skills add https://github.com/finsilabs/awesome-ecommerce-skills --skill product-page-design 安装,建议查看示例截图质量。
  • 注意该技能可能读取当前页面 DOM,避免在登录态下运行导致隐私风险。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Product Page Design

Overview

Build high-converting product detail pages (PDP) with zoomable image galleries, variant selectors (size, color, material), quantity controls, and social proof elements. This skill covers responsive layout patterns, platform-specific customization, and the component choices that drive conversion — from above-the-fold hero sections to sticky add-to-cart bars on mobile.

When to Use This Skill

  • When building a product detail page from scratch for a new storefront
  • When optimizing an existing PDP for higher add-to-cart conversion rates
  • When implementing a variant selector that handles multiple option types (size + color)
  • When adding an image gallery with zoom, thumbnails, and swipe support
  • When integrating social proof elements like reviews, ratings, and stock indicators

Core Instructions

Step 1: Determine the merchant's platform and choose the right approach

PlatformRecommended ApproachWhy
ShopifyUse OS2.0 theme (Dawn, Sense, Craft) and customize via Theme Editor; extend with apps for reviews (Judge.me, Loox) and variant displaysDawn's product template handles gallery, variants, and Add to Cart out of the box; Theme Editor lets merchants configure layout without code
WooCommerceUse WooCommerce's built-in product page with a well-supported theme (Astra, Kadence, Flatsome) + Storefront Customizer; extend with YITH, WooCommerce Product Add-Ons, and WP Review pluginsWooCommerce provides the gallery, variants (attributes + variations), and cart button natively; theme selection determines layout quality
BigCommerceCustomize the Cornerstone theme's product page via Theme Editor; use BigCommerce's built-in review system and extend with Shogun for advanced layout controlCornerstone covers all core PDP components; BigCommerce's Theme Editor exposes layout options without code
Custom / HeadlessBuild a two-column grid layout with a gallery component, variant selector, sticky add-to-cart bar, and structured data for SEOFull control over every component and interaction; see patterns below

Step 2: Configure the PDP layout and components


Shopify

Layout configuration (Theme Editor):

  1. Go to Online Store → Themes → Customize
  2. Navigate to Products → Default product template
  3. Configure the Product information section:

- Enable Quantity selector if you sell multi-unit products - Enable Payment button (Buy it now / Shop Pay express checkout) below Add to Cart - Set Variant selector style: Dropdown for many options, Buttons for size/color swatches

  1. In the Product media section, set Media size to Large or Extra Large for better zoom quality
  2. Enable the Sticky header option if your theme supports it — keeps Add to Cart visible on scroll

Adding reviews (most important social proof element):

  • Install Judge.me Product Reviews (free tier — unlimited reviews, photo reviews) from the Shopify App Store
  • Or install Loox (photo/video reviews with referral program, from $9.99/mo)
  • Both apps inject review stars below the product title and a full reviews section at the bottom of the page with no theme code changes

Improving variant selectors for visual products (colors/sizes):

  • Install Variant Image Selector or use a theme with built-in swatch support (Prestige, Impulse, Flex)
  • In Dawn: go to Theme settings → Variant pills and enable them to replace dropdowns with clickable buttons
  • For color swatches with images: use the Variant Image feature to assign a distinct image to each color variant; the gallery switches automatically

Stock urgency indicator:

  • Install Urgency Bear or Hurrify app for "Only X left" badges — these read your actual Shopify inventory, not fake numbers
  • Or configure inventory thresholds in Products → [product] → Inventory and enable the built-in low stock notification in your theme

WooCommerce

Layout configuration:

  1. Go to WooCommerce → Settings → Products → Display
  2. Set Product images size to Large (at minimum 600×600px) for zoom quality
  3. Enable Product gallery zoom in WooCommerce settings to activate hover zoom

Theme-level layout:

  • Astra: Go to Appearance → Customize → WooCommerce → Product Page — configure single-column or two-column layout, gallery position, and sticky Add to Cart
  • Flatsome: Use the built-in drag-and-drop UX Builder to rearrange PDP sections; Flatsome has built-in sticky Add to Cart and swatch selectors
  • Kadence: In Kadence → WooCommerce settings, enable sticky Add to Cart, set gallery layout (vertical thumbnails, horizontal strip), and configure review stars placement

Adding reviews:

  • Install WooCommerce Product Reviews Pro (WooCommerce.com, $79/yr) for photo reviews, review reminders, and helpful votes
  • Or use Customer Reviews for WooCommerce (free) which integrates with Trustpilot and Google Shopping

Variant selectors (color swatches, size buttons):

  • Install Variation Swatches for WooCommerce (free, WordPress.org) — converts attribute dropdowns to visual swatches (color, image, or button style)
  • Configure swatch type per attribute in Products → Attributes → [attribute] → Swatch type

BigCommerce

Layout configuration (Cornerstone theme):

  1. Go to Storefront → My Themes → Customize
  2. Under Product Page, configure:

- Image layout: Carousel, Thumbnail strip vertical, or Thumbnail strip horizontal - Gallery zoom: Enable hover zoom - Product options display: Dropdown or Swatch buttons per option type

  1. Enable Sticky Add to Cart if your theme version supports it (Cornerstone 6+)

Reviews:

  1. Go to Storefront → Product Reviews and enable the built-in review system
  2. Set minimum review length and whether reviews require approval before publishing
  3. For advanced review features (photo reviews, Q&A, review emails): install PowerReviews or Yotpo from the BigCommerce App Marketplace

Social proof apps:

  • Judge.me and Loox are available for BigCommerce in addition to Shopify

Custom / Headless

Two-column responsive PDP layout:

.pdp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem;
}

@media (max-width: 768px) {
  .pdp-grid { grid-template-columns: 1fr; }
}

/* Gallery sticks while scrolling through product info on desktop */
.pdp-gallery { position: sticky; top: 2rem; align-self: start; }

Variant selector with availability tracking:

// VariantSelector.jsx — uses radio inputs for accessibility
function VariantSelector({ product, selectedOptions, onOptionChange }) {
  function isAvailable(optionName, value) {
    return product.variants.some(v =>
      v.options[optionName] === value &&
      v.inventory > 0 &&
      Object.entries(selectedOptions).every(([k, sv]) =>
        k === optionName || v.options[k] === sv
      )
    );
  }

  return (
    <div className="variant-selector">
      {product.optionNames.map(optionName => (
        <fieldset key={optionName}>
          <legend>{optionName}: <strong>{selectedOptions[optionName]}</strong></legend>
          {product.optionValues[optionName].map(value => (
            <label key={value} className={!isAvailable(optionName, value) ? 'unavailable' : ''}>
              <input type="radio" name={optionName} value={value}
                checked={selectedOptions[optionName] === value}
                disabled={!isAvailable(optionName, value)}
                onChange={() => onOptionChange(optionName, value)}
                className="sr-only" />
              <span className="option-btn">{value}</span>
              {!isAvailable(optionName, value) && <span className="sr-only"> (out of stock)</span>}
            </label>
          ))}
        </fieldset>
      ))}
    </div>
  );
}

Sticky Add to Cart bar (appears when primary button scrolls out of view):

function StickyBuyBar({ product, selectedVariant, onAddToCart }) {
  const [visible, setVisible] = useState(false);
  useEffect(() => {
    const el = document.getElementById('main-add-to-cart');
    if (!el) return;
    const obs = new IntersectionObserver(([e]) => setVisible(!e.isIntersecting));
    obs.observe(el);
    return () => obs.disconnect();
  }, []);

  return visible ? (
    <div className="sticky-buy-bar" role="complementary" aria-label="Add to cart">
      <span>{product.name}</span>
      <span>${selectedVariant?.price ?? product.price}</span>
      <button onClick={onAddToCart} disabled={!selectedVariant || selectedVariant.inventory <= 0}>
        {selectedVariant?.inventory <= 0 ? 'Sold Out' : 'Add to Cart'}
      </button>
    </div>
  ) : null;
}

Product structured data for SEO (JSON-LD):

// Build server-side to avoid client-side injection
function buildProductSchema(product, reviews) {
  return {
    '@context': 'https://schema.org',
    '@type': 'Product',
    name: product.name,
    image: product.images.map(i => i.src),
    description: product.description,
    sku: product.sku,
    brand: { '@type': 'Brand', name: product.brand },
    offers: {
      '@type': 'AggregateOffer',
      lowPrice: Math.min(...product.variants.map(v => v.price)).toFixed(2),
      priceCurrency: 'USD',
      availability: product.inStock ? 'https://schema.org/InStock' : 'https://schema.org/OutOfStock',
    },
    ...(reviews.totalCount > 0 && {
      aggregateRating: {
        '@type': 'AggregateRating',
        ratingValue: reviews.averageRating.toFixed(1),
        reviewCount: reviews.totalCount,
      },
    }),
  };
}

Step 3: Add social proof and trust signals

Regardless of platform, these elements directly improve add-to-cart conversion:

  1. Star ratings near the title — place review average and count immediately below the product name, above the price
  2. Stock indicators — show "Only 3 left" only when inventory is genuinely low (under 10 units); never fake urgency
  3. Trust badges — secure checkout, free returns, and warranty symbols near the Add to Cart button; most themes have a trust badge section or use a free app
  4. Recent purchase notifications — apps like Sales Pop (Shopify) or WooCommerce Sales Popup show "Someone in [city] bought this 2 hours ago" — use with real data only

Best Practices

  • Prioritize above-the-fold content — title, price, main image, and Add to Cart button should be visible without scrolling on desktop
  • Use semantic HTML for variant selectors<fieldset>/<legend>/<input type="radio"> pattern, not clickable <div> elements; screen readers navigate by this
  • Lazy-load below-the-fold images — only the hero image uses loading="eager"; thumbnails and secondary images use loading="lazy"
  • Show compare-at prices clearly — display the original price with a strikethrough next to the sale price
  • Disable, don't hide, out-of-stock variants — show them as disabled so users understand what exists in the product
  • Use real inventory data for urgency — never fake "only 3 left" messaging; use actual stock counts or remove the indicator

Common Pitfalls

ProblemSolution
CLS from image loadingSet explicit width and height on images, or use aspect-ratio on the container
Variant selector doesn't update the URLUse replaceState to update the URL with the selected variant ID so the page is shareable
Add-to-cart button hidden on long pages (mobile)Implement a sticky add-to-cart bar that appears when the main button scrolls out of view
Gallery images load slowly on mobileServe responsive images with srcset and use WebP/AVIF formats
Reviews section causes long initial loadLazy-load reviews — initialize the section only when the user scrolls near it

Related Skills

  • @image-zoom-360
  • @responsive-storefront
  • @accessibility-commerce
  • @checkout-flow-optimization
  • @search-autocomplete

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.63%
按下载量换算118

Claude

29.16%
按下载量换算94

Cursor

20.16%
按下载量换算65

Gemini CLI

8.29%
按下载量换算27

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills