Skip to content

E-commerce cart, Stripe checkout, and inventory patterns with TypeScript and React examples for building online stores.

CCM score
42 of 100
skills.sh installs
380
GitHub stars
26
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers shopping cart state with Zustand, including add, update, remove, clear, and discount application with recalculated totals
  • Includes Stripe Checkout sessions, PaymentIntents, React Stripe Elements, and webhook handling for completed and failed payments
  • Enforces a 10% tax rate and free shipping over $100 in code, with a $9.99 flat shipping fee otherwise
  • Designed for developers building online stores with React or Next.js who need payment and cart reference implementations

Install

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

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

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(),

Details

Repository
github.com/miles990/claude-software-skills
Categories
Backend & APIs, Frontend & UI Code
First seen
Jun 3, 2026

Questions

What does the e-commerce skill help with?

The e-commerce skill covers building online shops, including shopping cart state management, payment processing with Stripe, and inventory management. It also covers order fulfillment, discounts and coupons, and shipping. It fits developers building shop, store, or checkout features.

How do I install the e-commerce skill?

Run npx -y skills add miles990/claude-software-skills --skill e-commerce -y in your project. Once installed, the agent gets patterns for building carts, checkout and payments.

Does the e-commerce skill work with Stripe checkout?

Yes, the skill includes Stripe integration with checkout sessions, payment intents, and webhook handling for events like checkout.session.completed. It also shows React Stripe Elements for a custom payment form. You will need Stripe keys set as environment variables.

Where does the e-commerce skill stand in its category?

It is listed under Backend & APIs on Claude Marketplaces, alongside skills such as neon, firebase-basics, and workers-best-practices. It stands out by covering the full shop flow, from cart state to payment and inventory, in one skill.

More from miles990/claude-software-skills

All 5

Similar to E Commerce

More Backend & APIs