
Access Control Rbac
This is a solid foundation for implementing role based access control in your app. You get working examples in Node.js, Python, and Java Spring Security, covering both traditional RBAC and attribute based access control. The code shows permission classes, role hierarchies, and policy evaluation logic you can adapt. Honestly, the examples are educational but you'll need to extend them significantly for production use, especially around persistence, caching, and integration with your auth system. Best suited for teams building their first serious authorization layer or migrating from ad hoc permission checks to something structured. The best practices section is actually useful, emphasizing least privilege and avoiding role explosion.
- skills.sh installs
- 763
- GitHub stars
- 379
- last updated
- Aug 21, 2026
Install
$ npx -y skills add aj-geddes/useful-ai-prompts --skill access-control-rbac --agent claude-codeInstalls into .claude/skills of the current project.
Files
Access Control & RBAC
Table of Contents
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
Sponsors
Details
- Repository
- github.com/aj-geddes/useful-ai-prompts
- Categories
- Security, AI & Agent Building
- First seen
- Jun 3, 2026
More from aj-geddes/useful-ai-prompts
All 258- User Guide Creation762
- Kubernetes Deployment759
- Logging Best Practices742
- Visual Regression Testing731
- Flutter Development725
- E2e Testing Automation695
- Business Case Development683
- React Component Architecture683
- Docker Containerization681
- Agile Sprint Planning677
- Log Analysis674
- Security Compliance Audit673
- Project Estimation670
- Gitlab Cicd Pipeline669
- Websocket Implementation668
- Requirements Gathering663
- Image Optimization662
- Ruby Rails Application660
- Api Rate Limiting647
- Internationalization I18n642
- Information Architecture641
- Backup Disaster Recovery626
- Github Actions Workflow626
- Color Accessibility624