One-click install
npx skills add https://github.com/bratsos/polizy --skill polizy-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: polizy-patterns
Source: https://github.com/bratsos/polizy/tree/main/skills/polizy-patterns
Command: npx skills add https://github.com/bratsos/polizy --skill polizy-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Polizy-patterns provide reusable templates to implement common, complex access-control scenarios in Polizy, reducing boilerplate and ensuring consistent security models.

Core Features & Use Cases

  • Coverage of Direct Permissions, Group Access, Hierarchy inheritance, Field-Level Permissions, Time-Limited grants, Revocation, and cross-pattern composition.
  • Works with polizy's schema model (relations, actionToRelations, and optional hierarchyPropagation) to accelerate real-world authorization workflows, such as team onboarding, folder inheritance, sensitive data protection, and temporary access.
  • Includes comprehensive reference documentation to adapt patterns to your domain and scale across projects.

Quick Start

Choose a pattern and apply it against your existing Polizy schema to enforce permissions.

Frequently Asked Questions about polizy-patterns

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

FAQPage Schema
How do I implement relationship-based access control for hierarchical resources?

Relationship-based access control for hierarchical resources is implemented using reusable templates for hierarchical inheritance, allowing permissions to propagate through folder structures and team onboarding workflows via Polizy schema mappings.

What is the best way to set up time-limited access and revocation in an authorization schema?

Time-limited access and revocation are handled through specific authorization patterns that grant temporary permissions and manage their expiration, ensuring sensitive data protection without manual intervention using Polizy relations.

How do I enforce field-level permissions for sensitive data handling?

Field-level permissions for sensitive data handling are enforced by applying targeted access-control templates against your Polizy schema, restricting visibility to specific fields based on user relations and action mappings.

Do I need an existing Polizy schema to use these authorization patterns?

Yes, these authorization patterns require a defined Polizy schema with relations and action mappings already configured, as the templates reference this existing structure to enforce group-based access and direct permissions.

Can I compose multiple access control patterns together for complex team structures?

Yes, cross-pattern composition allows you to combine direct permissions, group access, and hierarchy inheritance to model complex organizational structures and authorization workflows across users and resources.