# Rails

> Rails is an open-source agent skill for developer tools. Gives the agent a Rails checklist for spec interviews and spec implementation. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/sorah/config/tree/master/claude/marketplace/plugins/sorah-spec/skills/rails
- **Repository:** https://github.com/sorah/config
- **GitHub stars:** 31
- **License:** MIT
- **Skill name:** rails
- **Collection:** https://github.com/sorah/config
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill adds a Rails-focused checklist to the spec workflow. When an agent interviews a spec for a Rails project, it prompts for details that are often left open: migration column types and defaults, index design, where validations belong, association behavior, and how configuration, encryption, background jobs, logging and mailers should be handled.

The checklist also covers testing and operations. It points the agent toward request spec expectations, model spec coverage, test data strategy and time-dependent tests, and it flags security items such as password hashing, parameter filtering and audit logging. Operational items include seed data, rake tasks for data work and key rotation for encrypted attributes.

The skill is a single SKILL.md with no scripts. It refers to a companion Rails conventions skill for general guidance and states that project-specific conventions take priority.

## When your agent uses it

> This skill should be used when conducting spec interviews or implementing specs for Ruby on Rails projects, or when the spec mentions "Rails", "ActiveRecord", "ActiveJob", "concerns", "migrations", "Rails.configuration", or "request specs". Provides Rails-specific interview and implementation checklist items.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/sorah/config/tree/HEAD/claude/marketplace/plugins/sorah-spec/skills/rails)
- [License: MIT](https://github.com/sorah/config/tree/HEAD/claude/marketplace/plugins/sorah-spec/skills/rails)

## Features

- **Data model checklist:** Prompts for migration details, index choices and validation placement before implementation starts.
- **Architecture review points:** Covers concerns, where business logic lives and controller action responsibilities.
- **Integration questions:** Asks about configuration namespacing, encryption, background jobs, logging and mailers.
- **Testing expectations:** Lists request spec, model spec and test data items to pin down in a spec.
- **Security and operations items:** Flags password hashing, parameter filtering, audit logs, seeds and key rotation.

## Good for

- Interview a feature spec for a Rails app before coding it
- Check a migration plan for column types, defaults and indexes
- Plan background jobs, mailers and logging for a Rails change
- Review a spec for missing request spec expectations

## Install

### Claude Code

This skill ships in the `sorah-spec` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add sorah/config
/plugin install sorah-spec@sorah-marketplace
```

Or copy only this skill to `~/.claude/skills/rails`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/sorah/config.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/rails &&
cp -R "$tmp/claude/marketplace/plugins/sorah-spec/skills/rails" ~/.claude/skills/rails &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/rails` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/rails` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/sorah/config.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/rails &&
cp -R "$tmp/claude/marketplace/plugins/sorah-spec/skills/rails" ~/.agents/skills/rails &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/rails` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/rails` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/sorah/config.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/rails &&
cp -R "$tmp/claude/marketplace/plugins/sorah-spec/skills/rails" ~/.cursor/skills/rails &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/rails` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/sorah/config.git --path claude/marketplace/plugins/sorah-spec/skills/rails
```

Or copy the folder to `~/.gemini/skills/rails` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/rails`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/sorah/config.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/rails &&
cp -R "$tmp/claude/marketplace/plugins/sorah-spec/skills/rails" ~/.copilot/skills/rails &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/rails` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/sorah/config.git
```

Then copy `config/claude/marketplace/plugins/sorah-spec/skills/rails` into your agent's skills folder as `rails`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When does Rails trigger?

It is meant to be used when conducting spec interviews or implementing specs for Ruby on Rails projects, or when a spec mentions terms such as Rails, ActiveRecord, ActiveJob, concerns, migrations or request specs.

### Does Rails run any scripts or change files?

No scripts are included. It only provides a checklist of items to verify in the spec.

### Does it replace Rails conventions guidance?

No. It points to a separate sorah-guides Rails skill for underlying conventions, and project-specific conventions take priority over it.

### How do I install Rails in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/rails to use it in all your projects, or to .claude/skills/rails in one project. Or install the sorah-spec plugin, which includes it: /plugin marketplace add sorah/config, then /plugin install sorah-spec@sorah-marketplace.

### Does Rails run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Rails?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Rails?

The closest alternatives to Rails are Ruby, Rspec skill, Spec driven development, Spec coding and Spec conventions.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Ruby](https://ai-powered.com/skills/ruby-sorah): Ruby is an open-source agent skill for developer tools.
- [Rspec skill](https://ai-powered.com/skills/rspec-skill): Rspec skill is an open-source agent skill for developer tools.
- [Spec driven development](https://ai-powered.com/skills/spec-driven-development-ajyadav013-2): Spec driven development is an open-source agent skill for developer tools.
- [Spec coding](https://ai-powered.com/skills/spec-coding): Spec coding is an open-source agent skill for developer tools.
- [Spec conventions](https://ai-powered.com/skills/spec-conventions): Spec conventions is an open-source agent skill for developer tools.
- [Requirements engineering](https://ai-powered.com/skills/requirements-engineering): Requirements engineering is an open-source agent skill for developer tools.
- [Writing specs](https://ai-powered.com/skills/writing-specs): Writing specs is an open-source agent skill for developer tools.
- [Specify](https://ai-powered.com/skills/specify): Specify is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/rails-sorah
