No slash command · from anglesite
Integrates Shopify Buy Button for physical product catalogs with inventory management, order tracking, and shipping. Delegates product management to Shopify admin.
Ships in anglesite. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Set up Shopify Buy Button for selling physical goods with a full catalog (10+ products) that needs inventory management, order tracking, and shipping configuration. The owner manages products in Shopify's admin dashboard; Claude embeds Buy Buttons on the site.
This skill is invoked by /anglesite:add-store when the owner is selling physical goods with a full catalog and needs a dashboard.
Read EXPLAIN_STEPS from .site-config. If true or not set, explain before every tool call that will trigger a permission prompt. If false, proceed without pre-announcing.
Unlike Snipcart (where Claude manages products as content files), Shopify Buy Button delegates product management entirely to Shopify:
ShopifyBuyButton component on the siteCF_PROJECT_NAME set in .site-config)Ask the owner:
"For a full product catalog with inventory management, Shopify is the best fit. It starts at $5/month and gives you a dashboard for products, orders, shipping, and discounts.
Do you already have a Shopify account, or do I need to walk you through setting one up?"
If they don't have an account:
"Here's how to get started:
- Go to https://www.shopify.com/starter and sign up
- Add your products in the Shopify admin
- Come back here and I'll connect your store to your site
Take your time — I'll be here when you're ready."
Exit gracefully. Do not write any files.
Once the owner has a Shopify account with products:
"Great! Now I need the Buy Button embed code for a product. Here's how to get it:
- In your Shopify admin, go to Products
- Click the product you want to add
- Click More actions → Embed on an external website
- Copy the embed code and paste it here
I'll use this to connect your store to your site. You can add more products the same way later."
Use parseShopifyEmbed() from ${CLAUDE_PLUGIN_ROOT}/template/scripts/shopify-buy-button.ts to extract:
domain — the shop's myshopify.com domainstorefrontAccessToken — the public Storefront API tokenproductId — the Shopify product IDIf parsing fails, ask the owner to paste the code again. Common issues:
Copy the ShopifyBuyButton.astro component from ${CLAUDE_PLUGIN_ROOT}/template/src/components/ShopifyBuyButton.astro to the site's src/components/, and its loader from ${CLAUDE_PLUGIN_ROOT}/template/src/scripts/shopify-buy-button.ts to the site's src/scripts/ (skip either file if the site already has the current version).
The component has no inline script: the site's CSP has no 'unsafe-inline' (ADR-0008), so Shopify's copy-paste embed snippet would be blocked. Instead the props travel as data-shopify-* attributes on the product node and the bundled first-party loader reads them. Make sure the site's astro.config.ts has the vite.build.assetsInlineLimit setting from ${CLAUDE_PLUGIN_ROOT}/template/astro.config.ts — without it Astro inlines small scripts into the page and the CSP blocks them. Never paste Shopify's raw <script> snippet into a page, and never "fix" a blocked button by adding 'unsafe-inline' to the CSP.
Create or update the page where the product should appear. For the first product, suggest a /shop or /products page:
---
import BaseLayout from '../layouts/BaseLayout.astro';
import ShopifyBuyButton from '../components/ShopifyBuyButton.astro';
---
<BaseLayout title="Shop" description="Browse our products">
<main>
<h1>Shop</h1>
<div class="product-grid">
<ShopifyBuyButton
domain="{domain}"
storefrontAccessToken="{storefrontAccessToken}"
productId="{productId}"
/>
</div>
</main>
</BaseLayout>
<style>
.product-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 2rem;
margin-block-start: 2rem;
}
</style>
The shipped public/_headers does not allow Shopify's domains; without this step the site builds fine and then breaks in production. Make sure ECOMMERCE_PROVIDER=shopify is saved in .site-config (the sync reads it), then run:
npm run ai-csp
It adds the provider's domains to the Content-Security-Policy in public/_headers in place — everything already there is kept — and prints each source it added (+ script-src: …). "up to date" means they were already present. The pre-deploy third-party script scan reads the same key, so no separate allowlist edit is needed.
Save to .site-config:
ECOMMERCE_PROVIDER=shopify
SHOPIFY_DOMAIN=my-store.myshopify.com
SHOPIFY_STOREFRONT_TOKEN=abc123def456
The storefront access token is a public token (like Stripe's publishable key) — safe to store in .site-config.
Run npm run build to ensure the site builds cleanly with the Shopify component.
Tell the owner:
"Your store is connected! The Buy Button will show your product with its image, price, and an 'Add to Cart' button — all powered by Shopify.
To manage your products, orders, and inventory, go to your Shopify admin at https://admin.shopify.com.
Want to add more products or preview the site?"
If the build fails, diagnose and fix before presenting.
When the owner wants to add another product:
<ShopifyBuyButton> component to the shop pageShopify Buy Button works well for any catalog size. If the owner outgrows the Starter plan and wants a full Shopify storefront with a custom theme, they can upgrade their plan — the Buy Button continues to work alongside or can be replaced with a full Shopify store link.
After setup, the /anglesite:add-store skill deploys the ecommerce webhook worker for revenue tracking. If this skill was invoked directly (not via add-store), set up the Shopify webhook:
npx wrangler deploy --config worker/wrangler-ecommerce.tomlnpx wrangler secret put SHOPIFY_WEBHOOK_SECRET --config worker/wrangler-ecommerce.tomlorders/paid → URL: https://ecommerce-webhooks.<subdomain>.workers.dev/webhook/shopifyWhat SKILL.md sets; muted values are Claude Code's defaults
Use when the owner already uses Shopify or has a larger physical-product catalog with inventory to manage from a dashboard.
56 skills in this plugin
/add-storeAdd ecommerce to the site — picks and sets up a provider for physical goods, digital downloads, services, or software/animateDesign CSS animations: hover effects, scroll reveals, page transitions/backupBack up site changes to GitHub, or restore an earlier snapshot/bookingEmbed appointment scheduling (Cal.com or Calendly) into the site/business-infoCollect and display business hours, address, phone, and LocalBusiness JSON-LD/buy-buttonAdd a buy button to sell a product, service, or digital good (Stripe or Polar)npx claudepluginhub anglesite/anglesite-skills --plugin anglesiteOther plugins' skills for the same job