Which path to choose
Both paths use the ThemeDocument contract. Neither path uploads executable theme source for an Easy theme.
Read Advanced styling for Easy themes before you ask AI to add CSS or Custom HTML.
Edit a local checkout with AI
Use the local checkout for a document-authoritative Easy theme. A catalog theme has a read-only checkout because Builder settings remain its source of truth.- Pull the theme into an empty directory.
- Open the directory in Claude Code, Cursor, Codex, or another AI tool.
- Ask the tool to read the generated
AGENTS.mdbefore it changes files. - Start the live preview.
- Ask for one focused change.
- Review the local diff and the live preview.
- Push the draft, then publish its recorded revision.
theme dev reloads the hosted preview after each valid file change.
If another editor saves first, it stops with a conflict instead of replacing that change.
Read the Theme CLI guide for checkout files, revision conflicts, scopes, and command details.
Edit through MCP
The MCP path uses this loop:Connect your AI client
- Choose the theme you want to edit in Store → Themes.
- Open its ⋯ menu and select Edit with AI.
- Create a scoped key for that theme and follow the generated setup commands for your AI client.
Two provenance workflows
The handoff response tells the assistant which workflow to use, throughdocument_provenance,
mcp_tools, and instructions:
settings_derivedis the normal workflow for hosted themes. The assistant edits Builder settings, throughtheme_settings_getandtheme_settings_update.document_authoritativeis used for ThemeDocument imports and rebuilds. The assistant edits the complete saved ThemeDocument, throughget_theme_documentandsave_theme_document.
publish_theme_document. The tool description repeats this
mapping. The assistant must follow the provenance instead of trying the document save flow for
every theme.
Make a focused change
Ask the assistant to inspect the theme before editing:- “Change the homepage hero heading and keep the existing buttons.”
- “Add an FAQ block after the product grid.”
- “Use the current primary color for collection-card links.”
Save a settings-derived hosted theme
Forsettings_derived themes, the assistant must:
- Call
theme_settings_getand change the returned Builder settings. - Call
theme_settings_updatewith the changed settings and the revision from the read unchanged. The tool increments the revision for the update. - Review the saved result and keep the Builder revision returned by the update.
- Call
publish_theme_documentwith that Builder revision asexpected_revision.
save_theme_document for a settings_derived theme. That workflow intentionally
returns 409 because Builder settings are the source of truth.
Save a document-authoritative theme
For adocument_authoritative import or rebuild, the assistant must:
- Call
get_theme_documentand change the complete ThemeDocument it returns. - Call
save_theme_documentwith the read revision asexpected_revision. - Review the saved result and keep the new ThemeDocument revision returned by the save.
- Call
publish_theme_documentwith that new revision asexpected_revision.
Good follow-up prompts
- “Add an FAQ block after the product grid, using the existing spacing.”
- “Use the current primary color for collection-card links.”
- “List the exact settings you changed and the saved revision without publishing.”