Token导航 LogoToken导航TokenDH.com
前端设计操作浏览器github未标认证来源可访问clear审计通过

shopifyShopify 前端

Agent Skill

用于辅助前端页面、组件、样式和交互逻辑的开发与维护。它适合让 Agent 生成或审查 React、Next.js、Vue、Tailwind、CSS 等相关代码,整理组件结构,或定位布局和性能问题。使用时需要结合项目现有设计系统、路由和构建方式,避免只生成孤立片段;涉及页面改动时,应配合本地预览和构建检查确认视觉效果。

总安装

6,265

周安装

251

GitHub Stars

87

下载量

2,028
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/mindrally/skills --skill shopify

简介

shopify 用于辅助 Shopify 主题与 Liquid 模板开发,支持自定义页面、产品页和结账流程优化。

  • 适用于需要修改商店外观、添加自定义功能或集成第三方服务的电商项目。
  • 通过 npx skills add 命令从 GitHub 安装,需确认是否具备主题编辑和脚本部署权限。
  • 建议在使用前备份当前主题,并在开发商店中测试变更效果。
  • 涉及客户数据或支付信息时应启用测试模式,避免触发真实交易。

SKILL.md

Shopify Theme Development

You are an expert in Shopify theme development, Liquid templating, Online Store 2.0, and e-commerce best practices.

Core Principles

  • Write clean, maintainable Liquid code
  • Follow Online Store 2.0 architecture patterns
  • Optimize for performance and Core Web Vitals
  • Ensure accessibility compliance
  • Implement responsive, mobile-first designs

Liquid Templating

Best Practices

  • Use meaningful variable names
  • Leverage Liquid filters effectively
  • Minimize logic in templates; use snippets for reusable code
  • Cache expensive operations with {% cache %} blocks
  • Use {% render %} instead of deprecated {% include %}

Common Patterns

{% comment %} Product card snippet {% endcomment %}
{% render 'product-card', product: product, show_vendor: true %}

{% comment %} Conditional rendering {% endcomment %}
{% if product.available %}
  <button type="submit">Add to Cart</button>
{% else %}
  <button disabled>Sold Out</button>
{% endif %}

{% comment %} Loop with forloop object {% endcomment %}
{% for product in collection.products limit: 12 %}
  {% render 'product-card', product: product %}
{% endfor %}

Online Store 2.0

Section Architecture

  • Create modular, reusable sections
  • Define section schemas with appropriate settings
  • Use blocks for repeatable content within sections
  • Implement section groups for template flexibility

Section Schema

{% schema %}
{
  "name": "Featured Collection",
  "settings": [
    {
      "type": "collection",
      "id": "collection",
      "label": "Collection"
    },
    {
      "type": "range",
      "id": "products_to_show",
      "min": 2,
      "max": 12,
      "step": 2,
      "default": 4,
      "label": "Products to show"
    }
  ],
  "presets": [
    {
      "name": "Featured Collection"
    }
  ]
}
{% endschema %}

JSON Templates

  • Use JSON templates for flexible page layouts
  • Define template sections in JSON format
  • Allow merchants to customize through theme editor

JavaScript Best Practices

Theme JavaScript

  • Use modern ES6+ syntax
  • Implement proper event delegation
  • Lazy load non-critical scripts
  • Use Shopify's Section Rendering API for dynamic updates

Cart Functionality

// Add to cart with Fetch API
async function addToCart(variantId, quantity = 1) {
  const response = await fetch('/cart/add.js', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    body: JSON.stringify({
      id: variantId,
      quantity: quantity,
    }),
  });
  return response.json();
}

CSS and Styling

  • Use CSS custom properties for theming
  • Implement mobile-first responsive design
  • Leverage CSS Grid and Flexbox for layouts
  • Minimize render-blocking CSS
  • Use logical properties for internationalization

Performance Optimization

  • Optimize images with Shopify's image CDN
  • Implement lazy loading for images and sections
  • Minimize Liquid loops and complex calculations
  • Use preload for critical assets
  • Monitor Core Web Vitals (LCP, FID, CLS)

Image Optimization

{{ product.featured_image | image_url: width: 800 | image_tag:
  loading: 'lazy',
  widths: '200, 400, 600, 800',
  sizes: '(max-width: 600px) 100vw, 50vw'
}}

Accessibility

  • Use semantic HTML elements
  • Implement proper ARIA attributes
  • Ensure keyboard navigation
  • Maintain color contrast ratios
  • Test with screen readers

Theme Settings

  • Organize settings logically in settings_schema.json
  • Provide sensible defaults
  • Use appropriate setting types
  • Include helpful info text for merchants

Metafields

  • Use metafields for custom product data
  • Access metafields efficiently in templates
  • Define metafield definitions in theme

Testing

  • Test across browsers and devices
  • Validate Liquid syntax
  • Check accessibility compliance
  • Monitor performance metrics
  • Test checkout flow thoroughly

File Structure

theme/
├── assets/
├── config/
│   ├── settings_data.json
│   └── settings_schema.json
├── layout/
│   └── theme.liquid
├── locales/
├── sections/
├── snippets/
└── templates/
    ├── customers/
    └── *.json

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

能力 5

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

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

平台分布

OpenCode

26.78%
按下载量换算543

Claude Code

22.51%
按下载量换算457

Antigravity

17.27%
按下载量换算350

Codex

11.87%
按下载量换算241

Gemini CLI

8.15%
按下载量换算165

github-copilot

2.99%
按下载量换算61

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills