permissions-rbac
Skill by vstorm-co
Gates routes and services by permission, combining organization roles with per-row grants. It covers choosing between require() and resolve_access, sharing resources, and debugging access refusals in org-scoped code.
Install permissions-rbac
Built from the published package, never by AI.
git clone --depth 1 https://github.com/vstorm-co/agenticos /tmp/agenticos && mkdir -p ~/.claude/skills && cp -r /tmp/agenticos/.claude/skills/permissions-rbac ~/.claude/skills/permissions-rbacRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/vstorm-co/agenticos /tmp/agenticos && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/agenticos/.claude/skills/permissions-rbac ~/.gemini/antigravity-cli/skills/permissions-rbacAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill guides authorization work in the vstorm-co agenticos project. It describes three layers: the deployment app admin flag, organization roles, and per-resource visibility and grants. Permissions are defined in app/core/permissions.py and roles are composed from them, so call sites check permissions rather than role names.
The skill sets one main rule. Collection routes take a require() dependency, while per-resource routes have no route gate and leave the decision to resolve_access in the service. It also lists names that do not exist in the project, such as UserRole and RoleChecker, and what to test: refusals, cross-tenant isolation, and grant widening. It is written for developers adding routes or permissions and for anyone reviewing authorization code.
Written from the project's SKILL.md and checked against it.
What it can do
- Add a permissionAdd to Perm, assign it to the roles that need it, gate collection routes, and test the refusal.
- Choose require() or resolve_accessUse require() on collection routes and resolve_access in the service for a single row.
- Share a resource with a grantWiden access to one row for a person or group without changing their organization role.
- Debug visibility problemsTrace why a user can see something they should not, or why a Viewer with an edit grant is refused.
- Review org-scoped routesCheck new or existing org-scoped routes for the correct permission gate and placement.
- Keep shared rows in listingsUse visible_resource_ids so rows shared through grants appear in list results.
Try asking
- Add a permission for editing agents and gate the collection route
- Why is a Viewer with an edit grant being refused on this agent route?
- Review this new org-scoped route for the correct authorization gate
Good to know
- Per-resource routes must not carry role gates, because a role gate cannot see row-level grants.
- The source states that UserRole, RoleChecker, CurrentAdmin and CurrentSuperuser do not exist in this project.
- Only the CurrentUser and CurrentAppAdmin user aliases exist; org-scoped code uses Auth plus a permission.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .claude/skills/permissions-rbac/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to permissions-rbac
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
permissions-rbac: common questions
Should I put a permission gate on a per-resource route?
No. The source says a role gate cannot see grants on a row, so per-resource decisions belong in the service using resolve_access.
Does the project have a UserRole or RoleChecker class?
No. The source says UserRole, User.has_role(), RoleChecker, CurrentAdmin and CurrentSuperuser do not exist, and the users.role column was dropped.
What happens when a listing does not show shared items?
The source says listings need visible_resource_ids, otherwise shared rows silently vanish. A None result means the role already reaches everything.
How do I install permissions-rbac?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is permissions-rbac free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is permissions-rbac safe to use?
It scores 74 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to permissions-rbac?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
