Skip to content
Back to skills

Authorization Models

ASecurity

Authorization — RBAC, ABAC, ReBAC (relationship-based, Zanzibar-style), policy engines (OPA, Cedar), tenancy scoping, object-level checks (BOLA), separation of duties, audit of permission changes, testing authorization matrices. Use to design or review who can do what (authorization, RBAC, ABAC, ReBAC, permissions, access control, OPA).

  • 5 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
ai-agentsgotestingsecurity

Security analysis

A100/100

Scanned December 3, 2026

npx -y skills add vectora-os/kit --skill authorization-models --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Authorization Models?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Authorization Models
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectora-os-authorization-models/badge)](https://www.skillsdirectory.com/skills/vectora-os-authorization-models)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: authorization-models
description: Authorization — RBAC, ABAC, ReBAC (relationship-based, Zanzibar-style), policy engines (OPA, Cedar), tenancy scoping, object-level checks (BOLA), separation of duties, audit of permission changes, testing authorization matrices. Use to design or review who can do what (authorization, RBAC, ABAC, ReBAC, permissions, access control, OPA).
metadata:
  category: security
---

# Authorization models

## Purpose

Decide access centrally, consistently and testably.

**Use when:** designing or reviewing permission models.

**Not for:** authentication flows.

## Inputs

- Actors, resources, actions, sharing rules.

## Outputs

- Permission model, enforcement points, authorization test matrix.

## Read first

- [Project Brain](../../../project-brain/README.md) — `npm run brain -- query "authorization models"` for prior decisions, patterns and anti-patterns.
- [Security standard](../../../standards/security.md)

## Steps

1. **Matrix.** List roles/relations × resources × actions.
   Done when matrix covers every endpoint.
2. **Model.** RBAC for simple, ABAC for contextual, ReBAC for sharing hierarchies.
   Done when model chosen with `decision-analysis`.
3. **Enforce.** Check at the resource level in the domain/service layer; deny by default.
   Done when every handler has a check.
4. **Test.** Matrix-driven tests incl. cross-tenant and cross-user.
   Done when denials tested.

## Best practices

- Audit permission changes.
- Avoid role explosion — use attributes or relations.

## Common mistakes

- Checks only in UI.
- Checking role but not ownership.

## Example

Docs app: ReBAC — viewer/editor/owner relations with folder inheritance; matrix tests 48 cases.

## Reusable prompt

```text
Apply the Authorization models skill (.agents/skills/authorization-models/SKILL.md).
Context: {{task card or question; links to PRD, ADRs, code paths}}
Constraints: {{approved thresholds, deadlines, allowed files}}
Build the authorization matrix, choose the model, define enforcement points and the test matrix.
Return: Permission model, enforcement points, authorization test matrix..
Cite evidence (file:line, command output, source) for every claim; list open questions separately.
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.