Claude Cursor Skill

ruby-conventions

Ruby code conventions covering Ruby 3.2+, RuboCop, RBS type checking, RSpec/Minitest, security scanning, exception handling, composition, Bundler, and gem packaging. Load when writing or reviewing Ruby code.

LLM Mart · 0 points · 0 views 0 listing impressions 0 install-command copies
Virus-scanned Reviewed automatically before listing.

Full trust report

Download goldziher-ai-rulez-internal_builtins_languages_ruby_skills_ruby-conventions-ca967ad.zip · 0 KB
Part of goldziher/ai-rulez — 151 skills

Install

skills CLI npx skills add https://github.com/Goldziher/ai-rulez/tree/main/internal/builtins/languages/ruby/skills/ruby-conventions
Claude Code claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install goldziher-ai-rulez@llmmart
Git git clone https://github.com/Goldziher/ai-rulez.git

The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole goldziher/ai-rulez collection as a plugin from our marketplace. Git is the plain clone.

Skill manifest

  • Ruby 3.2+, frozen_string_literal: true, .ruby-version file.
  • Linting: a linter/formatter (e.g., RuboCop) with auto-fix (120 char max), plus its RSpec/performance plugins.
  • Type checking: RBS with a type checker (e.g., steep). Use rbs prototype for scaffolding type signatures.
  • Testing: RSpec (or Minitest) with describe/context/it, factories over fixtures, a coverage tool (e.g., SimpleCov) at 80%+.
  • Security: a SAST tool (e.g., Brakeman for Rails), bundler-audit for dependency CVE scanning.
  • Error handling: specific exceptions inheriting StandardError, no bare rescue.
  • Composition over inheritance, Comparable/Enumerable mixins, case/in pattern matching.
  • Dependencies: bundler, commit Gemfile.lock, pessimistic ~> constraints.
  • Gem packaging: use gemspec with bundler gem template, rake release for distribution.
  • &:method_name block shorthand, => pattern matching destructuring (3.2+).
  • Anti-patterns: monkey patching, method_missing without respond_to_missing?, eval with user input.
Files (ai-rulez)
  • SKILL.md 1.3 KB
    ---
    name: ruby-conventions
    description: Ruby code conventions covering Ruby 3.2+, RuboCop, RBS type checking, RSpec/Minitest, security scanning, exception handling, composition, Bundler, and gem packaging. Load when writing or reviewing Ruby code.
    ---
    
    - Ruby 3.2+, `frozen_string_literal: true`, `.ruby-version` file.
    - Linting: a linter/formatter (e.g., RuboCop) with auto-fix (120 char max), plus its RSpec/performance plugins.
    - Type checking: RBS with a type checker (e.g., steep). Use `rbs prototype` for scaffolding type signatures.
    - Testing: RSpec (or Minitest) with `describe`/`context`/`it`, factories over fixtures, a coverage tool (e.g., SimpleCov) at 80%+.
    - Security: a SAST tool (e.g., Brakeman for Rails), `bundler-audit` for dependency CVE scanning.
    - Error handling: specific exceptions inheriting `StandardError`, no bare `rescue`.
    - Composition over inheritance, `Comparable`/`Enumerable` mixins, `case/in` pattern matching.
    - Dependencies: `bundler`, commit `Gemfile.lock`, pessimistic `~>` constraints.
    - Gem packaging: use `gemspec` with `bundler` gem template, `rake release` for distribution.
    - `&:method_name` block shorthand, `=>` pattern matching destructuring (3.2+).
    - Anti-patterns: monkey patching, `method_missing` without `respond_to_missing?`, `eval` with user input.
    

Comments (0)

Sign in to join the conversation.

No comments yet.

Reviews (0)

No reviews yet.

Related