skills/vendix-calculated-pricing/SKILL.md
Standardize calculated prices with taxes/fees: persist base/snapshot values only, calculate product final_price on reads, and keep tax-inclusive values out of create/update payloads. Trigger: When working with pricing that includes taxes/fees, UI price displays, or backend price calculations.
npx skillsauth add rzyfront/vendix vendix-calculated-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.
Do not persist calculated display prices for products. Persist base/sale inputs and tax assignments; calculate final display price on read.
Current product API uses final_price for calculated tax-inclusive responses. Do not standardize new code on price_with_tax unless the existing endpoint/interface already uses that name.
base_price, cost_price, profit_margin, is_on_sale, sale_price.product_variants.price_override.product_tax_assignments.final_price = effectiveBase * (1 + sum(taxRates)).sale_price when is_on_sale is true and sale price is valid.Orders, invoices, payments, refunds, and accounting documents can store totals because they are historical transaction snapshots. Those amounts must not change if product prices or tax rates change later.
final_price or equivalent calculated fields.final_price for convenience.vendix-product-pricingvendix-currency-formattingvendix-date-timezone for historical timestamp semanticsdevelopment
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.