rails-auth-with-devise

Configure Devise authentication for Ruby on Rails applications.

14|Updated Dec 16, 2025
One-click install
npx skills add https://github.com/Shoebtamboli/rails_claude_skills --skill rails-auth-with-devise
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rails-auth-with-devise
Source: https://github.com/Shoebtamboli/rails_claude_skills/tree/main/lib/generators/claude/skills_library/rails-auth-with-devise
Command: npx skills add https://github.com/Shoebtamboli/rails_claude_skills --skill rails-auth-with-devise

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Integrates robust, configurable user authentication into Ruby on Rails applications to avoid manual, error-prone setup and inconsistent authentication patterns across projects.

Core Features & Use Cases

  • Complete Devise setup: Guides adding Devise, generating user models, running migrations, and configuring essential modules like confirmable, recoverable, lockable, and trackable.
  • API and social login support: Covers API authentication patterns including token and JWT strategies and integration with OmniAuth providers for Google, Facebook, and GitHub.
  • Testing and customization: Shows how to customize views and controllers, provide custom mailers and redirect hooks, and add test helpers for RSpec and Minitest.
  • Use Case: Replace ad hoc authentication code in a Rails app with a consistent Devise configuration that includes email confirmation, password recovery, and an optional OmniAuth login flow.

Quick Start

Use the rails-auth-with-devise skill to generate and configure a complete Devise authentication setup with a User model, mailer defaults for confirmations, and example OmniAuth provider configuration.

Frequently Asked Questions about rails-auth-with-devise

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

FAQPage Schema
How do I set up user authentication in Rails with Devise?

Set up Devise authentication by generating a User model, running migrations, and configuring modules like confirmable, recoverable, and lockable. This guides adding Devise to Rails, generating user models, and customizing views and controllers for a complete auth setup.

Can I use Devise for API and JWT authentication in Rails?

Yes, you can enable API and JWT authentication strategies for Rails. It covers API authentication patterns including token and JWT strategies, allowing your Rails application to securely authenticate API requests without relying on browser sessions.

How do I add OmniAuth social login to a Rails Devise application?

Add OmniAuth social login by integrating providers like Google, Facebook, and GitHub. It shows how to configure OmniAuth providers within your Devise setup, enabling users to sign in using their existing social media accounts.

Does Devise support testing helpers for RSpec and Minitest?

Yes, Devise supports testing helpers for both RSpec and Minitest. It provides test helpers that allow you to easily simulate user sign-in states and test authentication flows within your Rails application test suite.

What is the best way to configure multiple user models with Devise?

Configuring multiple user models with Devise involves generating separate Devise setups for each model. This allows projects requiring distinct authentication flows, such as admins and customers, to maintain separate sign-in and registration paths.

How do I customize Devise mailers and redirect hooks in Rails?

Customize Devise mailers and redirect hooks by overriding the default controllers and views. It shows how to provide custom mailers for email confirmations and password recovery, plus custom redirect hooks for specific post-login routing.