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.
npx skills add sandeepmvl/rails-skills --skill 58-rubocop-and-code-qualitygit clone --depth 1 https://github.com/sandeepmvl/rails-skillsWrote 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.
[](https://agentmods.dev/skills/sandeepmvl/rails-skills/58-rubocop-and-code-quality)<a href="https://agentmods.dev/skills/sandeepmvl/rails-skills/58-rubocop-and-code-quality"><img src="https://agentmods.dev/badge/skills/sandeepmvl/rails-skills/58-rubocop-and-code-quality/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.
<a href="https://agentmods.dev/skills/sandeepmvl/rails-skills/58-rubocop-and-code-quality"><img src="https://agentmods.dev/badge/skills/sandeepmvl/rails-skills/58-rubocop-and-code-quality.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00171 | $0.03141 |
| Opus 5 | $0.00086 | $0.01571 |
| Sonnet 5 | $0.00034 | $0.00628 |
| Haiku 4.5 | $0.00017 | $0.00314 |
Grade A, and why
rubocop-and-code-quality 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.
How it starts
The opening of the file, as written. The whole thing — 333 lines — stays where its author put it; the contents beside it link to each section on GitHub.
RuboCop + Code Quality
AI agents generate Ruby code that RuboCop hates: unfrozen string literals, long methods, wrong constant style. Then they disable the cops instead of fixing the code. This skill sets up RuboCop the way Rails core does it (omakase preset + extensions), wires it into CI, and gives the autocorrect-first workflow.
The opinion
Use
rubocop-rails-omakaseas the base preset — it ships with Rails 8 and reflects DHH's defaults. Layerrubocop-rails,rubocop-performance,rubocop-rspec,rubocop-thread_safetyonly when you need cops beyond omakase. Runrubocop -a(safe autocorrect) on every PR;-A(all autocorrect including unsafe) only in dedicated cleanup PRs. Gate CI onrubocop --parallel. Coverage via SimpleCov with branch coverage + 80% line threshold. erb_lint for ERB templates. RBS for type checking only on stable domains; skip Sorbet unless you have a strong reason.
Counter-positions:
- Standardrb / Standard — single-config zero-bikeshed alternative. Smaller team consensus, but less Rails-aware than rubocop-rails-omakase. Pick one or the other, not both.
- Sorbet — Stripe-grade. Heavy ceremony. Worth it for very large codebases (50k+ LOC, 50+ engineers). Most Rails apps don't need it.
Pattern 1: RuboCop setup (Rails 8 default)
Rails 8 generates .rubocop.yml referencing rubocop-rails-omakase automatically:
# Gemfile (Rails 8 default — already present)
gem "rubocop-rails-omakase", require: false
# .rubocop.yml (Rails 8 default)
inherit_gem:
rubocop-rails-omakase: rubocop.yml
That's the whole baseline. omakase enables ~120 cops aligned with the Rails core team's style. Run:
bundle exec rubocop # report
bundle exec rubocop -a # safe autocorrect
bundle exec rubocop -A # unsafe autocorrect — review diff carefully
bundle exec rubocop --parallel # CI mode
bundle exec rubocop -l # lint cops only
Pattern 2: Adding extensions
What ships with it
1 file 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.
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.
- 11d ago First seen · 333 lines · 171 tokens per session scan A d9eecaba2c7f
rubocop-and-code-quality is a skill published in the GitHub repository sandeepmvl/rails-skills (21 stars, last pushed 3mo ago), licensed MIT. It adds 171 tokens to every session and 3,141 once invoked, about $0.0009 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.
Other skills, from other repositories
simplify
Simplifies and refines Ruby on Rails code following 37signals patterns and the One Person Framework philosophy, while preserving exact functionality. Focuses on recently modified code unless instructed otherwise. Use this skill when simplifying or refactoring Rails code, reviewing recently written Rails code for…
ruby-refactor
Ruby refactoring guidelines from community best practices. This skill should be used when refactoring, reviewing, or restructuring Ruby code to improve design, readability, and maintainability. Triggers on tasks involving code smells, method extraction, conditional simplification, coupling reduction, design patterns…
sgcop-setup
A setup guide for adding the sgcop Ruby and Rails code-checking rules to a project. RuboCop is a tool that finds style and quality problems in Ruby code.
gem-docs-review
Harvests offline documentation (README, CHANGELOG, public API) for every gem in a Ruby/Rails project's Gemfile.lock into a local cache, tracks gem versions in a manifest, and refreshes only gems whose version changed. Then reviews a git diff or pull request against that cache to surface (a) gem-upgrade impact …
apply-code-conventions
Use when applying daily Rails conventions by path (DRY, YAGNI, PORO, CoC, KISS). Style defers to the project linter. Trigger words: conventions, clean code, RuboCop, DRY, YAGNI.
code-review
Use when reviewing a Rails PR, diff, or merge request. Ground findings in a real file:line. Trigger words: review PR, code review, review my diff, CR.