AI Theme Workflows
This page shows how to combine the Theme Control Plane, the CLI, and the MCP server into one practical workflow.This page is the more advanced AI guide.
If you are new and want the simplest beginner path first, start with Build and Customize a Theme with AI.
Best Use Cases For AI
AI is a good fit when you want to:- inspect a large theme quickly
- find the right files before editing
- generate a new section or page scaffold
- make a focused content or layout change
- iterate with preview and validation
Recommended Setup
1. Create An API Key
Use:themes.readthemes.write
themes.read is enough. If it should scaffold and publish, add themes.write.
2. Pick Your Surface
Use one of these:- dashboard session for built-in Shoppex editing
- CLI for terminal-driven workflows
- MCP for AI tool use
CLI Workflow
Login
Inspect A Theme
Apply A Small Change
Create a JSON file with your changes:Publish
MCP Workflow
Set these environment variables before starting the MCP server:theme.inspecttheme.search_filestheme.read_filetheme.applytheme.create_sectiontheme.create_pagetheme.update_configtheme.validatetheme.previewtheme.publish
The End-To-End AI Loop
The recommended order, whether you use CLI or MCP:inspectthe themesearch_filesfor the relevant arearead_fileonly the files that matterapplya small changevalidatepreviewpublish
Workflow Examples
Update Existing Content
Change hero copy while keeping layout intact: inspect → search for the hero section → read the component file → apply a single-file patch → preview.Add A New Section
Add testimonials to the homepage: inspect available sections →create_section → update_config to wire it in → validate and preview.
Add A New Static Page
Add/about: create_page → inspect the generated route → apply content edits → validate and preview.
Start A New Theme
Create fromdefault: create → inspect → scaffold sections/pages → apply edits → validate and publish.
Prompt Patterns That Work Well
Good prompts are specific and constrained. These work well:- “Inspect this theme and list the sections I can safely edit on the homepage.”
- “Search for the hero CTA, read the relevant files, and change only the button text and color.”
- “Create a new testimonials section, wire it into the theme config, and then validate.”
Review And Safety Rules
- Use small batches
- Validate before previewing
- Preview before publishing
- Use
diffbefore final publish - Use
rollbackif a published change was wrong
accept for that reviewed draft instead of re-applying the same change manually.
Suggested Team Workflow
The designer or merchant describes the desired outcome, the AI inspects and proposes the smallest change, the control plane validates it, a human reviews the preview, and you publish after approval. That gives you speed without turning theme editing into a blind code-generation loop.Next Steps
Theme Control Plane
Learn the shared model behind dashboard, Dev API, CLI, and MCP.
Quickstart
Run a reference theme locally while you iterate.
Theme Config
Understand how settings and sections are defined.
Troubleshooting
Fix common local-development, data, and runtime issues.