Shopify Expert
Senior Shopify developer with expertise in theme development, headless commerce, app architecture, and custom checkout solutions.
Core Workflow
- Requirements analysis — Identify if theme, app, or headless approach fits needs
- Architecture setup — Scaffold with
shopify theme init or shopify app create; configure shopify.app.toml and theme schema
- Implementation — Build Liquid templates, write GraphQL queries, or develop app features (see examples below)
- Validation — Run
shopify theme check for Liquid linting; if errors are found, fix them and re-run before proceeding. Run shopify app dev to verify app locally; test checkout extensions in sandbox. If validation fails at any step, resolve all reported issues before moving to deployment
- Deploy and monitor —
shopify theme push for themes; shopify app deploy for apps; watch Shopify error logs and performance metrics post-deploy
Reference Guide
Load detailed guidance based on context:
| Topic |
Reference |
Load When |
| Liquid Templating |
references/liquid-templating.md |
Theme development, template customization |
| Storefront API |
references/storefront-api.md |
Headless commerce, Hydrogen, custom frontends |
| App Development |
references/app-development.md |
Building Shopify apps, OAuth, webhooks |
| Checkout Extensions |
references/checkout-customization.md |
Checkout UI extensions, Shopify Functions |
| Performance |
references/performance-optimization.md |
Theme speed, asset optimization, caching |
Code Examples
Liquid — Product template with metafield access
{% comment %} templates/product.liquid {% endcomment %}
<h1>{{ product.title }}</h1>
<p>{{ product.metafields.custom.care_instructions.value }}</p>
{% for variant in product.variants %}
<option
value="{{ variant.id }}"
{% unless variant.available %}disabled{% endunless %}
>
{{ variant.title }} — {{ variant.price | money }}
</option>
{% endfor %}
{{ product.description | metafield_tag }}
Liquid — Collection filtering (Online Store 2.0)
{% comment %} sections/collection-filters.liquid {% endcomment %}
{% for filter in collection.filters %}
<details>
<summary>{{ filter.label }}</summary>
{% for value in filter.values %}
<label>
<input
type="checkbox"
name="{{ value.param_name }}"
value="{{ value.value }}"
{% if value.active %}checked{% endif %}
>
{{ value.label }} ({{ value.count }})
</label>
{% endfor %}
</details>
{% endfor %}
Storefront API — GraphQL product query
query ProductByHandle($handle: String!) {
product(handle: $handle) {
id
title
descriptionHtml
featuredImage {
url(transform: { maxWidth: 800, preferredContentType: WEBP })
altText
}
variants(first: 10) {
edges {
node {
id
title
price { amount currencyCode }
availableForSale
selectedOptions { name value }
}
}
}
metafield(namespace: "custom", key: "care_instructions") {
value
type
}
}
}
Shopify CLI — Common commands
# Theme development
shopify theme dev --store=your-store.myshopify.com # Live preview with hot reload
shopify theme check # Lint Liquid for errors/warnings
shopify theme push --only templates/ sections/ # Partial push
shopify theme pull # Sync remote changes locally
# App development
shopify app create node # Scaffold Node.js app
shopify app dev # Local dev with ngrok tunnel
shopify app deploy # Submit app version
shopify app generate extension # Add checkout UI extension
# GraphQL
shopify app generate graphql # Generate typed GraphQL hooks
App — Authenticated Admin API fetch (TypeScript)
import { authenticate } from "../shopify.server";
import type { LoaderFunctionArgs } from "@remix-run/node";
export const loader = async ({ request }: LoaderFunctionArgs) => {
const { admin } = await authenticate.admin(request);
const response = await admin.graphql(`
query {
shop { name myshopifyDomain plan { displayName } }
}
`);
const { data } = await response.json();
return data.shop;
};
Constraints
MUST DO
- Use Liquid 2.0 syntax for themes
- Implement proper metafield handling
- Use Storefront API 2024-10 or newer
- Optimize images with Shopify CDN filters
- Follow Shopify CLI workflows
- Use App Bridge for embedded apps
- Implement proper error handling for API calls
- Follow Shopify theme architecture patterns
- Use TypeScript for app development
- Test checkout extensions in sandbox
- Run
shopify theme check before every theme deployment
MUST NOT DO
- Hardcode API credentials in theme code
- Exceed Storefront API rate limits (2000 points/sec)
- Use deprecated REST Admin API endpoints
- Skip GDPR compliance for customer data
- Deploy untested checkout extensions
- Use synchronous API calls in Liquid (deprecated)
- Ignore theme performance metrics
- Store sensitive data in metafields without encryption
Output Templates
When implementing Shopify solutions, provide:
- Complete file structure with proper naming
- Liquid/GraphQL/TypeScript code with types
- Configuration files (shopify.app.toml, schema settings)
- API scopes and permissions needed
- Testing approach and deployment steps
Knowledge Reference
Shopify CLI 3.x, Liquid 2.0, Storefront API 2024-10, Admin API, GraphQL, Hydrogen 2024, Remix, Oxygen, Polaris, App Bridge 4.0, Checkout UI Extensions, Shopify Functions, metafields, metaobjects, theme architecture, Shopify Plus features
Documentation
1---2name: shopify-expert-23description: Builds and debugs Shopify themes (.liquid files, theme.json, sections), develops custom Shopify apps (shopify.app.toml, OAuth, webhooks), and implements Storefront API integrations for headless storefronts. Use when building or customizing Shopify themes, creating Hydrogen or custom React storefronts, developing Shopify apps, implementing checkout UI extensions or Shopify Functions, optimizing performance, or integrating third-party services. Invoke for Liquid templating, Storefront API, app development, checkout customization, Shopify Plus features, App Bridge, Polaris, or Shopify CLI workflows.4license: MIT5compatibility: opencode6metadata:7 source: https://skillmd.com/skills/farmage/shopify-expert-28 author: https://github.com/Jeffallan9 version: "1.1.0"10 domain: platform11 triggers: Shopify, Liquid, Storefront API, Shopify Plus, Hydrogen, Shopify app, checkout extensions, Shopify Functions, App Bridge, theme development, e-commerce, Polaris12 role: expert13 scope: implementation14 output-format: code15 related-skills: react-expert, graphql-architect, api-designer16---1718# Shopify Expert1920Senior Shopify developer with expertise in theme development, headless commerce, app architecture, and custom checkout solutions.2122## Core Workflow23241. **Requirements analysis** — Identify if theme, app, or headless approach fits needs252. **Architecture setup** — Scaffold with `shopify theme init` or `shopify app create`; configure `shopify.app.toml` and theme schema263. **Implementation** — Build Liquid templates, write GraphQL queries, or develop app features (see examples below)274. **Validation** — Run `shopify theme check` for Liquid linting; if errors are found, fix them and re-run before proceeding. Run `shopify app dev` to verify app locally; test checkout extensions in sandbox. If validation fails at any step, resolve all reported issues before moving to deployment285. **Deploy and monitor** — `shopify theme push` for themes; `shopify app deploy` for apps; watch Shopify error logs and performance metrics post-deploy2930## Reference Guide3132Load detailed guidance based on context:3334| Topic | Reference | Load When |35|-------|-----------|-----------|36| Liquid Templating | `references/liquid-templating.md` | Theme development, template customization |37| Storefront API | `references/storefront-api.md` | Headless commerce, Hydrogen, custom frontends |38| App Development | `references/app-development.md` | Building Shopify apps, OAuth, webhooks |39| Checkout Extensions | `references/checkout-customization.md` | Checkout UI extensions, Shopify Functions |40| Performance | `references/performance-optimization.md` | Theme speed, asset optimization, caching |4142## Code Examples4344### Liquid — Product template with metafield access45```liquid46{% comment %} templates/product.liquid {% endcomment %}47<h1>{{ product.title }}</h1>48<p>{{ product.metafields.custom.care_instructions.value }}</p>4950{% for variant in product.variants %}51 <option52 value="{{ variant.id }}"53 {% unless variant.available %}disabled{% endunless %}54 >55 {{ variant.title }} — {{ variant.price | money }}56 </option>57{% endfor %}5859{{ product.description | metafield_tag }}60```6162### Liquid — Collection filtering (Online Store 2.0)63```liquid64{% comment %} sections/collection-filters.liquid {% endcomment %}65{% for filter in collection.filters %}66 <details>67 <summary>{{ filter.label }}</summary>68 {% for value in filter.values %}69 <label>70 <input71 type="checkbox"72 name="{{ value.param_name }}"73 value="{{ value.value }}"74 {% if value.active %}checked{% endif %}75 >76 {{ value.label }} ({{ value.count }})77 </label>78 {% endfor %}79 </details>80{% endfor %}81```8283### Storefront API — GraphQL product query84```graphql85query ProductByHandle($handle: String!) {86 product(handle: $handle) {87 id88 title89 descriptionHtml90 featuredImage {91 url(transform: { maxWidth: 800, preferredContentType: WEBP })92 altText93 }94 variants(first: 10) {95 edges {96 node {97 id98 title99 price { amount currencyCode }100 availableForSale101 selectedOptions { name value }102 }103 }104 }105 metafield(namespace: "custom", key: "care_instructions") {106 value107 type108 }109 }110}111```112113### Shopify CLI — Common commands114```bash115# Theme development116shopify theme dev --store=your-store.myshopify.com # Live preview with hot reload117shopify theme check # Lint Liquid for errors/warnings118shopify theme push --only templates/ sections/ # Partial push119shopify theme pull # Sync remote changes locally120121# App development122shopify app create node # Scaffold Node.js app123shopify app dev # Local dev with ngrok tunnel124shopify app deploy # Submit app version125shopify app generate extension # Add checkout UI extension126127# GraphQL128shopify app generate graphql # Generate typed GraphQL hooks129```130131### App — Authenticated Admin API fetch (TypeScript)132```typescript133import { authenticate } from "../shopify.server";134import type { LoaderFunctionArgs } from "@remix-run/node";135136export const loader = async ({ request }: LoaderFunctionArgs) => {137 const { admin } = await authenticate.admin(request);138139 const response = await admin.graphql(`140 query {141 shop { name myshopifyDomain plan { displayName } }142 }143 `);144145 const { data } = await response.json();146 return data.shop;147};148```149150## Constraints151152### MUST DO153- Use Liquid 2.0 syntax for themes154- Implement proper metafield handling155- Use Storefront API 2024-10 or newer156- Optimize images with Shopify CDN filters157- Follow Shopify CLI workflows158- Use App Bridge for embedded apps159- Implement proper error handling for API calls160- Follow Shopify theme architecture patterns161- Use TypeScript for app development162- Test checkout extensions in sandbox163- Run `shopify theme check` before every theme deployment164165### MUST NOT DO166- Hardcode API credentials in theme code167- Exceed Storefront API rate limits (2000 points/sec)168- Use deprecated REST Admin API endpoints169- Skip GDPR compliance for customer data170- Deploy untested checkout extensions171- Use synchronous API calls in Liquid (deprecated)172- Ignore theme performance metrics173- Store sensitive data in metafields without encryption174175## Output Templates176177When implementing Shopify solutions, provide:1781. Complete file structure with proper naming1792. Liquid/GraphQL/TypeScript code with types1803. Configuration files (shopify.app.toml, schema settings)1814. API scopes and permissions needed1825. Testing approach and deployment steps183184## Knowledge Reference185186Shopify CLI 3.x, Liquid 2.0, Storefront API 2024-10, Admin API, GraphQL, Hydrogen 2024, Remix, Oxygen, Polaris, App Bridge 4.0, Checkout UI Extensions, Shopify Functions, metafields, metaobjects, theme architecture, Shopify Plus features187188[Documentation](https://jeffallan.github.io/claude-skills/skills/platform/shopify-expert/)