ecommerce-patterns

Implement cart handling, Stripe payments, and order tracking for e-commerce platforms.

Updated Dec 5, 2025
One-click install
npx skills add https://github.com/mpetito/prompts --skill ecommerce-patterns-mpetito
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ecommerce-patterns
Source: https://github.com/mpetito/prompts/tree/main/skills/ecommerce-patterns
Command: npx skills add https://github.com/mpetito/prompts --skill ecommerce-patterns-mpetito

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires stripe, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the challenges of implementing comprehensive e-commerce features, streamlining shopping cart, checkout, and payment processes.

Core Features & Use Cases

  • Cart Management: Implementing cart systems with price calculations in cents and persistent local storage.
  • Checkout Workflow: Managing shipping address validation, shipping method selection, and payment integration with Stripe.
  • Order Lifecycle: Tracking order statuses, generating unique order numbers, and managing gift cards.
  • Analytics & Tracking: Integrating e-commerce event tracking with GA4 and Plausible.
  • Use Case: Creating an online store where users add items to cart, proceed through checkout, pay via Stripe, and see real-time analytics updates.

Quick Start

Use the ecommerce-patterns skill to integrate a complete shopping cart with Stripe checkout and order management.

Frequently Asked Questions about ecommerce-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a shopping cart with Stripe checkout and local storage?

To build a shopping cart with Stripe checkout, implement price calculations in cents and use local storage validation to persist cart data. This approach manages product prices, handles checkout workflows, and ensures scalable user experiences.

What is the best way to manage the e-commerce order lifecycle and generate unique order numbers?

Managing the e-commerce order lifecycle involves tracking order statuses and generating unique order numbers. This process handles order creation, status updates, and gift card management to maintain accurate transaction records.

How do I track e-commerce events with GA4 and Plausible during checkout?

Tracking e-commerce events with GA4 and Plausible requires integrating event tracking into the checkout workflow. This setup captures user interactions during cart management and payment processing to provide real-time analytics updates.

Do I need Stripe API to handle payment processing and shipping address validation?

Yes, the Stripe API is required to handle payment processing, shipping address validation, and shipping method selection. It facilitates safe checkout workflows and manages transactions for full-featured e-commerce platforms.

Can I manage product prices in cents for accurate cart calculations?

Yes, managing product prices in cents is required for accurate cart calculations. This convention prevents floating-point errors during price calculations and ensures precise totals for checkout and payment integration.

Why does local storage validation matter for persistent shopping carts?

Local storage validation matters for persistent shopping carts because it ensures cart data remains accurate and available across sessions. This mechanism maintains cart integrity and supports a seamless checkout flow for returning users.