rails-auth-with-devise

rails-auth-with-devise is a skill for Claude Code, Codex from Shoebtamboli/rails_claude_skills. It costs 110 tokens per session (1,173 once invoked), scanned A, original, MIT.

A setup guide for adding Devise authentication to a Ruby on Rails application. Devise is a Rails library that provides common account features such as sign-up, sign-in, password recovery, email confirmation, and account locking.

In plain words
What is it for?
Use it when adding user accounts, password resets, email confirmation, remembered logins, account tracking, or social login to a Rails app.
Why use it?
It gathers the installation commands, database steps, routes, configuration, and available account modules needed for a working login system. This avoids piecing the setup together from separate references.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when adding user accounts, password resets, email confirmation, remembered logins, account tracking, or social login to a Rails app.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/shoebtamboli/rails_claude_skills/rails-auth-with-devise
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Shoebtamboli/rails_claude_skills --skill rails-auth-with-devise
Clone the repo
git clone --depth 1 https://github.com/Shoebtamboli/rails_claude_skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for rails-auth-with-devise

README.md
[![agentmods](https://agentmods.dev/badge/skills/shoebtamboli/rails_claude_skills/rails-auth-with-devise/github.svg)](https://agentmods.dev/skills/shoebtamboli/rails_claude_skills/rails-auth-with-devise)
Your own site
<a href="https://agentmods.dev/skills/shoebtamboli/rails_claude_skills/rails-auth-with-devise"><img src="https://agentmods.dev/badge/skills/shoebtamboli/rails_claude_skills/rails-auth-with-devise/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for rails-auth-with-devise

Your own site · 80×15
<a href="https://agentmods.dev/skills/shoebtamboli/rails_claude_skills/rails-auth-with-devise"><img src="https://agentmods.dev/badge/skills/shoebtamboli/rails_claude_skills/rails-auth-with-devise.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 110 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,173 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00110 $0.01173
Opus 5 $0.00055 $0.00587
Sonnet 5 $0.00022 $0.00235
Haiku 4.5 $0.00011 $0.00117

Measured 12d ago against content hash 573199a2ad8c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

rails-auth-with-devise scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

lib/generators/claude/skills_library/rails-auth-with-devise/SKILL.md · 192 lines

How it starts

The opening of the file, as written. The whole thing — 192 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Rails Authentication with Devise

Devise is the most popular authentication solution for Rails, providing a complete MVC solution with 10 modular components.

Quick Setup

# Add to Gemfile
bundle add devise

# Install Devise
rails generate devise:install

# Generate User model with authentication
rails generate devise User

# Run migrations
rails db:migrate

Essential Configuration

After devise:install, configure in config/environments/development.rb:

config.action_mailer.default_url_options = { host: 'localhost', port: 3000 }

Set root route in config/routes.rb:

root to: 'home#index'

Devise Modules Reference

Enable modules in the model (e.g., app/models/user.rb):

Module Purpose Migration Columns
:database_authenticatable Password hashing/storage email, encrypted_password
:registerable Sign up, edit, destroy account -
:recoverable Password reset via email reset_password_token, reset_password_sent_at
:rememberable "Remember me" cookie remember_created_at
:trackable Sign in stats sign_in_count, current_sign_in_at, last_sign_in_at, current_sign_in_ip, last_sign_in_ip
:validatable Email/password validations -
:confirmable Email confirmation confirmation_token, confirmed_at, confirmation_sent_at, unconfirmed_email
:lockable Lock after failed attempts failed_attempts, unlock_token, locked_at
:timeoutable Session expiration -
:omniauthable OAuth provider support -

Controller Helpers

# Require authentication
before_action :authenticate_user!

# Check if signed in
user_signed_in?

# Get current user
current_user

# Access session
user_session

For other models (e.g., Admin):

before_action :authenticate_admin!
admin_signed_in?
current_admin
admin_session

Common Tasks

Add Custom Fields (e.g., username)

Read the full file on GitHub · 192 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 192 lines · 110 tokens per session scan A 573199a2ad8c

Subscribe to this mod's changes

rails-auth-with-devise is a skill published in the GitHub repository Shoebtamboli/rails_claude_skills (16 stars, last pushed 2mo ago), licensed MIT. It adds 110 tokens to every session and 1,173 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

rails-load-defaults

Incrementally upgrade Rails config.loaddefaults by walking through each newframeworkdefaults config one at a time. Use this skill whenever the user mentions loaddefaults upgrade, newframeworkdefaults, framework defaults, or wants to bring their Rails app's default configuration up to match their Rails version. Also…

ombulabs/claude-code_rails-load-defaults-skill · 120 tokens

layered-rails

Write, refactor, and review Rails code using layered architecture principles from "Layered Design for Ruby on Rails Applications". Use when writing or refactoring Rails code — models, controllers, services, jobs, mailers, policies, forms, query objects, presenters, view components, state machines, serializers, or…

palkan/layered-rails-skills · 225 tokens

ruby-on-rails

Comprehensive Ruby on Rails 8.1 best-practices skill covering MVC, Active Record, routing, views, background jobs, storage, security, testing, performance, Kamal/Thruster deployment, and engines/generators. Use when the user mentions Rails, Ruby on Rails, ActiveRecord, ActiveJob, ActionMailer, ActionCable, Active…

display-design-studio/skills · 151 tokens

rails-expert

Rails 7+ specialist that optimizes Active Record queries with includes/eagerload, implements Turbo Frames and Turbo Streams for partial page updates, configures Action Cable for WebSocket connections, sets up Sidekiq workers for background job processing, and writes comprehensive RSpec test suites. Use when building…

Jeffallan/claude-skills · 104 tokens

new

Create a new project to start development quickly.

clacky-ai/openclacky · 10 tokens

ruby-expert

Expert-level Ruby development with Rails, modern features, testing, and best practices. Use when the user mentions Ruby on Rails, RSpec, gem, Sinatra, or metaprogramming, or when the task involves Ruby 3+ Features, Object-Oriented, Functional Features, or Pattern Matching.

personamanagmentlayer/pcl · 64 tokens