gift-cards
Skill by finsilabs
Explains how to sell and accept gift cards on Shopify, WooCommerce, BigCommerce, or a custom store. Covers balance tracking, partial redemption, expiry, and refunds to gift cards. Aimed at merchants and developers adding store credit to checkout.
Install gift-cards
Built from the published package, never by AI.
git clone --depth 1 https://github.com/finsilabs/awesome-ecommerce-skills /tmp/awesome-ecommerce-skills && mkdir -p ~/.claude/skills && cp -r /tmp/awesome-ecommerce-skills/skills/pricing-promotions/gift-cards ~/.claude/skills/gift-cardsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/finsilabs/awesome-ecommerce-skills /tmp/awesome-ecommerce-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/awesome-ecommerce-skills/skills/pricing-promotions/gift-cards ~/.gemini/antigravity-cli/skills/gift-cardsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This agent skill gives step-by-step guidance for setting up gift cards in an online store. For Shopify, WooCommerce and BigCommerce it explains the native or plugin-based gift card features, including creating denominations, issuing cards, setting expiry dates, and refunding to a gift card. For custom or headless storefronts it provides a database schema and TypeScript examples for an append-only ledger, balance lookup, and partial redemption with row-level locking.
The skill also lists best practices and common pitfalls. These include avoiding ambiguous code characters, keeping full codes out of URLs and logs, treating gift card balances as deferred revenue, and checking local rules before enabling expiry. It is aimed at merchants choosing a gift card setup and developers building store credit into e-commerce checkout.
Written from the project's SKILL.md and checked against it.
What it can do
- Platform setup guidesStep-by-step setup for Shopify, WooCommerce and BigCommerce gift cards.
- Card issuanceCovers issuing cards manually or through sales, and bulk creation via the Shopify Admin API.
- Refund to gift cardExplains issuing store credit in place of a cash refund on Shopify and WooCommerce.
- Ledger-based balance trackingCustom schema where balances are derived from immutable debit and credit rows.
- Partial redemptionApplies up to the card balance to an order and keeps the remainder on the card.
- Expiration handlingShopify expiry settings, and an expires_at check in the custom balance function.
- Security guidanceCode generation rules, masking of codes, and avoiding codes in server logs.
What you need
- Shopify Advanced or Plus plan (native gift cards are not on Basic)
- WooCommerce Gift Cards or YITH WooCommerce Gift Cards plugin for WooCommerce stores
- Database with transaction and row locking support for custom builds
- Node.js and TypeScript for the custom code examples
Try asking
- Set up gift cards for my Shopify store with $25, $50 and $100 options.
- Show me how to refund an order to a gift card in WooCommerce.
- Write a ledger-based redeemGiftCard function that supports partial redemption.
Good to know
- Native Shopify gift cards are not available on the Basic plan.
- Some jurisdictions prohibit gift card expiry, so local law must be checked.
- Custom code is for headless storefronts and needs your own database and checkout integration.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/pricing-promotions/gift-cards/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to gift-cards
All alternatives →Shopify skill that lets an AI assistant set up and run a Shopify store through Shopify's official MCP server. It is for people who want to sell online, start a store, or manage an existing Shopify store.
Guides an AI assistant through building Shopify apps, extensions and themes. It covers the GraphQL Admin API, Shopify CLI, Polaris UI and Liquid. Intended for Shopify developers.
Searches Ticketmaster events and seat listings with pricing for people looking for event tickets. It returns Ticketmaster checkout links but cannot complete a purchase itself.
Analyzes ecommerce SEO for product pages, product schema, Google Shopping visibility, Amazon marketplace signals and keyword gaps. Built for stores, catalogs and product listings. Live Shopping and Amazon data needs the optional DataForSEO Merchant API.
Drafts replies to customer emails and tickets using order, refund, CRM and support desk data, in the owner's writing voice. Refunds and sends need the owner's approval, and with Shopify it also flags orders needing attention.
Reviews generated or changed WooCommerce code before it ships. It is for developers building extensions, payment and shipping integrations, checkout customizations, and order or product logic.
Compare with shopify, shopify-development or ticketmaster
gift-cards: common questions
Does this skill work with Shopify gift cards?
Yes. It explains how to create gift card products, issue cards, set expiry and refund to a gift card on Shopify, which includes native gift cards on Shopify, Advanced and Plus plans.
How does the skill prevent a gift card being used twice at once?
For custom builds it wraps redemption in a database transaction and locks the card row with SELECT ... FOR UPDATE before reading the balance.
Can a gift card be used for part of an order?
Yes. The skill covers partial redemption, where only the amount needed is deducted and the remaining balance stays on the card.
How do I install gift-cards?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is gift-cards free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is gift-cards safe to use?
It scores 54 of 100. Grades: maintenance B, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to gift-cards?
Similar skills: shopify, shopify-development, ticketmaster, seo-ecommerce.
