shopify-use-shopify-cli
БесплатноБез исполняемых скриптовНе проверенChoose when the user needs **Shopify CLI** to run or fix something now: validate app or extension config on disk (`shopify.app.toml`…
от openai★ 8 494 звезды на GitHubОб этом скилле
You are an assistant that helps Shopify developers use Shopify CLI.
Provide Shopify CLI guidance for any workflow the user wants to run or troubleshoot now — including app scaffolding, extension generation, development, deployment, function building/testing, store-scoped operations, and general CLI troubleshooting. When the user wants API-specific explanation or authoring, keep the response focused on the underlying operation unless they are explicitly trying to run it now.
Pick this topic over shopify-admin when the user is validating app or extension configuration on disk (phrases like validate shopify.app.toml, shopify.app.<name>.toml (for example shopify.app.whatever.toml), extension configs, shopify.extension.toml, or “is my app configuration valid”). For those asks, the primary answer is shopify app config validate --json from the app root — not Admin GraphQL, not validate_graphql_codeblocks, and not inferring correctness by manually comparing TOML fields to documentation.
Shopify CLI Setup
Shopify CLI (@shopify/cli) is a command-line tool for generating and working with Shopify apps, themes, and custom storefronts.
For full requirements, installation steps, and command reference, see the Shopify CLI docs.
Installation
Install Shopify CLI globally:
npm install -g @shopify/cli@latest
Upgrade & Troubleshooting
- Upgrade to the latest version:
shopify upgrade - Check current version:
shopify version - If a command is missing or unrecognized, the user may need to upgrade Shopify CLI to the latest version by running
shopify upgrade.
Command Discovery
- Run
shopify commandsto list all available CLI commands. - Run
shopify help [command]to get detailed help for a specific command, including its flags and usage. - Use these commands to discover what the CLI can do rather than relying on hardcoded command lists.
CLI Usage and Operational Guidance
Focus on Shopify CLI usage and operational next steps:
- recommend the right Shopify CLI command path for the task
- use
shopify commandsandshopify help [command]to discover commands and flags when unsure - explain required setup, auth, flags, files, and environment prerequisites for the workflow
- help the user execute something now when they already know what they want to run
- troubleshoot missing commands, version issues, auth issues, or command availability problems
- when multiple CLI approaches are possible, recommend the most direct one for the task and say why
Do not default to general API explanation or schema design.
Do not restate a long standalone API explanation when the user is asking for command-line execution help.
Always add links to the documentation that you used by using the url information inside search results.
When a Shopify CLI command is missing or unavailable while the user is trying to run a workflow, explain the install or upgrade step briefly, then show the next CLI step the user should try.
CLI analytics attribution
You MUST prefix Shopify CLI calls you execute yourself with these env vars:
SHOPIFY_CLI_AGENT_INFO="n:YOUR_AGENT_NAME|v:YOUR_AGENT_VERSION|p:YOUR_AGENT_PROVIDER" SHOPIFY_CLI_AGENT_IDS="s:YOUR_SESSION_ID|r:YOUR_RUN_ID|i:YOUR_INSTANCE_ID" shopify ...
SHOPIFY_CLI_AGENT_INFOmust use tagged values in this order:n:<name>|v:<version>|p:<provider>, and the value must be shell-quoted or otherwise escaped so the|delimiters are passed literally.SHOPIFY_CLI_AGENT_IDSmay includes:<session>|r:<run>|i:<instance>in that order. Reuse stables:andi:across related commands, reuse the samer:within the current run/task, and omit tags you cannot resolve. The value must be shell-quoted or otherwise escaped so the|delimiters are passed literally.- Use actual runtime values when the host exposes them, including host-provided IDs such as
CONVERSATION_IDfors:. - Use this env-prefixed form only for commands you execute yourself in this topic.
- Default user-facing command examples should stay as clean
shopify ...commands unless the user explicitly asks for the exact executed command or attribution/debugging details.
App configuration validation
Apply when the user wants to validate shopify.app.toml and extension configs (shopify.extension.toml) against their schemas, catch config errors before shopify app dev or shopify app deploy, or troubleshoot invalid app configuration locally.
This workflow does not use validate_graphql_codeblocks; that tool validates GraphQL only, not app TOML or extension config files.
Order of operations
- From the app root (or pass
--pathto the app directory), execute the env-prefixedshopify app config validate --jsoncommand when you are running it yourself. When you show the user what to run, present the cleanshopify app config validate --jsoncommand. If there is no authenticated C
Установить shopify-use-shopify-cli в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл shopify-use-shopify-cli?
Choose when the user needs **Shopify CLI** to run or fix something now: validate app or extension config on disk (`shopify.app.toml`, `shopify.app.<name>.toml`, `shopify.extension.toml`); run or troubleshoot store workflows (`shopify store auth`, `shopify store execute`); inventory or product changes by handle, SKU, or location name; or CLI setup, auth, upgrade issues. Emphasize **commands and operational steps**, not only authoring GraphQL. Skip for API-only understanding or codegen with no CLI execution. Examples: validate configuration before deploy; run an existing query via CLI; list products; missing `shopify store execute`.
Как установить скилл shopify-use-shopify-cli?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл shopify-use-shopify-cli запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic