skills/vendix-product-pricing/SKILL.md
Product and variant pricing patterns: cost, margin, base price, variant price_override, sale price, tax-derived final_price, and frontend reactive calculations. Trigger: When editing product schemas, pricing logic, or advanced product forms.
npx skillsauth add rzyfront/vendix vendix-product-pricingInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
apps/backend/prisma/schema.prisma.apps/backend/src/domains/store/products/products.service.ts.apps/frontend/src/app/private/modules/store/products/.Products:
base_price: listing price before taxes.cost_price: acquisition/manufacturing cost.profit_margin: target margin percentage.is_on_sale: sale flag.sale_price: promotional price.Product variants:
price_override: variant-specific listing price override.cost_price: variant cost.profit_margin: variant margin.is_on_sale: variant sale flag.sale_price: variant promotional price.Do not document or add product_variants.base_price; variants use price_override.
base_price = cost_price * (1 + profit_margin / 100).profit_margin = ((base_price - cost_price) / cost_price) * 100 when cost is positive.is_on_sale and must be less than the regular/base price.product_tax_assignments / tax categories.final_price; this is not persisted for products.emitEvent: false where needed).vendix-currency-formatting patterns.final_price.final_price in read responses from sale/base price plus assigned tax rates.vendix-calculated-pricingvendix-currency-formattingvendix-angular-formsvendix-prisma-schemadevelopment
Mobile app development rules for Vendix Expo/React Native project. Trigger: When editing, creating, or modifying any file under apps/mobile, or when developing mobile-specific features.
development
Feature gating by store subscription state: global store write guard, AI feature gate, Redis feature resolution, quota consumption, frontend paywall interceptor, banner, and subscription UI states. Trigger: When adding feature gates, paywalls, subscription-based access control, protecting store write operations, AI feature gates, or rollout flags.
testing
SaaS subscription billing for Vendix stores: plan pricing, invoices, Wompi platform payments, manual payments, partner commissions, payouts, proration, and dunning. Trigger: When creating SaaS invoices, working with partner rev-share, margin/surcharge pricing, invoice sequence allocation, partner payout batches, subscription payments, manual payments, or dunning flows.
development
Periodic quota counters with Redis, UTC period keys, Lua-based idempotent AI quota consumption, request-id deduplication, and post-success consumption. Trigger: When building quota counters, enforcing monthly/daily feature caps, or reusing AI quota patterns for uploads, emails, exports, or rate-limited features.