skills/vendix-redis-quota/SKILL.md
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.
npx skillsauth add rzyfront/vendix vendix-redis-quotaInstall 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/src/domains/store/subscriptions/services/subscription-access.service.tsapps/backend/src/domains/store/subscriptions/types/access.types.tsapps/backend/src/common/redis/redis.module.tsAI quota checks are read-only. Consumption happens only after a successful operation and requires a stable requestId.
ai:quota:{storeId}:{feature}:{period}.ai:quota:dedup:{storeId}:{feature}:{period}.YYYYMMDD for daily, YYYYMM for monthly.consumeAIQuota() requires non-empty requestId; missing request id throws InternalServerErrorException.eval to deduplicate by request id and increment quota once.<= 0, not a huge sentinel number.For non-AI quotas, either reuse the same Lua+dedup approach or create a dedicated quota service. Use domain-specific prefixes like:
emails:quota:{storeId}:transactional:{YYYYMM}exports:quota:{userId}:pdf:{YYYYMMDD}uploads:quota:{storeId}:images:{YYYYMM}Do not copy old bare INCRBY + EXPIRE examples for flows where duplicate retries matter.
requestId is a programming error in the current AI implementation and should not be swallowed.vendix-subscription-gatevendix-ai-platform-corevendix-error-handlingdevelopment
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.
data-ai
Product and service variant rules for Vendix: variants as sellable options, inventory-independent availability, service variant booking overrides, and ecommerce/POS/cart behavior. Trigger: When creating, editing, validating, or selling product variants, service variants, products without stock, or any flow where variant availability must not be confused with inventory.