Token导航 LogoToken导航

Agent Skill · 研究检索

flash-sale-engine(闪购引擎)

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

flash-sale-engine 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为操作浏览器;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 51,696。

总安装 576周安装 24GitHub Stars 19下载 192核验 2026-05-01

安装说明

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

安装方式

通过对话安装

复制提示词发给支持本地命令或 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

这个 Skill 是做什么的

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

flash-sale-engine 用于查找、检索和筛选相关信息。适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词、任务场景或来源线索快速定位候选结果。通过 npx skills add 命令从指定仓库安装,需结合原始 README 核验具体用法。

安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/flash-sale-engine

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

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

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

    它需要操作浏览器,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

flash-sale-engine 怎么安装?

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

flash-sale-engine 支持哪些 AI 工具?

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

flash-sale-engine 需要什么权限?

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

flash-sale-engine 是免费的吗?

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

flash-sale-engine 用的人多吗?

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

flash-sale-engine 安全吗?

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

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

值得选的地方

  • 同时适配 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调用外部服务未明确有提醒
flash-sale-engine

闪购引擎 · 本页

57619操作浏览器未明确通过

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

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

平台分布

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