Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计异常

digital-products数码产品

Agent Skill

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

总安装

569

周安装

23

GitHub Stars

19

下载量

178
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/finsilabs/awesome-ecommerce-skills --skill digital-products

简介

digital-products 用于数字商品交付与销售系统设计,覆盖电子书、软件许可与课程。

  • 适用于配置下载限制、许可证管理与订阅内容库,适合在 Codex、Claude、Cursor、Gemini CLI 中搭建电商功能。
  • 优先使用平台原生方案,仅在复杂授权逻辑时考虑定制开发,保障安全与防扩散。
  • 安装前需确认仓库权限与维护状态,注意是否会触发联网、命令执行或文件读写操作。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Digital Products

Overview

Selling digital products — ebooks, software licenses, templates, music, courses — requires secure delivery after payment, download limits to prevent unauthorized sharing, and expiring access links. Every major platform either has this built in (WooCommerce) or has a mature app that handles it (Shopify, BigCommerce). Use the platform's native solution first; only build custom delivery infrastructure if your use case (complex license key management, subscription-gated content libraries) exceeds what apps offer.

When to Use This Skill

  • When adding downloadable products (PDFs, software, audio, templates) to an existing store
  • When implementing a license key delivery system for software products
  • When building a subscription that gates access to a digital content library
  • When replacing publicly accessible download URLs with secure, expiring signed URLs

Core Instructions

Step 1: Determine platform and choose the right tool

PlatformRecommended ToolWhy
ShopifySky Pilot or FileflareSky Pilot handles files, license keys, streaming video, and download limits; Fileflare is simpler for basic file downloads
WooCommerceWooCommerce Downloadable Products (built-in)WooCommerce has native digital product support including download limits, expiry, and secure token URLs
BigCommerceDownloadable Digital Products (built-in) or FileflareBigCommerce handles file attachment and download delivery natively
Custom / HeadlessBuild delivery with S3 presigned URLsRequired when the platform has no native digital product support

Step 2: Platform-specific setup


Shopify

Shopify does not have native digital product support — you need an app. Sky Pilot is the most feature-complete option.

Setting up Sky Pilot:

  1. Install Sky Pilot from the Shopify App Store
  2. Go to Sky Pilot → Files → Upload your digital file (PDF, ZIP, etc.)
  3. Go to Sky Pilot → Products and link the uploaded file to a specific product or variant
  4. Configure delivery settings:

- Download limit: set to 3–5 for standard products, unlimited for subscriptions - Link expiry: 48–72 hours is standard; customers can request a new link from their account - Automatic delivery: enabled by default — customers receive a download email immediately after payment

  1. Customize the delivery email under Sky Pilot → Settings → Email template

For license key products:

  1. In Sky Pilot, go to License Keys → Import and upload a CSV of your license keys
  2. Link the license key pool to the product
  3. Sky Pilot automatically assigns one key per purchase and includes it in the delivery email

For subscription-gated content (Sky Pilot + Recharge):

  • Sky Pilot integrates with Recharge — customers with an active subscription automatically gain access; access is revoked when the subscription cancels

WooCommerce

WooCommerce has digital product delivery built in — no extra plugin required for basic use.

Setting up a downloadable product:

  1. Go to WooCommerce → Products → Add Product
  2. Check Downloadable (and optionally Virtual to skip shipping)
  3. Under Product Data → Downloadable Files:

- Click Add File and upload the file or enter a URL - File name: the name shown to customers in their account

  1. Configure access settings:

- Download limit: enter a number (e.g., 5) or leave blank for unlimited - Download expiry: number of days after purchase (e.g., 365), or leave blank for no expiry

  1. WooCommerce generates a secure, token-based download URL for each purchase automatically

Forcing customer account for downloads:

  • Go to WooCommerce → Settings → Accounts & Privacy
  • Enable Grant access to downloadable products after payment and Require login to download

For license key products:

  • Install License Manager for WooCommerce (free plugin)
  • Go to License Manager → Add License Keys and bulk import your keys
  • Link the license key pool to a product
  • The plugin delivers keys in the order confirmation email and the customer's account page

BigCommerce

Setting up digital delivery (built-in):

  1. Go to Products → Add Product
  2. Under Files, upload your digital file (BigCommerce supports files up to 512 MB)
  3. Set Max downloads to limit how many times the file can be downloaded per order
  4. BigCommerce sends an automatic download email after payment with a secure link

For more advanced delivery:

  • Install SendOwl or Fileflare from the BigCommerce App Marketplace
  • These apps add license key management, download analytics, and streaming video delivery

Custom / Headless

For headless storefronts, implement secure file delivery using S3 presigned URLs — never expose the raw S3 key:

import { S3Client, GetObjectCommand } from '@aws-sdk/client-s3';
import { getSignedUrl } from '@aws-sdk/s3-request-presigner';

const s3 = new S3Client({ region: process.env.AWS_REGION });

// Generate a short-lived presigned URL for each download attempt
export async function generateDownloadUrl(orderId: string, digitalProductId: string) {
  const access = await db.orderDigitalAccess.findUnique({
    where: { orderId_digitalProductId: { orderId, digitalProductId } },
    include: { digitalProduct: true },
  });

  if (!access) throw new Error('No access record found');
  if (access.expiresAt && access.expiresAt < new Date()) throw new Error('Download access has expired');
  if (access.maxDownloads && access.downloadCount >= access.maxDownloads) throw new Error('Download limit reached');

  // Atomically increment download count
  await db.orderDigitalAccess.update({ where: { id: access.id }, data: { downloadCount: { increment: 1 } } });

  // 60-second presigned URL — short enough to prevent sharing, long enough for the redirect
  const command = new GetObjectCommand({
    Bucket: process.env.DIGITAL_PRODUCTS_BUCKET,
    Key: access.digitalProduct.fileStorageKey,
    ResponseContentDisposition: `attachment; filename="${access.digitalProduct.fileName}"`,
  });

  return getSignedUrl(s3, command, { expiresIn: 60 });
}

// Provision access after payment — call this from your payment webhook
export async function provisionDigitalAccess(orderId: string) {
  const order = await db.orders.findUnique({
    where: { id: orderId },
    include: { items: { include: { variant: { include: { digitalProduct: true } } } } },
  });

  for (const item of order.items.filter(i => i.variant.digitalProduct)) {
    const dp = item.variant.digitalProduct;
    await db.orderDigitalAccess.upsert({
      where: { orderId_digitalProductId: { orderId, digitalProductId: dp.id } },
      create: {
        orderId, digitalProductId: dp.id, downloadCount: 0,
        maxDownloads: dp.downloadLimit,
        expiresAt: dp.accessDurationDays ? new Date(Date.now() + dp.accessDurationDays * 86400000) : null,
      },
      update: {}, // Idempotent — webhooks can fire multiple times
    });
  }
}

// License key pool management
export async function assignLicenseKey(orderId: string, productId: string) {
  return db.$transaction(async tx => {
    const license = await tx.digitalProductLicenses.findFirst({
      where: { productId, status: 'available' },
    });
    if (!license) throw new Error(`No available license keys for product ${productId}`);
    await tx.digitalProductLicenses.update({
      where: { id: license.id },
      data: { status: 'sold', orderId, soldAt: new Date() },
    });
    return license.licenseKey;
  });
}

Step 3: Configure post-purchase delivery email

All platforms send an automatic delivery email — customize it to be clear and professional:

Content to include:

  • Order confirmation number
  • Product name and description
  • Download link (or license key, displayed prominently)
  • Download limit and expiry date if applicable
  • Instructions for how to access/install the product
  • Support contact if they have trouble

Shopify (Sky Pilot): Customize under Sky Pilot → Settings → Email Template

WooCommerce: Customize under WooCommerce → Settings → Emails → Customer Processing Order (includes download links automatically)

BigCommerce: Customize under Marketing → Transactional Emails → Order Status Notification


Step 4: Monitor license key inventory

For license key products, set up alerts before keys run out:

  • Sky Pilot: Go to License Keys → [Product] — shows remaining key count; Sky Pilot sends email alerts when stock drops below a threshold you configure
  • License Manager for WooCommerce: Dashboard shows keys remaining per product with color-coded warnings
  • Custom: Run a daily check and alert when available keys drop below 10

Best Practices

  • Never deliver digital products until payment is confirmed — trigger delivery from the payment confirmed webhook, not the order created event; card declines happen after order creation
  • Use short-lived download links (60 seconds) for headless implementations — generate the URL fresh on each download page load, not when the page renders
  • Set download limits for most products — 3–5 downloads is standard; unlimited for subscription access; limits prevent casual file sharing
  • Store files in private buckets — never make your S3/GCS bucket public; all access must go through signed URL generation
  • Monitor license key inventory — running out of keys causes support tickets and chargebacks; set up alerts when below 20% of original inventory
  • Send a separate, dedicated delivery email — don't bundle license keys into the generic order confirmation; a focused delivery email is easier for customers to find and reference

Common Pitfalls

ProblemSolution
Download link expires before customer clicks itFor headless builds, generate a fresh presigned URL on each page load, not at email send time
Digital product delivered after a failed paymentTrigger delivery only from the payment success webhook (payment_intent.succeeded in Stripe), never from order creation
License keys double-assignedUse a database transaction for key assignment with an atomic status check — never select and then update in two steps
Customer loses access after account deletionStore download access against order_id + email, not only the user account ID; allow access recovery via order number
Large file download times outUse S3 presigned URLs to deliver files directly from S3 to the customer's browser — never proxy through your server

Related Skills

  • @inventory-tracking
  • @low-stock-alerts
  • @product-data-modeling

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

37.29%
按下载量换算66

Claude

29.45%
按下载量换算52

Cursor

19.76%
按下载量换算35

Gemini CLI

10.28%
按下载量换算18

安全审计

Gen Agent Trust Hub

通过

Socket

未通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills