Skip to main content
skill CX Codex GP ChatGPT official · OpenAI

shopify-functions — Codex skill for Shopify Functions

A Codex and ChatGPT skill for building Shopify Functions backend logic, from discounts to cart validation. It searches the docs first and validates the code before handing it over.

Install into Codex · Skills CLI (Vercel) All methods and platforms ↓
npx skills add openai/plugins --skill shopify-functions -a codex
Open on GitHub

What shopify-functions does

The skill covers ten Shopify Functions APIs: Discount, Cart and Checkout Validation, Cart Transform, Delivery Customization, Payment Customization, Fulfillment Constraints, Order Routing Location Rule, plus the pickup and pickup point generators. For each one it picks a target, such as cart.lines.discounts.generate.run for line-item discounts.

The workflow is fixed. The agent runs scripts/search_docs.mjs "<query>", writes the code, then calls scripts/validate.mjs with --model, --client-name, --client-version, --artifact-id and --revision. A failed check sends it back to search by error type, up to three attempts. Nothing reaches you until validation passes.

Shopify functions are pure: no network, no filesystem, no random numbers, no clock. Everything arrives through the input GraphQL query, fields in camelCase, and UNION types need __typename. Rust is the default language; pick JavaScript or TypeScript explicitly if you want them. Node.js is required, and building or running happens through shopify app function build and shopify app function run inside the function folder.

What it helps with

  • pick the right Shopify Functions API for a task
  • write a target for line-item discounts
  • build an input GraphQL query with the fields you need
  • validate function code before it reaches the user
  • move off the deprecated Order Discount API

Example prompts for the agent

  • Write a cart line discount function in Rust
  • Generate a cart and checkout validation function in TypeScript
  • Create a function that renames payment methods

How to install shopify-functions

1Skills CLI (Vercel)

npx skills add openai/plugins --skill shopify-functions -a codex

2Manually: put the files in place

.agents/skills/shopify-functions/SKILL.md

For all projects use ~/.agents/skills/

Step by step, with commands for each platform: Codex skills: how to install, where they live, how to call them

Questions about shopify-functions

How do I install shopify-functions in Claude?

Run npx skills add openai/plugins --skill shopify-functions, then npx skills add openai/plugins --skill shopify-functions -a codex. The skill file lands at .agents/skills/shopify-functions/SKILL.md.

What does shopify-functions do?

It helps you write Shopify Functions backend logic: it selects the API and target, searches the developer docs for examples, generates the code and validates it before returning.

Which language does it use by default?

Rust. Ask for JavaScript or TypeScript explicitly, otherwise the skill goes with Rust.

Similar skills

All skills for Backend and APIs →

From the same set528

The whole set →
shopify-polaris-customer-account-extensions This skill helps build Shopify customer account UI extensions for order and profile pages. Use it when you need a scaffold, target selection, or Polaris component guidance. CX Codex GP ChatGPT 1installs shopify-polaris-app-home Builds embedded Shopify admin user interfaces using Polaris web components. It searches component docs and validates code via CLI scripts before returning snippets. CX Codex GP ChatGPT 1installs shopify-onboarding-merchant This skill walks a merchant through Shopify CLI setup, store creation, and connection of an existing store from an AI assistant. CX Codex GP ChatGPT 1installs shopify-onboarding-dev Walks a developer from nothing to a working Shopify setup: installs the CLI, wires up the AI toolkit, then asks what you want to build. CX Codex GP ChatGPT 1installs shopify-custom-data A Claude and Claude skill that walks the agent through Metafields and Metaobjects in Shopify apps. CX Codex GP ChatGPT 1installs metric-pack-designer A skill that helps you describe a local metric pack for plugin-eval: rubric categories, checks and metrics in a schema-compatible shape. CX Codex GP ChatGPT 1installs improve-skill Converts plugin-eval test reports into a concrete rewrite brief for Codex skills. Useful when you need to trim token costs and clean up frontmatter. CX Codex GP ChatGPT 1installs evaluate-skill Audits a local skill, explains the score, and points to the first fixes. Use it before benchmarking or measuring token usage. CX Codex GP ChatGPT 1installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor