pundit-authorization

Official

Enforce secure, multi-tenant Rails authorization.

AuthorGrupo-AFAL
Version1.0.0
Installs0

System Documentation

What problem does it solve?

In multi-tenant Rails applications, authorization is hard to implement consistently. This skill provides reusable Pundit patterns to enforce organization scoping and guardrails across models, controllers, and views.

Core Features & Use Cases

  • ApplicationPolicy and Scope base the authorization model with default organization scoping.
  • OwnedByOrganization integration to enforce multi-tenant data isolation on models.
  • Controller and View Integration patterns to enforce policy checks and conditional UI.
  • Nested, STI, and Custom Policies coverage for common data models and complex scenarios.
  • Use Case: Ensure a user can only access and modify records within their organization and automatically scope queries via policy_scope.

Quick Start

Apply the recommended Pundit policies to a resource (e.g., Post) to enforce organization-based access.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: pundit-authorization
Download link: https://github.com/Grupo-AFAL/claude-plugins/archive/main.zip#pundit-authorization

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.