Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问许可证需确认审计通过

flash-sale-engine闪购引擎

Agent Skill

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

总安装

576

周安装

24

GitHub Stars

19

下载量

192
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/finsilabs/awesome-ecommerce-skills --skill flash-sale-engine

简介

flash-sale-engine 用于查找、检索和筛选相关信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词、任务场景或来源线索快速定位候选结果。
  • 通过 npx skills add 命令从指定仓库安装,需结合原始 README 核验具体用法。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Flash Sale Engine

Overview

Flash sales are time-limited discounts — typically 2–24 hours — that create urgency and drive conversion spikes. They require three things to work reliably: a countdown timer visible to shoppers, per-sale quantity limits that prevent overselling, and automatic price restoration when the sale ends. For high-traffic launches (product drops, Black Friday doorbusters), a virtual waiting room is also essential to prevent bot scalping. Most platforms have apps that handle this without custom code.

When to Use This Skill

  • When launching time-limited sale events (e.g., 24-hour deals, Black Friday doorbusters) that must end at an exact time
  • When a product has limited flash-sale quantity separate from the main inventory
  • When expecting traffic spikes large enough to cause overselling with naive inventory checks
  • When you need a waiting room or queue to fairly admit customers during high-demand drops
  • When building a deals platform where multiple flash sales run simultaneously across different products

Core Instructions

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

PlatformRecommended ToolWhy
ShopifyCountdown Timer Bar, FOMO, or Hextom Flash Sales appThese apps handle countdown timers, scheduled price changes, and inventory display without custom code
Shopify PlusLaunchpad (free for Plus)Shopify's official flash sale app — schedules price changes, enables/disables discount codes, and restores prices automatically
WooCommerceYITH WooCommerce Flash Sales or WooCommerce Sales CountdownManage sale prices with countdown timers directly on product pages
BigCommerceBigCommerce Promotions with custom script for countdown timerBigCommerce's promotions engine handles discounts; use a storefront script for the timer UI
High-traffic drops (any platform)Cloudflare Waiting RoomCloudflare's managed waiting room queues visitors fairly; prevents scalper bots from monopolizing limited stock
Custom / HeadlessBuild with Redis for atomic stock and SSE/WebSocket for timerFull control for custom platforms where apps don't apply

Step 2: Configure the flash sale on your platform


Shopify

Option A: Shopify Launchpad (Plus only, free)

Launchpad is the official Shopify tool for scheduling promotional events:

  1. In your Shopify admin, go to Apps → Launchpad
  2. Click Create event
  3. Set the event name (e.g., "Black Friday Flash Sale 2026"), start time, and end time
  4. Under Price changes: select products and set the sale price for each
  5. Under Publish/unpublish collections: optionally show/hide sale collections during the event
  6. Under Discount codes: enable or disable specific discount codes during the event
  7. Click Schedule — Launchpad activates the changes at the start time and reverses them automatically at the end time

Important: Set sale quantities separately from your main inventory. If you only want to sell 100 units at the flash sale price, reduce the product's available inventory to 100 before the sale, then restock after. Launchpad does not manage sale quantities natively.

Option B: Hextom Flash Sales app (non-Plus)

  1. Install Hextom Flash Sales from the Shopify App Store (~$10/month)
  2. Create a sale with a specific product list, discount percentage, and duration
  3. The app adds a countdown timer widget to product pages and updates prices automatically
  4. Configure the countdown timer appearance in the app settings

Per-product quantity caps: Use Shopify's built-in inventory tracking to set flash sale quantities:

  1. Edit the product variant → set inventory quantity to your flash sale cap
  2. Enable Track quantity and Stop selling when out of stock
  3. After the sale ends, restock the inventory to the real quantity

WooCommerce

Option A: YITH WooCommerce Flash Sales plugin

  1. Install YITH WooCommerce Flash Sales from the plugin directory or YITH.com
  2. Go to YITH → Flash Sales → Add New Flash Sale
  3. Set:

- Products included in the sale - Sale price or discount percentage - Start date/time and end date/time - Maximum quantity available at the flash sale price (separate from main stock)

  1. The plugin automatically shows a countdown timer on product pages and reverts prices at the end time

Option B: WooCommerce native sale pricing with an add-on for countdown

WooCommerce supports Sale price and Schedule natively on every product:

  1. Edit the product → Pricing tab
  2. Enter the Sale price
  3. Click Schedule to set start and end dates
  4. The sale price activates and deactivates automatically

Add a countdown timer with Countdown Timer for WooCommerce (free plugin) or WooCommerce Sales Countdown Timer.

Per-product flash sale quantity: Reduce the product's stock quantity to the flash sale cap before the sale begins, then restore it manually or via a scheduled script afterward.


BigCommerce

  1. Go to Marketing → Promotions → Create Promotion
  2. Set:

- Promotion type: Percentage off, or dollar amount off - Applies to: Specific products or categories - Active date range: Start and end time (BigCommerce restores prices automatically)

  1. For a countdown timer, add a custom script:

- Go to Storefront → Script Manager → Create a Script - Scope: Specific pages → Product pages - Add a JavaScript timer that counts down to the promotion end time

Quantity limits on BigCommerce: Set a Maximum uses limit on the promotion to cap how many orders can use the flash sale discount, or use the product's inventory tracking to limit stock.


Waiting Room for High-Demand Drops (Any Platform)

For product drops expecting high traffic (limited sneakers, concert tickets, exclusive merchandise):

Cloudflare Waiting Room (recommended)

  1. In your Cloudflare dashboard, go to Traffic → Waiting Room
  2. Click Create Waiting Room
  3. Set:

- Hostname and Path: the product page URL pattern (e.g., /products/limited-edition-*) - Total active users: maximum concurrent users allowed on the page - New users per minute: rate at which waiting customers are admitted

  1. Cloudflare serves a customizable waiting room page to queued visitors
  2. Customers are admitted in FIFO order; bots are filtered by Cloudflare's bot management

This requires a Cloudflare Business or Enterprise plan. For lower-cost alternatives, consider Queue-it or Fastly's Waiting Room.


Custom / Headless

For custom storefronts, implement atomic stock reservation using Redis for high-concurrency safety:

import { Redis } from 'ioredis';
const redis = new Redis(process.env.REDIS_URL);

// Atomically reserve one unit from the flash sale allocation
async function reserveFlashSaleUnit(saleId: string, customerId: string): Promise<boolean> {
  const key = `flash_sale:${saleId}:sold`;
  const maxKey = `flash_sale:${saleId}:max`;
  const max = parseInt(await redis.get(maxKey) ?? '0');
  if (max === 0) return false; // sale not configured

  // Atomic increment — safe under high concurrency
  const newCount = await redis.incr(key);
  if (newCount > max) {
    await redis.decr(key); // Undo the over-increment
    return false; // Sold out
  }
  return true;
}

// Send countdown timer data to the client via Server-Sent Events
app.get('/api/sales/:saleId/timer', async (req, res) => {
  const { endsAt, maxQuantity } = await db.flashSales.findById(req.params.saleId);
  res.setHeader('Content-Type', 'text/event-stream');
  res.setHeader('Cache-Control', 'no-cache');

  const interval = setInterval(async () => {
    const remaining = Math.max(0, new Date(endsAt).getTime() - Date.now());
    const sold = parseInt(await redis.get(`flash_sale:${req.params.saleId}:sold`) ?? '0');
    res.write(`data: ${JSON.stringify({ remaining, stockLeft: maxQuantity - sold })}\n\n`);
    if (remaining === 0) { clearInterval(interval); res.end(); }
  }, 1000);

  req.on('close', () => clearInterval(interval));
});

Best Practices

  • Use server-authoritative end times — never let the client calculate when the sale ends; always read the UTC end timestamp from the server to prevent timer drift across browsers
  • Set sale quantity separately from main inventory — flash sale stock is a separate allocation; do not reduce your total inventory by the flash sale quantity until an order is confirmed
  • Pre-scale infrastructure before high-traffic drops — load test your checkout with expected peak traffic 48 hours before a major sale; scale your hosting accordingly
  • Display "while supplies last" when stock is low — showing live stock counts (e.g., "8 left") creates urgency, but avoid showing exact counts for large quantities as it appears artificial
  • Test the full sale cycle in staging — run a complete sale from scheduled start through automatic price restoration before going live
  • Never manually edit prices during an active Launchpad/app-managed sale — manual edits can prevent the automatic restoration from working correctly

Common Pitfalls

ProblemSolution
Price not restored after sale endsUse Launchpad or a countdown app with auto-restore; if using manual scheduling, set a calendar reminder and verify restoration; build a fallback check that validates prices against a "source of truth" table
Overselling during traffic spikeUse Redis atomic increment for custom builds; for platforms, set product inventory to the flash sale cap before the sale starts
Countdown timer shows different time in different timezonesAlways base the countdown on the sale's absolute UTC end time; calculate remaining = endsAt - Date.now() client-side
Bots exhaust all stock before real customers can buyUse Cloudflare Waiting Room or a similar queuing system; enforce per-customer purchase limits in your order system
App-managed countdown timer conflicts with manual price changesDo not modify prices through the Shopify admin while a Launchpad event or countdown app is active

Related Skills

  • @coupon-management
  • @dynamic-pricing
  • @price-rules-engine
  • @bot-protection
  • @order-management-system

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

35.74%
按下载量换算69

Claude

31.31%
按下载量换算60

Cursor

18.96%
按下载量换算36

Gemini CLI

9.23%
按下载量换算18

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

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

来源信息

继续浏览同类 Skills