plutonium-resource

Define four-layer CRUD resources with Model, Definition, Policy, and Controller in Plutonium.

68|10|Updated Jan 10, 2024
One-click install
npx skills add https://github.com/radioactive-labs/plutonium-core --skill plutonium-resource
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: plutonium-resource
Source: https://github.com/radioactive-labs/plutonium-core/tree/main/.claude/skills/plutonium-resource
Command: npx skills add https://github.com/radioactive-labs/plutonium-core --skill plutonium-resource

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Helps teams understand and implement Plutonium resources by clarifying the four-layer CRUD pattern and how the Model, Definition, Policy, and Controller fit together across portals.

Core Features & Use Cases

  • Four-layer architecture mapping and responsibilities across Model, Definition, Policy, and Controller.
  • Scaffold generation and portal integration to bootstrap end-to-end resources.
  • Portal-specific customization and resource-to-portal connections for multi-portal apps.

Quick Start

Create a new resource scaffold and connect it to a portal to enable end-to-end CRUD.

Frequently Asked Questions about plutonium-resource

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

FAQPage Schema
How do I structure a Rails resource using the Plutonium four-layer pattern?▼

To scaffold a Plutonium resource, generate the resource and subsequently connect it to a portal to enable end-to-end CRUD. The system auto-detects model attributes to drive the resource generation process across the four architectural layers.

Can I customize a Plutonium resource for different portals in the same application?▼

Yes, Plutonium supports per-portal customization for resources within multi-portal applications. You can connect a single resource to multiple portals and apply specific definitions and policies to customize the behavior for each portal context.

Do I need existing models to generate Plutonium resources?▼

No, you do not need existing models. Plutonium can scaffold entirely new resources while also supporting the integration of existing models. It auto-detects model attributes to drive the end-to-end resource generation process.

What is the best way to implement consistent authorization across Rails resources?▼

Implementing consistent authorization is achieved through the Plutonium Policy layer, which defines access controls alongside the Model, Definition, and Controller. This ensures cross-cutting resource behavior and standardized permissions across all portals.