
Shopify AI Toolkit
PluginShopify 官方 agent 插件:检索 Shopify 文档与 API Schema,校验 GraphQL、Liquid 与 UI 扩展代码,还能通过 Shopify CLI 管理店铺。默认上报使用遥测,可以关闭。
Shopify AI Toolkit - AI Agent Plugin
Connect your AI tools to the Shopify platform.
The Toolkit gives your agent access to Shopify's documentation, API schemas, and code validation for building apps, and store management through the CLI's store execute capabilities. For more info, see the docs.
Install
-
For Claude Code: In your terminal, run
claude plugin install:claude plugin install shopify-ai-toolkit@claude-plugins-official -
For OpenAI Codex: In your terminal, run
codex plugin add:codex plugin add shopify@openai-curated -
For Antigravity CLI: In your terminal, install the Shopify plugin:
agy plugin install https://github.com/Shopify/shopify-ai-toolkit -
For Cursor: In Cursor Chat, add the Shopify plugin:
/add-plugin shopify -
For Hermes: In your terminal, download the install script and run it:
curl -fsSL https://raw.githubusercontent.com/Shopify/Shopify-AI-Toolkit/main/.hermes-plugin/install.sh -o /tmp/shopify-hermes-install.sh bash /tmp/shopify-hermes-install.sh -
For OpenClaw: In your terminal, install the package from npm:
openclaw plugins install npm:@shopify/ai-toolkitAlternatively, install from ClawHub with
openclaw plugins install clawhub:@shopify/ai-toolkit, or directly from the git mirror withopenclaw plugins install git:github.com/Shopify/Shopify-AI-Toolkit. The plugin is recognized as a native OpenClaw plugin and a compatible Agent Plugins bundle. -
For Pi: In your terminal, install the package from npm:
pi install npm:@shopify/ai-toolkitAlternatively, install directly from the git mirror:
pi install git:github.com/Shopify/Shopify-AI-Toolkit -
For VS Code:
-
Ensure the Agent plugins preview is enabled in your VS Code settings.
-
Open the Command Palette (
Cmd+Shift+Pon macOS,Ctrl+Shift+Pon Windows/Linux) and run:Chat: Install Plugin From Source -
When prompted, enter the repository URL:
https://github.com/Shopify/shopify-ai-toolkit
-
What you get
- Docs and API schemas: Search Shopify's documentation and API schemas without leaving your editor
- Code validation: Validate GraphQL queries, Liquid templates, and UI extensions against Shopify's schemas
- Store management: Manage your Shopify store through the CLI's store execute capabilities
- Auto-updates: The plugin updates automatically as new capabilities are released
Telemetry
The skill scripts (scripts/search_docs.mjs, scripts/validate.mjs, scripts/log_skill_use.mjs) send a usage event to https://shopify.dev/mcp/usage on each invocation. The payload includes:
- tool name, skill name and version
- model name, client name, and client version (when supplied as flags)
- the search query text and search response or error text (for
search_docs.mjs) - the validation result, the validated code when present, and validator-specific context such as API name, extension target, filename, file type, theme path, and file list (for
validate.mjs) - artifact ID and revision number (when supplied)
- the routing-table topic in use — from
--topicforlog_skill_use.mjs, and forsearch_docs.mjsfrom--apion a scoped search or--topicon an unscoped one - the user's most recent message verbatim (truncated to 2000 chars), when the agent passes it base64-encoded via
--user-prompt-base64tovalidate.mjs(for topics with a validator) orlog_skill_use.mjs(for topics without). Encoding the prompt keeps untrusted message text out of shell syntax. Exactly one designated capture point per topic —search_docs.mjsdoes not carry user_prompt. - the agent's
sessionIdandtoolUseId(when supplied via--session-id/--tool-use-id) so analytics can join script events with the hook'sskill_invocationevent for the same activation.
The plugin also registers a PostToolUse hook (hooks/track-telemetry.sh, .ps1) on Claude Code, Cursor, and GitHub Copilot. It emits a skill_invocation event to the same endpoint whenever the agent calls the host Skill tool with a Shopify AI Toolkit skill or reads a known SKILL.md under the running hook's own plugin or standalone-skill install root. The root is derived from the hook script's physical location, so unrelated repositories that merely mimic an install-path suffix do not trigger telemetry. The payload includes:
- skill name, skill version (when recoverable from the install path)
- trigger (
skill-toolorskill-md-read) - detected client (
claude-code/cursor/copilot-cli/vscode/vscode-insiders) - hook source (
pluginorskill) - the agent's
sessionIdandtoolUseId(when supplied) - on Claude Code only: the user's most recent prompt verbatim (truncated to 2000 chars), captured out-of-band via a
UserPromptSubmithook that stashes it locally and attached here only when a skill activates. HonorsOPT_OUT_INSTRUMENTATION; other hosts carry no prompt on this surface.
The same script is also injected into each generated SKILL.md as a hooks: frontmatter block, so Claude Code emits the same event when skills are installed standalone (e.g. via npx skills add Shopify/shopify-ai-toolkit) without the plugin. Events from each source are labeled with hookSource and carry sessionId + toolUseId inside the body's parameters object, so downstream consumers can dedup on (sessionId, toolUseId) when both surfaces are installed.
The hook does not report tool inputs, file contents, generated code, or other tool arguments. On Claude Code it can additionally attach user_prompt (the most recent prompt verbatim) via the UserPromptSubmit stash, but only when a Shopify skill activates. On other hosts (Cursor, Copilot) the hook carries no prompt and user_prompt capture happens on the script surfaces only (validate.mjs for topics with a validator, log_skill_use.mjs for topics without). See hooks/README.md for full coverage details.
Opting out
Telemetry is on by default. Opting out applies to every surface at once — skill scripts, the MCP server, and the hooks — and also stops local capture (no prompt is stashed to disk).
There are two ways to opt out. Either is sufficient on its own.
1. A user-level opt-out file (recommended). This is the only method that reliably works everywhere, because it does not depend on the agent passing your shell environment through to the processes it spawns:
mkdir -p ~/.config/shopify-ai-toolkit && touch ~/.config/shopify-ai-toolkit/opt-out
The file is checked at:
| Platform | Path |
|---|---|
| Linux / macOS | $XDG_CONFIG_HOME/shopify-ai-toolkit/opt-out, else ~/.config/shopify-ai-toolkit/opt-out |
| macOS (also) | ~/Library/Application Support/shopify-ai-toolkit/opt-out |
| Windows | %APPDATA%\shopify-ai-toolkit\opt-out |
An empty file opts you out — the filename is the signal. Writing false, 0, no, or off into it means "present, but do not opt me out", which is useful if the file is managed by a dotfiles repo. Set SHOPIFY_AI_TOOLKIT_OPT_OUT_FILE to point every surface at a different absolute path.
2. An environment variable.
export OPT_OUT_INSTRUMENTATION=true
DO_NOT_TRACK=1 (donottrack.sh) is honored as well.
Environment variables only reach a telemetry surface if the process emitting it inherits your exported environment. Several hosts spawn skill scripts, hooks, MCP child processes, and sub-agents from non-interactive subshells that do not — Hermes' terminal tool, Codex's exec mode, and GUI-launched MCP servers among them. If you use one of those, use the file.
Opt-out is monotone. Any signal that says "opted out" wins, and nothing can turn telemetry back on for that process. In particular, a wrapper script or CI image exporting OPT_OUT_INSTRUMENTATION=false cannot override the file you created.
Other install methods
If your platform doesn't support plugins, you can install agent skills or the Dev MCP server directly. For instructions, see shopify.dev/docs/apps/build/ai-toolkit.
Contributing
Thanks for your interest but we don't accept pull requests. Any pull requests will be automatically closed.
相關資源

Shopify CLI
CLIShopify 官方命令行:初始化、本地开发并部署 Shopify 应用、扩展、Functions 与主题,也能构建和托管 Hydrogen 自定义店面。需要 Node.js。
Shopify/cli757
Modern Web Guidance
Plugin按需给 agent 提供现代 Web 平台的实践指南,涵盖 View Transitions、容器查询、Popover、INP 优化、无障碍等,并附浏览器兼容数据,避免写出过时的代码。由 Google Chrome 团队官方维护,目前是预览版。
GoogleChrome/modern-web-guidance2.5k
JavaScript TypeScript
PluginJS/TS 开发插件:内置 javascript-pro、typescript-pro 两个子代理和 TypeScript 项目脚手架命令,外加现代 JS 写法、TS 高级类型、Node.js 后端、JS 测试 4 个技能。收录在 wshobson/agents 插件市场。
wshobson/agents40.9k
Context7
Plugin接入 Upstash 托管的 Context7 远程 MCP,按需拉取各类库指定版本的最新文档与代码示例,减少过时与臆造的 API;无需本地 Node,匿名即可使用,配置 API Key 可提高限额。Upstash 维护。
anthropics/claude-plugins-official40.4k
Angular CLI MCP Server
MCPAngular CLI 内置的 MCP 服务器(ng mcp):让 agent 检索 angular.dev 官方文档、获取最佳实践、列出工作区项目、启动开发服务器并运行构建与测试目标,支持只读与离线模式。Angular 团队官方维护。
angular/angular-cli27k
Claude Skills (Fullstack Dev Skills)
Plugin把 60 多个全栈专家技能打包成一个插件:Python、TypeScript、Go、Rust、Java 等 12 种语言专家,以及 React、Django、Spring Boot 等框架专家,按请求自动激活;另含对接 Jira / Confluence 的项目工作流命令(需 Atlassian MCP)。
Jeffallan/claude-skills11.9k