Handles the full e-commerce stack from cart state management through payment processing and inventory tracking. You get Zustand-based shopping cart patterns with persistent storage, complete Stripe integration including checkout sessions and webhook handling, and React components using Stripe Elements for custom payment flows. The cart recalculation logic covers discounts, tax, and shipping automatically. Most useful when you're building a store from scratch and need working examples of the tricky parts like payment intent creation, variant handling, and keeping inventory in sync. The code assumes Stripe but the patterns work with other payment processors if you swap the API calls.

skills.sh installs
377
GitHub stars
26
last updated
Aug 21, 2026

Install

$ npx -y skills add miles990/claude-software-skills --skill e-commerce --agent claude-code

Installs into .claude/skills of the current project.

Files

E-Commerce Development

Overview

Building e-commerce applications with shopping carts, payment processing, inventory management, and order fulfillment.


Shopping Cart

Cart State Management

interface CartItem {
  productId: string;
  variantId?: string;
  quantity: number;
  price: number;
  name: string;
  image: string;
}

interface Cart {
  id: string;
  items: CartItem[];
  subtotal: number;
  tax: number;
  shipping: number;
  total: number;
  discountCode?: string;
  discountAmount: number;
}

// Zustand cart store
import { create } from 'zustand';
import { persist } from 'zustand/middleware';

interface CartStore {
  cart: Cart;
  addItem: (item: Omit<CartItem, 'quantity'>, quantity?: number) => void;
  updateQuantity: (productId: string, quantity: number) => void;
  removeItem: (productId: string) => void;
  clearCart: () => void;
  applyDiscount: (code: string) => Promise<void>;
}

const useCartStore = create<CartStore>()(
  persist(
    (set, get) => ({
      cart: createEmptyCart(),

Sponsors

Details

Repository
github.com/miles990/claude-software-skills
Category
Finance & Trading
First seen
Jun 3, 2026

More from miles990/claude-software-skills

All 8
1levnikolaevich avatarln-633-test-value-auditorlevnikolaevich/claude-code-skillsScores each test by portfolio value and returns KEEP/DELETE/MERGE/REWRITE. Use when pruning test-suite cost.372skills.sh installs
2membranedev avatarnetsuitemembranedev/application-skillsNetSuite integration. Manage accounting and erp data, records, and workflows. Use when the user wants to interact with NetSuite data.367skills.sh installs
3base avatarbuilding-with-base-accountbase/skillsIntegrates Base Account SDK for authentication and payments. Covers Sign in with Base (SIWB), Base Pay, Paymasters, Sub Accounts, Spend Permissions, Prolinks, a357skills.sh installs
4membranedev avatarxeromembranedev/application-skillsXero integration. Manage accounting data, records, and workflows. Use when the user wants to interact with Xero data.346skills.sh installs
5hummingbot avatarfind-xemm-oppshummingbot/skillsFind Cross-Exchange Market Making (XEMM) opportunities by comparing order book depth and liquidity across exchanges. Identifies pairs where one exchange has thi339skills.sh installs
6membranedev avatarquickbooksmembranedev/application-skillsQuickbooks integration. Manage accounting data, records, and workflows. Use when the user wants to interact with Quickbooks data.338skills.sh installs