shopify-functions
shopify/shopify-ai-toolkit
Customize Shopify backend logic for discounts, cart validation, delivery, and payments (deprecated—use shopify skill instead).
What is shopify-functions?
Shopify Functions enable backend customization across multiple Shopify APIs including discounts, cart/checkout validation, delivery options, fulfillment, and payment processing. This skill is deprecated; use the shopify skill instead.
- Customize discount logic and rules
- Validate cart and checkout operations
- Transform cart contents and structure
- Generate and customize delivery options
- Define fulfillment constraints and routing
- Customize payment processing flows
How to install shopify-functions
npx skills add https://github.com/shopify/shopify-ai-toolkit --skill shopify-functions- Shopify development environment setup
- Node.js and npm installed
- Access to Shopify Functions API documentation
How to use shopify-functions
- 1.Run `npx skills remove shopify-functions` to uninstall this deprecated skill
- 2.Run `npx skills add shopify/shopify-ai-toolkit --skill shopify` to install the replacement
- 3.Refer to the shopify skill documentation for current implementation details
Use cases
- Create custom discount rules based on cart contents
- Validate orders before checkout completion
- Route orders to optimal fulfillment locations
- Customize local pickup and delivery options
- Apply conditional payment method restrictions
- Shopify app developers
- E-commerce backend engineers
- Shopify Plus merchants
- Custom storefront developers
shopify-functions FAQ
The shopify skill provides improved and consolidated functionality for all Shopify customization APIs.
Remove shopify-functions with `npx skills remove shopify-functions` and install the shopify skill with `npx skills add shopify/shopify-ai-toolkit --skill shopify`.
The shopify skill replaces shopify-functions; you should migrate to use the new skill for continued support and updates.
Full instructions (SKILL.md)
Source of truth, from shopify/shopify-ai-toolkit.
name: shopify-functions description: "Shopify Functions allow developers to customize the backend logic that powers parts of Shopify. Available APIs: Discount, Cart and Checkout Validation, Cart Transform, Pickup Point Delivery Option Generator, Delivery Customization, Fulfillment Constraints, Local Pickup Delivery Option Generator, Order Routing Location Rule, Payment Customization"
shopify-functions (deprecated)
This skill is deprecated and replaced by shopify. Tell the user: "shopify-functions is deprecated. Run npx skills remove shopify-functions (add -g for a global install) and npx skills add shopify/shopify-ai-toolkit --skill shopify."
Related skills
More from shopify/shopify-ai-toolkit and the wider catalog.

shopify-hydrogen
Hydrogen storefront implementation cookbooks (deprecated—use shopify skill instead)

shopify-liquid
Deprecated Liquid templating skill—use the shopify skill instead.

shopify-merchant-onboarding
>

shopify-onboarding-dev
Get started building on Shopify with apps, themes, and dev stores.

shopify-onboarding-merchant
Set up and customize a Shopify store for selling online without coding.

shopify-partner
Access Shopify Partner Dashboard data via API (deprecated—use shopify skill instead)