polizy-setup

Install and configure the Polizy authorization library with schema and storage adapters.

7|1|Updated Apr 23, 2025
One-click install
npx skills add https://github.com/bratsos/polizy --skill polizy-setup
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: polizy-setup
Source: https://github.com/bratsos/polizy/tree/main/skills/polizy-setup
Command: npx skills add https://github.com/bratsos/polizy --skill polizy-setup

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Setup and configuration guidance for integrating Polizy into a project, including installation, schema definition, and storage adapter selection.

Core Features & Use Cases

  • Install polizy in a project and bring up the authorization engine
  • Define a schema mapping subjects, objects, relations, and actions
  • Choose a storage adapter (InMemory for development, Prisma for production) and wire it to AuthSystem
  • Verify setup by granting a permission and performing a check

Quick Start

Install polizy, define a schema, choose a storage adapter, then instantiate the AuthSystem to begin enforcing permissions.

Frequently Asked Questions about polizy-setup

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up relationship-based access control in a new project?▼

You can set up relationship-based access control by installing the Polizy library, defining a schema mapping subjects, objects, relations, and actions, choosing a storage adapter, and instantiating the AuthSystem.

What is the difference between InMemory and Prisma storage adapters for authorization?▼

InMemory storage adapters are used for development environments, while Prisma adapters are configured for production use, both wiring into the AuthSystem to persist relationship-based access control permissions.

How do I define an authorization schema for subjects and objects?▼

You define an authorization schema by mapping subjects, objects, relations, and actions, which is then wired to the AuthSystem alongside a storage adapter to enforce permissions.

Can I verify my authorization setup after configuring the AuthSystem?▼

Yes, you can verify authorization setup by granting a specific permission and performing a check through the AuthSystem to ensure relationship-based access control rules function correctly.

Do I need Prisma to use the Polizy authorization library?▼

No, Prisma is not required to use Polizy; you can use the InMemory storage adapter for development, though Prisma is recommended for production environments.

What are the limitations of using InMemory storage for access control?▼

InMemory storage for access control is intended for development environments; for production use, configure the Prisma storage adapter to ensure persistent relationship-based permissions.