rails-auth

Add authentication and authorization to Rails 8.1 applications via a menu-driven setup.

Updated Jun 13, 2026
One-click install
npx skills add https://github.com/jcuervo/rails-skills --skill rails-auth
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rails-auth
Source: https://github.com/jcuervo/rails-skills/tree/main/rails-auth
Command: npx skills add https://github.com/jcuervo/rails-skills --skill rails-auth

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires devise, rodauth, authentication-zero, pundit, action_policy, cancancan, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill simplifies the process of adding authentication and authorization to your Rails application, providing a menu-driven approach to choose from top solutions and guiding you through the integration steps.

Core Features & Use Cases

  • Authentication: Offers a choice of authentication methods including Rails 8 built-in, Devise, Rodauth, and authentication-zero, with support for social login and API token strategies.
  • Authorization: Provides options for authorization including Pundit, Action Policy, and CanCanCan, tailored for both web and API applications.
  • Use Case: When you need to add login/logout functionality, secure your API with tokens, or implement role-based access control in your Rails app.

Quick Start

Use the rails-auth skill to add authentication to your Rails app by running 'rails-auth'.

Frequently Asked Questions about rails-auth

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

FAQPage Schema
How do I add authentication and authorization to a Rails 8.1 application?

To add authentication and authorization to a Rails 8.1 application, you can use a menu-driven approach that guides you through selecting and integrating top solutions like Devise or Pundit. It supports web and API-only configurations.

Can I use Devise and Pundit together for Rails authentication and authorization?

Yes, you can use Devise for authentication and Pundit for authorization together in Rails. The tool provides a menu-driven approach to select and integrate these gems, guiding you through the setup process.

What is the best way to implement API token authentication in a Rails API-only app?

The best way to implement API token authentication in a Rails API-only app is using a guided integration tool that supports Rails 8.1 features like config.api_only. It offers authentication-zero and Rodauth strategies with API token support.

Does Rails 8.1 built-in authentication support social login strategies?

Rails 8.1 built-in authentication can be extended to support social login strategies. The integration tool offers Rails 8 built-in, Devise, Rodauth, and authentication-zero as choices, specifically including social login support.

How do I choose between Pundit, Action Policy, and CanCanCan for Rails authorization?

Choosing between Pundit, Action Policy, and CanCanCan for Rails authorization is simplified by a menu-driven selection process. The tool helps you integrate your chosen authorization gem, tailored for both web and API applications.

Do I need to install authentication gems before adding login to my Rails app?

Yes, you need to install your chosen authentication and authorization gems before adding login to your Rails app. The integration process requires dependencies like Devise, Rodauth, Pundit, or CanCanCan to be present.