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

order-processing-pipeline订单处理管道

Agent Skill

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

总安装

674

周安装

27

GitHub Stars

19

下载量

218
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/finsilabs/awesome-ecommerce-skills --skill order-processing-pipeline

简介

order-processing-pipeline 用于查找、检索和筛选相关信息。

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

SKILL.md

Order Processing Pipeline

Overview

Every ecommerce order follows a lifecycle: placed → payment confirmed → fulfillment started → shipped → delivered. Shopify, WooCommerce, and BigCommerce each implement this as a built-in order status system with webhook events at each transition. The goal is to configure these transitions correctly, wire your 3PL or fulfillment system to the right webhooks, and automate side effects (confirmation emails, inventory deduction, tracking notifications) at each stage.

Custom state machine code is only needed for headless storefronts or complex multi-step B2B workflows that platforms cannot handle natively.

When to Use This Skill

  • When order statuses become inconsistent (e.g., fulfilled orders showing as pending)
  • When implementing automated order routing to a 3PL or fulfillment provider
  • When adding order status webhooks for ERP, shipping, or returns integrations
  • When building a custom headless order management system

Core Instructions

Step 1: Understand your platform's order statuses and transitions

PlatformOrder StatusesTransition Mechanism
ShopifyOpen → Partially Fulfilled → Fulfilled → Cancelled; Financial: Pending → Authorized → Paid → RefundedShopify Admin + webhooks; automated by Shopify Payments and fulfillment apps
WooCommercePending → Processing → On Hold → Completed → Cancelled → Refunded → FailedWooCommerce status system; transitions via admin, plugins, or wc_update_order_status()
BigCommercePending → Awaiting Payment → Awaiting Fulfillment → Awaiting Shipment → Shipped → Completed + othersBigCommerce Admin + Orders API webhooks
Custom / HeadlessDefine your own state machineBuild with explicit transition validation

Step 2: Configure order processing automation


Shopify

Configure payment → order confirmation flow:

  1. Shopify automatically moves orders from Open to Paid when Shopify Payments confirms the charge
  2. Go to Settings → Notifications to verify the Order confirmation email is enabled — this fires automatically on payment
  3. For non-Shopify payment methods, verify the gateway sends a payment success signal to Shopify; if orders stay Pending payment after payment, check your gateway settings

Set up automatic fulfillment for digital products:

  1. Go to Settings → Shipping and delivery → Fulfillment
  2. For digital products, enable Automatically fulfill the digital items in the order

Connect a 3PL or fulfillment center:

  1. Install your fulfillment provider's Shopify app (ShipBob, ShipHero, Whiplash, Amazon FBA, etc.) from the Shopify App Store
  2. Go to Settings → Shipping and delivery → Fulfillment services and add the service
  3. The app subscribes to Shopify's Order created or Order paid webhooks and automatically receives new orders
  4. When the 3PL ships an order, it pushes the tracking number back to Shopify via the Fulfillment API, which updates the order to Fulfilled and sends the shipping confirmation email automatically

Manual fulfillment workflow:

  1. Go to Orders → Unfulfilled tab to see all orders awaiting fulfillment
  2. Click an order and select Mark as fulfilled after shipping; enter the tracking number
  3. The customer receives an automated tracking email when the order is marked fulfilled

Set up order webhooks for external systems (ERP, etc.):

  1. Go to Settings → Notifications → Webhooks (or use the Partner Dashboard for app-level webhooks)
  2. Add webhooks for: Order creation, Order payment, Order fulfillment, Order cancellation
  3. Each webhook sends the full order JSON to your endpoint for processing

WooCommerce

Understand the default order flow:

  • Pending payment → customer placed order, not yet paid
  • Processing → payment received; order is being prepared (default for paid orders)
  • Completed → order delivered; manually set or automated by shipping plugin
  • On hold → payment uncertain (e.g., bank transfer awaiting confirmation)

Configure automatic status transitions:

  1. Go to WooCommerce → Settings → Payments → [Gateway] → Order status for each payment method and set the status on payment (typically "Processing" for instant payment methods)
  2. For virtual/downloadable orders, go to WooCommerce → Settings → Products → Downloadable products and set "Grant access to downloadable products after payment" to change orders to "Completed" automatically

Connect a shipping/fulfillment plugin:

  1. Install your shipping plugin: WooCommerce ShipStation, WooCommerce ShipBob, or ELEX WooCommerce DHL/FedEx/UPS
  2. Configure the plugin to pull orders with "Processing" status for fulfillment
  3. When the plugin ships an order and gets a tracking number, it updates the order status to "Completed" and sends a tracking email automatically

Custom status transitions via hooks:

// In functions.php or a custom plugin — auto-complete virtual orders
add_action('woocommerce_payment_complete', 'auto_complete_virtual_orders');
function auto_complete_virtual_orders($order_id) {
    $order = wc_get_order($order_id);
    if ($order && $order->get_status() === 'processing') {
        $all_virtual = true;
        foreach ($order->get_items() as $item) {
            $product = $item->get_product();
            if (!$product->is_virtual()) { $all_virtual = false; break; }
        }
        if ($all_virtual) {
            $order->update_status('completed', 'All virtual items — auto-completed.');
        }
    }
}

Order webhooks: Install WooCommerce Webhooks (built-in) — go to WooCommerce → Settings → Advanced → Webhooks and add webhooks for order created, updated, and deleted events.

BigCommerce

Configure order status flow:

  1. Go to Orders → View — BigCommerce automatically sets orders to Awaiting Fulfillment after payment is confirmed
  2. Configure your payment gateway's order status mapping: go to Settings → Payment Methods → [Gateway] and set the post-payment status

Connect a fulfillment provider:

  1. Go to the BigCommerce App Marketplace and install your fulfillment center's app (ShipBob, ShipStation, etc.)
  2. The app connects to BigCommerce's Order webhooks and pulls new orders automatically
  3. When the 3PL ships, it updates BigCommerce via the Orders API to set tracking number and change status to Shipped

Order webhooks: Go to Settings → Advanced Settings → WebHooks and add webhooks for order status changes. These are used by integrations like ERPs and accounting systems.


Custom / Headless

For custom storefronts, implement a state machine with explicit transition validation:

// Valid order state transitions
const VALID_TRANSITIONS = {
  pending:    ['confirmed', 'cancelled'],
  confirmed:  ['processing', 'cancelled'],
  processing: ['shipped', 'cancelled'],
  shipped:    ['delivered', 'returned'],
  delivered:  ['returned', 'refunded'],
  cancelled:  ['refunded'],
};

async function transitionOrder(orderId, newStatus, metadata = {}) {
  return db.$transaction(async (tx) => {
    const order = await tx.orders.findUnique({ where: { id: orderId } });

    if (!VALID_TRANSITIONS[order.status]?.includes(newStatus)) {
      throw new Error(`Invalid transition: ${order.status} → ${newStatus}`);
    }

    const updated = await tx.orders.update({
      where: { id: orderId },
      data: { status: newStatus, [`${newStatus}At`]: new Date() },
    });

    // Append-only event log for audit trail
    await tx.orderEvents.create({
      data: { orderId, fromStatus: order.status, toStatus: newStatus, triggeredBy: metadata.triggeredBy ?? 'system' },
    });

    return updated;
  });
}

// Wire to Stripe webhook — payment confirmation drives the transition
async function onPaymentSucceeded(paymentIntent) {
  const orderId = paymentIntent.metadata.order_id;
  const order = await db.orders.findUnique({ where: { id: orderId } });

  // Idempotency — ignore if already confirmed
  if (order.status !== 'pending') return;

  await transitionOrder(orderId, 'confirmed', { triggeredBy: 'stripe_webhook' });
  await sendOrderConfirmationEmail(orderId);
  await deductInventory(orderId);
}

Side effects at each transition (run outside the DB transaction to avoid blocking):

  • confirmed: send confirmation email, deduct inventory, notify fulfillment provider
  • shipped: send shipping email with tracking number, update tracking in customer portal
  • delivered: send delivery confirmation, schedule review request (3 days later)
  • cancelled: release inventory reservation, initiate refund if paid, send cancellation email

Step 3: Handle the most common edge cases

Duplicate webhook delivery: All major payment processors can deliver the same webhook multiple times. Always check the current order status before processing a transition:

if (order.status !== 'pending') return; // Already processed

Inventory deduction timing: Only deduct inventory after payment is confirmed (the confirmed transition), not when the order is placed. If a payment fails, you do not want inventory reserved indefinitely.

Order cancellation with partial fulfillment: If some items are shipped and others are not, platforms handle this differently. On Shopify, you can partially cancel unfulfilled line items while keeping the fulfilled items. On WooCommerce, install the WooCommerce Cancel Abandoned Order or manage this via the WooCommerce REST API.

Best Practices

  • Use platform-native order management — Shopify, WooCommerce, and BigCommerce handle the core payment → fulfillment → delivery flow correctly; build on top of them rather than replacing them
  • Wire fulfillment apps to the right status trigger — fulfillment providers should receive orders on payment confirmation (order.paid on Shopify, Processing on WooCommerce), not on order creation
  • Log every status transition — even on platforms, add an order note (Shopify/WooCommerce both support this) or record a database event for audit purposes
  • Handle idempotency on webhooks — always check the current order status before applying a transition triggered by a webhook
  • Emit webhooks for external integrations — configure webhooks for all order status changes so your ERP, accounting, and CRM integrations stay in sync

Common Pitfalls

ProblemSolution
Order confirmed twice on Shopify due to duplicate webhookShopify deduplicates with an idempotency header; on your end, check order.financial_status!== 'paid' before processing
WooCommerce order stuck in "Pending payment" after PayPal paymentPayPal IPN (Instant Payment Notification) must be enabled in your PayPal account; verify the IPN URL in WooCommerce → Settings → Payments → PayPal
Inventory not deducted until order is manually completedMove inventory deduction to the payment confirmed webhook, not the fulfillment webhook
3PL not receiving new orders automaticallyVerify the fulfillment app is subscribed to the correct order status — most 3PL apps pull "Processing" (WooCommerce) or "Unfulfilled + Paid" (Shopify)
Order status webhooks not firingCheck webhook registration in Shopify → Settings → Notifications → Webhooks or WooCommerce → Settings → Advanced → Webhooks and verify the endpoint is returning 200

Related Skills

  • @stripe-integration
  • @inventory-tracking
  • @subscription-billing
  • @guest-checkout

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

33.75%
按下载量换算74

Claude

33.58%
按下载量换算73

Cursor

20.02%
按下载量换算44

Gemini CLI

9.68%
按下载量换算21

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills