Token导航 LogoToken导航

Agent Skill · 研究检索

quick-view-modal(快速查看模式)

quick-view-modal 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

quick-view-modal 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 57,864。

总安装 423周安装 18GitHub Stars 19下载 148核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/finsilabs/awesome-ecommerce-skills --skill quick-view-modal

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

quick-view-modal 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。它可结合来源仓库、安装命令和原始 README 继续核验具体用法。

安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。适用于研究检索类任务,支持多宿主环境集成。可通过 npx skills add 命令从 GitHub 仓库安装。

来源仓库内路径:skills/quick-view-modal

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/finsilabs/awesome-ecommerce-skills --skill qui…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

quick-view-modal 怎么安装?

在终端执行 npx skills add https://github.com/finsilabs/awesome-ecommerce-skills --skill quick-view-mo…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

quick-view-modal 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

quick-view-modal 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

quick-view-modal 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

quick-view-modal 用的人多吗?

公开数据是累计安装 423 次,近一周安装 18 次,下载 148 次,GitHub 19 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

quick-view-modal 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
quick-view-modal

快速查看模式 · 本页

42319需要联网未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Quick View Modal

Overview

Implement a product quick-view overlay that lets shoppers preview key product details — images, variants, description, price — and add items to cart without navigating away from the product listing page. Quick view reduces friction for shoppers browsing multiple products and works best for products with simple variant structures (1–2 variant axes).

When to Use This Skill

  • When conversion data shows shoppers leave the PLP frequently but bounce from the PDP
  • When products have simple variant structures (1-2 variant axes) suitable for quick selection
  • When implementing a "quick add" button on product cards in collections or search results
  • When the site's PDP is heavy (many images, reviews section) and a lighter preview would reduce friction

Core Instructions

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

PlatformRecommended ApproachWhy
ShopifyEnable Quick View in your theme (Dawn, Sense, Craft all include it) or install Quick View – Instant Preview appDawn's built-in Quick Add button adds items directly to cart from collection pages; the Quick View app adds a full product preview with variant selection
WooCommerceInstall YITH WooCommerce Quick View (free) or WooCommerce Quick View ProYITH Quick View is the most widely used option — adds a "Quick View" button on hover, opens a modal with gallery, variants, and Add to Cart, and requires no custom code
BigCommerceEnable Quick View in Storefront → My Themes → Customize → Product Cards (Cornerstone theme)Cornerstone includes a built-in quick view popup — toggle it in the Theme Editor with no coding required
Custom / HeadlessBuild a modal using the native <dialog> element with lazy product fetch, variant selection, and focus management<dialog> provides built-in focus trapping and Escape-to-close; lazy fetching keeps initial page weight low

Step 2: Enable and configure Quick View


Shopify

Built-in Quick Add (Dawn, Sense, Craft):

Dawn's collection pages include a "Quick Add" button by default that adds a product directly to cart without opening a modal. To enable/configure it:

  1. Go to Online Store → Themes → Customize
  2. Navigate to a collection page template
  3. In the Product card section, enable Quick add button
  4. Set button style: Standard (shows "Quick Add") or Icon (+ icon)

Note: Dawn's Quick Add only works for products with no variants or a single variant axis. For products with multiple option types (Color + Size), it opens the product page instead.

Full Quick View modal (Quick View – Instant Preview app):

  1. Install from the Shopify App Store (free tier available)
  2. The app adds a "Quick View" button on hover over product cards across all collection pages
  3. In app settings, configure which product sections appear in the modal: images, description, reviews, size guides
  4. Shoppers can select all variant options and add to cart without leaving the collection page
  5. No theme code editing required — the app injects via App Block

WooCommerce

YITH WooCommerce Quick View (free):

  1. Install and activate from WordPress.org
  2. Go to YITH → Quick View → General Settings
  3. Set Trigger: "Quick View button on hover" (recommended) or click on product image
  4. Configure Modal content: choose which sections to show — Gallery, Price, Short Description, Variants (Add to Cart), Reviews summary
  5. Set Modal width and whether to show a "View full product" link inside the modal (recommended)
  6. Under Style, adjust button text, colors, and positioning to match your theme

The plugin adds a "Quick View" button to .product elements across shop, archive, and search results pages automatically.


BigCommerce

Built-in Quick View (Cornerstone theme):

  1. Go to Storefront → My Themes → Customize
  2. Find Product Cards section (in Global or Category Page settings depending on your theme version)
  3. Toggle Enable Quick View to On
  4. Configure which elements appear: gallery, options/variants, Add to Cart button, price
  5. BigCommerce's Quick View pulls the product's full variant options and images

For non-Cornerstone themes, check your theme documentation — Quick View support varies. If not included, install the Quick View app from the BigCommerce App Marketplace.


Custom / Headless

Quick View button on product cards:

// ProductCard.jsx
export function ProductCard({ product, onQuickView }) {
  return (
    <article className="product-card">
      <div className="product-card__image-wrapper">
        <a href={product.url}>
          <img src={product.image} alt={product.name} loading="lazy" />
        </a>
        <button className="quick-view-btn"
          onClick={() => onQuickView(product.id)}
          aria-label={`Quick view ${product.name}`}>
          Quick View
        </button>
      </div>
      <a href={product.url} className="product-card__name">{product.name}</a>
      <p className="product-card__price">${product.price}</p>
    </article>
  );
}
/* Always visible on touch; appears on hover for mouse users */
.quick-view-btn { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  opacity: 0; transition: opacity 0.15s; }
.product-card:hover .quick-view-btn, .product-card:focus-within .quick-view-btn { opacity: 1; }
@media (hover: none) { .quick-view-btn { opacity: 1; } }

Modal using native <dialog> (built-in focus trapping + Escape-to-close):

// QuickViewModal.jsx
import { useEffect, useRef } from 'react';

export function QuickViewModal({ isOpen, product, loading, onClose, onAddToCart }) {
  const dialogRef = useRef(null);

  useEffect(() => {
    const dialog = dialogRef.current;
    if (!dialog) return;
    if (isOpen) dialog.showModal();
    else dialog.close();
  }, [isOpen]);

  return (
    <dialog ref={dialogRef} className="quick-view-dialog"
      onClose={onClose}
      onClick={(e) => { if (e.target === dialogRef.current) onClose(); }}
      aria-label={product ? `Quick view: ${product.name}` : 'Quick view'}>
      <button className="close-btn" onClick={onClose} aria-label="Close quick view">&times;</button>

      {loading && (
        <div aria-live="polite" aria-label="Loading product details">
          {/* Skeleton loaders */}
          <div className="skeleton skeleton--image" />
          <div className="skeleton skeleton--title" />
        </div>
      )}

      {!loading && product && (
        <QuickViewBody product={product} onAddToCart={onAddToCart} onClose={onClose} />
      )}
    </dialog>
  );
}

Quick view body with variant selection:

function QuickViewBody({ product, onAddToCart, onClose }) {
  const [selectedVariant, setSelectedVariant] = useState(product.variants[0] ?? null);

  return (
    <div className="quick-view-body">
      <img src={selectedVariant?.image ?? product.images[0]} alt={product.name} />
      <div className="quick-view-details">
        <h2>{product.name}</h2>
        <p>${selectedVariant?.price ?? product.price}</p>

        {product.options.map(option => (
          <fieldset key={option.name}>
            <legend>{option.name}</legend>
            {option.values.map(value => {
              const variant = product.variants.find(v => v.options[option.name] === value);
              return (
                <label key={value}>
                  <input type="radio" name={option.name} value={value}
                    checked={selectedVariant?.options[option.name] === value}
                    disabled={!variant || variant.inventory === 0}
                    onChange={() => setSelectedVariant(variant)} />
                  {value}{variant?.inventory === 0 ? ' (sold out)' : ''}
                </label>
              );
            })}
          </fieldset>
        ))}

        <button className="btn-primary"
          disabled={!selectedVariant || selectedVariant.inventory === 0}
          onClick={() => onAddToCart({ variantId: selectedVariant.id, quantity: 1 }).then(onClose)}>
          Add to Cart
        </button>
        <a href={product.url}>View Full Details</a>
      </div>
    </div>
  );
}

Return focus to the trigger button when modal closes:

const triggerRef = useRef(null);

function handleOpenQuickView(productId, triggerElement) {
  triggerRef.current = triggerElement; // store the button that was clicked
  openQuickView(productId);
}

function handleCloseQuickView() {
  closeQuickView();
  requestAnimationFrame(() => triggerRef.current?.focus());
}

Best Practices

  • Always provide a "View full details" link — quick view is a shortcut, not a replacement; complex products (many images, reviews) need the full PDP
  • Lazy-fetch product data on open — do not embed full product data in the card HTML; fetch it on demand to keep page weight low
  • Show a loading skeleton — the fetch takes 100–300 ms; a skeleton prevents perceived layout shift
  • Close on backdrop click — clicking outside the modal content area should close it
  • Prevent body scroll when open — on mobile, overscroll-behavior: contain on the dialog prevents the underlying page from scrolling
  • Use Quick View only for simple products — products with 3+ variant axes, size guides, or detailed spec tables should go to the full PDP

Common Pitfalls

ProblemSolution
Focus lost after modal closesStore the trigger element reference before opening; call .focus() inside requestAnimationFrame after close
Quick view button not visible on touch devicesUse @media (hover: none) to always show the button on touch screens; do not rely on hover alone
Body scrolls behind open modalSet overflow: hidden on body when modal is open; restore on close
Variant selection resets when images changeKeep selectedVariant in state indexed by variant ID, not position in the array
Quick view opens for products that need full PDPDetect products with 3+ options or requiring size guide and navigate to PDP directly instead

Related Skills

  • @product-page-design
  • @accessibility-commerce
  • @responsive-storefront
  • @faceted-navigation

平台分布

Codex

32.4%
按下载量换算48

Claude

28.63%
按下载量换算42

Cursor

20.97%
按下载量换算31

Gemini CLI

9.49%
按下载量换算14

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

继续浏览同类 Skills