create-rbac

Configure role-based access control for DaaS applications via MCP tools.

Updated May 27, 2026
One-click install
npx skills add https://github.com/Rkaaaa404/cyberhack-SYDT --skill create-rbac-rkaaaa404
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: create-rbac
Source: https://github.com/Rkaaaa404/cyberhack-SYDT/tree/main/.agents/skills/create-rbac
Command: npx skills add https://github.com/Rkaaaa404/cyberhack-SYDT --skill create-rbac-rkaaaa404

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Setting up role-based access control in DaaS applications requires coordinating roles, policies, access entries, and permissions across multiple entities, which is error-prone and tedious when done manually. ## Core Features & Use Cases - Complete RBAC Setup: Creates roles, policies, access links, and permission rules through DaaS MCP tools following the Role → Access → Policy → Permission hierarchy. - Dynamic Filter Patterns: Supports own_items, role_hierarchy, and public_read patterns using dynamic variables like $CURRENT_USER and $CURRENT_ROLES for item-level and field-level restrictions. - Scoped Role Assignment: Handles multi-tenancy through scope_config restrictions and scope-aware role assignment via resource_uri. - Use Case: When building a multi-role content app, use this Skill to create Editor and Viewer roles, link them to policies, and define permissions so editors manage all articles while viewers only read published ones. ## Quick Start Set up RBAC for my articles collection with an Editor role that has full access and a Viewer role that can only read published items.

Frequently Asked Questions about create-rbac

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

FAQPage Schema
How do I set up role-based access control in DaaS?▼

Create roles first, then policies, link them via access entries, and finally create permission rules defining collection, action, fields, and item filters. Each step uses the corresponding DaaS MCP tool: roles, policies, access, and permissions.

How do I restrict users to only their own items in DaaS permissions?▼

Add an item-level filter using the $CURRENT_USER dynamic variable, such as { "user_created": { "_eq": "$CURRENT_USER" } }, on the permission's permissions field. Combine with presets to auto-set user_created on create actions.

What is the difference between a policy and a permission in DaaS RBAC?▼

A policy is a container linked to roles or users through access entries, while a permission is a single rule inside a policy defining collection, action, allowed fields, and item-level filters. Policies group multiple permissions together.

Why does RBAC appear to have no effect in my DaaS frontend?▼

The app is likely missing the app/api/permissions/me/route.ts proxy route. Without it, Buildpad components fall back to empty permissions and grant full UI access, though DaaS still enforces permissions server-side.

Can DaaS roles be restricted to specific tenants or scopes?▼

Yes, use scope_config with allowed_scopes patterns on the role, then assign it via the scope tool's assign_user_role action with a resource_uri. The role only applies within that scope node and its descendants.