vendix-permissions

Synchronize NestJS controller @Permissions decorators with Prisma seed data.

5|Updated Aug 23, 2025
One-click install
npx skills add https://github.com/Rzyfront/Vendix --skill vendix-permissions
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vendix-permissions
Source: https://github.com/Rzyfront/Vendix/tree/main/skills/vendix-permissions
Command: npx skills add https://github.com/Rzyfront/Vendix --skill vendix-permissions

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Vendix permissions often diverge between code-defined decorators and the seed data, leading to inconsistent access control and hidden security gaps.

Core Features & Use Cases

  • Synchronizes permissions defined with the NestJS @Permissions decorator in controllers with the Prisma seed data, ensuring alignment.
  • Enables auditing by surfacing discrepancies between code and seed and providing clear steps to reconcile them.
  • Supports safe updates by guiding changes in both controllers and seeds and re-running the seed to apply changes.

Quick Start

Inspect the controllers for @Permissions usage and compare against the seed at apps/backend/prisma/seeds/permissions-roles.seed.ts, then run the seed script to apply updates.

Frequently Asked Questions about vendix-permissions

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
Why do NestJS controller permissions diverge from Prisma seed data?

NestJS controller permissions diverge from Prisma seed data when decorators and seed files are updated independently, creating hidden security gaps. Synchronizing them ensures consistent authorization across code and database seeds.

How do I synchronize NestJS @Permissions decorators with Prisma seed files?

To synchronize NestJS @Permissions decorators with Prisma seed files, inspect controllers for decorator usage, compare them against the permissions-roles seed file, reconcile discrepancies, and run the seed script to apply updates.

What is the best way to audit RBAC access gaps in a NestJS application?

The best way to audit RBAC access gaps is to compare permissions defined in NestJS @Permissions decorators against the Prisma permissions-roles seed file, surfacing discrepancies and providing clear steps to reconcile them.

Can I update authorization rules across both NestJS controllers and database seeds safely?

Yes, you can safely update authorization rules by applying changes to both NestJS controllers and the Prisma seed file, then re-running the seed script to ensure the database reflects the updated permissions.

Do I need a specific Prisma seed file path to audit Vendix permissions?

Yes, auditing Vendix permissions requires access to the seed file located at apps/backend/prisma/seeds/permissions-roles.seed.ts and the ability to run the seed script to apply updates.