
from inertia-rails-skills35
Practical guide for adding authentication and authorization to Inertia + Rails apps — covers Devise, has_secure_password, session sharing, permission props, and
This skill provides step-by-step guidance for implementing authentication and authorization in Rails applications that use Inertia.js for the frontend. It covers setting up Devise or has_secure_password, sharing auth state with Inertia (inertia_share), session handling, protected routes, CSRF handling, role-based access, and secure session configuration. The skill also explains patterns for passing permission flags to the frontend and integrating authorization libraries like Pundit or ActionPolicy.
Use this skill when building or hardening auth flows for Inertia-powered Rails apps: onboarding Devise, creating login/registration flows, protecting controller actions, serialising user data safely for the client, and implementing per-record permission checks. It's useful during initial setup and during security reviews.
Developer-focused coding assistants that can run Rails commands or generate code snippets (e.g., Copilot-style tools, Claude Code).
Comprehensive guide for implementing authentication and authorization in Inertia Rails apps, covering Devise, has_secure_password, Pundit, ActionPolicy, session security, CSRF, and password resets. Includes both React and Vue component examples. No scripts to execute — purely a reference/tutorial skill. Code examples are idiomatic and well-structured, with good security practices (email enumeration prevention, CSRF handling, minimal data exposure).
Clean, well-written tutorial skill. No security concerns whatsoever — all code snippets are instructional and follow Rails security best practices. Lacks scripts/ or references/ directories which limits architecture score, but appropriate for a guide-type skill.