shopify-functions

Define WASM-based Shopify Functions for checkout discounts, shipping, and payments.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/toilahuongg/Google-Antigravity-Kit --skill shopify-functions
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: shopify-functions
Source: https://github.com/toilahuongg/Google-Antigravity-Kit/tree/main/.agent/skills/shopify-functions
Command: npx skills add https://github.com/toilahuongg/Google-Antigravity-Kit --skill shopify-functions

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Shopify Functions enable merchants to run custom, edge-optimized logic for discounts, shipping, and payments by compiling to WASM and executing on Shopify infrastructure, eliminating separate backend maintenance.

Core Features & Use Cases

  • Deterministic, low-latency logic that runs at checkout for predictable outcomes.
  • Rust (first-class) or JavaScript (Javy) implementations, with a standard structure including shopify.extension.toml, input.graphql, and src/run.(rs|js).
  • Use Case: implement product-specific discounts, dynamic shipping rules, or payment validation to tailor checkout experiences.

Quick Start

Create a Shopify function extension using the CLI, implement the run function to process input data, and deploy to your store.

Frequently Asked Questions about shopify-functions

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run custom checkout logic on Shopify's edge infrastructure?

Shopify Functions run custom checkout logic on edge infrastructure by compiling deterministic WASM code, eliminating separate backend maintenance for discounts, shipping, and payment validation. They require a shopify.extension.toml, input.graphql, and a src/run file.

Can I write Shopify Functions in JavaScript or do I need Rust?

You can write Shopify Functions using either Rust with first-class support or JavaScript compiled via Javy. Both implementations require a standard structure including shopify.extension.toml, input.graphql, and a src/run file to process input data.

What's the best way to implement dynamic shipping rules without a separate backend?

Implementing dynamic shipping rules without a backend is best achieved using Shopify Functions, which compile to WASM and execute on Shopify's edge infrastructure for deterministic, low-latency results directly at checkout.

How do I deploy a Shopify Function extension for product-specific discounts?

To deploy a Shopify Function for product-specific discounts, create the extension using the CLI, implement the run function to process GraphQL input data, and follow the standard build and deployment workflow to your store.

Does Shopify Functions support payment validation logic at checkout?

Yes, Shopify Functions support payment validation logic at checkout. They execute deterministic, low-latency WASM code on Shopify's edge infrastructure, allowing you to tailor checkout experiences with custom payment rules.

Why do Shopify Functions need deterministic logic for checkout customization?

Shopify Functions need deterministic logic to ensure predictable outcomes at checkout. Running WASM-based code on edge infrastructure requires deterministic execution to maintain fast, reliable performance for discounts, shipping, and payment operations.