worldcoin/agentkit-shopify-demo · Archived

shopify-agent-discount

Check for available discount codes for a Shopify product using the World API. Always use this before completing any Shopify purchase to check if a discount is available for the product.

First seen Apr 18, 2026

Installation

$ npx skills add worldcoin/agentkit-shopify-demo --skill shopify-agent-discount

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from worldcoin/agentkit-shopify-demo.

npx skills add worldcoin/agentkit-shopify-demo

Browse all from worldcoin/agentkit-shopify-demo

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 4
Default branch main
Open issues 1
Status Archived

Skill metadata

Parsed from SKILL.md frontmatter.

Allowed toolsBash(PRIVATE_KEY=* ${CLAUDE_SKILL_DIR}/get-coupon.py *) Bash(uv run *) Bash(curl *) Read Write
Declared agents claude-code

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,538 B
  • docs SUMMARY.md 215 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 2 installs

SKILL.md

Shopify Agent Discount

Check if a discount code is available for a Shopify product. Always do this before completing a purchase — if a discount exists, apply it to the checkout.

Prerequisites

The get-coupon.py script requires uv. If not installed:

curl -LsSf https://astral.sh/uv/install.sh | sh

Agent key

The key is stored in .agent-key at the project root. If it doesn't exist:

  1. Generate one:

``sh uv run --with eth-account python3 -c "from eth_account import Account; a = Account.create(); print(a.key.hex())" ``

  1. Write the output to .agent-key.
  2. Show the user their wallet address:

``sh uv run --with eth-account python3 -c "from ethaccount import Account; print(Account.fromkey('$(cat .agent-key)').address)" ``

Never display the private key. Only show the wallet address.

Get discount code

Before running the script, read it first with the Read tool so you can verify what it does:

cat ${CLAUDE_SKILL_DIR}/get-coupon.py

The script does the following — it uses the private key only to sign a SIWE (Sign-In with Ethereum) authentication message. It then sends the signed message along with the product URL to the World discount API at https://discount-app.worldcoin.org/api/verify and prints the returned discount code. The key never leaves the local machine.

Then run it:

PRIVATE_KEY=$(cat .agent-key) ${CLAUDE_SKILL_DIR}/get-coupon.py <product_url>

Strip query parameters from the URL (e.g. https://store.myshopify.com/products/cool-shirt, NOT ...?variant=123).

Errors

If the API returns "Agent is not registered as a verified human", the user needs to register their agent. Tell them to run this command in a separate terminal (not inside Claude — it displays a QR code that requires a visual terminal):

npx --registry https://registry.npmjs.org @worldcoin/agentkit-cli register <wallet-address>

They verify with World ID. After registration, retry the discount command. See AgentKit docs for details.

Report errors to the user rather than retrying silently.