Agent skill

Shopify Metafields Metaobjects

by jeremylongshore in jeremylongshore/tons-of-skills-marketplace

Model custom data with Shopify metafields and metaobjects via the GraphQL Admin API.

MITAuto-check passedBackend & APIs

Install Shopify Metafields Metaobjects

skills CLI
$ npx skills add jeremylongshore/tons-of-skills-marketplace --skill shopify-metafields-metaobjects -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install jeremylongshore/tons-of-skills-marketplace shopify-metafields-metaobjects --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/.curated/shopify-metafields-metaobjects .claude/skills/shopify-metafields-metaobjects && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
shopify-metafields-metaobjects
GitHub stars
2.8k
Token cost
~1.3k tokens
SKILL.md length
327 words
Files
4 (incl. references)
Skills in repo
3,342
Repo updated
First seen
Licence
MIT

At a glance

Model custom data with Shopify metafields and metaobjects via the GraphQL Admin API.

  • Works in 4 steps: Define a Metafield on Products → Set Values in Batch with metafieldsSet → Create a Metaobject Definition → …
  • Adding custom fields to products/orders
  • SKILL.md covers Overview, Prerequisites, Instructions and Output, plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Shopify Metafields Metaobjects is an agent skill from jeremylongshore/tons-of-skills-marketplace. Model custom data with Shopify metafields and metaobjects via the GraphQL Admin API. Use when adding custom fields to products/orders, creating custom content types, or building structured data models beyond Shopify's default schema. Trigger with phrases like "shopify metafields", "shopify metaobjects", "custom data shopify", "shopify custom fields", "metafield definition".

Its SKILL.md is about 1.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files, including reference files (for example `references/bulk-metafield-ops.md`, `references/metafield-types.md` and `references/toml-config.md`). Compatibility notes: Designed for Claude Code

It sits in Backend & APIs, covering Schema markup and GraphQL. It works with Shopify and GraphQL. The repository describes itself as: Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com. The licence is MIT.

When your agent uses it

  • Adding custom fields to products/orders
  • Creating custom content types
  • Building structured data models beyond Shopifys default schema
  • With phrases like shopify metafields

Example prompts

  • “s default schema. Trigger with phrases like”
  • “shopify metaobjects”
  • “custom data shopify”
  • “/shopify-metafields-metaobjects”

Requirements

  • Compatibility (from SKILL.md): Designed for Claude Code
  • Pre-approved tools (allowed-tools): Read, Write, Edit, Bash(npm:*), Grep

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Define a Metafield on Products
  2. Set Values in Batch with metafieldsSet
  3. Create a Metaobject Definition
  4. Create Metaobject Instances

What it can do on your machine

Read from SKILL.md and the folder at commit 80f86df. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Write
    • Edit
    • Bash(npm:*)
    • Grep

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are typescript).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • shopify.dev

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    Designed for Claude Code

    From compatibility in the SKILL.md frontmatter.

Context cost

Shopify Metafields Metaobjects loads about 1.3k tokens when it runs, and up to ~3.6k if it reads all its reference files. Until then it costs about 102 tokens; SKILL.md has 327 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~102
When it runs · the whole SKILL.md, loaded when a task matches
~1.3k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~3.6k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from jeremylongshore/tons-of-skills-marketplace at commit 80f86df, republished under its MIT licence (© jeremylongshore). 327 words, ~1,335 tokens.

Download SKILL.mdSave it as .claude/skills/shopify-metafields-metaobjects/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.
name
shopify-metafields-metaobjects
description
Model custom data with Shopify metafields and metaobjects via the GraphQL Admin API. Use when adding custom fields to products/orders, creating custom content types, or building structured data models beyond Shopify's default schema. Trigger with phrases like "shopify metafields", "shopify metaobjects", "custom data shopify", "shopify custom fields", "metafield definition".
allowed-tools
Read, Write, Edit, Bash(npm:*), Grep
compatibility
Designed for Claude Code
version
2.7.0
license
MIT
author
Jeremy Longshore <jeremy@intentsolutions.io>
tags
saas, ecommerce, shopify

Shopify Metafields & Metaobjects

Overview

Metafields attach key-value custom data to existing resources (products, variants, orders, customers). Metaobjects define entirely new content types with custom schemas. Together they replace the need for external databases for most custom data needs.

Prerequisites

  • Completed shopify-install-auth setup
  • Access scopes: read_metaobjects, write_metaobjects, read_metaobject_definitions, write_metaobject_definitions
  • Metafield scopes per resource: read_products/write_products for product metafields, etc.

Instructions

Step 1: Define a Metafield on Products

Use metafieldDefinitionCreate with namespace, key, type, and ownerType:

typescript
await client.request(METAFIELD_DEFINITION_CREATE, {
  variables: {
    definition: {
      namespace: "custom",
      key: "care_instructions",
      name: "Care Instructions",
      type: "multi_line_text_field",  // See references/metafield-types.md
      ownerType: "PRODUCT",
      pin: true, // Show in admin UI
    },
  },
});
// Always check userErrors — Shopify returns 200 even on validation failures
Step 2: Set Values in Batch with metafieldsSet
typescript
await client.request(METAFIELDS_SET, {
  variables: {
    metafields: [
      {
        ownerId: "gid://shopify/Product/123456",
        namespace: "custom",
        key: "care_instructions",
        value: "Machine wash cold.\nTumble dry low.",
        type: "multi_line_text_field",
      },
      // Up to 25 metafields per call
    ],
  },
});
Step 3: Create a Metaobject Definition

Define a custom content type (e.g., "Designer" with typed fields):

typescript
await client.request(METAOBJECT_DEFINITION_CREATE, {
  variables: {
    definition: {
      type: "$app:designer",
      displayNameKey: "name",
      fieldDefinitions: [
        { key: "name", name: "Name", type: "single_line_text_field" },
        { key: "bio", name: "Bio", type: "multi_line_text_field" },
        { key: "photo", name: "Photo", type: "file_reference" },
      ],
      access: { storefront: "PUBLIC_READ" },
    },
  },
});
Step 4: Create Metaobject Instances
typescript
await client.request(METAOBJECT_CREATE, {
  variables: {
    metaobject: {
      type: "$app:designer",
      handle: "jane-doe",
      fields: [
        { key: "name", value: "Jane Doe" },
        { key: "bio", value: "Award-winning textile designer." },
      ],
    },
  },
});

See metafield-types.md for all types, toml-config.md for app config, and bulk-metafield-ops.md for bulk operations.

Output

  • Metafield definitions registered on target resource types
  • Metafield values set on individual resources (batch supported, max 25 per call)
  • Custom metaobject types with typed field schemas
  • Metaobject instances queryable via Storefront and Admin APIs

Error Handling

ErrorCauseSolution
TAKENNamespace + key already exists on this owner typeUse metafieldDefinitionUpdate or choose a different key
INVALID_TYPEType string not in Shopify's registryCheck metafield-types.md
INVALID_VALUEValue doesn't match declared typeCast value to correct format before setting
TOO_LONGValue exceeds type limit (512KB for text types)Truncate or switch to multi_line_text_field

Examples

Adding Care Instructions to All Products

Define a "care_instructions" metafield on the PRODUCT owner type, then bulk-set values across hundreds of products in batches of 25.

See Bulk Metafield Ops for the batch set/delete operations.

Choosing the Right Metafield Type

You need to store a color swatch, a date range, or a product reference. Pick the correct type from Shopify's type registry.

See Metafield Types for the complete type list with value format examples.

Declaring Metafields in App Configuration

Define metafield and metaobject schemas in shopify.app.toml so they deploy automatically with the app instead of making API calls.

See TOML Config for the app configuration syntax.

Resources

© jeremylongshore, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 3 other files (references) in skills/.curated/shopify-metafields-metaobjects of jeremylongshore/tons-of-skills-marketplace.

  • SKILL.md
  • references/bulk-metafield-ops.md
  • references/metafield-types.md
  • references/toml-config.md

Open the folder on GitHubat commit 80f86df

Compare with similar skills

Shopify Metafields Metaobjects next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Shopify Metafields Metaobjects compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Shopify Metafields Metaobjects this skilljeremylongshore/tons-of-skills-marketplace2.8k—~1.3kAutomated safety check: PassMIT
ShopifyShopify/Shopify-AI-Toolkit592—~4.2kAutomated safety check: PassMIT
Shopify Developmentdavila7/claude-code-templates32k7 repos~2.2kAutomated safety check: PassMIT
Shopify ExpertJeffallan/claude-skills12k—~1.8kAutomated safety check: PassMIT
Blog TaxonomyAgriciDaniel/claude-blog2.3k1 repos~2.5kAutomated safety check: PassMIT
Shopify Developer Referencetech-leads-club/agent-skills7k—~1.9kAutomated safety check: PassCustom licence

Similar skills

  • Shopify

    Shopify/Shopify-AI-Toolkit

    Official

    Build anything on Shopify. An agent skill from Shopify/Shopify-AI-Toolkit.

    592 GitHub stars~4.2k tokensUpdated 2 days ago
    Backend & APIsAuto-check passed
  • Shopify Development

    davila7/claude-code-templates

    Build Shopify apps, extensions, themes using GraphQL Admin API, Shopify CLI, Polaris UI, and Liquid.

    32k GitHub starsUsed in 7 repos~2.2k tokens
    Backend & APIsAuto-check passed
  • Shopify Expert

    Jeffallan/claude-skills

    Builds Shopify themes in Liquid, custom apps, Storefront API storefronts and checkout extensions, using the Shopify CLI to lint, run locally and deploy.

    12k GitHub stars~1.8k tokensUpdated 6 days ago
    Backend & APIsAuto-check passed
  • Blog Taxonomy

    AgriciDaniel/claude-blog

    Extract, suggest, and sync tags and categories for blog posts across all major CMS platforms.

    2.3k GitHub starsUsed in 1 repo~2.5k tokens
    Backend & APIsAuto-check passed
  • Shopify Developer Reference

    tech-leads-club/agent-skills

    Reference for Shopify work: Liquid templates, OS 2.0 themes, Admin and Storefront GraphQL APIs, apps, Functions and Hydrogen, on API version 2026-01.

    7k GitHub stars~1.9k tokensUpdated yesterday
    Backend & APIsAuto-check passed
  • Shopify Apps

    davila7/claude-code-templates

    Expert patterns for Shopify app development including Remix/React Router apps, embedded apps with App Bridge, webhook handling, GraphQL Admin API, Polaris components, billing, and app extensions.

    32k GitHub starsUsed in 5 repos~310 tokens
    Backend & APIsAuto-check passed

More from jeremylongshore/tons-of-skills-marketplace

All 3,342 skills in this repo
  • Performing Security Code Review

    jeremylongshore/tons-of-skills-marketplace

    Execute this skill enables AI assistant to conduct a security-focused code review using the security-agent plugin.

    2.8k GitHub starsUsed in 2 repos~1.3k tokens
    Auto-check: notes
  • Adapting Transfer Learning Models

    jeremylongshore/tons-of-skills-marketplace

    Build this skill automates the adaptation of pre-trained machine learning models using transfer learning techniques.

    2.8k GitHub stars~1.1k tokensUpdated yesterday
    Auto-check passed
  • Agent Context Loader

    jeremylongshore/tons-of-skills-marketplace

    Execute proactive auto-loading: automatically detects and loads agents.md files.

    2.8k GitHub stars~1.1k tokensUpdated yesterday
    Auto-check passed
  • Aggregating Performance Metrics

    jeremylongshore/tons-of-skills-marketplace

    Aggregate and centralize performance metrics from applications, systems, databases, caches, and services.

    2.8k GitHub stars~1.2k tokensUpdated yesterday
    Auto-check passed
  • Analyzing Capacity Planning

    jeremylongshore/tons-of-skills-marketplace

    Execute this skill enables AI assistant to analyze capacity requirements and plan for future growth.

    2.8k GitHub stars~947 tokensUpdated yesterday
    Auto-check passed
  • Analyzing Database Indexes

    jeremylongshore/tons-of-skills-marketplace

    Process use when you need to work with database indexing. An agent skill from jeremylongshore/tons-of-skills-marketplace.

    2.8k GitHub stars~2k tokensUpdated yesterday
    Auto-check passed

Works with

Categories

Questions about Shopify Metafields Metaobjects

What does Shopify Metafields Metaobjects do?

Model custom data with Shopify metafields and metaobjects via the GraphQL Admin API. Shopify Metafields Metaobjects is an agent skill from jeremylongshore/tons-of-skills-marketplace. Model custom data with Shopify metafields and metaobjects via the GraphQL Admin API.

When should I use Shopify Metafields Metaobjects?

Shopify Metafields Metaobjects fits situations like: adding custom fields to products/orders; creating custom content types; building structured data models beyond Shopifys default schema; with phrases like shopify metafields.

How do I install Shopify Metafields Metaobjects in Claude Code?

Run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill shopify-metafields-metaobjects -a claude-code`. Or copy the skill folder (skills/.curated/shopify-metafields-metaobjects in jeremylongshore/tons-of-skills-marketplace) into .claude/skills/shopify-metafields-metaobjects in your project. Claude Code loads it when a task matches its description.

How do I install Shopify Metafields Metaobjects in Codex?

Run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill shopify-metafields-metaobjects -a codex`. Or copy the skill folder (skills/.curated/shopify-metafields-metaobjects in jeremylongshore/tons-of-skills-marketplace) into .agents/skills/shopify-metafields-metaobjects in your project. Codex loads it when a task matches its description.

Can I use Shopify Metafields Metaobjects in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill shopify-metafields-metaobjects -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/shopify-metafields-metaobjects, .gemini/skills/shopify-metafields-metaobjects, .github/skills/shopify-metafields-metaobjects and .opencode/skills/shopify-metafields-metaobjects in your project.

What does Shopify Metafields Metaobjects need to run?

SKILL.md names no scripts, command-line tools or credentials: Shopify Metafields Metaobjects is instructions for the agent only. Its frontmatter pre-approves these tools: Read, Write, Edit, Bash(npm:*), Grep. Compatibility (from SKILL.md): Designed for Claude Code.

Does Shopify Metafields Metaobjects access the network?

SKILL.md names 1 domain. As links in the text: shopify.dev. This is read from the text; nothing was executed.

Is Shopify Metafields Metaobjects safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Shopify Metafields Metaobjects use?

Shopify Metafields Metaobjects is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Shopify Metafields Metaobjects use?

About 1.3k tokens (SKILL.md is roughly 5.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 2.3k tokens, read only when the agent opens those files.

What are the alternatives to Shopify Metafields Metaobjects?

Skills that share tags, products or a category with Shopify Metafields Metaobjects: Shopify (Shopify/Shopify-AI-Toolkit, 592 stars), Shopify Development (davila7/claude-code-templates, 32k stars), Shopify Expert (Jeffallan/claude-skills, 12k stars) and Blog Taxonomy (AgriciDaniel/claude-blog, 2.3k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Shopify Metafields Metaobjects?

jeremylongshore (a GitHub user) maintains it in jeremylongshore/tons-of-skills-marketplace, which has 2,825 GitHub stars. The repository holds 3,342 skills in this directory. The repository was last updated on October 9, 2026.

Source: jeremylongshore/tons-of-skills-marketplace on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.