rails

rails is a skill for Claude Code, Codex from andresquirogadev/skillsense. It costs 0 tokens per session (1,401 once invoked), scanned A, original, MIT.

Guidance for building and maintaining applications with Ruby on Rails 7 and 8. Rails is a web application framework that supplies common patterns for databases, authentication, assets, and background work.

In plain words
What is it for?
Use it when creating Rails models, validations, queries, authentication, assets, background jobs, or production configurations.
Why use it?
It helps developers follow current Rails conventions and avoid outdated approaches. It also points out ways to prevent security and database performance problems.

Skill for Claude CodeCodex

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

Good fit Use it when creating Rails models, validations, queries, authentication, assets, background jobs, or production configurations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/andresquirogadev/skillsense/rails
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 andresquirogadev/skillsense --skill rails
Clone the repo
git clone --depth 1 https://github.com/andresquirogadev/skillsense

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/andresquirogadev/skillsense/rails/github.svg)](https://agentmods.dev/skills/andresquirogadev/skillsense/rails)
Your own site
<a href="https://agentmods.dev/skills/andresquirogadev/skillsense/rails"><img src="https://agentmods.dev/badge/skills/andresquirogadev/skillsense/rails/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

Your own site · 80×15
<a href="https://agentmods.dev/skills/andresquirogadev/skillsense/rails"><img src="https://agentmods.dev/badge/skills/andresquirogadev/skillsense/rails.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,401 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.00000 $0.01401
Opus 5 $0.00000 $0.00700
Sonnet 5 $0.00000 $0.00280
Haiku 4.5 $0.00000 $0.00140

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

Security

Grade A, and why

rails 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 10d 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.

packages/catalog/skills/rails/SKILL.md · 176 lines

How it starts

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

Rails

Expert Ruby on Rails development with Rails 7/8 conventions, security hardening, and performance patterns.

Rails Version Awareness

These instructions target Rails 7+ / Rails 8. Key modern defaults:

  • Propshaft (Rails 8) or Sprockets (7) for assets
  • bin/importmap for JS by default — avoid Webpacker
  • Solid Queue replaces Sidekiq in default Rails 8 stack
  • authenticate DSL built into Rails 8 (no Devise needed for simple cases)
  • SQLite in production is now a first-class option with Litestream

Models

class User < ApplicationRecord
  has_many :posts, dependent: :destroy
  has_secure_password  # BCrypt hashing; adds authenticate()

  validates :email, presence: true,
                    uniqueness: { case_sensitive: false },
                    format: { with: URI::MailTo::EMAIL_REGEXP }
  normalizes :email, with: ->(e) { e.strip.downcase }
end
  • Use normalizes (Rails 7.1+) instead of before_validation for simple transformations
  • Avoid fat callbacks — use service objects or form objects for complex workflows
  • Scope query logic to the model: scope :published, -> { where(published: true) }
  • Use includes to prevent N+1: Post.includes(:author).limit(20)

Controllers

class PostsController < ApplicationController
  before_action :authenticate_user!
  before_action :set_post, only: %i[show edit update destroy]

  def create
    @post = current_user.posts.build(post_params)
    if @post.save
      redirect_to @post, notice: t('.created')
    else
      render :new, status: :unprocessable_entity
    end
  end

  private

  def set_post
    @post = current_user.posts.find(params[:id])
  end

  def post_params
    params.require(:post).permit(:title, :body, :published)
  end
end
  • Always scope finds through the current user's association — never Post.find(params[:id]) bare
  • Return status: :unprocessable_entity on failed render so Turbo handles it correctly
  • Use respond_to blocks only when you need both HTML and JSON; otherwise keep it simple

Read the full file on GitHub · 176 lines

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. 10d ago First seen · 176 lines · 0 tokens per session scan A 60a4b3617a8e

Subscribe to this mod's changes

rails is a skill published in the GitHub repository andresquirogadev/skillsense (2 stars, last pushed 5mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,401 tokens. 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-31.

Related

Other skills, from other repositories

printing-press

Set up a new integration, connector, or CLI binding for any API. Wrap or generate a ship-ready Go CLI from an OpenAPI, HAR, or Postman spec via the lean research -> generate -> build -> shipcheck loop. Use when the user says build a CLI, wrap this API, set up a new integration, add a connector, integrate with a…

mvanhorn/cli-printing-press · 86 tokens

rails-dev

Opinionated Rails conventions: rich models, concerns, CRUD-everything, state-as-records, minimal dependencies, Minitest with fixtures. Load this skill BEFORE any code-level thinking, not only before editing a file. It is required the moment a task touches Rails code in ANY way: designing or even just discussing a data…

tech-leads-club/agent-skills · 199 tokens

java

This skill should be used when the user works with Java files (.java), asks about "records", "sealed classes", "Optional", "streams", "composition over inheritance", or discusses modern Java patterns and API design. Provides patterns for type system usage, error handling, immutability, and concurrency.

dean0x/devflow · 63 tokens

typescript

This skill should be used when the user works with TypeScript files (.ts/.tsx), asks about "generics", "type guards", "utility types", "strict typing", "discriminated unions", or discusses type safety and inference. Provides patterns for Result types, exhaustive checks, branded types, and type-safe API contracts.

dean0x/devflow · 69 tokens

codegen

Use for .NET code generation work with Roslyn, Microsoft.OpenApi, Razor templates, DTO/manager/controller generation, REST API generation, C# HttpClient generation, Angular/Axios TypeScript request clients, generated formatting, and deterministic output.

AterDev/Perigon.CLI · 53 tokens

rails

For Agent: backend-developer.

FortiumPartners/ensemble · 8 tokens