UCP Discount Management

•
32
•

Implements and manages Universal Commerce Protocol (UCP) discount logic, including validation, allocation tracking, and automated error handling for checkout flows.

The ucp-discount skill enables Claude to seamlessly integrate sophisticated discount and promotional code logic into UCP-based checkout systems. It provides standardized methods for applying codes, validating their status—such as expiry, eligibility, and combination rules—and calculating precise price allocations across line items to ensure accounting integrity. By automating complex commerce rules like priority application and 'each' vs. 'across' distribution methods, this skill streamlines the development of agentic commerce solutions and ensures strict compliance with official UCP specifications.

Características Principales

01Automated discount code validation and standard error handling
02Priority-based application logic for complex multi-discount interactions
03Precise allocation tracking using JSONPath mapping for line items
04Live UCP specification fetching for up-to-date schema compliance
05Support for both automatic and manual discount application methods
0632 GitHub stars

Casos de Uso

01Building agent-led shopping experiences that resolve promo code errors for users
02Standardizing error messaging for invalid, expired, or ineligible promotional offers
03Implementing complex discount allocation models for multi-item checkouts