shopify-setup — скилл для Claude Code: что делает и как установить
Настраивает Shopify CLI и постоянный Admin API токен для магазина. Пригодится, когда нужно безопасно подключить магазин и проверить доступ к товарам через GraphQL.
npx skills add jezweb/claude-skills --skill shopify-setup -a claude-codeЧто делает shopify-setup
Скилл по шагам готовит окружение для работы с магазином Shopify. Сначала он проверяет установку @shopify/cli и запускает авторизацию через браузер командой shopify auth login. Чтобы сессия не сгорала при каждом перезапуске, скилл помогает выпустить постоянный токен Admin API формата shpat_* через раздел разработки приложений в админке магазина.
Полученный токен записывается в локальный .dev.vars, который нужно сразу скрыть в .gitignore. После сохранения скилл отправляет проверочный запрос к GraphQL Admin API версии 2025-01 и фиксирует параметры витрины в файле shopify.config.json. При ручной навигации по админке скилл может задействовать Chrome MCP или playwright-cli.
Учтите, что токен привязан к конкретным скоупам прав (read_products, write_products, read_inventory и другим), поэтому без аккаунта владельца или сотрудника с правами настроить доступ не выйдет.
Какие задачи решает
- авторизоваться в магазине через Shopify CLI
- настроить долгоживущий Admin API токен для кастомного приложения
- сохранить реквизиты доступа в
.dev.varsбез риска утечки в git - проверить подключение к GraphQL Admin API через тестовый запрос
- сгенерировать конфигурационный файл
shopify.config.json
Примеры запросов агенту
- Подключи мой магазин mystore.myshopify.com и настрой доступ к Shopify Admin API
- Помоги выпустить Admin API токен для Shopify и проверь авторизацию через GraphQL
- Проверь установку Shopify CLI и создай файл shopify.config.json для проекта
Как установить shopify-setup
1Через Skills CLI (Vercel)
npx skills add jezweb/claude-skills --skill shopify-setup -a claude-code2Вручную: положить файлы
~/.claude/skills/shopify-setup/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/shopify-setup/
1Через Skills CLI (Vercel)
npx skills add jezweb/claude-skills --skill shopify-setup -a codex2Вручную: положить файлы
.agents/skills/shopify-setup/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add jezweb/claude-skills --skill shopify-setup -a cursor2Вручную: положить файлы
.cursor/skills/shopify-setup/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install jezweb/claude-skills shopify-setup2Вручную: положить файлы
.github/skills/shopify-setup/SKILL.md1Через Skills CLI (Vercel)
npx skills add jezweb/claude-skills --skill shopify-setup -a gemini-cli2Командой платформы
gemini skills install https://github.com/jezweb/claude-skills --path plugins/shopify/skills/shopify-setupВручную: положить файлы
.devin/skills/shopify-setup/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add jezweb/claude-skills --skill shopify-setup -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о shopify-setup
Как установить shopify-setup в Claude Code?
Выполните в терминале команду npx skills add jezweb/claude-skills --skill shopify-setup -a claude-code.
Что делает скилл shopify-setup?
Он автоматизирует проверку Shopify CLI, логин в магазин, создание приложения с токеном Admin API и проверку связи через GraphQL.
Чем Admin API токен отличается от сессии Shopify CLI?
Сессионные токены CLI быстро сгорают. Долгоживущий токен кастомного приложения формата shpat_* обеспечивает стабильное подключение для работы с товарами и контентом.
Исходный текст
SKILL.md · MIT
---
name: shopify-setup
description: "Set up Shopify CLI auth and Admin API access for a store. Install CLI, authenticate, create custom app, store access token, verify. Use whenever the user wants to connect to a Shopify store, set up Shopify API access, install Shopify CLI, or troubleshoot Shopify auth / Admin API token issues."
compatibility: claude-code-only
---
# Shopify Setup
Set up working Shopify CLI authentication and Admin API access for a store. Produces a verified API connection ready for product and content management.
## Workflow
### Step 1: Check Prerequisites
Verify the Shopify CLI is installed:
```bash
shopify version
```
If not installed:
```bash
npm install -g @shopify/cli
```
### Step 2: Authenticate with the Store
```bash
shopify auth login --store mystore.myshopify.com
```
This opens a browser for OAuth. The user must be a store owner or staff member with appropriate permissions.
After login, verify:
```bash
shopify store info
```
### Step 3: Create a Custom App for API Access
Custom apps provide stable Admin API access tokens (unlike CLI session tokens which expire).
**Check if an app already exists**: Ask the user if they have a custom app set up. If yes, skip to Step 4.
**If no custom app exists**, guide the user through creation via browser:
1. Navigate to `https://{store}.myshopify.com/admin/settings/apps/development`
2. Click **Create an app**
3. Name it (e.g. "Claude Code Integration")
4. Click **Configure Admin API scopes**
5. Enable these scopes (see `references/api-scopes.md` for details):
- `read_products`, `write_products`
- `read_content`, `write_content`
- `read_product_listings`
- `read_inventory`, `write_inventory`
- `read_files`, `write_files`
6. Click **Save** then **Install app**
7. Copy the **Admin API access token** (shown only once)
Use browser automation (Chrome MCP or playwright-cli) if the user prefers assistance navigating the admin.
### Step 4: Store the Access Token
Store the token securely. Never commit it to git.
**For project use** — create `.dev.vars`:
```
SHOPIFY_STORE=mystore.myshopify.com
SHOPIFY_ACCESS_TOKEN=shpat_xxxxxxxxxxxxxxxxxxxxx
```
Ensure `.dev.vars` is in `.gitignore`.
**For cross-project use** — store in your preferred secrets manager (environment variable, 1Password CLI, etc.).
### Step 5: Verify API Access
Test the connection with a simple GraphQL query:
```bash
curl -s https://{store}.myshopify.com/admin/api/2025-01/graphql.json \
-H "Content-Type: application/json" \
-H "X-Shopify-Access-Token: {token}" \
-d '{"query": "{ shop { name primaryDomain { url } } }"}' | jq .
```
Expected response includes the shop name and domain. If you get a 401, the token is invalid or expired — recreate the app.
### Step 6: Save Store Config
Create a `shopify.config.json` in the project root for other skills to reference:
```json
{
"store": "mystore.myshopify.com",
"apiVersion": "2025-01",
"tokenSource": ".dev.vars"
}
```
---
## Critical Patterns
### API Version
Always specify an explicit API version (e.g. `2025-01`). Using `unstable` in production will break without warning. Shopify retires API versions quarterly.
### Token Types
| Token | Format | Use |
|-------|--------|-----|
| Admin API access token | `shpat_*` | Custom apps — stable, long-lived |
| CLI session token | Short-lived | Shopify CLI commands only |
| Storefront API token | `shpca_*` | Public storefront queries |
This skill sets up **Admin API access tokens** — the right choice for product and content management.
### Rate Limits
Shopify uses a leaky bucket rate limiter:
- **REST**: 40 requests/second burst, 2/second sustained
- **GraphQL**: 1,000 cost points per second, max 2,000 points per query
For bulk operations, use the `bulkOperationRunQuery` mutation instead of looping.
---
## Reference Files
- `references/api-scopes.md` — Admin API scopes needed for product and content management
© jezweb · MIT · jezweb/claude-skills