plutonium-controller

Generate standard CRUD actions for Plutonium resource controllers.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Plutonium resource controllers provide a standard, drop-in way to implement full CRUD functionality for resources, reducing boilerplate and ensuring consistent behavior across portals and packages.

Core Features & Use Cases

  • Auto-provides index, show, new, create, edit, update, and destroy actions for resources.
  • Allows customization through definitions, policies, and hooks to tailor authorization, UI, and routes.
  • Use Case: scaffold a resource with consistent controllers across multiple portals.

Quick Start

Create a resource controller that inherits from ResourceController and wire it to definitions and policies to enable standard CRUD actions.

Frequently Asked Questions about plutonium-controller

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

FAQPage Schema
How do I generate standard CRUD controllers for Rails resources?

You can generate standard CRUD controllers for Rails resources by inheriting from the Plutonium ResourceController, which automatically provides index, show, new, create, edit, update, and destroy actions while reducing boilerplate.

What is the best way to enforce consistent authorization across Rails resource controllers?

To enforce consistent authorization across Rails resource controllers, Plutonium integrates directly with policies and definitions, allowing you to standardize access control and routing behavior across multiple portals and packages.

How do I customize CRUD actions and UI presentation for Plutonium resources?

You can customize CRUD actions and UI presentation for Plutonium resources by wiring your controller to definitions and hooks, enabling tailored redirects, params handling, and presentation controls.

Can I use these resource controllers across multiple Rails portals and packages?

Yes, you can use these resource controllers across multiple Rails portals and packages, as they provide a drop-in way to implement full CRUD functionality that ensures consistent behavior throughout your application architecture.

Do I need to manually define routing for every CRUD action in Plutonium resources?

No, you do not need to manually define routing for every CRUD action in Plutonium resources because the controller auto-provides standard actions and integrates with definitions to manage routes consistently.