Token导航 LogoToken导航

Agent Skill · 待分类

subscription-billing(订阅计费)

subscription-billing 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

subscription-billing 是待分类类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描有提醒项,按安装量在待分类类的 11,209 个 Skill 里排第 6,230。

总安装 470周安装 20GitHub Stars 19下载 165核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/finsilabs/awesome-ecommerce-skills --skill subscription-billing

这个 Skill 是做什么的

这个 Skill 的分类还没最终确定,用法以来源仓库的说明为准。

用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。

安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。当前顶部介绍:subscription-billing 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。当前底部简介为空,暂无补充说明。

来源仓库内路径:skills/subscription-billing

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

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

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

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

常见问题

6 条

subscription-billing 怎么安装?

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

subscription-billing 支持哪些 AI 工具?

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

subscription-billing 需要什么权限?

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

subscription-billing 是免费的吗?

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

subscription-billing 用的人多吗?

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

subscription-billing 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

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

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

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

不太适合

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

待分类类 Skill 对比

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

infsh CLI · Codex、Claude

4,374,576382权限未标注未明确未收录
ai-video-generation

AI 视频生成 · Codex、Claude

4,313,376382调用外部服务未明确有提醒
lark-openapi-explorer

云雀 OpenAPI 浏览器 · Codex、Claude

2,064,1209,011需要联网未明确有提醒
lark-workflow-standup-report

Lark 工作流程站立报告 · Codex、Claude

2,041,6328,978需要联网未明确通过
use-my-browser

使用我的浏览器 · Codex、Claude

1,848,49140操作浏览器未明确未通过
subscription-billing

订阅计费 · 本页

47019需要联网未明确有提醒

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

SKILL.md 原文

Subscription Billing

Overview

Subscription billing lets customers pay automatically on a recurring schedule — weekly, monthly, or annually. Shopify, WooCommerce, and BigCommerce each have dedicated subscription apps and plugins that handle the full lifecycle: initial checkout, recurring billing, failed payment recovery (dunning), plan changes, pausing, and cancellation. For headless storefronts, Stripe Subscriptions provides the same functionality via API with no need to build billing logic from scratch.

When to Use This Skill

  • When building a subscription box, membership, or "Subscribe & Save" program
  • When the current subscription logic is manual and not scaling with customer count
  • When dunning (failed payment recovery) is not automated and causing unnecessary churn
  • When customers need self-serve plan upgrades, downgrades, pausing, and cancellation

Core Instructions

Step 1: Determine your platform and choose the right subscription tool

PlatformRecommended ToolNotes
ShopifyRecharge or Seal Subscriptions or Bold Subscriptions (Shopify App Store)Shopify has a native Subscriptions API; Recharge is the most widely used third-party app; Seal is a newer lower-cost option
Shopify (simple)Shopify Subscriptions (built-in, free)For basic subscription needs — launched 2024; handles simple recurring orders
WooCommerceWooCommerce Subscriptions ($199/year, official WooCommerce extension)The official and most complete WooCommerce subscription solution; handles all billing, dunning, and management
BigCommerceRecurly (via BigCommerce App Marketplace) or RebillyBigCommerce does not have native subscriptions; third-party apps handle it
Custom / HeadlessStripe SubscriptionsStripe Subscriptions handles the complete recurring billing lifecycle with webhooks

Step 2: Set up subscriptions on your platform


Shopify (Shopify Subscriptions — built-in, free)

For basic subscription products:

  1. Go to Settings → Apps and sales channels → Shopify Subscriptions (may need to install from App Store)
  2. Go to Products and open any product you want to make subscribable
  3. Under Purchase options, click Add subscription plan
  4. Configure:

- Billing frequency: weekly, monthly, every X months - Discount for subscribers (e.g., 10% off vs. one-time purchase) - Free trial period (optional)

  1. The product page will show both "One-time purchase" and "Subscribe & Save" options

Shopify Subscriptions handles: recurring billing, payment failure emails, and a customer portal for managing subscriptions. For advanced dunning, analytics, and subscriber portals, use Recharge or Seal Subscriptions.

Shopify (Recharge — recommended for scale)
  1. Install Recharge from the Shopify App Store
  2. Connect your Shopify store and Stripe account in Recharge → Settings → Payment Processors
  3. Configure subscription products in Recharge → Products → Add product:

- Select which Shopify products can be purchased as subscriptions - Set billing intervals (weekly, monthly, every 2 months, etc.) - Configure subscriber discounts

  1. Set up the customer portal: go to Recharge → Customer Portal to configure what subscribers can manage themselves (pause, skip, change date, cancel, swap product)
  2. Configure dunning: go to Recharge → Settings → Dunning and set up the retry schedule and email sequence for failed payments

Recharge dunning defaults:

  • Day 0: First payment failure → email customer
  • Day 3: Retry payment → email customer
  • Day 7: Retry payment → final warning email
  • Day 14: Retry payment → subscription cancelled if still failed
WooCommerce (WooCommerce Subscriptions)
  1. Purchase and install WooCommerce Subscriptions from woocommerce.com/products/woocommerce-subscriptions
  2. Create a subscription product: go to Products → Add New and set product type to Simple subscription or Variable subscription
  3. Configure under Subscription data:

- Billing period: daily, weekly, monthly, annually - Billing interval: every 1, 2, 3... periods - Subscription length: ongoing or limited (e.g., 12 months) - Sign-up fee (optional) - Free trial period (optional) - Subscriber discount (set via regular/sale price comparison)

  1. Configure payment methods: go to WooCommerce → Settings → Payments and ensure your gateway supports recurring payments (Stripe via WooCommerce Stripe plugin, PayPal via WooCommerce PayPal Payments)
  2. Configure dunning: go to WooCommerce → Settings → Subscriptions → Failing payments and set retry rules and email templates

Customer portal for WooCommerce: Customers manage subscriptions from their My Account → Subscriptions page. WooCommerce Subscriptions provides pause, cancel, and payment method update functionality there by default.

BigCommerce (Recurly)
  1. Sign up at recurly.com and create a plan (monthly, annual, etc.) with your pricing
  2. Install the Recurly app from the BigCommerce App Marketplace and connect your store
  3. Create subscription products that link to your Recurly plans
  4. Recurly handles: checkout, recurring billing, dunning, invoicing, and the subscriber portal
  5. Configure dunning in Recurly → Configuration → Dunning Campaigns: set retry schedule and email content

Custom / Headless

Use Stripe Subscriptions for the full recurring billing lifecycle:

Create a subscription plan: In the Stripe Dashboard → Products, create a product with a recurring price (e.g., "Monthly Plan — $29/month"). Copy the Price ID (starts with price_).

Subscribe a customer:

// Create or retrieve the Stripe customer
const customer = await stripe.customers.create({
  email: customerEmail,
  payment_method: paymentMethodId,
  invoice_settings: { default_payment_method: paymentMethodId },
});

// Create the subscription
const subscription = await stripe.subscriptions.create({
  customer: customer.id,
  items: [{ price: 'price_monthly_pro_29' }], // Price ID from Stripe Dashboard
  payment_behavior: 'default_incomplete', // Create subscription, then confirm payment
  payment_settings: { save_default_payment_method: 'on_subscription' },
  expand: ['latest_invoice.payment_intent'],
  trial_period_days: 14, // Optional trial
  metadata: { customer_id: customerId },
});

// Return client_secret for 3DS confirmation if needed
const clientSecret = subscription.latest_invoice?.payment_intent?.client_secret;
res.json({ subscriptionId: subscription.id, clientSecret });

Sync subscription status via webhooks:

// Webhook handler for subscription events
async function handleSubscriptionWebhook(event) {
  switch (event.type) {
    case 'customer.subscription.updated':
      await syncSubscriptionStatus(event.data.object);
      break;

    case 'customer.subscription.deleted':
      // Subscription cancelled — revoke access
      await db.subscriptions.update({
        where: { stripeSubscriptionId: event.data.object.id },
        data: { status: 'cancelled', cancelledAt: new Date() },
      });
      break;

    case 'invoice.payment_succeeded':
      await recordSuccessfulBillingCycle(event.data.object);
      break;

    case 'invoice.payment_failed':
      // Send dunning email — Stripe retries automatically per your settings
      await sendDunningEmail(event.data.object);
      break;

    case 'customer.subscription.trial_will_end':
      // Send trial ending email 3 days before trial ends
      await sendTrialEndingEmail(event.data.object);
      break;
  }
}

Configure dunning in Stripe Dashboard: Go to Stripe Dashboard → Billing → Settings → Smart Retries. Enable Smart Retries — Stripe's ML-based retry timing outperforms fixed schedules. Also configure automatic subscription cancellation after all retries fail under Stripe Dashboard → Billing → Settings → Automatic collection.

Plan changes with prorations:

// Upgrade or downgrade a subscription
const subscription = await stripe.subscriptions.retrieve(stripeSubscriptionId);

await stripe.subscriptions.update(stripeSubscriptionId, {
  items: [{ id: subscription.items.data[0].id, price: newPriceId }],
  proration_behavior: 'create_prorations', // Charge/credit the difference immediately
});
// Stripe creates a prorated invoice automatically

Cancellation with end-of-period access:

// Cancel at period end — customer retains access until the next billing date
await stripe.subscriptions.update(stripeSubscriptionId, {
  cancel_at_period_end: true,
});

// Immediate cancellation
await stripe.subscriptions.cancel(stripeSubscriptionId);

Best Practices

  • Use platform-native subscription tools — WooCommerce Subscriptions, Recharge on Shopify, and Stripe Subscriptions are all production-hardened and handle edge cases (failed payments, prorations, tax changes) correctly
  • Never store subscription state only in Stripe — always sync subscription status to your database via webhooks; do not call Stripe on every page load to check status
  • Configure Smart Retries in Stripe — enable under Stripe Dashboard → Billing → Settings; ML-based retry timing recovers significantly more failed payments than fixed schedules
  • Send dunning emails at each retry — escalate urgency: "payment failed" → "account at risk" → "access will be suspended"; include a direct link to update payment method
  • Let customers self-serve — build a customer portal (or use Stripe's hosted Customer Portal at Stripe Dashboard → Billing → Customer portal) for plan changes, pausing, and cancellation; reduces support load
  • Prorate upgrades immediately; apply downgrades at period end — upgrades should charge the difference now; downgrades should apply at the next renewal to avoid complex partial refunds

Common Pitfalls

ProblemSolution
Subscription shows as active after cancellationSync status via webhooks — customer.subscription.deleted must trigger a database update; never poll Stripe for status on page load
WooCommerce Subscriptions not retrying failed paymentsVerify the payment gateway supports tokenized recurring payments; Stripe via the WooCommerce Stripe plugin supports this; basic PayPal Standard does not
Trial converts to paid without customer knowingSend the trial_will_end email 3 days before (Stripe fires the webhook automatically; Recharge and WooCommerce Subscriptions do this by default)
Duplicate dunning emails on retried webhooksCheck that the invoice attempt count matches the last dunning email you sent before sending another; use the invoice ID + attempt count as the idempotency key
Proration charges customer unexpectedly on upgradeShow the upcoming invoice preview before applying plan changes (Stripe: use stripe.invoices.retrieveUpcoming()); show the proration amount to the customer first

Related Skills

  • @stripe-integration
  • @order-processing-pipeline
  • @tax-calculation
  • @invoice-generation-automation

平台分布

Codex

33.33%
按下载量换算55

Claude

32.63%
按下载量换算54

Cursor

18.72%
按下载量换算31

Gemini CLI

8.84%
按下载量换算15

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

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

安装前确认

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

继续浏览同类 Skills