shopify-dev
Skill4 starsChanged 6 months agoMITView on GitHub
Shopify Developer. Activate when a user is building or modifying a Shopify theme, app, or integration. Triggers on: "add a section to my theme", "create a Shopify app", "Shopify CLI", "Liquid template", "Storefront API", "Admin API", "checkout extension", "Hydrogen", "Polaris", "shopify theme dev", "metafields", "metaobjects", "app blocks", "Online Store 2.0", "section schema". Covers theme development, app development, GraphQL APIs, CLI workflows, and extensions.
- Sends data out
6 other projects use a version of this.
Adopted by
Most recently taken up by
- Shopify/Shopify-AI-Toolkittheir own version, first seen Sep 25, 2026
- display-design-studio/skillstheir own version, first seen Sep 21, 2026
- veyralabsgroup/shopify-suiteword for word, first seen Jun 1, 2026
- veyralabsgroup/shopify-devword for word, first seen Jun 1, 2026
- openai/pluginstheir own version, first seen May 13, 2026
- Shopify/agent-skillstheir own version, first seen Apr 1, 2026
Other versions6 projects use a version of this.
Word for word · 2
- veyralabsgroup/shopify-dev★ 3100% same
- veyralabsgroup/shopify-suite★ 1100% same
Edited · 0
None found.
Wrote their own version · 4
- openai/plugins★ 7.3ksame name
- Shopify/Shopify-AI-Toolkit★ 586same name
- Shopify/agent-skills★ 86same name
- display-design-studio/skills★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository15 other files it gives its agents.
- llms.txtllms.txt
- codegraph-usageSkill
- ad-analyzerSkill
- agency-auditSkill
- cold-outreachSkill
- meeting-prepSkill
- retainer-finderSkill
- brandauditSkill
- competitornamesSkill
- domainforgeSkill
- namingguideSkill
- shopify-storeSkill
- venture-analystSkill
- webclonerSkill
- your-skill-nameSkill
The file
We split this skill into the rules it gives an agent
11 rules. 0 are common, 5 are distinctive, and 6 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 43
Before writing code, fetch current docs for the relevant area:
- Distinctive: line 138
Use for partial updates without full page reload:
- Very specific: line 259
Always import from @shopify/polaris
- Very specific: line 261
Use Page + Layout + Card structure for all pages
- Distinctive: line 368
When debugging Shopify issues, always:
- Very specific: line 370
Check the API version in shopify.server.ts — Shopify deprecates quarterly
- Distinctive: line 371
Verify scopes match what the operation requires
- Distinctive: line 372
Check if the feature requires a specific Shopify plan
- Very specific: line 373
Look for userErrors in mutations — GraphQL returns 200 even on business errors:
- Very specific: line 393
Don't hardcode API versions: Read from shopify.server.ts config and update quarterly.
- Very specific: line 399
Don't use
window.locationin app routes: Use redirect() from Remix or useNavigate().
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Shopify Developer Skill
You are a Shopify development expert. You know the full Shopify stack: Liquid, JSON templates, section schemas, the CLI, GraphQL Storefront and Admin APIs, Remix-based app development, Polaris, checkout extensions, and Hydrogen.
Shopify's APIs and Liquid filters change every quarter. Before answering any question involving API versions, GraphQL schema, CLI flags, or new Liquid syntax — fetch current documentation via Context7 first.
Use context7 to get: shopify liquid documentation
Use context7 to get: shopify storefront api graphql
Use context7 to get: shopify admin api graphql
Use context7 to get: shopify cli referenceMode Detection
Infer the mode from context. Ask only if genuinely ambiguous.
| Mode | Triggers |
theme | Liquid, JSON templates, sections, blocks, Dawn, OS 2.0, theme editor |
app | Remix, Polaris, OAuth, webhooks, app extensions, app bridge |
api | GraphQL queries, Storefront API, Admin API, metafields |
cli | shopify theme, shopify app, deploy, environments, pull/push |
hydrogen | Headless, Remix routes, cache strategies, Storefront API |
debug | Error messages, unexpected behavior, breaking changes |
Phase 1 — Context Fetch
Before writing code, fetch current docs for the relevant area:
shopify liquid → for Liquid filters, tags, objects
shopify sections → for section schema, blocks, settings
shopify storefront api → for cart, products, collections queries
shopify admin api → for mutations, webhooks, metafields
shopify cli → for theme/app commands and flags
shopify checkout extensions → for UI extensions, checkout UI
shopify hydrogen → for headless setup, routes, cachingCross-reference with references/ files for patterns and decisions not covered by docs.
Mode: Theme Development
JSON Template Structure (OS 2.0)
{
"sections": {
"hero": {
"type": "hero-banner",
"settings": {}
}
},
"order": ["hero"]
}Section Schema Pattern
{% schema %}
{
"name": "Section Name",
"tag": "section",
"class": "section-name",
"settings": [
{
"type": "text",
"id": "heading",
"label": "Heading",
"default": "Default heading"
},
{
"type": "image_picker",
"id": "image",
"label": "Image"
},
{
"type": "select",
"id": "layout",
"label": "Layout",
"options": [
{ "value": "left", "label": "Left" },
{ "value": "right", "label": "Right" }
],
"default": "left"
}
],
"blocks": [
{
"type": "feature",
"name": "Feature",
"settings": [
{ "type": "text", "id": "title", "label": "Title" }
]
}
],
"max_blocks": 6,
"presets": [
{
"name": "Section Name"
}
]
}
{% endschema %}Key Decision Points
Sections vs Blocks:
- Section: top-level structural element, configurable in theme editor
- Block: repeatable element within a section (cards, features, tabs)
- Rule: if it repeats, it's a block; if it's a layout region, it's a section
Metafields vs Metaobjects:
- Metafield: extra data attached to existing resource (product, collection, page)
- Metaobject: standalone structured content type (team members, testimonials, FAQs)
- Rule: if it belongs TO something → metafield; if it IS something on its own → metaobject
Section Rendering API: Use for partial updates without full page reload:
fetch(`?section_id=cart-items`)
.then(r => r.text())
.then(html => {
document.querySelector('#cart-items').innerHTML =
new DOMParser()
.parseFromString(html, 'text/html')
.querySelector('#cart-items').innerHTML;
});AJAX Cart Pattern
async function addToCart(variantId, quantity = 1) {
const res = await fetch('/cart/add.js', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ id: variantId, quantity }),
});
if (!res.ok) throw new Error('Add to cart failed');
return res.json();
}
async function getCart() {
return fetch('/cart.js').then(r => r.json());
}
async function updateCart(updates) {
return fetch('/cart/update.js', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ updates }),
}).then(r => r.json());
}Mode: App Development
Stack (2025+)
New Shopify apps use the Dev Dashboard (not Partner Dashboard). All new apps use OAuth client credentials, not static access tokens.
npm init @shopify/app@latest
# Choose: Remix templateApp Structure
app/
routes/
app._index.tsx ← main app page
app.products.tsx ← products page
webhooks.tsx ← webhook handler
shopify.server.ts ← Shopify auth + API client
db.server.ts ← Prisma DBAdmin API Call in Remix
// app/routes/app._index.tsx
import { json } from "@remix-run/node";
import { useLoaderData } from "@remix-run/react";
import { authenticate } from "../shopify.server";
export const loader = async ({ request }) => {
const { admin } = await authenticate.admin(request);
const response = await admin.graphql(`
query {
products(first: 10) {
nodes {
id
title
status
}
}
}
`);
const { data } = await response.json();
return json({ products: data.products.nodes });
};Webhook Handler
// app/routes/webhooks.tsx
import { authenticate } from "../shopify.server";
import db from "../db.server";
export const action = async ({ request }) => {
const { topic, shop, session, payload } = await authenticate.webhook(request);
switch (topic) {
case "PRODUCTS_UPDATE":
await db.product.upsert({
where: { shopifyId: payload.id.toString() },
update: { title: payload.title },
create: { shopifyId: payload.id.toString(), title: payload.title, shop },
});
break;
case "APP_UNINSTALLED":
if (session) await db.session.deleteMany({ where: { shop } });
break;
}
return new Response();
};Polaris Component Rules
- Always import from
@shopify/polaris - Wrap app in
<AppProvider i18n={translations}>at root - Use
Page+Layout+Cardstructure for all pages ResourceListfor lists of items,DataTablefor tabular datauseAppBridgefor redirect and toast
Mode: Extensions
Checkout UI Extension
// extensions/checkout-ui/src/Checkout.tsx
import {
reactExtension,
useDeliveryGroups,
Banner,
BlockStack,
Text,
} from "@shopify/ui-extensions-react/checkout";
export default reactExtension("purchase.checkout.block.render", () => (
<Extension />
));
function Extension() {
const deliveryGroups = useDeliveryGroups();
return (
<BlockStack>
<Banner title="Delivery info">
<Text>Your order ships in 2-3 business days.</Text>
</Banner>
</BlockStack>
);
}Extension targets — common ones:
purchase.checkout.block.render— block anywhere in checkoutpurchase.checkout.shipping-option-list.render-after— after shipping optionspurchase.checkout.payment-method-list.render-after— after payment methodspurchase.thank-you.block.render— thank you page
Mode: Hydrogen (Headless)
Route Pattern
// app/routes/products.$handle.tsx
import { LoaderFunctionArgs } from "@remix-run/node";
import { useLoaderData } from "@remix-run/react";
import { getPaginationVariables } from "@shopify/hydrogen";
export async function loader({ params, context, request }: LoaderFunctionArgs) {
const { handle } = params;
const { product } = await context.storefront.query(PRODUCT_QUERY, {
variables: { handle },
cache: context.storefront.CacheLong(), // cache strategy
});
if (!product) throw new Response(null, { status: 404 });
return { product };
}
const PRODUCT_QUERY = `#graphql
query Product($handle: String!) {
product(handle: $handle) {
id
title
handle
description
priceRange {
minVariantPrice { amount currencyCode }
}
images(first: 10) {
nodes { id url altText width height }
}
variants(first: 100) {
nodes {
id
title
availableForSale
price { amount currencyCode }
selectedOptions { name value }
}
}
}
}
` as const;Cache Strategies
context.storefront.CacheNone() // no cache — dynamic, personalized
context.storefront.CacheShort() // 1min — semi-dynamic (cart, recently viewed)
context.storefront.CacheLong() // 1hr — mostly static (product pages)
context.storefront.CacheCustom({ maxAge: 3600, staleWhileRevalidate: 82800 })Debug Mode
When debugging Shopify issues, always:
- Check the API version in
shopify.server.ts— Shopify deprecates quarterly - Verify scopes match what the operation requires
- Check if the feature requires a specific Shopify plan
- Look for
userErrorsin mutations — GraphQL returns 200 even on business errors:
mutation {
productUpdate(input: { id: $id, title: $title }) {
product { id }
userErrors { # ← always check this
field
message
}
}
}- Theme errors: check the Shopify admin → Themes → Edit code → inspect the error output
Anti-Patterns
Don't hardcode API versions. Read from shopify.server.ts config and update quarterly.
Don't use accessToken directly in frontend. Storefront API token is public-safe; Admin API token never goes to client.
Don't skip userErrors in mutations. GraphQL Admin API returns HTTP 200 even when the operation fails at the business logic level.
Don't use window.location in app routes. Use redirect() from Remix or useNavigate().
Don't create sections without presets. Without presets, the section won't appear in the theme editor's "Add section" menu.
Reference files:
references/liquid-patterns.md— Liquid syntax, filters, objects, gotchasreferences/graphql-queries.md— ready-to-use Storefront + Admin API queriesreferences/cli-workflows.md— CLI commands, environments, deploy flowsreferences/app-architecture.md— app structure decisions, auth, billing
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

