본문으로 건너뛰기
Skillpedia
API 및 서버 (백엔드)48k · #5797

skill-rails-upgrade

하는 일

이 도구는 Rails 프로젝트를 분석해 더 새로운 버전으로 업그레이드하도록 돕습니다. 현재 버전을 확인하고, 사용 가능한 최신 버전을 찾아, 필요한 주요 변경 사항을 알려 줍니다.

사용하는 경우

  • ✓Rails 프로젝트를 더 새로운 버전으로 업데이트하고 싶을 때.
  • ✓업그레이드에 필요한 노력을 이해하고 싶을 때.
  • ✓Rails와 함께 JavaScript 의존성도 업데이트해야 하는지 확인할 때.

스킬 링크

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/skill-rails-upgrade/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/skill-rails-upgrade/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“제 Rails 프로젝트를 분석하고 최신 버전으로 업그레이드하는 방법을 알려 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

프로젝트 파일을 확인해 Rails 애플리케이션인지 확인합니다. 그다음 사용 중인 버전과 최신 버전을 알아내 두 버전을 비교하고, 필요한 변경 사항에 대한 정보를 찾아봅니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

When to Use This Skill

Analyze Rails apps and provide upgrade assessments

Use this skill when working with analyze rails apps and provide upgrade assessments.

Rails Upgrade Analyzer

Analyze the current Rails application and provide a comprehensive upgrade assessment with selective file merging.

Step 1: Verify Rails Application

Check that we're in a Rails application by looking for these files:

  • Gemfile (must exist and contain 'rails')
  • config/application.rb (Rails application config)
  • config/environment.rb (Rails environment)

If any of these are missing or don't indicate a Rails app, stop and inform the user this doesn't appear to be a Rails application.

Step 2: Get Current Rails Version

Extract the current Rails version from:

  1. First, check Gemfile.lock for the exact installed version (look for rails (x.y.z))
  2. If not found, check Gemfile for the version constraint

Report the exact current version (e.g., 7.1.3).

Step 3: Find Latest Rails Version

Use the GitHub CLI to fetch the latest Rails release:

gh api repos/rails/rails/releases/latest --jq '.tag_name'

This returns the latest stable version tag (e.g., v8.0.1). Strip the 'v' prefix for comparison.

Also check recent tags to understand the release landscape:

gh api repos/rails/rails/tags --jq '.[0:10] | .[].name'

Step 4: Determine Upgrade Type

Compare current and latest versions to classify the upgrade:

  • Patch upgrade: Same major.minor, different patch (e.g., 7.1.3 → 7.1.5)
  • Minor upgrade: Same major, different minor (e.g., 7.1.3 → 7.2.0)
  • Major upgrade: Different major version (e.g., 7.1.3 → 8.0.0)

Step 5: Fetch Upgrade Guide

Use WebFetch to get the official Rails upgrade guide:

URL: https://guides.rubyonrails.org/upgrading_ruby_on_rails.html

Look for sections relevant to the version jump. The guide is organized by target version with sections like:

  • "Upgrading from Rails X.Y to Rails X.Z"
  • Breaking changes
  • Deprecation warnings
  • Configuration changes
  • Required migrations

Extract and summarize the relevant sections for the user's specific upgrade path.

Step 6: Fetch Rails Diff

Use WebFetch to get the diff between versions from railsdiff.org:

URL: https://railsdiff.org/{current_version}/{target_version}

For example: https://railsdiff.org/7.1.3/8.0.0

This shows:

  • Changes to default configuration files
  • New files that need to be added
  • Modified initializers
  • Updated dependencies
  • Changes to bin/ scripts

Summarize the key file changes.

Step 7: Check JavaScript Dependencies

Rails applications often include JavaScript packages that should be updated alongside Rails. Check for and report on these dependencies.

7.1: Identify JS Package Manager

Check which package manager the app uses:

# Check for package.json (npm/yarn)
ls package.json 2>/dev/null

# Check for importmap (Rails 7+)
ls config/importmap.rb 2>/dev/null

7.2: Check Rails-Related JS Packages

If package.json exists, check for these Rails-related packages:

# Extract current versions of Rails-related packages
cat package.json | grep -E '"@hotwired/|"@rails/|"stimulus"|"turbo-rails"' || echo "No Rails JS packages found"

Key packages to check:

Package Purpose Version Alignment
@hotwired/turbo-rails Turbo Drive/Frames/Streams Should match Rails version era
@hotwired/stimulus Stimulus JS framework Generally stable across Rails versions
@rails/actioncable WebSocket support Should match Rails version
@rails/activestorage Direct uploads Should match Rails version
@rails/actiontext Rich text editing Should match Rails version
@rails/request.js Rails UJS replacement Should match Rails version era

7.3: Check for Updates

For npm/yarn projects, check for available updates:

# Using npm
npm outdated @hotwired/turbo-rails @hotwired/stimulus @rails/actioncable @rails/activestorage 2>/dev/null

# Or check latest versions directly
npm view @hotwired/turbo-rails version 2>/dev/null
npm view @rails/actioncable version 2>/dev/null

7.4: Check Importmap Pins (if applicable)

If the app uses importmap-rails, check config/importmap.rb for pinned versions:

cat config/importmap.rb | grep -E 'pin.*turbo|pin.*stimulus|pin.*@rails' || echo "No importmap pins found"

To update importmap pins:


…
자주 묻는 질문

최신 Rails 버전은 어떻게 알아내나요?

공식 Rails GitHub 저장소의 최신 릴리스를 확인하기 위해 GitHub CLI라는 도구를 사용합니다.

「호환성을 깨는 변경(breaking changes)」이란 무엇인가요?

새 Rails 버전에서 현재 코드를 깨뜨릴 수 있는 변경 사항입니다. 이 도구는 이런 변경을 찾아내 알려 주려고 합니다.

프로젝트를 자동으로 업데이트하나요?

아니요, 이 도구는 분석하고 보고서만 제공합니다. 실제 업그레이드는 직접 해야 합니다.

상세 정보

작성자의 원본 설명

Analyze Rails apps and provide upgrade assessments

repo: sickn33/agentic-awesome-skills

인기도

GitHub 스타
48k
순위
#5797
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬