KS
Killer-Skills

shopify-metafields — how to use shopify metafields how to use shopify metafields, shopify metafields setup guide, what is shopify metafields, shopify metafields alternative, shopify metafields vs custom attributes, shopify metafields install, shopify metafields namespace, shopify metafields data types, shopify metafields for e-commerce

v1.0.0
GitHub

About this Skill

Perfect for E-commerce Agents needing custom data storage and retrieval on Shopify resources shopify-metafields is a feature that enables storing custom data on Shopify resources, including products, orders, and customers, using namespaces, keys, and specific data types like single_line_text_field and json.

Features

Stores custom data on Shopify resources using namespaces and keys
Supports various data types, including single_line_text_field, number_integer, and json
Allows grouping of custom data using namespaces, such as my_app or global
Enables attachment of custom data to specific resources, like products or orders
Utilizes a specific owner to attach data to resources, such as a product

# Core Topics

toilahuongg toilahuongg
[0]
[0]
Updated: 3/6/2026

Quality Score

Top 5%
42
Excellent
Based on code quality & docs
Installation
SYS Universal Install (Auto-Detect)
Cursor IDE Windsurf IDE VS Code IDE
> npx killer-skills add toilahuongg/submission-design/shopify-metafields

Agent Capability Analysis

The shopify-metafields MCP Server by toilahuongg is an open-source Categories.community integration for Claude and other AI agents, enabling seamless task automation and capability expansion. Optimized for how to use shopify metafields, shopify metafields setup guide, what is shopify metafields.

Ideal Agent Persona

Perfect for E-commerce Agents needing custom data storage and retrieval on Shopify resources

Core Value

Empowers agents to store and manage additional data on Shopify products, orders, and customers using custom namespaces, keys, and data types, such as single_line_text_field, number_integer, and json, enabling advanced e-commerce automation and analysis

Capabilities Granted for shopify-metafields MCP Server

Storing product-specific data, such as washing instructions or nutritional information
Managing customer preferences and order history using custom metafields
Automating workflows based on metafield data, such as triggering notifications or updates

! Prerequisites & Limits

  • Requires Shopify API access and authentication
  • Limited to Shopify resources, such as products, orders, customers, and shops
Project
SKILL.md
2.4 KB
.cursorrules
1.2 KB
package.json
240 B
Ready
UTF-8

# Tags

[No tags]
SKILL.md
Readonly

Shopify Metafields

Metafields allow you to store additional data on Shopify resources (Products, Orders, Customers, Shops) that aren't included in the default schema (e.g., "washing instructions" for a product).

1. Concepts

  • Namespace: Grouping folder (e.g., my_app, global).
  • Key: Specific field name (e.g., washing_instructions).
  • Type: Data type (e.g., single_line_text_field, number_integer, json).
  • Owner: The resource attaching the data (Product ID, Shop ID).

2. Metafield Definitions (Standard)

Always use Metafield Definitions (pinned metafields) when possible. This integrates them into the Admin UI and ensures standard processing.

  • Create: Settings > Custom Data > [Resource] > Add definition.
  • Access: namespace.key

3. Accessing in Liquid

To display metafield data on the Storefront:

liquid
1<!-- Accessing a product metafield --> 2<p>Washing: {{ product.metafields.my_app.washing_instructions }}</p> 3 4<!-- Accessing a file/image metafield --> 5{% assign file = product.metafields.my_app.size_chart.value %} 6<img src="{{ file | image_url: width: 500 }}" /> 7 8<!-- Checking existence --> 9{% if product.metafields.my_app.instructions != blank %} 10 ... 11{% endif %}

4. Reading via API (GraphQL)

graphql
1query { 2 product(id: "gid://shopify/Product/123") { 3 title 4 metafield(namespace: "my_app", key: "instructions") { 5 value 6 type 7 } 8 } 9}

5. Writing via API (GraphQL)

To create or update a metafield, use metafieldsSet.

graphql
1mutation metafieldsSet($metafields: [MetafieldsSetInput!]!) { 2 metafieldsSet(metafields: $metafields) { 3 metafields { 4 id 5 namespace 6 key 7 value 8 } 9 userErrors { 10 field 11 message 12 } 13 } 14} 15 16/* Variables */ 17{ 18 "metafields": [ 19 { 20 "ownerId": "gid://shopify/Product/123", 21 "namespace": "my_app", 22 "key": "instructions", 23 "type": "single_line_text_field", 24 "value": "Wash cold, tumble dry." 25 } 26 ] 27}

6. Private Metafields

If you want data to be hidden from other apps and the storefront, use Private Metafields. Note: These cannot be accessed via Liquid directly.

  • Use privateMetafield queries/mutations.
  • Requires explicit read_private_metafields / write_private_metafields scope (rarely used now, app_data metafields are preferred for app-specific valid storage).

Related Skills

Looking for an alternative to shopify-metafields or building a Categories.community AI Agent? Explore these related open-source MCP Servers.

View All

widget-generator

Logo of f
f

widget-generator is an open-source AI agent skill for creating widget plugins that are injected into prompt feeds on prompts.chat. It supports two rendering modes: standard prompt widgets using default PromptCard styling and custom render widgets built as full React components.

149.6k
0
Design

chat-sdk

Logo of lobehub
lobehub

chat-sdk is a unified TypeScript SDK for building chat bots across multiple platforms, providing a single interface for deploying bot logic.

73.0k
0
Communication

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
Communication

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
Communication