{"data":{"slug":"discovered-00203980ff6529b3ab28d26ff24561aa5a69ed23b80e4058","title":"Ruby","summary":"Use this project-aware router for Ruby and Rails development, including gems, Rails, RSpec, Minitest, Cucumber, SimpleCov, RuboCop, RubyCritic, PostgreSQL, Active Record, debugging, reviews, performance, security, i18n, Sorbet, RBS, Ruby LSP, or Ruby runtime and tooling work.","url":"https:\/\/skillshunter.net\/skills\/discovered-00203980ff6529b3ab28d26ff24561aa5a69ed23b80e4058","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/discovered-00203980ff6529b3ab28d26ff24561aa5a69ed23b80e4058","markdown_url":"https:\/\/skillshunter.net\/skills\/discovered-00203980ff6529b3ab28d26ff24561aa5a69ed23b80e4058.md","download_url":"https:\/\/skillshunter.net\/skills\/discovered-00203980ff6529b3ab28d26ff24561aa5a69ed23b80e4058\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Always load [project-discovery.md](references\/project-discovery.md) first. Read repository instructions and relevant files, detect the Ruby version, dependency versions, framework, test tools, data store, job adapter, frontend stack, type checker, and quality tools. Inspect the project's existing commands before choosing how to run anything.","instructions":"---\nname: ruby\ndescription: >\n  Project-aware router for Ruby and Rails development. Use for gems, Rails,\n  RSpec, Minitest, Cucumber, SimpleCov, RuboCop, RubyCritic, PostgreSQL,\n  Active Record, debugging, reviews, performance, security, i18n, Sorbet,\n  RBS, Ruby LSP, or Ruby runtime and tooling work.\n---\n\n# Ruby\n\nUse this skill first for every Ruby ecosystem task. It is a router, not a Ruby\nlanguage tutorial. Load only the references needed for the current task.\n\n## Operating Boundaries\n\nComplete the smallest set of actions that fully satisfies the request.\nRepository instructions and existing project conventions override generic\nadvice in this skill.\n\nUnless the task requires and authorizes it, do not:\n\n- install or update gems, runtimes, or other dependencies;\n- rewrite unrelated configuration, CI, or development tooling;\n- fetch remotes, open browsers, or generate standalone reports; or\n- replace a project wrapper with a host command that bypasses its environment.\n\nA reference describes how to work; it does not grant additional authority.\n\n## Start With the Project Contract\n\nAlways load [project-discovery.md](references\/project-discovery.md), then:\n\n1. Read repository instructions and the files directly relevant to the task.\n2. Detect the Ruby version, dependency versions, framework, test tools, data\n   store, job adapter, frontend stack, type checker, and quality tools.\n3. Inspect the project's existing commands before choosing how to run anything.\n4. Preserve the execution boundary chosen by the repository, especially when a\n   wrapper enters Docker Compose or another container.\n\nUse the first applicable command layer:\n\n1. Mise task\n2. Taskfile task\n3. Rake task\n4. Project binstub\n5. `bundle exec` command\n6. Direct executable only when the project has no higher-level contract\n\nDo not invent task names or assume arguments pass through. Inspect the task\ndefinition and nearby usage first.\n\n## Reference Routing\n\n| Task context | Load |\n| --- | --- |\n| Rails application behavior or framework APIs | [rails.md](references\/rails.md) |\n| Any test change, failure, or strategy decision | [testing.md](references\/testing.md) |\n| RSpec suite or specs | [rspec.md](references\/rspec.md) |\n| Minitest or Rails default tests | [minitest.md](references\/minitest.md) |\n| Cucumber or Gherkin features | [cucumber.md](references\/cucumber.md) |\n| SimpleCov or coverage analysis | [coverage.md](references\/coverage.md) |\n| RuboCop, Standard, RubyCritic, Reek, or formatting | [quality.md](references\/quality.md) |\n| Code review, refactoring assessment, or design critique | [code-review.md](references\/code-review.md) |\n| Named design pattern or object-design choice | [code-review.md](references\/code-review.md) |\n| Exception, crash, flaky behavior, or runtime diagnosis | [debugging.md](references\/debugging.md) |\n| Profiling, memory, allocation, concurrency, or speed work | [performance.md](references\/performance.md) |\n| Active Record, SQL, schema, migration, or query performance | [database.md](references\/database.md) |\n| PostgreSQL-backed Rails configuration or performance | [database.md](references\/database.md) and [postgresql-rails.md](references\/postgresql-rails.md) |\n| Security review or security tooling | [security.md](references\/security.md) |\n| Rails I18n, locale files, or translation maintenance | [i18n.md](references\/i18n.md) |\n| RBS, Steep, Sorbet, or TypeProf | [types.md](references\/types.md) |\n| Symbol navigation, references, or impact analysis | [navigation.md](references\/navigation.md) |\n| Gem, library, CLI, Rake, Bundler, Rack, or non-Rails app | [gems-and-cli.md](references\/gems-and-cli.md) |\n\nLoad the smallest useful combination. A Rails request spec task, for example,\nusually needs `rails.md`, `testing.md`, and `rspec.md`, not every reference.\n\n## Execution Loop\n\n1. Establish the requested behavior and reproduce the problem when practical.\n2. Inspect existing implementation and nearby examples before choosing a\n   pattern.\n3. Make the narrow change that fits the project.\n4. Verify from narrow to broad:\n   - syntax or the directly affected example;\n   - the affected file, scenario, or subsystem;\n   - relevant lint, type, security, or coverage checks; then\n   - the broader suite only when risk, repository policy, or the user warrants\n     its cost.\n5. Report what ran, what did not run, and any residual risk.\n\nDo not run thousands of tests when a focused check answers the question. Do not\nclaim full confidence from a narrow check when the change is genuinely broad.\n\n## Judgment\n\n- Correctness, data safety, security, and compatibility come before style.\n- Match the repository's architecture before suggesting a new abstraction.\n- Treat SOLID, design patterns, object metrics, and coverage percentages as\n  diagnostic lenses, not pass\/fail laws.\n- Prefer clear Ruby and framework conventions over ceremony.\n- For version-sensitive behavior, consult current primary documentation for the\n  versions locked by the project.\n- When guidance is missing, research the exact tool or framework instead of\n  guessing or expanding scope to an unrelated tutorial.\n","use_cases":["Run RSpec or Minitest suites for Ruby projects","Analyze code quality with RuboCop or RubyCritic","Debug runtime issues in Ruby applications","Perform performance profiling or memory analysis","Work with Active Record, SQL, schema, migrations, or query performance","Implement or review design patterns and object-design choices"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/damacus\/skills\/blob\/5706f70c0058822adf29da9bd7620c7ea780b9d6\/skills\/language\/ruby\/SKILL.md","source_commit":"5706f70c0058822adf29da9bd7620c7ea780b9d6","license":null,"version":null,"listing_approved_at":"2026-12-02","created_at":"2026-11-30T08:54:29.000000Z","updated_at":"2026-12-02T09:15:01.000000Z","seo_title":"Ruby and Rails Development Router","seo_description":"A project-aware router for Ruby and Rails development, supporting gems, Rails, RSpec, Minitest, Cucumber, SimpleCov, RuboCop, RubyCritic, PostgreSQL, Active Record, and\u66f4\u591a","seo_keywords":["Ruby development","Rails router","RSpec testing","Minitest framework","RuboCop code quality","RubyCritic analysis","Active Record","Ruby debugging"]}}