Token导航 LogoToken导航

Agent Skill · 研究检索

shopify-webhooks(Shopify webhooks 搜索)

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

shopify-webhooks 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 55,679。

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

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/finsilabs/awesome-ecommerce-skills --skill shopify-webhooks

这个 Skill 是做什么的

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

用于查找和筛选 Shopify Webhook 事件类型与 payload 结构的相关信息。适用于后端服务监听订单、库存或客户变更事件的标准实现参考。通过 npx 命令从社区仓库安装,支持主流 AI 代码宿主平台调用。使用前应确认 webhook URL 的安全性,避免暴露敏感端点。

shopify-webhooks 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/shopify-webhooks

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

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

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

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

常见问题

6 条

shopify-webhooks 怎么安装?

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

shopify-webhooks 支持哪些 AI 工具?

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

shopify-webhooks 需要什么权限?

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

shopify-webhooks 是免费的吗?

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

shopify-webhooks 用的人多吗?

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

shopify-webhooks 安全吗?

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

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

值得选的地方

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

Shopify webhooks 搜索 · 本页

47019需要联网未明确通过

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

SKILL.md 原文

Shopify Webhooks

Overview

Shopify webhooks deliver real-time event notifications to your app's HTTP endpoints when store events occur — orders placed, products updated, customers created, apps uninstalled. Every webhook payload includes an HMAC-SHA256 signature in the X-Shopify-Hmac-SHA256 header that must be verified before processing. Shopify guarantees at-least-once delivery, so handlers must be idempotent.

When to Use This Skill

  • When triggering fulfillment workflows the moment an order is paid
  • When syncing product or inventory changes to an external system in near real time
  • When sending customer data to a marketing automation platform upon registration
  • When cleaning up app data after a merchant uninstalls the app (app/uninstalled)
  • When implementing required GDPR webhooks for App Store compliance
  • When replacing polling loops that constantly query the Admin API for changes

Core Instructions

  1. Register webhooks via the Admin API Prefer registering webhooks programmatically in the afterAuth hook of your Shopify app. This ensures re-registration after reinstall: ` // Webhook registration helper export async function registerWebhooks(adminClient: GraphqlClient, appUrl: string) {const webhooksToRegister = [{topic: "ORDERS_CREATE", callbackUrl: ${appUrl}/webhooks/orders-create}, {topic: "ORDERS_UPDATED", callbackUrl: ${appUrl}/webhooks/orders-updated}, {topic: "PRODUCTS_UPDATE", callbackUrl: ${appUrl}/webhooks/products-update}, {topic: "APP_UNINSTALLED", callbackUrl: ${appUrl}/webhooks/app-uninstalled}, // Mandatory GDPR webhooks {topic: "CUSTOMERS_DATA_REQUEST", callbackUrl: ${appUrl}/webhooks/gdpr/customers-data-request}, {topic: "CUSTOMERS_REDACT", callbackUrl: ${appUrl}/webhooks/gdpr/customers-redact}, {topic: "SHOP_REDACT", callbackUrl: ${appUrl}/webhooks/gdpr/shop-redact},]; for (const {topic, callbackUrl} of webhooksToRegister) {const response = await adminClient.request( mutation WebhookSubscriptionCreate($topic: WebhookSubscriptionTopic!, $webhookSubscription: WebhookSubscriptionInput!) {webhookSubscriptionCreate(topic: $topic, webhookSubscription: $webhookSubscription) {webhookSubscription {id topic} userErrors {field message}}} , {variables: {topic, webhookSubscription: {callbackUrl, format: "JSON",},},}); const {userErrors} = response.data.webhookSubscriptionCreate; if (userErrors.length > 0) {// ALREADY_EXISTS is expected on reinstall — not a real error const realErrors = userErrors.filter((e: any) => e.message!== "Address for this topic has already been taken"); if (realErrors.length > 0) throw new Error(Webhook registration failed: ${realErrors[0].message});}}} `
  2. Verify the HMAC signature The most critical step — never process a webhook without verifying its signature: // middleware/verify-shopify-webhook.ts import crypto from "crypto"; export function verifyShopifyWebhook(rawBody: Buffer, hmacHeader: string, secret: string): boolean {const digest = crypto.createHmac("sha256", secret).update(rawBody).digest("base64"); // Use timingSafeEqual to prevent timing attacks try {return crypto.timingSafeEqual(Buffer.from(digest), Buffer.from(hmacHeader));} catch {return false;}} Express middleware example: // routes/webhooks.ts (Express) import express from "express"; import {verifyShopifyWebhook} from "../middleware/verify-shopify-webhook"; const router = express.Router(); // CRITICAL: Use raw body parser BEFORE json parser for webhook routes router.use("/webhooks", express.raw({type: "application/json"}), (req, res, next) => {const hmac = req.headers["x-shopify-hmac-sha256"] as string; if (!verifyShopifyWebhook(req.body, hmac, process.env.SHOPIFY_API_SECRET!)) {return res.status(401).send("Unauthorized");} req.body = JSON.parse(req.body.toString()); next();});
  3. Handle webhook events with idempotency Shopify may deliver the same event multiple times. Use the X-Shopify-Webhook-Id header as an idempotency key: router.post("/webhooks/orders-create", async (req, res) => {// Respond 200 quickly — Shopify retries if response takes > 5 seconds res.status(200).json({received: true}); const webhookId = req.headers["x-shopify-webhook-id"] as string; const shop = req.headers["x-shopify-shop-domain"] as string; const order = req.body; // Idempotency check — skip if already processed const alreadyProcessed = await db.processedWebhooks.findFirst({where: {webhookId, shop},}); if (alreadyProcessed) return; // Record processing attempt await db.processedWebhooks.create({data: {webhookId, shop, topic: "orders/create", processedAt: new Date()},}); // Process the order asynchronously await processNewOrder(order, shop);});
  4. Handle the mandatory GDPR webhooks Shopify requires these three endpoints for all App Store apps. They must respond 200 even if your app doesn't store personal data: router.post("/webhooks/gdpr/customers-data-request", async (req, res) => {const {shop_id, shop_domain, customer, orders_requested} = req.body; // Return customer data your app has stored for this customer await sendCustomerDataReport(shop_domain, customer.id); res.status(200).json({received: true});}); router.post("/webhooks/gdpr/customers-redact", async (req, res) => {const {shop_domain, customer} = req.body; // Delete all personal data for this customer await deleteCustomerData(shop_domain, customer.id); res.status(200).json({received: true});}); router.post("/webhooks/gdpr/shop-redact", async (req, res) => {const {shop_domain} = req.body; // Delete all store data 48 hours after APP_UNINSTALLED await deleteShopData(shop_domain); res.status(200).json({received: true});});
  5. Monitor delivery failures and set up retry awareness Shopify retries failed webhooks (non-2xx response or timeout) up to 19 times over 48 hours using exponential backoff. Check delivery health via Admin API: ` export async function getWebhookFailures(adminClient: GraphqlClient) {const response = await adminClient.request( query {webhookSubscriptions(first: 20) {edges {node {id topic callbackUrl endpoint {... on WebhookHttpEndpoint {callbackUrl}}}}}} ); return response.data.webhookSubscriptions.edges;} `

Examples

Full order creation handler with error handling and queue

import { Queue, Worker } from "bullmq";

const connection = { host: "localhost", port: 6379 };

const orderQueue = new Queue("order-processing", {
  connection,
  defaultJobOptions: {
    attempts: 3,
    backoff: { type: "exponential", delay: 5000 },
  },
});

router.post("/webhooks/orders-create", async (req, res) => {
  // Must respond within 5 seconds
  res.status(200).json({ received: true });

  const webhookId = req.headers["x-shopify-webhook-id"] as string;
  const shop = req.headers["x-shopify-shop-domain"] as string;

  // Push to queue for reliable async processing
  await orderQueue.add(
    "process-order",
    { order: req.body, shop, webhookId },
    {
      jobId: webhookId, // Prevents duplicate jobs for same webhook
    }
  );
});

const worker = new Worker("order-processing", async (job) => {
  const { order, shop, webhookId } = job.data;
  await syncOrderToERP(order, shop);
  await updateInventoryInWarehouse(order.line_items);
  await sendConfirmationNotification(order);
}, { connection });

List and delete stale webhook subscriptions

export async function cleanupWebhooks(adminClient: GraphqlClient, appUrl: string) {
  const response = await adminClient.request(`
    query {
      webhookSubscriptions(first: 100) {
        edges { node { id callbackUrl topic } }
      }
    }
  `);

  const stale = response.data.webhookSubscriptions.edges.filter(
    ({ node }: any) => !node.callbackUrl.startsWith(appUrl)
  );

  for (const { node } of stale) {
    await adminClient.request(`
      mutation DeleteWebhook($id: ID!) {
        webhookSubscriptionDelete(id: $id) {
          deletedWebhookSubscriptionId
          userErrors { field message }
        }
      }
    `, { variables: { id: node.id } });
  }
}

Best Practices

  • Respond 200 within 5 seconds — offload heavy processing to a background queue (Bull, BullMQ, SQS); Shopify marks slow responses as failures and starts retry cycle
  • Never trust without verifying HMAC — reject any request that fails signature validation with 401
  • Use raw body for HMAC computation — any body parsing before HMAC check corrupts the byte representation and causes false signature failures
  • Store X-Shopify-Webhook-Id for idempotency — keep a table of processed webhook IDs to prevent double-processing on retries
  • Re-register webhooks on every OAuth completion — merchants who reinstall the app get a new session; without re-registration, webhooks point to deleted subscriptions
  • Use EventBridge or Pub/Sub delivery for high volume — Shopify supports delivering webhooks to AWS EventBridge and Google Pub/Sub; these provide built-in retry and ordering guarantees

Common Pitfalls

ProblemSolution
HMAC verification always failsEnsure raw body (Buffer) is used — Express's JSON body parser converts Buffer to object; configure raw parser before the JSON parser on webhook routes
Webhook events processed twiceImplement idempotency using X-Shopify-Webhook-Id as a unique key; Bull jobId option prevents duplicate queue entries
APP_UNINSTALLED not receivedEnsure this topic is registered — without it, app cleanup (session deletion, data purge) won't fire and merchant data leaks
Shopify stops retrying after 48 hoursAdd monitoring to detect gaps in event processing; implement a reconciliation job that queries Admin API for events missed during downtime
GDPR webhooks fail Shopify reviewAll three GDPR endpoints must return 200 within the timeout — even if your app stores no data, acknowledge receipt and log the request
Webhook registrations duplicatedUse webhookSubscriptionUpdate instead of webhookSubscriptionCreate for existing topics, or check for ALREADY_EXISTS user errors and skip

Related Skills

  • @shopify-app-development
  • @shopify-admin-api
  • @webhook-architecture
  • @event-driven-architecture
  • @gdpr-compliance

平台分布

Codex

36.69%
按下载量换算54

Claude

27.55%
按下载量换算40

Cursor

18.76%
按下载量换算28

Gemini CLI

8.92%
按下载量换算13

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

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

继续浏览同类 Skills