plutonium-policy

Official

Define precise, multi-tenant resource policies.

Authorradioactive-labs
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Policies control WHO can do WHAT with resources. Built on ActionPolicy.

Core Features & Use Cases

  • Attribute permissions (permitted_attributes_for_read, permitted_attributes_for_create) to control which fields can be read or set.
  • Association permissions (permitted_associations) to restrain related data rendering and nested forms.
  • Automatic entity scoping for multi-tenancy to enforce per-entity access.
  • Derived action methods (e.g., update? inherits from create?) to share authorization logic.
  • Bulk action authorization with per-record checks and intersection-based UI tightening.
  • Comprehensive collection and nested-resource scoping via relation_scope, default_relation_scope, and skip/default mechanics.

Quick Start

Instantiate a policy class (e.g., PostPolicy) extending ResourcePolicy and override core methods like create? and read? while configuring relation_scope for multi-tenancy.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 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: plutonium-policy
Download link: https://github.com/radioactive-labs/plutonium-core/archive/main.zip#plutonium-policy

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.