AI-Assisted Development
TL;DR: How we use Cursor and Claude Code, and how we go from Figma to shipped code.
Most of our theme code is written with help from an AI coding tool, like Cursor, Claude Code, or GitHub Copilot. This section shows you how to use these tools well.
We’ll start with the basic words you need to know, like agent, MCP, skill, command, subagent, and plugin. Don’t worry if these sound strange right now, we’ll explain each one in plain English.
After that, you’ll learn how to keep every tool’s rules the same, and how to make sure the AI writes real Liquid code instead of guessing. Liquid is the templating language Shopify themes use to display data on a page. You’ll also see how to work with Figma designs directly, turn a Figma design into working code, and automate that process so the messy parts stay out of your way. Last, you’ll learn how to write prompts that get good results on the first try.
What’s on this page group
Section titled “What’s on this page group”- AI Coding Concepts (Agents, MCP, Skills, Commands, Plugins): the basic words used through the rest of this section. Start here if any of them are new to you.
- Managing & Amending AI Rules: how to change AGENTS.md safely over time. (For the initial setup, see Setting Up AI Rules in Getting Started.)
- Shopify’s Official AI Toolkit: Shopify’s own tool that helps the AI write real, working Liquid instead of guessing.
- Figma MCP & Dev Mode: how to give Cursor or Claude Code real design data, not just a screenshot.
- Figma to Code Workflow: our repeatable steps, plan, build, check, fix, report.
- Claude Code Custom Commands: how we turn those steps into one command,
/figma-to-liquid. - Claude Code Subagents: meet our
theme-check-fixerhelper, which handles the messy cleanup step on its own. - Claude Code Hooks & the Feature Pipeline:
/figma-to-feature, a heavier, hook-gated pipeline that won’t write theme code until a plan is approved, and runs full QA before calling a feature done. - Writing Prompts That Work: how to ask for code in a way that gets good results.
Why this section exists
Section titled “Why this section exists”AI tools are a big help when you build Shopify themes. But they also bring two real risks, and you should know about both before you start relying on them.
- They tend to copy what’s most common online. A lot of that code is old, from the Dawn era of Shopify themes (things like
{% include %}or blocks written inline). If you don’t guide the AI, it will happily write code that looks fine on the surface but uses patterns we don’t want. - They can copy patterns straight from public theme code, including Horizon and Dawn. These are themes we’re specifically not allowed to copy from (see Scaffolding From Horizon). This isn’t some rare edge case. It’s a real risk, and it’s the reason we always review AI-written code with this in mind.
The pages in this section help you handle both risks. We use rule files to point the AI toward our own rules and style. This includes Shopify’s own AI Toolkit, a tool that makes sure the AI’s code is based on real platform docs, not guesses. Even with all that in place, we still review the code by hand, in case the rules aren’t enough on their own.
Do / Don’t
Section titled “Do / Don’t”| ✅ Do | ❌ Don’t |
|---|---|
| Set up your AI tool’s rule files (see Setting Up AI Rules in Getting Started) before you write your first line of Solis code with it. If you add the rules after the tool has already picked up bad habits in a session, they work much less well than if you’d set them up first. | Thinking rule files are enough on their own, and skipping code review on AI-written pull requests. Rules guide the AI, but they don’t guarantee it followed them. |
| Treat every AI suggestion like a first draft from a fast but new teammate. It’s useful, but never merge it without reading it first. | Not noticing when AI code falls back to old, Dawn-era patterns, just because it still works. It runs fine, but it’s not how we build things here, and it makes the codebase less consistent over time. |
| If AI-written code looks a lot like a pattern from a well-known theme, treat that as something worth checking. Don’t just brush it off. | Skipping edge-case testing just because “the AI wrote it.” AI-written sections break on empty or very long content just as often as a person’s first draft. Sometimes they break even more, since the AI can’t see your real merchant data. |
Further reading
Section titled “Further reading”- Shopify theme architecture (shopify.dev)