vector-permissions

Implement RBAC permission checks and role management in Vector.

2|4|Updated Jun 23, 2025
One-click install
npx skills add https://github.com/xrehpicx/vector --skill vector-permissions
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vector-permissions
Source: https://github.com/xrehpicx/vector/tree/main/.agents/skills/vector-permissions
Command: npx skills add https://github.com/xrehpicx/vector --skill vector-permissions

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill unit provides a comprehensive guide for managing permissions and Role-Based Access Control (RBAC) within the Vector platform, streamlining backend authorization, role management, and frontend integration.

Core Features & Use Cases

  • Permission and RBAC Guide: Offers a detailed guide for backend authorization, role tables, scoped roles, and migrations.
  • Backend and Frontend Integration: Provides instructions for implementing permission checks and UI hooks.
  • Role Model Management: Offers guidelines for custom roles, built-in role bundles, and membership tables.
  • Validation and Testing: Includes instructions for validating changes and running type checks.
  • Use Case: Ideal for a team looking to implement a robust permission system in Vector, ensuring secure access to resources and functionalities.

Quick Start

To understand the Vector permission system, read the guide at https://github.com/xrehpicx/vector/tree/main/docs/architecture/permissions-system.md.

Frequently Asked Questions about vector-permissions

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

FAQPage Schema
How do I set up RBAC and backend authorization in Vector?

To set up RBAC in Vector, you implement backend authorization using role tables, scoped roles, and migrations. This system manages role assignments and scope validation to ensure secure access control across platform resources.

How does frontend permission integration work with Vector's RBAC system?

Frontend permission integration in Vector works by implementing UI hooks that check user roles and scopes. These hooks interact with backend authorization checks to conditionally render UI components based on the user's current permissions.

What is the best way to manage custom roles and memberships in Vector?

The best way to manage custom roles in Vector is by utilizing the role model management guidelines, which support creating custom roles, using built-in role bundles, and defining membership tables to map users to specific permission scopes.

How do I validate permission changes and run type checks in Vector?

You validate permission changes in Vector by following the included validation and testing instructions to run type checks. This ensures your Convex permission checks and role management migrations function securely before deployment.

Can I use Convex permission checks for scoped role validation in Vector?

Yes, you can use Convex permission checks for scoped role validation in Vector. The system focuses on Convex backend authorization to validate user scopes and manage role assignments efficiently.

Why do I need scoped roles when implementing backend authorization in Vector?

Scoped roles are needed in Vector backend authorization to restrict access to specific resources and functionalities. They ensure granular access control by validating user permissions against defined role scopes and membership tables.