Handoff theme documentation

Checks without a terminal

Every check here is a read-only query for the Shopify GraphQL Admin API. An AI assistant that only has a Shopify connector can run them as they are. Each check says what to read in the answer and how to fix what is wrong.

Rules for the assistant:

The queries were validated on 23/11/2026 against the Admin API of a development store. Required access scopes: read_themes, read_products, read_metaobject_definitions, read_content, read_online_store_navigation, read_shipping, and read_legal_policies for check 5 (read successfully through a Shopify connector on 24/11/2026).

What these checks cannot see: the page as a browser receives it (structured data, content without JavaScript). That needs the scripts of the theme repository (setup/checks/run.mjs (in the theme repository)) or Google's Rich Results Test. Step 6 of the setup guide says when.

Check 1. Which theme is being configured

{ themes(first: 20) { nodes { id name role } } }

Read: the theme you configure must have the role UNPUBLISHED. The live theme has the role MAIN.

Fix: if the only copy of the theme is MAIN, ask the merchant to duplicate it in the Shopify admin (Online Store, Themes, Duplicate) and work on the copy. Never write to the MAIN theme without the merchant's written yes.

Check 2. Theme settings: delivery, returns, legal identity

Replace the id with the id of the theme from check 1.

{
  theme(id: "gid://shopify/OnlineStoreTheme/THEME_ID") {
    name
    role
    files(filenames: ["config/settings_data.json"]) {
      nodes { filename body { ... on OnlineStoreThemeFileBodyText { content } } }
    }
  }
}

Read: content is a JSON file (it may start with a comment block, skip it). Look in the current object. When current is a text, it names a preset: the values are then in presets[<that name>].

Group Keys that must be filled Passes when
Delivery shipping_countries, shipping_rate, shipping_transit_days_max all three are present and not empty
Returns returns_days present (0 means returns are not accepted)
Legal identity brand_legal_name, brand_description, brand_email, brand_address_street, brand_address_city, brand_address_country_code all are present and not empty

Fix: fill the missing settings from the store brief (store-brief.json). Write them in config/settings_data.json of the unpublished theme (themeFilesUpsert), or ask the merchant to enter them in the theme editor (Theme settings, groups Shipping, Returns, Brand identity). Leave a setting empty when the brief has no verified value: an empty setting shows nothing, a guessed one shows something false.

Check 3. Metafield and metaobject definitions

{
  product: metafieldDefinitions(first: 50, ownerType: PRODUCT, namespace: "custom") { nodes { key type { name } access { storefront } } }
  collection: metafieldDefinitions(first: 50, ownerType: COLLECTION, namespace: "custom") { nodes { key type { name } access { storefront } } }
  article: metafieldDefinitions(first: 50, ownerType: ARTICLE, namespace: "custom") { nodes { key type { name } access { storefront } } }
  page: metafieldDefinitions(first: 50, ownerType: PAGE, namespace: "custom") { nodes { key type { name } access { storefront } } }
  metaobjectDefinitions(first: 50) { nodes { type access { storefront } fieldDefinitions { key type { name } } } }
}

Read: compare with metafields.json. The check passes when every definition of that file exists with the same type, and every one has access.storefront equal to PUBLIC_READ.

Fix: create what is missing as the kit readme explains (metaobject definitions first). A definition without storefront access is the most common cause of a block that stays empty: update it with metafieldDefinitionUpdate (or metaobjectDefinitionUpdate) and access: { storefront: PUBLIC_READ }.

Check 4. Product facts

{
  products(first: 50, query: "status:active") {
    nodes {
      title
      handle
      category { fullName }
      media(first: 10) { nodes { alt mediaContentType } }
      variants(first: 5) { nodes { sku barcode } }
      quickAnswer: metafield(namespace: "custom", key: "quick_answer") { value }
      faq: metafield(namespace: "custom", key: "faq") { value }
      whoItsFor: metafield(namespace: "custom", key: "who_its_for") { value }
      compatibility: metafield(namespace: "custom", key: "compatibility") { value }
      brand: metafield(namespace: "custom", key: "brand") { value }
      ratingCount: metafield(namespace: "reviews", key: "rating_count") { value }
    }
    pageInfo { hasNextPage endCursor }
  }
}

Read, for each product:

Field Passes when If not
category not null choose the most precise category of Shopify's taxonomy
media[].alt every image has a text that describes it, different from the product title write one sentence per image that says what it shows
quickAnswer not null write it from the product page and the manufacturer documents
faq not null create faq_item entries from real customer questions
whoItsFor not null write it from the specifications
compatibility not null for a product that fits some models and not others create compatibility_item entries from the manufacturer's list. Status ask when the list does not say
variants[].sku present optional, tell the merchant: a SKU helps merchant listings
variants[].barcode present when the product has a GTIN never invent a barcode
brand present only when the product has a real brand leave empty otherwise
ratingCount information only null means no reviews app has written a rating: the theme then shows and declares no rating. Never write this metafield yourself

A missing fact is not an error when the merchant has no source for it. Report it as "left empty: no source", not as failed.

Check 5. Delivery and returns say the same thing everywhere

{
  shop {
    name
    primaryDomain { url }
    shopPolicies { type url body }
  }
  deliveryProfiles(first: 5) {
    nodes {
      name
      default
      profileLocationGroups {
        locationGroupZones(first: 10) {
          nodes {
            zone { name countries { code { countryCode } } }
            methodDefinitions(first: 10) {
              nodes { name active rateProvider { ... on DeliveryRateDefinition { price { amount currencyCode } } } }
            }
          }
        }
      }
    }
  }
}

Read three sources and compare them with the theme settings of check 2:

Theme setting Must match
shipping_countries the countries of the zones of the default delivery profile
shipping_rate, shipping_free_threshold the price of the active rate of that zone, and the rate that applies above the threshold
shipping_handling_days_*, shipping_transit_days_* the times written in the policy of type SHIPPING_POLICY
returns_days, returns_fees, returns_method the policy of type REFUND_POLICY

The check passes when no number differs. A policy of type REFUND_POLICY and one of type SHIPPING_POLICY must exist.

Fix: never pick the value you prefer. Show the merchant the two values that disagree and ask which one is true, then correct the other source.

Check 6. Collections

{
  collections(first: 50) {
    nodes {
      title
      handle
      descriptionHtml
      productsCount { count }
      buyingGuide: metafield(namespace: "custom", key: "buying_guide") { value }
    }
    pageInfo { hasNextPage endCursor }
  }
}

Read: for each collection that is in a menu (check 8), descriptionHtml is not empty and buyingGuide is not null. A collection with productsCount.count equal to 0 should not be in a menu.

Fix: write the description (two sentences) and the buying guide (three to five sentences on how to choose among these products) from the product pages only.

Check 7. Guides

{
  articles(first: 50) {
    nodes {
      title
      handle
      isPublished
      summary
      blog { title handle }
      faq: metafield(namespace: "custom", key: "faq") { value }
      relatedProducts: metafield(namespace: "custom", key: "related_products") { value }
    }
    pageInfo { hasNextPage endCursor }
  }
}

Read: for each guide, summary is not empty (the theme shows it in bold as the short answer) and relatedProducts lists the products the guide names. A guide stays unpublished (isPublished: false) until the merchant has read it.

Fix: write the summary as one or two sentences that answer the question in the title.

Check 8. Menus

{ menus(first: 10) { nodes { handle title items { title url items { title url items { title url } } } } } }

Read: a menu with the handle main-menu and one with the handle footer exist and have items. No item points to an empty collection or a missing page. The main menu has three levels at most. The footer menu links to the contact page and to the policies the store has.

Fix: add or correct the items with menuUpdate. Use links to resources (collection, page, blog), not typed addresses: the theme marks the current page only for resource links.

What to send the merchant at the end

One table with the eight checks, then the list of facts left empty because no source exists, then the one thing the merchant must do alone: open the theme editor on a product, and read the Readiness panel in the corner of the preview.