Token导航 LogoToken导航

Agent Skill · 开发

shopify-checkout-extensions(Shopify checkout extensions 命令行)

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

shopify-checkout-extensions 是开发类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为操作浏览器;许可证信息还不明确,第三方扫描有未通过项,按安装量在开发类的 21,746 个 Skill 里排第 16,500。

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

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

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

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

用于处理 Shopify 结账扩展相关的 GitHub 仓库、Issue 和代码协作信息。适合在开发或集成 Shopify 结账扩展功能时,整理代码变更和协作事项。通过 npx skills add 命令从指定仓库安装,需确认权限范围和是否涉及文件读写操作。

建议结合原始 README 和项目结构进一步核验具体功能和使用场景。注意维护状态和网络访问权限,避免触发不必要的命令执行或数据修改。

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

上手步骤

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-checkout-extensions 怎么安装?

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

shopify-checkout-extensions 支持哪些 AI 工具?

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

shopify-checkout-extensions 需要什么权限?

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

shopify-checkout-extensions 是免费的吗?

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

shopify-checkout-extensions 用的人多吗?

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

shopify-checkout-extensions 安全吗?

第三方扫描有未通过项,风险较高。除非你确认过源码,否则不建议直接安装到常用环境。

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

值得选的地方

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

先想清楚的地方

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

适不适合你

更适合

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

不太适合

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

开发类 Skill 对比

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

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
shopify-checkout-extensions

Shopify checkout extensions 命令行 · 本页

49419操作浏览器未明确未通过

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

SKILL.md 原文

Shopify Checkout Extensions

Overview

Shopify Checkout Extensions allow apps to render custom UI blocks inside Shopify's checkout without forking the checkout template. Shopify Functions let you replace backend logic — discounts, shipping, payment methods, and order validation — with custom WebAssembly modules that run inside Shopify's infrastructure. Together they replace the deprecated checkout.liquid customization approach and work with both Shopify Plus and non-Plus stores (UI extensions) or Plus-only (some Functions targets).

When to Use This Skill

  • When adding custom UI blocks to checkout (upsells, trust badges, gift message fields, warranty options)
  • When implementing custom discount logic beyond native Shopify discount rules (e.g., tiered discounts, B2B pricing)
  • When creating custom shipping method filtering or renaming based on cart contents
  • When building payment customization to hide/rename payment methods for specific customers
  • When validating order contents before checkout completes (e.g., quantity limits, region restrictions)
  • When replacing deprecated checkout.liquid customizations for Shopify Plus stores

Core Instructions

  1. Scaffold an extension with Shopify CLI # Inside an existing Shopify app directory shopify app generate extension # Choose: Checkout UI extension OR Shopify Function # Name: my-checkout-extension This creates an extensions/my-checkout-extension/ directory with src/index.tsx (UI) or src/index.ts (Function).
  2. Build a Checkout UI extension Checkout UI extensions use a React-like component API from @shopify/ui-extensions-react/checkout: // extensions/order-upsell/src/index.tsx import {reactExtension, useCartLines, useApplyCartLinesChange, useSettings, BlockStack, Button, Image, Text, InlineStack, Divider,} from "@shopify/ui-extensions-react/checkout"; const CheckoutBlock = reactExtension("purchase.checkout.block.render", () => <OrderUpsell />); export {CheckoutBlock}; function OrderUpsell() {const cartLines = useCartLines(); const applyCartLinesChange = useApplyCartLinesChange(); const {upsell_variant_id: upsellVariantId} = useSettings(); // Only show upsell if a variant is configured and cart doesn't already contain it if (!upsellVariantId) return null; const alreadyInCart = cartLines.some((line) => line.merchandise.id === upsellVariantId); if (alreadyInCart) return null; const handleAddUpsell = async () => {await applyCartLinesChange({type: "addCartLine", merchandiseId: upsellVariantId, quantity: 1,});}; return (<BlockStack spacing="base"> <Divider /> <InlineStack blockAlignment="center" spacing="base"> <Image source="https://cdn.shopify.com/s/files/..." aspectRatio={1} /> <BlockStack> <Text emphasis="bold">Add a gift bag for $3.99</Text> <Text appearance="subdued">Beautiful packaging for your order</Text> </BlockStack> <Button onPress={handleAddUpsell}>Add</Button> </InlineStack> </BlockStack>);}
  3. Configure the extension in shopify.extension.toml api_version = "2025-01" [[extensions]] type = "ui_extension" name = "Order Upsell" handle = "order-upsell" [[extensions.targeting]] module = "./src/index.tsx" target = "purchase.checkout.block.render" [extensions.settings] [[extensions.settings.fields]] key = "upsell_variant_id" type = "variant_reference" name = "Upsell Product Variant"
  4. Build a Shopify Function for custom discounts Shopify Functions compile to WebAssembly. Use Rust or JavaScript: ` // extensions/volume-discount/src/index.ts import type {RunInput, FunctionRunResult, CartLineInput,} from "../generated/api"; const NO_CHANGES: FunctionRunResult = {discounts: [], discountApplicationStrategy: "FIRST"}; export function run(input: RunInput): FunctionRunResult {const {cart} = input; // Calculate total quantity across all lines const totalQuantity = cart.lines.reduce((sum, line) => sum + line.quantity, 0); // Tiered volume discount let discountPercent = 0; if (totalQuantity >= 20) discountPercent = 20; else if (totalQuantity >= 10) discountPercent = 10; else if (totalQuantity >= 5) discountPercent = 5; if (discountPercent === 0) return NO_CHANGES; return {discounts: [{value: {percentage: {value: discountPercent.toString()},}, targets: [{orderSubtotal: {excludedVariantIds: []}}], message: ${discountPercent}% volume discount (${totalQuantity} items),},], discountApplicationStrategy: "FIRST",};} Function shopify.extension.toml: api_version = "2025-01" [[extensions]] type = "function" name = "Volume Discount" handle = "volume-discount" runtime = "javascript" [[extensions.input.variables]] name = "cart" type = "Cart" [extensions.build] command = "npm run build" path = "dist/index.wasm"`
  5. Test and deploy extensions # Run local dev preview (UI extension hot-reloads in checkout) shopify app dev # Open the checkout preview URL shown in terminal # Deploy all extensions to Shopify shopify app deploy After deploying, go to Admin → Checkout → Customize to add the UI extension block to a checkout template. Functions are activated by creating a discount with the function from Admin → Discounts.

Examples

Gift message field using useApplyMetafieldsChange

import {
  reactExtension,
  TextField,
  useApplyMetafieldsChange,
  useMetafield,
  BlockStack,
  Text,
} from "@shopify/ui-extensions-react/checkout";

export default reactExtension(
  "purchase.checkout.shipping-option-list.render-after",
  () => <GiftMessage />
);

function GiftMessage() {
  const giftMessage = useMetafield({ namespace: "custom", key: "gift_message" });
  const applyMetafieldsChange = useApplyMetafieldsChange();

  return (
    <BlockStack spacing="tight">
      <Text emphasis="bold">Gift message (optional)</Text>
      <TextField
        label="Message"
        value={giftMessage?.value ?? ""}
        multiline={3}
        onChange={(value) =>
          applyMetafieldsChange({
            type: "updateMetafield",
            namespace: "custom",
            key: "gift_message",
            valueType: "string",
            value,
          })
        }
      />
    </BlockStack>
  );
}

Payment customization Function (hide cash on delivery for international orders)

// extensions/payment-customization/src/index.ts
import type { RunInput, FunctionRunResult } from "../generated/api";

export function run(input: RunInput): FunctionRunResult {
  const country = input.cart.buyerIdentity?.countryCode;

  // Hide "Cash on Delivery" for non-domestic orders
  const hideOperations = input.paymentMethods
    .filter((pm) => pm.name.toLowerCase().includes("cash on delivery") && country !== "US")
    .map((pm) => ({
      hide: { paymentMethodId: pm.id },
    }));

  return { operations: hideOperations };
}

Best Practices

  • Use the purchase.checkout.block.render target for maximum placement flexibility — merchants can drag the block anywhere in the checkout editor
  • Keep Function execution under 5ms — Shopify enforces a strict execution time limit; avoid network calls inside Functions (use metafields or Function input variables for configuration)
  • Use useSettings() hook to read merchant-configured values from the extension settings schema — avoids hardcoded IDs in extension code
  • Never read DOM or use browser APIs in UI extensions — they run in a sandboxed Worker environment without DOM access
  • Use @shopify/ui-extensions-react/checkout components only — native HTML and other UI libraries are not available in the extension sandbox
  • Test payment and shipping Functions with real checkout sessions — the local dev preview only works for UI extensions; Functions need to be deployed to test
  • Version-pin your extension API version — increment the api_version in shopify.extension.toml to access new APIs while keeping backward compatibility
  • Handle async operations with loading states — useApplyCartLinesChange is async; show a spinner while the mutation is in flight

Common Pitfalls

ProblemSolution
Extension not appearing in checkout editorEnsure the extension is deployed (shopify app deploy) and the correct checkout template is selected in Admin → Checkout
Function returns FUNCTION_EXECUTION_TIMEOUTMove configuration out of runtime logic into Function input metafields; avoid complex loops on large catalogs
useCartLines returns stale data after cart updateUse the returned promise from applyCartLinesChange to wait for checkout to re-evaluate before reading cart lines again
Extension crashes with "Cannot use browser APIs"Remove document, window, localStorage references — the extension runs in a Worker sandbox
Discount Function not applyingVerify the Function-based discount is active in Admin → Discounts and the customer qualifies per any eligibility rules
Checkout UI extension settings not savingSettings fields require handle values that match the keys referenced by useSettings() in the extension code

Related Skills

  • @shopify-app-development
  • @shopify-storefront-api
  • @shopify-metafields
  • @checkout-flow-optimization
  • @shopify-admin-api

平台分布

Codex

31.97%
按下载量换算50

Claude

30.5%
按下载量换算47

Cursor

18.75%
按下载量换算29

Gemini CLI

10.1%
按下载量换算16

安全审计

Gen Agent Trust Hub

通过

Socket

未通过

Snyk

通过

权限和风险

操作浏览器

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

安装前确认

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

继续浏览同类 Skills