| name | polizy |
| description | Router for the polizy authorization library. Use when the user mentions authorization, permissions, access control, RBAC, ReBAC, Zanzibar, or asks "who can do what" questions. Routes to specialized skills. For upgrading polizy between versions, route through `migrations/README.md`. |
| license | MIT |
| metadata | {"author":"bratsos","version":"0.6.0","repository":"https://github.com/bratsos/polizy"} |
Polizy Authorization
Polizy is a Zanzibar-inspired, embeddable ReBAC authorization library for
TypeScript/Node.js. Permissions are stored as relationship tuples
(subject, relation, object[, condition]) and resolved through direct grants,
group membership (nested), hierarchy propagation, and wildcards.
When to Apply
Activate this skill when:
- User mentions "polizy", "authorization", "permissions", "access control"
- User asks "who can do what", "can user X do Y"
- User wants RBAC, ReBAC, or Zanzibar-style authorization
- User needs to check, grant, or revoke permissions
- User is implementing team/group-based access
- User is implementing folder/file permission inheritance
- User wants end users to define their own roles at runtime or a
permissions matrix (click-to-toggle roles × permissions)
- User wants to upgrade polizy to a newer version
Upgrading between versions
When the user wants to upgrade in their project (e.g. "upgrade my
project to the latest polizy version", "I just bumped polizy, walk me through the
migration", "get me from 0.1 to the newest version"), route to
— the upgrade router. It detects
the installed and previous versions, finds the relevant migration guides, and
applies them (e.g. ) up to the newest
version available. Each published release bundles the full history,
so multi-version jumps work.