inertia-rails-auth
CommunitySecure auth for Inertia Rails apps.
Authorcole-robertson
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This skill provides clear, repeatable patterns to implement authentication and authorization in Inertia Rails applications, ensuring consistent security practices across the stack.
Core Features & Use Cases
- Devise-based authentication: setup, sign-in, sign-out flows, and session management integrated with Inertia.
- Authorization patterns: integration with Pundit or Action Policy to enforce per-user permissions on controllers and views.
- Frontend state sharing: standardizes how current_user and signed_in state are exposed to Vue/React components via inertia_share.
- CSRF & protected routes: ensures CSRF protection and secure route access; supports role-based access control for admin areas.
- Quick Start Scenarios: provide ready-made scaffolding for login, registration, password reset, and protected pages in both Vue and React frontends.
Quick Start
- Add the authentication and authorization gems (e.g., devise, pundit or action_policy) to your Gemfile and run bundle install.
- Generate user model and authentication controllers, then wire inertia shares in ApplicationController.
- Implement policies and frontend guards, and apply protected routes in Rails and Inertia components.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: inertia-rails-auth Download link: https://github.com/cole-robertson/inertia-rails-skills/archive/main.zip#inertia-rails-auth Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.