skills/vendix-backend-api/SKILL.md
Vendix backend API endpoint patterns: flat namespaced controllers, DTO-first request validation, ResponseService helpers, pagination responses, and service/controller responsibilities. Trigger: When creating API endpoints.
npx skillsauth add rzyfront/vendix vendix-backend-apiInstall 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/**/**/*.controller.tsapps/backend/src/common/responses/response.service.tsapps/backend/src/common/errors/apps/backend/src/main.tsCurrent controllers use flat namespaced prefixes such as:
store/...organization/...superadmin/...public/...Do not document old domains/:domain_id/... route patterns unless you are explicitly working with legacy code.
ValidationPipe rather than ad-hoc parsing.VendixHttpException/ErrorCodes when standardized domain errors exist.ResponseService currently exposes helpers including:
success(data, message?, meta?)paginated(data, total, page, limit, message?)noContent(message?)created(data, message?)updated(data, message?)deleted(message?)Use the helper that matches the intent rather than always falling back to success().
Paginated services typically return raw data + total + page + limit inputs to the controller/response helper, not a nested { data, meta } structure for ResponseService.paginated().
vendix-backendvendix-validationvendix-error-handlingvendix-backend-authdevelopment
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.