aj-geddes/useful-ai-prompts5 files

Access Control Rbac

>

Specification
Skill ID
aj-geddes/useful-ai-prompts/access-control-rbac
Publisher
aj-geddes
Repository
useful-ai-prompts
Installs
0
Files
5
Synced
Sep 23, 2026
How to use it

Open any RiverX project, open the Skills panel in the chat, and search for this identifier. The files are fetched from the source repository at install time.

aj-geddes/useful-ai-prompts/access-control-rbacInstalls these files
  • SKILL.md
  • references/java-spring-security-rbac.md
  • references/nodejs-rbac-system.md
  • references/python-abac-attribute-based-access-control.md
  • scripts/security-checklist.sh

What this skill tells the agent

Access Control & RBAC

Table of Contents

  • Overview
  • When to Use
  • Quick Start
  • Reference Guides
  • Best Practices

Overview

Implement comprehensive Role-Based Access Control systems with permissions management, attribute-based policies, and least privilege principles.

When to Use

  • Multi-tenant applications
  • Enterprise access management
  • API authorization
  • Admin dashboards
  • Data access controls
  • Compliance requirements

Quick Start

Minimal working example:

// rbac-system.js
class Permission {
  constructor(resource, action) {
    this.resource = resource;
    this.action = action;
  }

  toString() {
    return `${this.resource}:${this.action}`;
  }
}

class Role {
  constructor(name, description) {
    this.name = name;
    this.description = description;
    this.permissions = new Set();
    this.inherits = new Set();
  }

  addPermission(permission) {
    this.permissions.add(permission.toString());
  }

  removePermission(permission) {
// ... (see reference guides for full implementation)

Reference Guides

Detailed implementations in the references/ directory:

GuideContents
Node.js RBAC SystemNode.js RBAC System
Python ABAC (Attribute-Based Access Control)Python ABAC (Attribute-Based Access Control)
Java Spring Security RBACJava Spring Security RBAC

Best Practices

✅ DO

  • Implement least privilege
  • Use role hierarchies
  • Audit access changes
  • Regular access reviews
  • Separate duties
  • Document permissions
  • Test access controls
  • Use attribute-based policies

❌ DON'T

  • Grant excessive permissions
  • Share accounts
  • Skip access reviews
  • Hardcode permissions
  • Ignore audit logs
  • Use role explosion

Use this skill in a project

Open any RiverX project, search the Skills panel for aj-geddes/useful-ai-prompts/access-control-rbac, and install it in one click.

Use this skill