Przejdź do treści
Biblioteka skilli
Programowanie · Integracja z narzędziem

rubymine

/rubymine

Wspiera pracę w RubyMine: rozwój aplikacji Rails, zarządzanie gemami przez Bundler, uruchamianie RSpec i minitest, konfiguracja Ruby SDK z rbenv i asdf, debugowanie w kontenerach i profilowanie.

Repozytorium
Agent-Skills ↗
Licencja
MIT
Ostatnia zmiana repozytorium
01.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
1
Przestarzałość

Brak sygnałów. Repozytorium zmienione 01.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Wspiera pracę w RubyMine: rozwój aplikacji Rails, zarządzanie gemami przez Bundler, uruchamianie RSpec i minitest, konfiguracja Ruby SDK z rbenv i asdf, debugowanie w kontenerach i profilowanie.

Oryginalny opis (EN)

Expert RubyMine assistance covering Ruby on Rails development, gem management via Bundler, RSpec/minitest test runners, and remote container debugging. Use when configuring Ruby SDKs/rbenv/asdf, running Rails migrations, debugging RSpec specs, or profiling Ruby applications.

Jak działa

  1. When to Use
  2. Quick Start
  3. Core Concepts
  4. Common Patterns
  5. Best Practices
  6. Troubleshooting
  7. References
Sekcje z nagłówków SKILL.md, w oryginale · 167 linii, 632 słów
Podgląd SKILL.md
---
name: rubymine
description: Expert RubyMine assistance covering Ruby on Rails development, gem management via Bundler, RSpec/minitest test runners, and remote container debugging. Use when configuring Ruby SDKs/rbenv/asdf, running Rails migrations, debugging RSpec specs, or profiling Ruby applications.
---

# RubyMine

RubyMine provides specialized tooling for **Ruby** and **Rails**. It excels at navigating the "Magic" of Rails (views to controllers, routes to actions).

## When to Use

- **Full-Stack Ruby on Rails Development**: Navigation between controllers, views, models, routes, and database migrations.
- **Interactive Step Debugging with Ruby Debug**: Setting conditional breakpoints, inspecting active threads, and evaluating IRB expressions.
- **RuboCop Code Style Enforcement**: Real-time linting, formatting, and auto-correcting Ruby style guide violations.
- **RSpec & Minitest Test Running**: Running individual test cases with visual pass/fail graphs and test coverage metrics.

## Quick Start

### 1. Launch via Terminal

```bash
# Open Rails project in RubyMine
rubymine .
```

### 2. Configure Bundler & Run Tests

```bash
# Install bundle dependencies and verify SDK
bundle install
bundle exec rspec spec/models/user_spec.rb
```

## Core Concepts

### Remote Docker Compose Interpreter Configuration

Configuring RubyMine to run Rails 7/8 inside Docker with fast code synchronization:

```yaml
# docker-compose.yml
services:
  web:
    build: .
    command: bundle exec rails s -p 3000 -b '0.0.0.0'
    volumes:
      - .:/app:cached
      - bundle_cache:/usr/local/bundle
    ports:
      - "3000:3000"
      - "1234:1234" # Remote debug port
    environment:
      RAILS_ENV: development
      RUBY_DEBUG_PORT: 1234
volumes:
  bundle_cache:
```

### RuboCop Integration & Custom Config (`.rubocop.yml`)

Configuring automated real-time linting in RubyMine:

```yaml
# .rubocop.yml
require:
  - rubocop-rails
  - rubocop-rspec
  - rubocop-performance

AllCops:
  NewCops: enable
  TargetRubyVersion: 3.3
  Exclude:
    - "bin/**/*"
    - "db/schema.rb"
    - "node_modules/**/*"
    - "vendor/**/*"

Style/Documentation:
  Enabled: false

Layout/LineLength:
  Max: 120
```

### RSpec Visual Test Execution

Running fast RSpec tests with visual assertions:

```ruby
# spec/models/user_spec.rb
require 'rails_helper'

RSpec.describe User, type: :model do
  describe 'validations' do
    subject(:user) { build(:user) }

    it { is_expected.to validate_presence_of(:email) }
    it { is_expected.to validate_uniqueness_of(:email).case_insensitive }
  end

  describe '#generate_auth_token' do
    let(:user) { create(:user) }

    it 'generates a signed 64-character token' do
      token = user.generate_auth_token
      expect(token).to be_a(String)
      expect(token.length).to eq(64)
    end
  end
end
```

## Common Patterns

### Docker Compose Remote Debugging

**Problem**: Run Rails server inside Docker Compose while hitting breakpoints in RubyMine.  
**Solution**: Configure remote Ruby SDK via Docker Compose.

```yaml
# docker-compose.yml
services:
  web:
    build: .
    command: bundle exec rails s -b '0.0.0.0' -p 3000
    volumes:
      - .:/rails
    ports:
      - "3000:3000"
    environment:
      - RUBY_DEBUG_PORT=1234
```

### Database Console Active Record Integration

**Problem**: Inspect database records and verify schema migrations directly.  
**Solution**: Execute SQL scratchpad queries against development database.

```sql
-- Scratchpad query in RubyMine Database window
SELECT id, email, created_at FROM users WHERE active = true ORDER BY created_at DESC LIMIT 10;
```

## Best Practices

**Do**:

- Configure **RuboCop** under **Settings -> Tools -> RuboCop** with "Run on the fly" for instant linting feedback.
- Use **Go to Model/Controller/View** (`Ctrl+Alt+Home` or `Cmd+Option+Up`) to jump across Rails MVC boundaries.
- Leverage **Database View** to run interactive SQL migrations and inspect schema indices.
- Use `debug` gem with Visual Debugger for seamless step debugging in modern Ruby 3.x.

**Don't**:

- Commit `.idea/` workspace files or personal deployment settings to git.
- Leave Spring application preloader running when gems or C-extensions are updated; run `bin/spring stop`.
- Run test suites without Spring or parallel test execution configured on large repositories.

## Troubleshooting

| Error                                                                     | Cause                                                                  | Solution                                                                         |
| ------------------------------------------------------------------------- | ---------------------------------------------------------------------- | -------------------------------------------------------------------------------- |
| `Gem not found` in RubyMine despite bundle install succeeding in terminal | RubyMine pointing to different Ruby version than shell `.ruby-version` | Check SDK setting in RubyMine matches `ruby -v` in project root directory.       |
| Slow indexing or freeze during Rails load                                 | Indexing `log/`, `tmp/`, or asset compilation directories              | Right-click `log/` and `tmp/` folders > **Mark Directory as > Excluded**.        |
| Breakpoints not triggering in Puma multi-worker mode                      | Puma running in cluster mode forks workers away from debug listener    | Run server with single worker in dev: `bundle exec puma -w 0` or `rails s -w 0`. |

## References

- [RubyMine Documentation](https://www.jetbrains.com/ruby/documentation/)

Wersje

W bazie nie ma innych skilli o nazwie rubymine.

Migawka bazy z 13.11.2026 · wersja paczki 7188734c2ab9 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100ruby-expert
    Wspiera programowanie w Ruby na poziomie eksperckim z Rails, RSpec, gemami i Sinatrą, w tym funkcje Ruby 3, wzorce obiektowe i funkcyjne oraz dopasowanie wzorców.
  • 100ruby-rails
    Opisuje konwencje budowy aplikacji w Ruby on Rails: generatory, modele ActiveRecord i migracje, Hotwire, Turbo i Stimulus, zadania w tle, cache oraz testy w RSpec i Minitest.
  • 100rails-idioms
    Stosuje wzorce Ruby on Rails: scope'y ActiveRecord, zapobieganie N+1, walidacje, routing RESTful oraz testy w RSpec i Minitest, przy budowie i audycie aplikacji.
  • 100ruby
    Pomaga pisać i refaktoryzować czysty Ruby poza Rails: skrypty, CLI, gemy i biblioteki, łańcuchy Enumerable, moduły, pakowanie z Bundler, testy w Minitest lub RSpec i higiena frozen string.
  • 100rspec
    Pomaga pisać testy w RSpec dla Ruby i Rails: BDD, mocki, oczekiwania, helpery let i subject, testy kontrolerów i modeli oraz uruchamianie bundle exec rspec.
  • 100rspec
    Obejmuje testy RSpec dla aplikacji Ruby i Rails: specy modeli, żądań i systemów, fabryki, mocki oraz workflow TDD.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.