Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Forge Rbac Authorization?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/ansh44233-forge-rbac-authorization)
---
name: forge-rbac-authorization
description: Implement role- and permission-based authorization with deny-by-default checks at the service layer
---
<!-- Generated from catalog/skills/rbac-authorization/SKILL.md by scripts/build-plugin.ts. Edit the catalog, not this file. -->
# RBAC authorization
Authentication says who; authorization says what. Most breaches are the second.
## Model
- Permissions are verbs on resources (`invoice:read`, `invoice:refund`); roles are bundles of permissions.
- Check permissions, not role names, in code.
## Enforcement
- Deny by default; one central `can(user, action, resource)` function or policy engine (Casbin, OPA, Pundit, CASL).
- Check object ownership/tenancy, not just the permission (prevents IDOR).
- Enforce on the server; UI hiding is only cosmetic.
## Operations
- Audit log for permission changes and privileged actions.
- Tests for each role against each sensitive action.
## Verify
A permission matrix test iterates roles × sensitive actions and asserts allowed/denied for each, including another user's object.