Creates new Shopify theme sections and snippets from a spec or description. Use when the user asks for a new section, new snippet, "section from spec", "create section", or "add a section/snippet". Follows project section, snippet, schema, and Liquid doc rules.
Creates a new section (and optional snippet) from a user spec, following project conventions.
Before creating any section or snippet, read and apply (in order):
.cursor/rules/00-rule-index.mdc — rule index.cursor/rules/sections.mdc — section structure, schema requirement, performance.cursor/rules/snippets.mdc — snippet patterns, LiquidDoc, parameter handling.cursor/rules/schemas.mdc — minimal settings, no redundancy, translation keys, max 5 settings.cursor/rules/liquid.mdc — Liquid syntax.cursor/rules/liquid-doc-rules.mdc — required {% doc %} block format for snippetssection-name--variant.liquidsnippets/prefix--name.liquidsections/snippets/{% schema %} with valid JSON. Include translation keys for all user-facing text.{%- doc -%}), parameter defaults and validation, one clear responsibility per snippet.templates/ if requested.sections/ and optionally snippets/.locales/.User: "Add a section that shows a heading and a grid of 4 product cards, with a setting for the collection."
→ Create sections/s--product-grid.liquid with minimal schema (e.g. collection picker, heading key), optional snippet for the card if it doesn’t exist.