skills/smithery.ai/plutonium-interaction

plutonium-interaction

Installation
SKILL.md

Plutonium Interactions

🚨 Critical (read first)

  • ActiveRecord::RecordInvalid is NOT rescued automatically. Always rescue it when using create!/update!/save! and return failed(e.record.errors).
  • Return succeed(...) or failed(...) from execute — the controller won't know what happened otherwise.
  • Redirect is automatic on success. Only call with_redirect_response for a different destination.
  • Bulk actions use resources (plural). Policy methods are checked per record; if any fails, the whole request fails.
  • Related skills: plutonium-definition (registering actions), plutonium-policy (authorizing actions), plutonium-forms (interaction form templates).

Interactions encapsulate business logic into reusable, testable units. They handle input validation, execution, and outcomes.

Basic Structure

# app/interactions/resource_interaction.rb (generated during install)
class ResourceInteraction < Plutonium::Resource::Interaction
end
Installs
1
First Seen
Apr 16, 2026