brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Perform comprehensive code audits of Ruby on Rails applications based on thoughtbot best practices. Use this skill when the user requests a code audit, code review, quality assessment, or analysis of a Rails application. The skill analyzes the entire codebase focusing on testing
Claude Code
$ npx -y skills add thoughtbot/rails-audit-thoughtbot --skill rails-audit-thoughtbot --agent claude-code
Codex
$ npx skills add thoughtbot/rails-audit-thoughtbot --skill rails-audit-thoughtbot -a codex -y
Cursor
$ npx skills add thoughtbot/rails-audit-thoughtbot --skill rails-audit-thoughtbot -a cursor -y
Gemini CLI
$ npx skills add thoughtbot/rails-audit-thoughtbot --skill rails-audit-thoughtbot -a gemini-cli -y
GitHub Copilot
$ npx skills add thoughtbot/rails-audit-thoughtbot --skill rails-audit-thoughtbot -a github-copilot -y
OpenCode
$ npx skills add thoughtbot/rails-audit-thoughtbot --skill rails-audit-thoughtbot -a opencode -y
Windsurf
$ npx skills add thoughtbot/rails-audit-thoughtbot --skill rails-audit-thoughtbot -a windsurf -y
name: rails-audit-thoughtbot description: Perform comprehensive code audits of Ruby on Rails applications based on thoughtbot best practices. Use this skill when the user requests a code audit, code review, quality assessment, or analysis of a Rails application. The skill analyzes the entire codebase focusing on testing practices (RSpec), security vulnerabilities, code design (skinny controllers, domain models, PORO with ActiveModel), Rails conventions, database optimization, and Ruby best practices. Outputs a detailed markdown audit report grouped by category (Testing, Security, Models, Controllers, Code Design, Views) with severity levels (Critical, High, Medium, Low) within each category.
Perform comprehensive Ruby on Rails application audits based on thoughtbot's Ruby Science and Testing Rails best practices, with emphasis on Plain Old Ruby Objects (POROs) over Service Objects.
The audit can be run in two modes: 1. **Full Application Audit**: Analyze entire Rails application 2. **Targeted Audit**: Analyze specific files or directories
Ask user or infer from request:
Ask the user **both questions upfront** in a single `AskUserQuestion` so they can decide once:
Based on the user's choice, spawn the accepted subagents **in parallel** using the Task tool. Both can run at the same time because SimpleCov modifies the test helper while RubyCritic only reads source files — they don't conflict.
**SimpleCov subagent** (if accepted):
> Read the file `agents/simplecov_agent.md` and follow all steps described in it. The audit scope is: {{SCOPE from Step 1}}. Return the coverage data in the output format specified in that file.
**RubyCritic subagent** (if accepted):
> Read the file `agents/rubycritic_agent.md` and follow all steps described in it. The audit scope is: {{SCOPE from Step 1}}. Return the code quality data in the output format specified in that file.
**After both agents finish**, clean up:
**Interpreting responses:**
Before analyzing, read the relevant reference files:
All analysis must stay within the project root and the bundle path. To inspect gem source, use `bundle show <gem>` to locate it (see "Locate gem source" under Analysis Commands) — never run filesystem-wide searches like `find /`. If you delegate any category below to subagents, include this constraint in each subagent's prompt.
Analyze in this order:
1. **Testing Coverage & Quality**
2. **Security Vulnerabilities**
3. **Models & Database**
4. **Controllers**
5. **Code Design & Architecture**
6. **Views & Presenters**
7. **External Services & Error Handling**
A Claude Code skill that performs comprehensive code audits of Ruby on Rails applications based on thoughtbot's Ruby Science and Testing Rails best practices.
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.