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
1---
2name: shopify-expert
3description: 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: MIT
5metadata:
6 source: https://skillmd.com/skills/aibot88/shopify-expert
7 author: https://github.com/Jeffallan
8 version: "1.1.0"
9 domain: platform
10 triggers: Shopify, Liquid, Storefront API, Shopify Plus, Hydrogen, Shopify app, checkout extensions, Shopify Functions, App Bridge, theme development, e-commerce, Polaris
11 role: expert
12 scope: implementation
13 output-format: code
14 related-skills: react-expert, graphql-architect, api-designer
15---
16
17# Shopify Expert
18
19Senior Shopify developer with expertise in theme development, headless commerce, app architecture, and custom checkout solutions.
20
21## Core Workflow
22
231. **Requirements analysis** — Identify if theme, app, or headless approach fits needs
242. **Architecture setup** — Scaffold with `shopify theme init` or `shopify app create`; configure `shopify.app.toml` and theme schema
253. **Implementation** — Build Liquid templates, write GraphQL queries, or develop app features (see examples below)
264. **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
275. **Deploy and monitor** — `shopify theme push` for themes; `shopify app deploy` for apps; watch Shopify error logs and performance metrics post-deploy
28
29## Reference Guide
30
31Load detailed guidance based on context:
32
33| Topic | Reference | Load When |
34|-------|-----------|-----------|
35| Liquid Templating | `references/liquid-templating.md` | Theme development, template customization |
36| Storefront API | `references/storefront-api.md` | Headless commerce, Hydrogen, custom frontends |
37| App Development | `references/app-development.md` | Building Shopify apps, OAuth, webhooks |
38| Checkout Extensions | `references/checkout-customization.md` | Checkout UI extensions, Shopify Functions |
39| Performance | `references/performance-optimization.md` | Theme speed, asset optimization, caching |
40
41## Code Examples
42
43### Liquid — Product template with metafield access
44```liquid
45{% comment %} templates/product.liquid {% endcomment %}
46<h1>{{ product.title }}</h1>
47<p>{{ product.metafields.custom.care_instructions.value }}</p>
48
49{% for variant in product.variants %}
50 <option
51 value="{{ variant.id }}"
52 {% unless variant.available %}disabled{% endunless %}
53 >
54 {{ variant.title }} — {{ variant.price | money }}
55 </option>
56{% endfor %}
57
58{{ product.description | metafield_tag }}
59```
60
61### Liquid — Collection filtering (Online Store 2.0)
62```liquid
63{% comment %} sections/collection-filters.liquid {% endcomment %}
64{% for filter in collection.filters %}
65 <details>
66 <summary>{{ filter.label }}</summary>
67 {% for value in filter.values %}
68 <label>
69 <input
70 type="checkbox"
71 name="{{ value.param_name }}"
72 value="{{ value.value }}"
73 {% if value.active %}checked{% endif %}
74 >
75 {{ value.label }} ({{ value.count }})
76 </label>
77 {% endfor %}
78 </details>
79{% endfor %}
80```
81
82### Storefront API — GraphQL product query
83```graphql
84query ProductByHandle($handle: String!) {
85 product(handle: $handle) {
86 id
87 title
88 descriptionHtml
89 featuredImage {
90 url(transform: { maxWidth: 800, preferredContentType: WEBP })
91 altText
92 }
93 variants(first: 10) {
94 edges {
95 node {
96 id
97 title
98 price { amount currencyCode }
99 availableForSale
100 selectedOptions { name value }
101 }
102 }
103 }
104 metafield(namespace: "custom", key: "care_instructions") {
105 value
106 type
107 }
108 }
109}
110```
111
112### Shopify CLI — Common commands
113```bash
114# Theme development
115shopify theme dev --store=your-store.myshopify.com # Live preview with hot reload
116shopify theme check # Lint Liquid for errors/warnings
117shopify theme push --only templates/ sections/ # Partial push
118shopify theme pull # Sync remote changes locally
119
120# App development
121shopify app create node # Scaffold Node.js app
122shopify app dev # Local dev with ngrok tunnel
123shopify app deploy # Submit app version
124shopify app generate extension # Add checkout UI extension
125
126# GraphQL
127shopify app generate graphql # Generate typed GraphQL hooks
128```
129
130### App — Authenticated Admin API fetch (TypeScript)
131```typescript
132import { authenticate } from "../shopify.server";
133import type { LoaderFunctionArgs } from "@remix-run/node";
134
135export const loader = async ({ request }: LoaderFunctionArgs) => {
136 const { admin } = await authenticate.admin(request);
137
138 const response = await admin.graphql(`
139 query {
140 shop { name myshopifyDomain plan { displayName } }
141 }
142 `);
143
144 const { data } = await response.json();
145 return data.shop;
146};
147```
148
149## Constraints
150
151### MUST DO
152- Use Liquid 2.0 syntax for themes
153- Implement proper metafield handling
154- Use Storefront API 2024-10 or newer
155- Optimize images with Shopify CDN filters
156- Follow Shopify CLI workflows
157- Use App Bridge for embedded apps
158- Implement proper error handling for API calls
159- Follow Shopify theme architecture patterns
160- Use TypeScript for app development
161- Test checkout extensions in sandbox
162- Run `shopify theme check` before every theme deployment
163
164### MUST NOT DO
165- Hardcode API credentials in theme code
166- Exceed Storefront API rate limits (2000 points/sec)
167- Use deprecated REST Admin API endpoints
168- Skip GDPR compliance for customer data
169- Deploy untested checkout extensions
170- Use synchronous API calls in Liquid (deprecated)
171- Ignore theme performance metrics
172- Store sensitive data in metafields without encryption
173
174## Output Templates
175
176When implementing Shopify solutions, provide:
1771. Complete file structure with proper naming
1782. Liquid/GraphQL/TypeScript code with types
1793. Configuration files (shopify.app.toml, schema settings)
1804. API scopes and permissions needed
1815. Testing approach and deployment steps
182
183## Knowledge Reference
184
185Shopify 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