rails-docs

rails-docs is a skill for Claude Code, Codex from pledgeandgrow/pledge-skills. It costs 31 tokens per session (1,304 once invoked), scanned A, original, MIT.

Documentation for Ruby on Rails 8.1, a framework for building web applications in Ruby. It covers database models, pages, controllers, URLs, email, background jobs, security, testing, and caching.

In plain words
What is it for?
Use it when creating Rails applications, defining database-backed models, adding routes and forms, processing requests, sending email, running background work, or checking security and tests.
Why use it?
It helps you understand how Rails connects web requests, database records, views, and application rules using its standard structure.

Skill for Claude CodeCodex

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

Good fit Use it when creating Rails applications, defining database-backed models, adding routes and forms, processing requests, sending email, running background work, or checking security and tests.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/pledgeandgrow/pledge-skills/rails"><img src="https://agentmods.dev/badge/skills/pledgeandgrow/pledge-skills/rails.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,304 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.00031 $0.01304
Opus 5 $0.00015 $0.00652
Sonnet 5 $0.00006 $0.00261
Haiku 4.5 $0.00003 $0.00130

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

Security

Grade A, and why

rails-docs 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 11d 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.

skills/rails/SKILL.md · 143 lines

How it starts

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

Ruby on Rails 8.1 — Skill Documentation

Metadata

  • Target Version: Rails 8.1.x (October 2025)
  • Ruby Version: 3.2+ required
  • Source: guides.rubyonrails.org
  • Files: 22
  • Lines: ~6,800

Quick Reference

Topic File Description
Getting Started (installation, quick start, MVC, directory structure) getting-started.md Install Ruby/Rails, create app, first CRUD
Active Record (basics, migrations, validations, callbacks, associations, queries) active-record.md ORM, CRUD, schema conventions, model lifecycle
Action View (layouts, rendering, helpers, form helpers) action-view.md Templates, partials, form helpers, rendering
Action Controller (overview, advanced, CSRF, streaming) action-controller.md Parameters, sessions, cookies, filters, rescue
Routing (RESTful routes, resources, constraints) routing.md URL routing, resource routing, route helpers
Active Support (core extensions, instrumentation) active-support.md Ruby extensions, present?, try, deep_dup
Action Mailer / Mailbox / Text action-mailer.md Email sending, receiving, rich text content
Active Job (background jobs, queues) active-job.md Job declaration, queuing, execution, callbacks
Active Storage (file uploads, variants) active-storage.md Attachments, transformations, direct uploads
Action Cable (WebSockets, real-time) action-cable.md Channels, streams, broadcasting, connections
Internationalization (I18n) i18n.md Translations, pluralization, locale switching
Testing (Minitest, fixtures, integration) testing.md Unit, functional, integration, system tests
Security (CSRF, SQL injection, XSS) security.md Authentication, session security, production
Caching (fragment, Russian doll, SQL) caching.md Page, action, fragment, query caching
API-Only Applications api-app.md JSON API, ActionController::API, rendering
Configuration (command line, assets, JS, init, autoloading) configuration.md Config files, generators, Propshaft, importmaps
Debugging & Error Reporting debugging.md Logger, debugger, error reporting, instrumentation
Performance & Threading performance.md Tuning, concurrency, thread safety, code execution
Advanced Active Record (PostgreSQL, multi-DB, encryption, CPK) advanced-active-record.md PG-specific, multi-database, encryption, composite PKs
Extending Rails (plugins, Rack, generators, engines) extending-rails.md Plugin creation, Rack middleware, custom generators
Upgrading & Release Notes upgrading.md Upgrade steps, Rails 8.1/8.0/7.2 features

Read the full file on GitHub · 143 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. 11d ago First seen · 143 lines · 31 tokens per session scan A bbb3b4c001b3

Subscribe to this mod's changes

rails-docs is a skill published in the GitHub repository pledgeandgrow/pledge-skills (10 stars, last pushed 1mo ago), licensed MIT. It adds 31 tokens to every session and 1,304 once invoked, about $0.0002 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-31.

Related

Other skills, from other repositories

rails

Use when building or maintaining a Ruby on Rails app — models, controllers, views, routes and migrations; ActiveRecord associations, scopes and query performance; Hotwire (Turbo and Stimulus) UI; Active Job or Solid Queue background work; and Rails tests. Covers N+1 queries, migration safety on live tables, and flaky…

ericrisco/rsc-harness · 93 tokens

rails-hotwire

Hotwire (Turbo Drive, Turbo Frames, Turbo Streams, Stimulus).

Shoebtamboli/rails_claude_skills · 19 tokens

ruby-rails

Use this skill when building Ruby on Rails applications — MVC, ActiveRecord, service objects, API mode, background jobs, and testing. This skill enforces: thin controllers, service objects for business logic, ActiveRecord query best practices, Rails API mode conventions, and RSpec testing patterns. Requires Rails 7+…

j4flmao/agent-skills · 94 tokens

Ruby Patterns

Use this skill when working in Ruby projects (Rails or otherwise) and you want clean object boundaries, predictable dependency management, and maintainable code organization.

AmariahAK/atlarix-skills · 2 tokens

server-side-calls

Call tRPC procedures directly from server code using t.createCallerFactory() and router.createCaller(context) for integration testing, internal server logic, and custom API endpoints. Catch TRPCError and extract HTTP status with getHTTPStatusCodeFromError(). Error handling via onError option.

trpc/trpc · 61 tokens

mem0-test-integration

Verify a Mem0 integration produced by /mem0-integrate. Runs in the same workspace on the same branch (loose coupling) — installs dependencies, runs the repo's native test suite, then exercises a real end-to-end smoke flow against the user's API key. Produces a scorecard. TRIGGER when: user has just run /mem0-integrate…

mem0ai/mem0 · 207 tokens