Skip to content
Back to skills

Rules Ruby

ASecurity

ANVIL coding rules for ruby code (**/*.rb, **/*_spec.rb, **/*_test.rb, spec/**/*.rb): Ruby, Ruby Testing.

  • 5 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 30, 2026
developmentrubytestingdatabase

Security analysis

A100/100

Scanned November 30, 2026

npx -y skills add AdityaaaTiwari/ANVIL --skill rules-ruby --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Rules Ruby?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Rules Ruby
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/adityaaatiwari-rules-ruby/badge)](https://www.skillsdirectory.com/skills/adityaaatiwari-rules-ruby)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: rules-ruby
description: "ANVIL coding rules for ruby code (**/*.rb, **/*_spec.rb, **/*_test.rb, spec/**/*.rb): Ruby, Ruby Testing."
---

<!-- Generated by `anvil plugin build` from catalog/. Edit the catalog, not this file. -->

# ANVIL rules: ruby

Follow these rules for ruby code (**/*.rb, **/*_spec.rb, **/*_test.rb, spec/**/*.rb).

## Ruby

# Ruby
- Strong params; no mass assignment of privileged fields.
- Bound parameters in queries; avoid N+1 with `includes`.
- RuboCop clean; tests for every behavior change.

## Ruby Testing

# Ruby Testing

- Keep specs focused on public behavior with flat `context` blocks; prefer `let` / explicit factories over mutable shared globals.
- Stub outbound HTTP calls cleanly (WebMock/VCR) and freeze clocks (`travel_to` / `Timecop`) rather than relying on network calls or sleeps.
- Cover validations, authorization failures, and transaction rollbacks without breaking test isolation across database runs.
- Keep system/browser specs sparse and focused on critical user flows; test domain logic in fast model/service specs.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.