ecommerce

Implement shopping cart and checkout flows with fixed catalog pricing and currency formatting.

Updated Mar 27, 2026
One-click install
npx skills add https://github.com/madmaxfarm105-hue/Comando --skill ecommerce-madmaxfarm105-hue
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ecommerce
Source: https://github.com/madmaxfarm105-hue/Comando/tree/main/.emdash/skills/ecommerce
Command: npx skills add https://github.com/madmaxfarm105-hue/Comando --skill ecommerce-madmaxfarm105-hue

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you implement shopping cart, buy-now, and checkout flows so customers can purchase catalog items without breaking pricing or currency rules.

Core Features & Use Cases

  • Catalog-only safety guard: ensures cart and buyNow are implemented only when @catalog collections exist in src/entities/index.ts.
  • Fixed pricing enforcement: uses each catalog item’s price exactly as stored, with no custom/dynamic checkout pricing.
  • Correct currency rendering: formats all totals and line-item prices using formatPrice() and useCurrency() (never hardcoded symbols).
  • Required UI wiring checklist: provides a concrete checklist for cart UI, header cart icon + badge, and “Add to Cart” buttons on product surfaces.

Quick Start

Use the ecommerce skill to add a responsive cart drawer, wire “Add to Cart” on product cards, and connect checkout using useCart() while formatting money with formatPrice() and useCurrency().

Frequently Asked Questions about ecommerce

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

FAQPage Schema
How do I implement a shopping cart and checkout for my React catalog collections?

You build shopping cart and checkout for React catalog collections by wiring useCart() to manage quantities and purchases for collections marked with @catalog, ensuring fixed pricing is sourced directly from catalog item fields.

How do I format currency for ecommerce cart totals without hardcoding symbols?

You format ecommerce cart totals without hardcoding symbols by applying formatPrice() and useCurrency(), which provide a DEFAULT_CURRENCY fallback to render all line-item prices and totals correctly.

Can I apply dynamic or custom pricing when checking out catalog items?

No, you cannot apply dynamic or custom checkout pricing. The implementation enforces fixed pricing by using each catalog item's stored price field exactly as sourced, preventing custom checkout pricing logic.

What do I need to set up before adding a cart drawer and buy-now buttons?

Before adding a cart drawer and buy-now buttons, you need @catalog collections defined in src/entities/index.ts. A safety guard ensures cart and buyNow features activate only when these catalog collections exist.

What UI components do I need to wire for a complete ecommerce checkout flow?

For a complete ecommerce checkout flow, you need a cart drawer or modal, a header cart icon with a quantity badge, and Add to Cart buttons on product surfaces, guided by a required UI wiring checklist.