plutonium-create-resource

Scaffold Plutonium resources with models, migrations, controllers, policies, and definitions in Rails apps.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates the boilerplate-heavy task of scaffolding full Plutonium resources (models, migrations, controllers, policies, and definitions), dramatically reducing setup time for Rails projects.

Core Features & Use Cases

  • Complete resource scaffolding: model, migration, controller, policy, and definition.
  • Destination-aware generation: specify --dest to target main_app or a feature package.
  • Easy conversion from existing models and field definitions to Plutonium resources.

Quick Start

Run rails g pu:res:scaffold with the required --dest to avoid prompts and produce a complete resource stack.

Frequently Asked Questions about plutonium-create-resource

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

FAQPage Schema
How do I scaffold a complete Rails resource with models, migrations, and policies?

To scaffold a complete Rails resource, run the generator to automatically produce models, migrations, controllers, policies, and definitions. This outputs a complete resource stack ready for migration and integration.

What is the best way to generate Plutonium resources for a feature package?

The best way to generate Plutonium resources for a feature package is to use the --dest flag during scaffolding. This destination-aware generation targets the specific package instead of the main app, ensuring correct file placement.

Can I convert an existing model into a Plutonium resource?

Yes, you can convert an existing model into a Plutonium resource by using the scaffolding generator. It supports field definitions to quickly produce the necessary controllers, policies, and definitions for your existing database structures.

Do I need to specify a destination when generating Rails scaffolds?

You need to specify a destination using --dest when generating Rails scaffolds to avoid interactive prompts. This ensures the generator targets either the main app or a feature package correctly and outputs the resource stack.

What files are included when scaffolding a Plutonium resource?

Scaffolding a Plutonium resource includes generating models, migrations, controllers, policies, and definitions. This automates the boilerplate-heavy setup process and provides a complete resource stack for your Rails application.