Agent skill

Shopify Admin Agentic Metafields Setup

by 40RTY-ai in 40RTY-ai/shopify-admin-skills

Define and populate agentic-commerce metafields (material, attributes, key features, specs, sizing) so AI agents can filter and match products to specific shopper requirements.

MITAuto-check passedMarketing & SEO

Install Shopify Admin Agentic Metafields Setup

skills CLI
$ npx skills add 40RTY-ai/shopify-admin-skills --skill shopify-admin-agentic-metafields-setup -a claude-code

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

GitHub CLI
$ gh skill install 40RTY-ai/shopify-admin-skills shopify-admin-agentic-metafields-setup --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/40RTY-ai/shopify-admin-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/agentic/shopify-admin-agentic-metafields-setup .claude/skills/shopify-admin-agentic-metafields-setup && 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-admin-agentic-metafields-setup
GitHub stars
194
Token cost
~1.9k tokens
SKILL.md length
532 words
Files
1
Skills in repo
116
Repo updated
First seen
Licence
MIT

At a glance

Define and populate agentic-commerce metafields (material, attributes, key features, specs, sizing) so AI agents can filter and match products to specific shopper requirements.

  • Works in 4 steps: OPERATION: metafieldDefinitions — query → OPERATION: metafieldDefinitionCreate —… → OPERATION: products — query → …
  • Marketing & SEO work in your project
  • SKILL.md covers Purpose, Prerequisites, Parameters and Safety, plus 6 more sections
  • Calls shopify

What it does

Shopify Admin Agentic Metafields Setup is an agent skill from 40RTY-ai/shopify-admin-skills. Define and populate agentic-commerce metafields (material, attributes, key features, specs, sizing) so AI agents can filter and match products to specific shopper requirements.

Its SKILL.md is about 1.9k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts. Compatibility notes: Claude Code, Cursor, Codex, Gemini CLI

It sits in Marketing & SEO. It works with Shopify. The repository describes itself as: Community-maintained AI agent skills for operating Shopify stores — workflows, optimization, reports and more. The licence is MIT.

When your agent uses it

  • Marketing & SEO work in your project

Example prompts

  • “/shopify-admin-agentic-metafields-setup”

Requirements

  • Compatibility (from SKILL.md): Claude Code, Cursor, Codex, Gemini CLI

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. OPERATION: metafieldDefinitions — query
  2. OPERATION: metafieldDefinitionCreate — mutation
  3. OPERATION: products — query
  4. OPERATION: metafieldsSet — mutation

What it can do on your machine

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

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • shopify

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

  • Network

    No URLs in SKILL.md.

    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

    Claude Code, Cursor, Codex, Gemini CLI

    From compatibility in the SKILL.md frontmatter.

Context cost

Shopify Admin Agentic Metafields Setup loads about 1.9k tokens when it runs. Until then it costs about 54 tokens; SKILL.md has 532 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~54
When it runs · the whole SKILL.md, loaded when a task matches
~1.9k

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 40RTY-ai/shopify-admin-skills at commit 6765cb4, republished under its MIT licence (© 40RTY-ai). 532 words, ~1,936 tokens.

Download SKILL.mdSave it as .claude/skills/shopify-admin-agentic-metafields-setup/SKILL.md (or your agent's skills folder).
name
shopify-admin-agentic-metafields-setup
description
Define and populate agentic-commerce metafields (material, attributes, key features, specs, sizing) so AI agents can filter and match products to specific shopper requirements.
compatibility
Claude Code, Cursor, Codex, Gemini CLI
role
agentic
toolkit
shopify-admin, shopify-admin-execution
api_version
2025-01
graphql_operations
metafieldDefinitions:query, metafieldDefinitionCreate:mutation, products:query, metafieldsSet:mutation
status
stable
audit_signals
listing-metafields, variant-metadata, sizing-specs-structured

Purpose

AI agents answer constrained queries — "squat-proof leggings under $60", "eucalyptus slip-ons", "machine-washable wool" — by filtering on structured attributes. If those attributes live only in prose (or nowhere), the agent can't filter and your products drop out of the result set. This skill establishes a small, standard set of agentic metafield definitions (material, key features, care, fit, specs) and populates them across the catalog from existing product signals, so agents can match products to requirements. Fixes listing-metafields, variant-metadata, and sizing-specs-structured.

Prerequisites

  • Authenticated Shopify CLI session (shopify auth login --store <domain>)
  • Required API scopes: read_products, write_products, read_metaobject_definitions, write_metaobject_definitions (for definitions)

Parameters

All skills accept these universal parameters:

ParameterTypeRequiredDefaultDescription
storestringyes—Store domain (e.g., mystore.myshopify.com)
formatstringnohumanOutput format: human (default) or json
dry_runboolnofalsePreview mutations without executing

Skill-specific parameters:

ParameterTypeRequiredDefaultDescription
namespacestringnoagenticMetafield namespace to create/populate under
keysstringnomaterial,features,care,fit,specsComma list of metafield keys to ensure exist
collection_idstringno—Limit population to a collection GID
tagstringno—Limit population to a product tag
populate_fromstringnotags,options,descriptionSources to infer values from (no fabrication beyond these)

Safety

⚠️ Step 2 (metafieldDefinitionCreate) and Step 4 (metafieldsSet) write store schema + product data. Definitions are cheap to add but clutter the admin if mis-namespaced; values written from inference can be wrong. Run dry_run: true, review the proposed definitions and the value preview, and only populate values inferred with high confidence — leave the rest blank for human fill.

Workflow Steps

  1. OPERATION: metafieldDefinitions — query Inputs: ownerType: PRODUCT, namespace: <namespace> Expected output: Which target keys already have definitions (skip those).

  2. OPERATION: metafieldDefinitionCreate — mutation Inputs: one per missing key: { namespace, key, name, ownerType: PRODUCT, type: "single_line_text_field" | "list.single_line_text_field" } Expected output: Created definitions; collect userErrors (e.g. already-taken).

  3. OPERATION: products — query Inputs: first: 250, optional filter; fields tags, options, descriptionHtml, existing metafields(namespace); paginate. Expected output: Products + the signals to infer attribute values from.

  4. OPERATION: metafieldsSet — mutation Inputs: batches of { ownerId, namespace, key, value, type } for confidently-inferred, currently-empty values. Expected output: Set metafields; collect userErrors.

Show full SKILL.md (186 more words)Show less

GraphQL Operations

graphql
# metafieldDefinitions:query — validated against api_version 2025-01
query AgenticMetafieldDefs($namespace: String!) {
  metafieldDefinitions(first: 50, ownerType: PRODUCT, namespace: $namespace) {
    edges { node { id namespace key name type { name } } }
  }
}
graphql
# metafieldDefinitionCreate:mutation — validated against api_version 2025-01
mutation AgenticMetafieldDefCreate($definition: MetafieldDefinitionInput!) {
  metafieldDefinitionCreate(definition: $definition) {
    createdDefinition { id namespace key }
    userErrors { field message code }
  }
}
graphql
# products:query — validated against api_version 2025-01
query AgenticMetafieldProducts($first: Int!, $after: String, $query: String, $namespace: String!) {
  products(first: $first, after: $after, query: $query) {
    edges {
      node {
        id
        title
        tags
        options { name values }
        descriptionHtml
        metafields(first: 20, namespace: $namespace) {
          edges { node { key value } }
        }
      }
    }
    pageInfo { hasNextPage endCursor }
  }
}
graphql
# metafieldsSet:mutation — validated against api_version 2025-01
mutation AgenticMetafieldsSet($metafields: [MetafieldsSetInput!]!) {
  metafieldsSet(metafields: $metafields) {
    metafields { id namespace key }
    userErrors { field message code }
  }
}

Session Tracking

Claude MUST emit the following output at each stage. This is mandatory.

On start, emit:

╔══════════════════════════════════════════════╗
║  SKILL: <skill name>                         ║
║  Store: <store domain>                       ║
║  Started: <YYYY-MM-DD HH:MM UTC>             ║
╚══════════════════════════════════════════════╝

After each step, emit:

[N/TOTAL] <QUERY|MUTATION>  <OperationName>
          → Params: <brief summary of key inputs>
          → Result: <count or outcome>

If dry_run: true, prefix every mutation step with [DRY RUN] and do not execute it.

On completion, emit:

For format: human (default):

══════════════════════════════════════════════
OUTCOME SUMMARY
  <Metric label>:   <value>
  Errors:           0
  Output:           <filename or "none">
══════════════════════════════════════════════

For format: json, emit:

json
{
  "skill": "<skill-slug>",
  "store": "<domain>",
  "started_at": "<ISO8601>",
  "completed_at": "<ISO8601>",
  "dry_run": false,
  "steps": [
    {
      "step": 1,
      "operation": "<OperationName>",
      "type": "query",
      "params_summary": "<string>",
      "result_summary": "<string>",
      "skipped": false
    }
  ],
  "outcome": {
    "metric_key": 0,
    "errors": 0,
    "output_file": null
  }
}

Output Format

human: definitions created + a CSV of populated values (product, key, value, source). json: { definitions_created, metafields_set, products_touched, errors, output_file }.

Error Handling

ErrorCauseRecovery
THROTTLEDAPI rate limitWait 2s, retry up to 3 times
TAKEN on definitionKey already defined elsewhereReuse the existing definition, continue to population
userErrors on setType mismatch (e.g. list vs single)Coerce value to the definition's type, retry once, else skip

Best Practices

  • Keep the namespace small and standard (agentic) and the key set tight — agents and storefront filters both benefit from consistency.
  • Only write values you can infer with high confidence from real signals; a wrong "material: leather" misleads every agent. Leave low-confidence fields blank.
  • Use list.single_line_text_field for multi-value attributes (features, materials) so filters work as OR-sets.
  • Follow with shopify-admin-agentic-description-enrichment so the prose and the structured data agree.

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

Files

Just SKILL.md in skills/agentic/shopify-admin-agentic-metafields-setup of 40RTY-ai/shopify-admin-skills.

Open the folder on GitHubat commit 6765cb4

Compare with similar skills

Shopify Admin Agentic Metafields Setup 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 Admin Agentic Metafields Setup compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Shopify Admin Agentic Metafields Setup this skill40RTY-ai/shopify-admin-skills194—~1.9kAutomated safety check: PassMIT
Tracking Discoverjtrackingai/analytics-tracking-automation1421 repos~614Automated safety check: PassApache-2.0
Google Analytics 4 Setupooiyeefei/ccc494—~2.2kAutomated safety check: PassMIT
Tracking Syncjtrackingai/analytics-tracking-automation142—~677Automated safety check: PassApache-2.0
Ad Conversion Tracking Setupminhnv0807/ai-business-skills608—~3.7kAutomated safety check: PassMIT
Shopifythatrebeccarae/claude-marketing162—~2.4kAutomated safety check: NotesMIT

Similar skills

  • Tracking Discover

    jtrackingai/analytics-tracking-automation

    A skill your agent uses when the user wants crawl coverage, platform detection, dataLayer discovery, or a fresh artifact directory before grouping and schema work.

    142 GitHub starsUsed in 1 repo~614 tokens
    Marketing & SEOAuto-check passed
  • Sets up GA4 on a website and wires one real conversion event end to end, verified in DebugView before any money goes into ads.

    494 GitHub stars~2.2k tokensUpdated 2 mo ago
    Marketing & SEOAuto-check passed
  • Tracking Sync

    jtrackingai/analytics-tracking-automation

    A skill your agent uses when the user wants GTM-ready config generation, GTM workspace sync, or container selection from an approved schema.

    142 GitHub stars~677 tokensUpdated 5 mo ago
    Marketing & SEOAuto-check passed
  • Ad Conversion Tracking Setup

    minhnv0807/ai-business-skills

    Sets up and verifies conversion tracking before ad spend: Meta Pixel and CAPI, Google Ads, GA4, TikTok, server-side GTM, consent mode, UTMs and a pre-launch checklist.

    608 GitHub stars~3.7k tokensUpdated 26 days ago
    Marketing & SEOAuto-check passed
  • Shopify

    thatrebeccarae/claude-marketing

    Shopify e-commerce platform marketing expertise. An agent skill from thatrebeccarae/claude-marketing.

    162 GitHub stars~2.4k tokensUpdated 4 mo ago
    Marketing & SEOAuto-check: notes
  • Tracking Shopify

    jtrackingai/analytics-tracking-automation

    A skill your agent uses when the platform is Shopify or the run needs the Shopify-specific schema, sync, install, or verification branch.

    142 GitHub stars~590 tokensUpdated 5 mo ago
    Marketing & SEOAuto-check passed

More from 40RTY-ai/shopify-admin-skills

All 116 skills in this repo
  • Shopify Admin Delivery Time Analysis

    40RTY-ai/shopify-admin-skills

    Read-only: calculates average time from fulfillment creation to delivery by carrier using fulfillment and order data.

    194 GitHub starsUsed in 1 repo~1.4k tokens
    Auto-check passed
  • Shopify Admin Shipping Cost Analysis

    40RTY-ai/shopify-admin-skills

    Read-only: aggregates shipping revenue charged to customers vs.

    194 GitHub starsUsed in 1 repo~1.4k tokens
    Auto-check passed
  • Shopify Admin Abandoned Cart Recovery

    40RTY-ai/shopify-admin-skills

    Query checkouts abandoned in the last N days, generate unique discount codes per customer, and tag them for re-engagement.

    194 GitHub stars~1.9k tokensUpdated 1 mo ago
    Auto-check passed
  • Shopify Admin Address Correction

    40RTY-ai/shopify-admin-skills

    Update the shipping address on an unfulfilled order before it ships.

    194 GitHub stars~1.5k tokensUpdated 1 mo ago
    Auto-check passed
  • Shopify Admin Agentic Crawler Access

    40RTY-ai/shopify-admin-skills

    Edit the theme's robots.txt.liquid to explicitly allow AI crawlers (GPTBot, ClaudeBot, PerplexityBot, Google-Extended, OAI-SearchBot, Amazonbot) so AI assistants are permitted to read the catalog.

    194 GitHub stars~1.8k tokensUpdated 1 mo ago
    Auto-check passed
  • Rewrite thin product descriptions into structured, fact-rich copy (materials, fit, use-cases, the words shoppers actually type) so AI agents have something concrete to quote and match.

    194 GitHub stars~1.6k tokensUpdated 1 mo ago
    Auto-check passed

Works with

Categories

Questions about Shopify Admin Agentic Metafields Setup

What does Shopify Admin Agentic Metafields Setup do?

Define and populate agentic-commerce metafields (material, attributes, key features, specs, sizing) so AI agents can filter and match products to specific shopper requirements. Shopify Admin Agentic Metafields Setup is an agent skill from 40RTY-ai/shopify-admin-skills. Define and populate agentic-commerce metafields (material, attributes, key features, specs, sizing) so AI agents can filter and match products to specific shopper requirements.

When should I use Shopify Admin Agentic Metafields Setup?

Shopify Admin Agentic Metafields Setup fits situations like: marketing & SEO work in your project.

How do I install Shopify Admin Agentic Metafields Setup in Claude Code?

Run `npx skills add 40RTY-ai/shopify-admin-skills --skill shopify-admin-agentic-metafields-setup -a claude-code`. Or copy the skill folder (skills/agentic/shopify-admin-agentic-metafields-setup in 40RTY-ai/shopify-admin-skills) into .claude/skills/shopify-admin-agentic-metafields-setup in your project. Claude Code loads it when a task matches its description.

How do I install Shopify Admin Agentic Metafields Setup in Codex?

Run `npx skills add 40RTY-ai/shopify-admin-skills --skill shopify-admin-agentic-metafields-setup -a codex`. Or copy the skill folder (skills/agentic/shopify-admin-agentic-metafields-setup in 40RTY-ai/shopify-admin-skills) into .agents/skills/shopify-admin-agentic-metafields-setup in your project. Codex loads it when a task matches its description.

Can I use Shopify Admin Agentic Metafields Setup 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 40RTY-ai/shopify-admin-skills --skill shopify-admin-agentic-metafields-setup -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-admin-agentic-metafields-setup, .gemini/skills/shopify-admin-agentic-metafields-setup, .github/skills/shopify-admin-agentic-metafields-setup and .opencode/skills/shopify-admin-agentic-metafields-setup in your project.

What does Shopify Admin Agentic Metafields Setup need to run?

Going by SKILL.md and its folder, Shopify Admin Agentic Metafields Setup needs the command-line tools its instructions call (shopify). Compatibility (from SKILL.md): Claude Code, Cursor, Codex, Gemini CLI.

Does Shopify Admin Agentic Metafields Setup access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Shopify Admin Agentic Metafields Setup 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 Admin Agentic Metafields Setup use?

Shopify Admin Agentic Metafields Setup is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Shopify Admin Agentic Metafields Setup use?

About 1.9k tokens (SKILL.md is roughly 7.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Shopify Admin Agentic Metafields Setup?

Skills that share tags, products or a category with Shopify Admin Agentic Metafields Setup: Tracking Discover (jtrackingai/analytics-tracking-automation, 142 stars), Google Analytics 4 Setup (ooiyeefei/ccc, 494 stars), Tracking Sync (jtrackingai/analytics-tracking-automation, 142 stars) and Ad Conversion Tracking Setup (minhnv0807/ai-business-skills, 608 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Shopify Admin Agentic Metafields Setup?

40RTY-ai (a GitHub organization) maintains it in 40RTY-ai/shopify-admin-skills, which has 194 GitHub stars. The repository holds 116 skills in this directory. The repository was last updated on August 14, 2026.

Source: 40RTY-ai/shopify-admin-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.