fga-rebac-authorization-expert

fga-rebac-authorization-expert is a skill for Cursor from roedyrustam/vibes-plug. It costs 73 tokens per session (3,224 once invoked), scanned A, original, MIT.

A guide to fine-grained access control that decides who can access each document or resource based on relationships such as organisation, team, folder, and document membership. It covers ReBAC, or relationship-based access control, and policy engines including OpenFGA, SpiceDB, and Cedar.

In plain words
What is it for?
Use it to model nested permissions, check access to individual resources, support multi-tenant applications, and apply permissions during document retrieval.
Why use it?
It replaces broad role checks such as “admin” with rules that reflect real organisational structures. It can also prevent an AI search system from returning documents a user is not allowed to see.

Skill for Cursor

Written for Cursor: shipped in a Cursor plugin. Also seen: positional $N argument.

Part of the vibes-plug plugin — 176 skills, 9 agents, 2 MCP servers shipped together

Good fit Use it to model nested permissions, check access to individual resources, support multi-tenant applications, and apply permissions during document retrieval.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/roedyrustam/vibes-plug/fga-rebac-authorization-expert
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add roedyrustam/vibes-plug --skill fga-rebac-authorization-expert
Clone the repo
git clone --depth 1 https://github.com/roedyrustam/vibes-plug

Made for: Cursor.

Or install vibes-plug, the plugin that ships this one along with the rest of its 176 skills, 9 agents, 2 MCP servers.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for fga-rebac-authorization-expert

README.md
[![agentmods](https://agentmods.dev/badge/skills/roedyrustam/vibes-plug/fga-rebac-authorization-expert/github.svg)](https://agentmods.dev/skills/roedyrustam/vibes-plug/fga-rebac-authorization-expert)
Your own site
<a href="https://agentmods.dev/skills/roedyrustam/vibes-plug/fga-rebac-authorization-expert"><img src="https://agentmods.dev/badge/skills/roedyrustam/vibes-plug/fga-rebac-authorization-expert/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for fga-rebac-authorization-expert

Your own site · 80×15
<a href="https://agentmods.dev/skills/roedyrustam/vibes-plug/fga-rebac-authorization-expert"><img src="https://agentmods.dev/badge/skills/roedyrustam/vibes-plug/fga-rebac-authorization-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 73 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,224 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00073 $0.03224
Opus 5.5 $0.00029 $0.01290
Sonnet 5.5 $0.00015 $0.00645
Haiku 4.5 $0.00007 $0.00322

Measured yesterday against content hash fae84e4baa8a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

fga-rebac-authorization-expert scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/fga-rebac-authorization-expert/SKILL.md · 285 lines

How it starts

The opening of the file, as written. The whole thing — 285 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Fine-Grained Authorization (FGA) & ReBAC Expert (2026 Zanzibar Edition)

English | Bahasa Indonesia


English

Orchestration & Integration

  • Identity & Authentication: authentication-identity-expert, passkeys-webauthn-identity-expert, zero-trust-secret-vault
  • Multi-Tenant SaaS & Database: saas-multi-tenant, database-orm-expert, supabase-security-expert
  • Permission-Aware AI & RAG: vector-db-rag-expert, graph-rag-knowledge-expert, ai-safety-governance-expert
  • Formal Verification & Lifecycle: formal-spec-z3-verifier, brainstorming, zero-to-prod-orchestrator, session-memory-manager

Description

Enterprise authorization engineering guide for Relationship-Based Access Control (ReBAC) modeled on Google Zanzibar (OpenFGA, SpiceDB, Permify) and attribute/policy engines (AWS Cedar, Cerbos). Moves beyond flat user.role === 'admin' checks to model nested organizational hierarchies (Organization -> Team -> Folder -> Document), sub-millisecond permission checks (Check(user, relation, object)), and Permission-Aware Vector RAG so AI agents never leak unauthorized documents across users.

Trigger Conditions

  • Designing B2B SaaS permissions with nested inheritance (Workspace $\rightarrow$ Project $\rightarrow$ Document sharing).
  • Integrating OpenFGA, SpiceDB, or AWS Cedar into API middlewares.
  • Enforcing document-level access control on pgvector / RAG knowledge retrieval pipelines.
  • Replacing brittle, deeply nested SQL permission joins with relationship tuples.

Authorization Paradigm Selection Matrix

Paradigm Engine Examples Granularity Best Use Case
RBAC (Role-Based) Custom JWT claims, Clerk Org Roles Coarse Simple tenant roles (owner, admin, member)
ABAC (Attribute-Based) AWS Cedar, Cerbos, OPA Medium-High Context rules (IP range, time window, department, spend limit)
ReBAC (Relationship-Based) OpenFGA, SpiceDB (Zanzibar) Ultra-Fine Google Drive / Notion / Linear nested resource sharing & graphs

Read the full file on GitHub · 285 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday Changed · +138 lines fae84e4baa8a
  2. 2d ago First seen · 147 lines · 73 tokens per session scan A 2d48c898c0c8

Subscribe to this mod's changes

fga-rebac-authorization-expert is a skill published in the GitHub repository roedyrustam/vibes-plug (113 stars, last pushed yesterday), licensed MIT. It adds 73 tokens to every session and 3,224 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-24.

Related

Other skills, from other repositories

ai-engineering-toolkit

Overview of six AI engineering workflows: prompt evaluation (8-dimension scoring), context budget planning, RAG pipeline design, agent security audit (65-point checklist), eval harness building, and product sense coaching.

sickn33/agentic-awesome-skills · 47 tokens

ai-engineering-toolkit

6 production-ready AI engineering workflows: prompt evaluation (8-dimension scoring), context budget planning, RAG pipeline design, agent security audit (65-point checklist), eval harness building, and product sense coaching.

lingxling/awesome-skills-cn · 47 tokens

ai-engineering-toolkit

6 production-ready AI engineering workflows: prompt evaluation (8-dimension scoring), context budget planning, RAG pipeline design, agent security audit (65-point checklist), eval harness building, and product sense coaching.

marysatasselshaped667/skills-collection-1 · 47 tokens

rag-builder

Professional Rag Builder skill. Integrate LLM API workflows, safe system prompt guidelines, and agentic workflows.

AtulPurohit/Antigravity-Awesome-Skills · 25 tokens

ai-prompt-regression-testing

Use when comparing prompt changes against a fixed evaluation set: record actual model settings, required checks, missing results, judge limitations and case-level regression evidence.

sickn33/agentic-awesome-skills · 37 tokens

oracle

Designing and evaluating AI/ML systems: prompt engineering, RAG design, LLM application patterns, AI safety, evaluation frameworks, MLOps, cost optimization. Use for AI pipelines or eval harnesses.

simota/agent-skills · 45 tokens