Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问clear审计提醒

ecommerce-platform-specialist电商平台专家

Agent Skill

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

总安装

11,369

周安装

469

GitHub Stars

5

下载量

3,714
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/qodex-ai/ai-agent-skills --skill ecommerce-platform-specialist

简介

Shopify 开发专家提供基于官方文档的完整指导,覆盖应用开发、主题定制、API 集成等全场景。

  • 适用于电商平台搭建、结账扩展和 Shopify 生态集成等实际开发需求。
  • 通过调用技能获取权威文档指引,支持多语言响应和结构化开发建议。
  • 需配合 docpull 工具拉取最新官方文档,注意网络权限与 API 访问限制。
  • ecommerce-platform-specialist 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Shopify Development Expert

Purpose

Provide comprehensive, accurate guidance for building on Shopify's platform based on 24+ official documentation files. Cover all aspects of app development, theme customization, API integration, checkout extensions, and e-commerce features.

Documentation Coverage

Full access to official Shopify documentation (when available):

  • Location: docs/shopify/
  • Files: 25 markdown files
  • Coverage: Complete API reference, guides, best practices, and implementation patterns

Note: Documentation must be pulled separately:

pipx install docpull
docpull https://shopify.dev/docs -o .claude/skills/shopify/docs

Major Areas:

  • GraphQL Admin API (products, orders, customers, inventory)
  • Storefront API (cart, checkout, customer accounts)
  • REST Admin API (legacy support)
  • App development (authentication, webhooks, extensions)
  • Theme development (Liquid, sections, blocks)
  • Headless commerce (Hydrogen, Oxygen)
  • Checkout customization (UI extensions, validation)
  • Shopify Functions (discounts, delivery, payments)
  • POS extensions (in-person sales)
  • Subscriptions and selling plans
  • Metafields and custom data
  • Shopify Flow automation
  • CLI and development tools
  • Privacy and compliance
  • Performance optimization

When to Use

Invoke when user mentions:

  • Platform: Shopify, e-commerce, online store, merchant
  • APIs: GraphQL, REST, Storefront API, Admin API
  • Products: product management, collections, variants, inventory
  • Orders: order processing, fulfillment, shipping
  • Customers: customer data, accounts, authentication
  • Checkout: checkout customization, payment methods, delivery options
  • Themes: Liquid templates, theme development, sections, blocks
  • Apps: app development, extensions, webhooks, OAuth
  • Headless: Hydrogen, React, headless commerce, Oxygen
  • Functions: Shopify Functions, custom logic, discounts
  • Subscriptions: recurring billing, selling plans, subscriptions
  • Tools: Shopify CLI, development workflow
  • POS: point of sale, retail, in-person payments

How to Use Documentation

When answering questions:

  1. Search for specific topics: # Use Grep to find relevant docs grep -r "checkout".claude/skills/shopify/docs/ --include="*.md"
  2. Read specific documentation: # API docs cat.claude/skills/shopify/docs/shopify/api-admin-graphql.md cat.claude/skills/shopify/docs/shopify/api-storefront.md
  3. Find implementation guides: # List all guides ls.claude/skills/shopify/docs/shopify/

Core Authentication

OAuth 2.0 Flow

// Redirect to Shopify OAuth
const authUrl = `https://${shop}/admin/oauth/authorize?` +
  `client_id=${process.env.SHOPIFY_API_KEY}&` +
  `scope=read_products,write_products&` +
  `redirect_uri=${redirectUri}&` +
  `state=${nonce}`;

// Exchange code for access token
const response = await fetch(
  `https://${shop}/admin/oauth/access_token`,
  {
    method: 'POST',
    headers: { 'Content-Type': 'application/json' },
    body: JSON.stringify({
      client_id: process.env.SHOPIFY_API_KEY,
      client_secret: process.env.SHOPIFY_API_SECRET,
      code
    })
  }
);

const { access_token } = await response.json();

Session Tokens (Modern Embedded Apps)

import { shopifyApi } from '@shopify/shopify-api';

const shopify = shopifyApi({
  apiKey: process.env.SHOPIFY_API_KEY,
  apiSecretKey: process.env.SHOPIFY_API_SECRET,
  scopes: ['read_products', 'write_products'],
  hostName: process.env.HOST,
  isEmbeddedApp: true,
});

GraphQL Admin API

Query Products

query {
  products(first: 10) {
    edges {
      node {
        id
        title
        handle
        priceRange {
          minVariantPrice {
            amount
            currencyCode
          }
        }
        variants(first: 5) {
          edges {
            node {
              id
              sku
              inventoryQuantity
            }
          }
        }
      }
    }
  }
}

Create Product

mutation {
  productCreate(input: {
    title: "New Product"
    vendor: "My Store"
    productType: "Apparel"
    variants: [{
      price: "29.99"
      sku: "PROD-001"
    }]
  }) {
    product {
      id
      title
    }
    userErrors {
      field
      message
    }
  }
}

Fetch Orders

query {
  orders(first: 25, query: "fulfillment_status:unfulfilled") {
    edges {
      node {
        id
        name
        createdAt
        totalPriceSet {
          shopMoney {
            amount
            currencyCode
          }
        }
        customer {
          email
        }
        lineItems(first: 10) {
          edges {
            node {
              title
              quantity
            }
          }
        }
      }
    }
  }
}

Storefront API

Create Cart

mutation {
  cartCreate(input: {
    lines: [{
      merchandiseId: "gid://shopify/ProductVariant/123"
      quantity: 1
    }]
  }) {
    cart {
      id
      checkoutUrl
      cost {
        totalAmount {
          amount
          currencyCode
        }
      }
    }
  }
}

Update Cart

mutation {
  cartLinesUpdate(
    cartId: "gid://shopify/Cart/xyz"
    lines: [{
      id: "gid://shopify/CartLine/abc"
      quantity: 2
    }]
  ) {
    cart {
      id
      lines(first: 10) {
        edges {
          node {
            quantity
          }
        }
      }
    }
  }
}

Webhooks

Setup Webhook

// Register webhook via API
const webhook = await shopify.webhooks.register({
  topic: 'ORDERS_CREATE',
  address: 'https://your-app.com/webhooks/orders-create',
  format: 'json'
});

Verify Webhook

import crypto from 'crypto';

function verifyWebhook(body, hmacHeader, secret) {
  const hash = crypto
    .createHmac('sha256', secret)
    .update(body, 'utf8')
    .digest('base64');

  return hash === hmacHeader;
}

// In webhook handler
app.post('/webhooks/orders-create', async (req, res) => {
  const hmac = req.headers['x-shopify-hmac-sha256'];
  const body = await req.text();

  if (!verifyWebhook(body, hmac, process.env.SHOPIFY_API_SECRET)) {
    return res.status(401).send('Invalid HMAC');
  }

  const order = JSON.parse(body);
  // Process order...

  res.status(200).send('OK');
});

Liquid Templates

Basic Liquid

<!-- Output product title -->
{{ product.title }}

<!-- Conditional logic -->
{% if product.available %}
  <button>Add to Cart</button>
{% else %}
  <span>Sold Out</span>
{% endif %}

<!-- Loop through variants -->
{% for variant in product.variants %}
  <option value="{{ variant.id }}">
    {{ variant.title }} - {{ variant.price | money }}
  </option>
{% endfor %}

Custom Section

{% schema %}
{
  "name": "Featured Product",
  "settings": [
    {
      "type": "product",
      "id": "product",
      "label": "Product"
    }
  ]
}
{% endschema %}

{% if section.settings.product %}
  {% assign product = section.settings.product %}
  <div class="featured-product">
    <img src="{{ product.featured_image | img_url: '500x' }}" alt="{{ product.title }}">
    <h2>{{ product.title }}</h2>
    <p>{{ product.price | money }}</p>
  </div>
{% endif %}

Shopify Functions

Discount Function

// Function to apply volume discount
export default (input) => {
  const quantity = input.cart.lines.reduce((sum, line) => sum + line.quantity, 0);

  let discountPercentage = 0;
  if (quantity >= 10) discountPercentage = 20;
  else if (quantity >= 5) discountPercentage = 10;

  if (discountPercentage > 0) {
    return {
      discounts: [{
        message: `${discountPercentage}% volume discount`,
        targets: [{
          orderSubtotal: {
            excludedVariantIds: []
          }
        }],
        value: {
          percentage: {
            value: discountPercentage.toString()
          }
        }
      }]
    };
  }

  return { discounts: [] };
};

Delivery Customization

// Hide specific delivery options
export default (input) => {
  const operations = [];

  // Hide express shipping for orders under $100
  const cartTotal = parseFloat(input.cart.cost.subtotalAmount.amount);

  if (cartTotal < 100) {
    const expressOptions = input.cart.deliveryGroups[0].deliveryOptions
      .filter(option => option.title.toLowerCase().includes('express'));

    expressOptions.forEach(option => {
      operations.push({
        hide: {
          deliveryOptionHandle: option.handle
        }
      });
    });
  }

  return { operations };
};

Hydrogen (Headless Commerce)

Product Page

// app/routes/products.$handle.tsx
import {json, LoaderFunctionArgs} from '@shopify/remix-oxygen';
import {useLoaderData} from '@remix-run/react';

export async function loader({params, context}: LoaderFunctionArgs) {
  const {product} = await context.storefront.query(PRODUCT_QUERY, {
    variables: {handle: params.handle},
  });

  return json({product});
}

export default function Product() {
  const {product} = useLoaderData<typeof loader>();

  return (
    <div>
      <h1>{product.title}</h1>
      <img src={product.featuredImage.url} alt={product.title} />
      <p>{product.description}</p>
      <AddToCartButton productId={product.id} />
    </div>
  );
}

const PRODUCT_QUERY = `#graphql
  query Product($handle: String!) {
    product(handle: $handle) {
      id
      title
      description
      featuredImage {
        url
        altText
      }
      variants(first: 10) {
        nodes {
          id
          price {
            amount
            currencyCode
          }
        }
      }
    }
  }
`;

Shopify CLI

Common Commands

# Create new app
shopify app init

# Start development server
shopify app dev

# Deploy app
shopify app deploy

# Create extension
shopify app generate extension

# Create theme
shopify theme init

# Serve theme locally
shopify theme dev --store=your-store.myshopify.com

# Push theme
shopify theme push

# Pull theme
shopify theme pull

Testing

Test Stores

  1. Create Partner account: https://partners.shopify.com
  2. Create development store
  3. Install your app
  4. Test features

Test Data

// Create test product
const product = await shopify.rest.Product.save({
  session,
  title: "Test Product",
  body_html: "<strong>Test description</strong>",
  vendor: "Test Vendor",
  product_type: "Test Type",
  variants: [{
    price: "19.99",
    sku: "TEST-001"
  }]
});

// Create test order
const order = await shopify.rest.Order.save({
  session,
  line_items: [{
    variant_id: 123456789,
    quantity: 1
  }],
  customer: {
    email: "test@example.com"
  }
});

Security Best Practices

  1. API Keys:

- Store in environment variables - Never commit to version control - Use separate keys per environment - Rotate if compromised

  1. Webhooks:

- ALWAYS verify HMAC signatures - Use HTTPS endpoints only - Return 200 immediately - Process async

  1. Access Scopes:

- Request minimal scopes - Document why each scope is needed - Review periodically

  1. Rate Limits:

- Respect API rate limits - Implement exponential backoff - Monitor API usage

Common Errors

API Authentication

  • Invalid access token - Check token is valid and has correct scopes
  • Shop not found - Verify shop domain format
  • Missing access token - Include X-Shopify-Access-Token header

GraphQL Errors

  • User errors - Check userErrors field in response
  • Throttled - Reduce request rate
  • Field not found - Verify API version supports field

Webhook Issues

  • Invalid HMAC - Check webhook secret and verification logic
  • Delivery failed - Ensure endpoint returns 200 within timeout
  • Not receiving webhooks - Check webhook registration and endpoint URL

Resources

Documentation Quick Reference

Need to find something specific?

# Search all docs
grep -r "search term" .claude/skills/shopify/docs/

# Find specific topics
ls .claude/skills/shopify/docs/shopify/

# Read specific guide
cat .claude/skills/shopify/docs/shopify/webhooks.md

Common doc files:

  • api-admin-graphql.md - GraphQL Admin API
  • api-storefront.md - Storefront API
  • authentication.md - OAuth and auth flows
  • webhooks.md - Webhook handling
  • apps.md - App development
  • themes.md - Theme development
  • liquid.md - Liquid reference
  • hydrogen.md - Headless commerce
  • checkout.md - Checkout customization
  • functions.md - Shopify Functions
  • cli.md - CLI commands

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

补充不同宿主或平台的使用分布数据

能力 5

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

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

平台分布

Claude Code

25.74%
按下载量换算956

OpenCode

22.78%
按下载量换算846

Gemini CLI

17.27%
按下载量换算641

Cursor

12.42%
按下载量换算461

Codex

6.99%
按下载量换算260

Antigravity

3.48%
按下载量换算129

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。

来源信息

继续浏览同类 Skills