shopify-metafields

shopify-metafields is a skill for Claude Code, Codex from finsilabs/awesome-ecommerce-skills. It costs 33 tokens per session (2,661 once invoked), scanned A, original, MIT.

A guide to Shopify metafields, which are typed custom fields attached to products, orders, customers, and other Shopify records. It also covers metaobjects, reusable records for structured content such as team members or specifications.

In plain words
What is it for?
Use it to store product attributes, customer account details, order instructions, and editable content for themes and custom storefronts.
Why use it?
It lets a store keep extra structured information inside Shopify instead of maintaining a separate database.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex; mentions Gemini CLI; mentions OpenCode.

Good fit Use it to store product attributes, customer account details, order instructions, and editable content for themes and custom storefronts.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/finsilabs/awesome-ecommerce-skills/shopify-metafields
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add finsilabs/awesome-ecommerce-skills --skill shopify-metafields
Clone the repo
git clone --depth 1 https://github.com/finsilabs/awesome-ecommerce-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for shopify-metafields

README.md
[![agentmods](https://agentmods.dev/badge/skills/finsilabs/awesome-ecommerce-skills/shopify-metafields/github.svg)](https://agentmods.dev/skills/finsilabs/awesome-ecommerce-skills/shopify-metafields)
Your own site
<a href="https://agentmods.dev/skills/finsilabs/awesome-ecommerce-skills/shopify-metafields"><img src="https://agentmods.dev/badge/skills/finsilabs/awesome-ecommerce-skills/shopify-metafields/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for shopify-metafields

Your own site · 80×15
<a href="https://agentmods.dev/skills/finsilabs/awesome-ecommerce-skills/shopify-metafields"><img src="https://agentmods.dev/badge/skills/finsilabs/awesome-ecommerce-skills/shopify-metafields.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,661 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00033 $0.02661
Opus 5 $0.00016 $0.01331
Sonnet 5 $0.00007 $0.00532
Haiku 4.5 $0.00003 $0.00266

Measured 8d ago against content hash 21efe677f78a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

shopify-metafields scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/platform-shopify/shopify-metafields/SKILL.md · 298 lines

How it starts

The opening of the file, as written. The whole thing — 298 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Shopify Metafields

Overview

Metafields let you attach structured custom data to Shopify resources — products, variants, orders, customers, collections, and pages — without building a separate database. Metafield definitions enforce type validation (text, number, date, URL, JSON, file, product reference, etc.) and make metafields available in the Liquid template editor and Storefront API. Metaobjects extend this concept to create reusable, standalone custom data structures.

When to Use This Skill

  • When products need additional attributes beyond Shopify's default fields (care instructions, dimensions, certifications)
  • When storing per-customer data such as loyalty tier, subscription status, or B2B account number
  • When building content-managed sections in a theme using metafield references (FAQs, size guides, feature callouts)
  • When attaching order-level custom data from checkout (gift message, delivery instructions)
  • When creating reusable structured content entries with Metaobjects (team members, press mentions, specs)

Core Instructions

  1. Create metafield definitions via the Admin API

    Definitions enforce type and make metafields storefront-accessible:

    // Create a metafield definition for product care instructions
    const response = await adminClient.request(`
      mutation CreateMetafieldDefinition($definition: MetafieldDefinitionInput!) {
        metafieldDefinitionCreate(definition: $definition) {
          createdDefinition {
            id
            name
            namespace
            key
            type { name }
          }
          userErrors { field message code }
        }
      }
    `, {
      variables: {
        definition: {
          name: "Care Instructions",
          namespace: "custom",
          key: "care_instructions",
          type: "multi_line_text_field",
          ownerType: "PRODUCT",
          description: "Washing and care instructions for the product",
          visibleToStorefrontApi: true,
          // Optional: pin to product admin UI (use pinnedPosition in API version 2023-10+)
          pinnedPosition: 1,
        },
      },
    });
    

Read the full file on GitHub · 298 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 298 lines · 33 tokens per session scan A 21efe677f78a

Subscribe to this mod's changes

shopify-metafields is a skill published in the GitHub repository finsilabs/awesome-ecommerce-skills (52 stars, last pushed 6mo ago), licensed MIT. It adds 33 tokens to every session and 2,661 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

shopify-theme-builder

Build a complete, clean, Online Store 2.0 Shopify theme from a guided requirements interview. Use when a user wants to build, generate, scaffold, or design a Shopify theme, Shopify sections, JSON templates, Liquid, section groups, or a fully theme-editor-controllable storefront (including bilingual / RTL Arabic…

moVictor99/shopify-theme-builder · 87 tokens

postgres-commit-history-article

A workflow for comparing PostgreSQL source-code changes between two Git commits and, when useful, writing a Chinese Markdown article about them. PostgreSQL is a database system, and a commit is a saved change in a Git repository.

digoal/blog · 127 tokens

b2c-querying-data

Write efficient data queries in B2C Commerce for products, customers, and orders. Use this skill whenever the user needs to search products on a storefront page, look up customer profiles, query orders, paginate search results, or fix slow category pages. Also use when they ask about performance problems with data…

SalesforceCommerceCloud/b2c-developer-tooling · 108 tokens

b2c-custom-objects

Store and query custom business data using CustomObjectMgr, OCAPI Data API, and Shopper Custom Objects API. Use this skill whenever the user needs to create, read, update, or search custom object instances, build processing queues with status fields, choose between site-scoped and organization-scoped storage, or query…

SalesforceCommerceCloud/b2c-developer-tooling · 104 tokens

rp-mapper

Maps discovered source entities and fields to Wix targets and documents lossiness. Use when creating machine-readable mapping artifacts and review markdown after discovery.

wix/skills · 31 tokens

wc-hpos-compatibility

Make WooCommerce order integrations compatible with High-Performance Order Storage. Covers compatibility declaration, order CRUD and queries, authoritative storage, sync-setting versus fully-synced checks, HPOS-aware admin list/meta-box hooks, cache-safe metadata access, large-store query optimization boundaries…

Lonsdale201/wp-agent-skills · 98 tokens