Rails
ericrisco/rsc-harness
A skill your agent uses when building or maintaining a Ruby on Rails app — models, controllers, views, routes and migrations; ActiveRecord associations, scopes and query performance; Hotwire (Turbo…
Ruby coding rules: style, patterns, security, testing. An agent skill from softspark/ai-toolkit.
$ npx skills add softspark/ai-toolkit --skill ruby-rules -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install softspark/ai-toolkit ruby-rules --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/softspark/ai-toolkit.git skills-src && mkdir -p .claude/skills && cp -r skills-src/app/skills/ruby-rules .claude/skills/ruby-rules && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "ruby-rules" agent skill from https://github.com/softspark/ai-toolkit/tree/main/app/skills/ruby-rules into .claude/skills/ruby-rules/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ruby-rules", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/softspark/ai-toolkit/tree/main/app/skills/ruby-rulesType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add softspark/ai-toolkit --skill ruby-rules -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install softspark/ai-toolkit ruby-rules --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/softspark/ai-toolkit.git skills-src && mkdir -p .agents/skills && cp -r skills-src/app/skills/ruby-rules .agents/skills/ruby-rules && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "ruby-rules" agent skill from https://github.com/softspark/ai-toolkit/tree/main/app/skills/ruby-rules into .agents/skills/ruby-rules/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ruby-rules", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add softspark/ai-toolkit --skill ruby-rules -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install softspark/ai-toolkit ruby-rules --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/softspark/ai-toolkit.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/app/skills/ruby-rules .cursor/skills/ruby-rules && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "ruby-rules" agent skill from https://github.com/softspark/ai-toolkit/tree/main/app/skills/ruby-rules into .cursor/skills/ruby-rules/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ruby-rules", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/softspark/ai-toolkit.git --path app/skills/ruby-rules--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add softspark/ai-toolkit --skill ruby-rules -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install softspark/ai-toolkit ruby-rules --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/softspark/ai-toolkit.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/app/skills/ruby-rules .gemini/skills/ruby-rules && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "ruby-rules" agent skill from https://github.com/softspark/ai-toolkit/tree/main/app/skills/ruby-rules into .gemini/skills/ruby-rules/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ruby-rules", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install softspark/ai-toolkit ruby-rulesInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add softspark/ai-toolkit --skill ruby-rules -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/softspark/ai-toolkit.git skills-src && mkdir -p .github/skills && cp -r skills-src/app/skills/ruby-rules .github/skills/ruby-rules && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "ruby-rules" agent skill from https://github.com/softspark/ai-toolkit/tree/main/app/skills/ruby-rules into .github/skills/ruby-rules/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ruby-rules", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add softspark/ai-toolkit --skill ruby-rules -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install softspark/ai-toolkit ruby-rules --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/softspark/ai-toolkit.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/app/skills/ruby-rules .opencode/skills/ruby-rules && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "ruby-rules" agent skill from https://github.com/softspark/ai-toolkit/tree/main/app/skills/ruby-rules into .opencode/skills/ruby-rules/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ruby-rules", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
ruby-rulesRuby coding rules: style, patterns, security, testing. An agent skill from softspark/ai-toolkit.
Ruby Rules is an agent skill from softspark/ai-toolkit. Ruby coding rules: style, patterns, security, testing. Triggers: .rb, Gemfile, .gemspec, Rails, ActiveRecord, Sidekiq, RSpec, Sorbet, rubocop.
Its SKILL.md is about 3.4k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Backend & APIs, covering Backend development and ORMs and data access. It works with Ruby and Ruby on Rails. The repository describes itself as: Professional-grade AI coding toolkit: 94 skills, 44 agents, multi-platform (Claude, Cursor, Windsurf, Copilot, Gemini, Cline, Roo Code, Aider, Augment, Antigravity, Codex CLI… The licence is Apache-2.0.
Read from SKILL.md and the folder at commit d64db2b. It shows what the files ask for, not the result of running them.
Pre-approves these tools, so the agent can use them without asking each time:
ReadFrom allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
railsbundleFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Ruby Rules loads about 3.4k tokens when it runs. Until then it costs about 38 tokens; SKILL.md has 1,562 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from softspark/ai-toolkit at commit d64db2b, republished under its Apache-2.0 licence (© softspark). 1,562 words, ~3,389 tokens.
.claude/skills/ruby-rules/SKILL.md (or your agent's skills folder).These rules come from app/rules/ruby/ in ai-toolkit. They cover
the project's standards for coding style, frameworks, patterns,
security, and testing in Ruby. Apply them when writing or
reviewing Ruby code.
MAX_RETRIES = 3).empty?, valid?, admin?.!: save!, sort!, strip!._ prefix for intentionally unused variables: _unused.def method_name = expression (Ruby 3.0+) for one-liners.each over for loops. Use block-style iteration.return only for early exit.{ } for single-line blocks. Use do...end for multi-line blocks.&:method shorthand: names.map(&:upcase).yield for single-block methods. Use explicit &block for storing/forwarding.attr_reader, attr_writer, attr_accessor for simple getters/setters.Struct for simple data containers. Use Data.define (Ruby 3.2+) for immutable.include for instance methods, extend for class methods.frozen_string_literal: true magic comment at the top of every file.private / protected keywords to control method visibility.map, select, reject, reduce, flat_map for transformations.each_with_object over inject when accumulating into a mutable object.dig for safe nested hash/array access: data.dig(:user, :address, :city).Hash#fetch with default for explicit missing-key handling.Enumerable#lazy for large collection processing.case/in for structural pattern matching on hashes and arrays.=> pin operator to match against existing variables.in pattern for conditional deconstruction in if statements..rubocop.yml committed to the repository for project conventions.rails generate for scaffolding models, controllers, migrations.params.require(:user).permit(:name, :email).config/routes.rb with resourceful routing: resources :users.config/environments/.has_many, belongs_to, has_many :through for associations.scope :active, -> { where(active: true) }.includes() for eager loading to prevent N+1 queries.find_each for batch processing large record sets.transaction blocks for atomic multi-record operations.before_action for authentication and authorization checks.respond_to for content negotiation (JSON, HTML).rescue_from for centralized error handling in controllers.render json: with serializers (e.g., ActiveModelSerializers, Blueprinter).perform_later for async execution. Use perform_now only in tests.retry count and discard_on / retry_on for error handling.Sidekiq::Cron or clockwork for scheduled recurring jobs.rails new --api for API-only applications (no views, sessions).Jbuilder or Blueprinter for JSON serialization.Rack::Attack for rate limiting and throttling.namespace :v1 do ... end.kaminari or pagy for collection endpoints.rescue (catches StandardError).class AppError < StandardError; end.raise with message and optional cause: raise AppError, "msg".retry with a counter for transient failures.ensure for cleanup. Use else for code that runs only on success.call method.Dry::Monads Result type for operation outcomes.Success(value) or Failure(error) from service calls.bind / fmap for pipeline composition.Data.define (Ruby 3.2+) for immutable value objects.Struct with keyword_init: true for lightweight data containers.freeze on objects that should not be mutated after creation.== and hash for value-based equality when needed.define_method over method_missing when possible.respond_to_missing? alongside method_missing.class_attribute (Rails) for inheritable class-level configuration.@!method directives.Concurrent::Future (concurrent-ruby) for parallel operations.Concurrent::Promise for composable async chains.Concurrent::FixedThreadPool) for bounded concurrency.Ractor (Ruby 3+) for true parallel execution without GVL.Mutex and Queue for thread-safe shared state access.include for shared behavior (instance methods).prepend for wrapping/overriding existing methods (decorating).extend for adding class-level methods from a module.Concern (ActiveSupport) for Rails modules with class methods.SimpleDelegator for transparent object wrapping.Draper gem for view-layer decorators in Rails.Module#prepend for method-level decoration without wrapper classes.includes(), preload(), eager_load().eval or send with user input: remote code execution risk.params.require(:user).permit(:name, :email).params.permit! or pass unsanitized params to create/update.attr_readonly for fields that should never be updated after creation.update_columns and update_attribute usage (bypass validations).where(name: value) hash syntax or where("name = ?", value) placeholders.where() strings: where("name = '#{input}'").sanitize_sql_array if building raw SQL fragments is unavoidable.find_by_sql, execute, and Arel.sql calls.<%= %>. Never use raw() with user data.sanitize() helper for allowing limited HTML tags.Content-Security-Policy header in config/initializers/content_security_policy.rb.content_tag helper for safe HTML generation.html_safe only when content is guaranteed safe.protect_from_forgery with: :exception in ApplicationController.authenticity_token in all forms (Rails includes it by default).X-CSRF-Token header for AJAX requests from JavaScript.has_secure_password for authentication.bcrypt for password hashing (included with has_secure_password).SecureRandom.urlsafe_base64 for generating tokens.class UserPolicy < ApplicationPolicy.authorize @resource in every controller action.Rails.application.credentials for encrypted secrets.EDITOR="vim" bin/rails credentials:edit to manage secrets.credentials/production.yml.enc.master.key or production.key to version control.bundle audit check --update for known vulnerability scanning.Dependabot for automated dependency update PRs.Gemfile. Review Gemfile.lock changes carefully.bundler-audit in CI pipeline as a required check.spec/models/user_spec.rb mirroring app/models/user.rb.test/models/user_test.rb mirroring source structure.spec/support/ for shared helpers and configurations.spec/rails_helper.rb for Rails-specific RSpec configuration.describe for the class/method under test. Use context for scenarios.it for individual test cases with clear descriptions.let for lazy-evaluated test data. Use let! for eager evaluation.before / after blocks for setup and teardown.subject for the primary object under test.expect(result).to eq(expected) for equality.expect(result).to be_truthy, be_falsy, be_nil.expect { action }.to raise_error(FooError) for exception testing.expect { action }.to change { User.count }.by(1) for side effects.expect(list).to include(item), contain_exactly(a, b, c).expect(result).to match(hash_including(key: value)) for partial matching.instance_double(UserService) for verified doubles.allow(mock).to receive(:find).with(1).and_return(user).expect(mock).to have_received(:save).once.receive_messages(method1: val1, method2: val2) for multi-stubbing.class_double for stubbing class methods.spec/factories/: FactoryBot.define { factory :user { ... } }.create for persisted records. Use build for in-memory only.create(:user, :admin).build_stubbed for fast tests that do not need database.sequence(:email) { |n| "user#{n}@test.com" }.request specs for API endpoint testing (RSpec).system specs with Capybara for browser integration tests.DatabaseCleaner or use_transactional_fixtures for test isolation.travel_to for time-dependent test scenarios.ActiveJob::TestHelper for testing background jobs inline.shared_examples for testing common behavior across classes.aggregate_failures to collect multiple assertion failures.build_stubbed.bundle exec rspec --format documentation for readable output.© softspark, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in app/skills/ruby-rules of softspark/ai-toolkit.
Open the folder on GitHubat commit d64db2b
Ruby Rules next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Ruby Rules this skillsoftspark/ai-toolkit | 179 | — | ~3.4k | Automated safety check: Pass | Apache-2.0 | |
| Railsericrisco/rsc-harness | 156 | — | ~3.1k | Automated safety check: Pass | MIT | |
| Rails ExpertJeffallan/claude-skills | 12k | — | ~1.4k | Automated safety check: Pass | MIT | |
| Rails Patternsaffaan-m/ECC | 274k | — | ~4.1k | Automated safety check: Pass | MIT | |
| Rubyericrisco/rsc-harness | 156 | — | ~3.2k | Automated safety check: Pass | MIT | |
| Rails Idiomsirahardianto/awesome-agv | 157 | — | ~1.8k | Automated safety check: Pass | MIT |
ericrisco/rsc-harness
A skill your agent uses when building or maintaining a Ruby on Rails app — models, controllers, views, routes and migrations; ActiveRecord associations, scopes and query performance; Hotwire (Turbo…
Jeffallan/claude-skills
Builds Rails 7+ apps with Hotwire Turbo Frames and Streams, Active Record tuning, Action Cable, Sidekiq jobs and RSpec specs, with migration and N+1 checks.
affaan-m/ECC
Ruby on Rails framework patterns for Rails 7.1+ and 8.x apps.
ericrisco/rsc-harness
A skill your agent uses when writing or refactoring plain Ruby outside Rails — scripts, CLIs, gems, libraries: Enumerable chains and blocks, module mixins and value objects, Bundler/gemspec…
irahardianto/awesome-agv
Ruby on Rails framework patterns: ActiveRecord scopes, N+1 query prevention, model validations, RESTful routing, and RSpec/Minitest testing.
doorkeeper-gem/doorkeeper
Avoid common Ruby and Rails antipatterns that degrade maintainability and performance.
softspark/ai-toolkit
Prepare or verify a project QA environment with source identity, readiness, browser access, evidence paths and owned cleanup.
softspark/ai-toolkit
Accessibility validator: WCAG 2.1 AA, EN 301 549, EAA. An agent skill from softspark/ai-toolkit.
softspark/ai-toolkit
Analyzes code quality, complexity, patterns across codebase.
softspark/ai-toolkit
Drives a brief, specification, issue or existing PR through implementation, review, tests and QA to a ready PR.
softspark/ai-toolkit
Direct technical voice for docs, README, user-facing text. An agent skill from softspark/ai-toolkit.
softspark/ai-toolkit
Detect/generate/debug CI pipeline config (GitHub Actions, GitLab CI).
Works with
Categories
Ruby coding rules: style, patterns, security, testing. An agent skill from softspark/ai-toolkit. Ruby Rules is an agent skill from softspark/ai-toolkit. Ruby coding rules: style, patterns, security, testing.
Ruby Rules fits situations like: tasks that involve Backend development; tasks that involve ORMs and data access.
Run `npx skills add softspark/ai-toolkit --skill ruby-rules -a claude-code`. Or copy the skill folder (app/skills/ruby-rules in softspark/ai-toolkit) into .claude/skills/ruby-rules in your project. Claude Code loads it when a task matches its description.
Run `npx skills add softspark/ai-toolkit --skill ruby-rules -a codex`. Or copy the skill folder (app/skills/ruby-rules in softspark/ai-toolkit) into .agents/skills/ruby-rules in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add softspark/ai-toolkit --skill ruby-rules -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/ruby-rules, .gemini/skills/ruby-rules, .github/skills/ruby-rules and .opencode/skills/ruby-rules in your project.
Going by SKILL.md and its folder, Ruby Rules needs the command-line tools its instructions call (rails and bundle). Its frontmatter pre-approves these tools: Read.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Ruby Rules is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 3.4k tokens (SKILL.md is roughly 14k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Ruby Rules: Rails (ericrisco/rsc-harness, 156 stars), Rails Expert (Jeffallan/claude-skills, 12k stars), Rails Patterns (affaan-m/ECC, 274k stars) and Ruby (ericrisco/rsc-harness, 156 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
softspark (a GitHub user) maintains it in softspark/ai-toolkit, which has 179 GitHub stars. The repository holds 112 skills in this directory. The repository was last updated on October 7, 2026.
Source: softspark/ai-toolkit on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.