skills/vendix-prisma/SKILL.md
Prisma ORM overview for Vendix: Prisma 7 config, schema location, scoped services, migrations, seeds, and correct workspace commands. Trigger: When editing schema.prisma, creating migrations, using Prisma client, or seeding database data.
npx skillsauth add rzyfront/vendix vendix-prismaInstall 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/package.json and currently use Prisma 7.x.apps/backend/prisma/schema.prisma.apps/backend/prisma.config.ts.prisma.config.ts from process.env.DATABASE_URL, not in schema.prisma.@prisma/adapter-pg and pg.Pool in backend Prisma services.snake_case; enum values are mixed. Treat the schema as source of truth.Use domain-appropriate services instead of raw PrismaClient in request handlers:
| Domain | Service |
| --- | --- |
| domains/superadmin/ | GlobalPrismaService |
| domains/organization/ | OrganizationPrismaService |
| domains/store/ | StorePrismaService |
| domains/ecommerce/ | EcommercePrismaService |
| jobs/seeds/system scripts | GlobalPrismaService or explicit approved withoutScope() |
For model registration and tenant isolation details, use vendix-prisma-scopes.
Run from repo root unless stated otherwise:
npm run prisma:generate -w apps/backend
npm run prisma:studio -w apps/backend
npm run db:migrate:dev -w apps/backend
npm run db:migrate:prod -w apps/backend
npm run db:seed -w apps/backend
npm run db:reset -w apps/backend
npm run db:clean -w apps/backend
npm run db:reset-seed
Use vendix-prisma-migrations before creating/reviewing migration SQL.
withoutScope() in request handlers without explicit approval.vendix-prisma-schemavendix-prisma-migrationsvendix-prisma-scopesvendix-prisma-seeddevelopment
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.