Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills Aโ€“Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

Back to skills

Commerce Blueprint

ASecurity

Deep expertise in E-commerce domain logic (Cart, Checkout, SKU). Trigger this when building shopping features on top of MVC or ADR.

76 stars
0 votes
0 copies
4 views
Added 2/8/2026
businesstypescriptdatabasesecurity

Security Analysis

A100/100

Scanned 2/12/2026

Install to Claude Code

$npx -y skills add majiayu000/claude-skill-registry --skill commerce-blueprint --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Commerce Blueprint?

Add the live security badge to your README โ€” it updates automatically with every re-scan.

Security grade badge for Commerce Blueprint
[![Security: A โ€” Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-commerce-blueprint/badge)](https://www.skillsdirectory.com/skills/majiayu000-commerce-blueprint)

More formats (shields.io, HTML) on the badges page.

Download Zip
Files
SKILL.md
---
name: commerce-blueprint
description: Deep expertise in E-commerce domain logic (Cart, Checkout, SKU). Trigger this when building shopping features on top of MVC or ADR.
---

# Commerce Blueprint Expert

You are a domain specialist in E-commerce. Your role is to provide the "Business Brain" for shopping components, ensuring reliability in transactions, inventory, and cart state.

## ๐Ÿ›๏ธ Domain Logic: The Shopping Cart

When implementing a Cart, do not just build a "Table". Follow these domain rules:

### 1. Cart Management
- **Stateless vs Stateful**: Determine if the cart is stored in Redis (guest) or Database (logged in).
- **Merge Logic**: Implement a strategy to merge a guest cart into a user cart upon login.
- **Price Snapshots**: Always snapshot the price at the moment an item is added to avoid "Price Changing in Cart" errors.

### 2. Checkout State Machine
Checkout is not a single action. It is a state machine:
`DRAFT` -> `ADDRESS_SET` -> `SHIPPING_SELECTED` -> `PAYMENT_PENDING` -> `COMPLETED` / `FAILED`.

## ๐Ÿ—๏ธ Code Blueprints (Vertical Logic)

### Cart Item Interface
```typescript
export interface CartItem {
  sku: string;
  quantity: number;
  unitPrice: number; // Snapshot
  attributes: Record<string, any>; // Color, Size
}
```

### Checkout Guard
```typescript
async function validateInventory(items: CartItem[]) {
  // Rule: Lock inventory during checkout to avoid overselling.
}
```

## ๐Ÿš€ Workflow (SOP)

1. **Architecture Choice**: Decide whether to use `mvc-master` or `adr-scaffold`.
2. **Domain Mapping**: Define `SKU`, `Inventory`, and `Order` models.
3. **Cart Strategy**: Implement the Cart service (Redis/DB).
4. **Service Integration**: Use `commerce-blueprint` to define the complex transition logic between "Cart" and "Order".
5. **Security**: Implement Idempotency Keys for payment processing.

## ๐Ÿ›ก๏ธ Best Practices
- **Inventory Locking**: Use pessimistic locking in Atlas for high-concurrency SKU updates.
- **Tax & Shipping**: Encapsulate calculation logic in `Domain Services` to keep Models clean.
- **Audit Logs**: Every status change in an Order MUST be logged.

Attribution

majiayu000majiayu000
View sourceMore from majiayu000 โ†’
SSkills DirectorySkills Directory

Your tool, in front of Claude Code builders.

3 founder slots ยท $299/mo ยท GSC-verified traffic ยท sponsors can never buy grades.

See placements

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Your tool, in front of Claude Code builders.

3 founder slots ยท $299/mo ยท GSC-verified traffic ยท sponsors can never buy grades.

See placements

Related Skills

Solution Architect

Designs system architecture, component specifications, and technical integration strategy. Use when: designing solutions, system architecture, technology stack, or integration approaches.

192 votes

Akorchak:Venture Assessment

Generate a comprehensive VC investment assessment report for a company

72 votes

Stock Analysis

Analyze stocks and cryptocurrencies using Yahoo Finance data. Supports portfolio management (create, add, remove assets), crypto analysis (Top 20 by market cap), and periodic performance reports (daily/weekly/monthly/quarterly/yearly). 8 analysis dimensions for stocks, 3 for crypto. Use for stock analysis, portfolio tracking, earnings reactions, or crypto monitoring.

6511 votes

Just Fucking Cancel

Find and cancel unwanted subscriptions by analyzing bank transactions. Detects recurring charges, calculates annual waste, and helps you cancel with direct URLs and browser automation. Use when: 'cancel subscriptions', 'audit subscriptions', 'find recurring charges', 'what am I paying for', 'save money', 'subscription cleanup', 'stop wasting money'. Supports CSV import (Apple Card, Chase, Amex, Citi, Bank of America, Capital One, Mint, Copilot) OR Plaid API for automatic transaction pull. Out...

6511 votes

Telegram Compose

Compose rich, readable Telegram messages using HTML formatting via direct Telegram API. Use when: (1) Sending any Telegram message beyond a simple one-line reply, (2) Creating structured messages with sections, lists, or status updates, (3) Need formatting unavailable via Clawdbot's Markdown conversion (underline, spoilers, expandable blockquotes, user mentions by ID), (4) Sending alerts, reports, summaries, or notifications to Telegram, (5) Want professional, scannable message formatting wit...

6511 votes
View all in business โ†’