shopify-extensions
Guide for building and managing Shopify Extensions (Admin, Checkout, Theme, Post-purchase, etc.) using the latest Shopify CLI and APIs.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Guide for building and managing Shopify Extensions (Admin, Checkout, Theme, Post-purchase, etc.) using the latest Shopify CLI and APIs.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Create, critique, regenerate, or validate Shopify App Store app logos/icons using Shopify's current app icon guidance. Use when the user asks for a Shopify app logo, Shopify App Store icon, app listing icon, Dev Dashboard app icon, branded square logo, logo prompt, icon validation, or review-safe visual direction for Shopify app submission.
Create, critique, or regenerate Shopify App Store feature images for app listings using Shopify's current App Store media guidance and the $imagegen skill for actual image generation/editing. Use when the user asks for a Shopify app feature image, App Store listing hero image, marketing image, listing media, image prompt, image validation, or review-safe visual direction for Shopify app submission.
Create comprehensive Shopify App Store listing content following official best practices. Use when users need to write or improve their app listing for the Shopify App Store, including app introduction, app details, features, app card subtitle, search terms, SEO content (title tag, meta description), and testing instructions. Also applicable when preparing an app submission for Shopify review.
Generate and maintain changelogs following Keep a Changelog format. Analyzes git commits, categorizes changes, and produces well-structured release notes.
Guide for implementing Shopify's Billing API in Remix apps using @shopify/shopify-app-remix. Covers subscriptions, one-time purchases, usage-based billing, discounts, and the project's billing implementation patterns.
Comprehensive code investigation and audit tool. Discovers all project features, then dispatches parallel subagents to analyze issues, risks, dead code, missing functionality, and redundancies. Produces a prioritized risk report. Use this skill when the user asks to "investigate code", "audit project", "find risks", "check code quality", "analyze codebase", "what's wrong with this code", "project health check", "code review entire project", "find dead code", "find redundant code", or any request for a thorough codebase analysis.
| name | shopify-extensions |
| description | Guide for building and managing Shopify Extensions (Admin, Checkout, Theme, Post-purchase, etc.) using the latest Shopify CLI and APIs. |
This skill provides a comprehensive guide to building Shopify Extensions. Extensions allow you to integrate your app's functionality directly into Shopify's user interfaces (Admin, Checkout, Online Store, POS) and backend logic.
npm install -g @shopify/cli@latest
Embed your app into the Shopify Admin interface.
shopify.extension.toml.
[[extensions]]
type = "ui_extension"
name = "product-action"
handle = "product-action"
[[extensions.targeting]]
target = "admin.product-details.action.render"
module = "./src/ActionExtension.jsx"
Customize the checkout flow (requires Shopify Plus for some features).
[[extensions]]
type = "ui_extension"
name = "checkout-banner"
handle = "checkout-banner"
[[extensions.targeting]]
target = "purchase.checkout.block.render"
module = "./src/CheckoutBanner.jsx"
Integrate with Online Store 2.0 themes without modifying theme code.
The shopify app generate extension command is the primary way to create new extensions.
shopify app generate extension
This runs an interactive wizard where you select the extension type and name.
You can bypass prompts by providing flags:
shopify app generate extension --name "my-extension" --template <template_type> --flavor <flavor>
--name: The name of your extension.--template: The type of extension to generate (e.g., checkout_ui, product_subscription, theme_app_extension).--flavor: The language/framework to use (e.g., react, typescript, vanilla-js). Note: Not all extensions support all flavors.Create a Checkout UI Extension (React):
shopify app generate extension --template checkout_ui --name "checkout-upsell" --flavor react
Create a Theme App Extension:
shopify app generate extension --template theme_app_extension --name "trust-badges"
Create a Shopify Function (Product Discount - Rust):
shopify app generate extension --template product_discounts --name "volume-discount" --flavor rust
--client-id <value>: Explicitly link to a specific app Client ID.--path <path>: Run the command in a specific directory.--reset: Reset the project configuration.Generate Extension:
shopify app generate extension
Select the extension type from the list.
Develop:
shopify.extension.toml.shopify app dev to preview.Deploy:
shopify app deploy
This publishes the extension version to Shopify Partners.
Publish:
useApi() hook in React extensions to access valid APIs and data for the current context.