Rails Upgrade Skill
January 27, 2026 ยท View on GitHub
A skill for Claude Code and OpenCode that analyzes Rails applications and provides comprehensive upgrade assessments.
What It Does
When invoked in a Rails project, this skill:
- Verifies you're in a Rails application
- Detects your current Rails version
- Fetches the latest Rails release from GitHub
- Classifies the upgrade type (patch/minor/major)
- Retrieves the official Rails upgrade guide
- Fetches configuration diffs from railsdiff.org
- Generates a comprehensive upgrade summary with complexity rating
Prerequisites
- GitHub CLI (
gh) installed and authenticated
Installation
Claude Code
-
Create the skills directory if it doesn't exist:
mkdir -p ~/.claude/skills -
Clone or copy this skill to the skills directory:
git clone https://github.com/robzolkos/skill-rails-upgrade.git ~/.claude/skills/rails-upgradeOr copy manually:
cp -r /path/to/skill-rails-upgrade ~/.claude/skills/rails-upgrade -
Restart Claude Code to load the skill.
OpenCode
-
Create the skill directory if it doesn't exist:
mkdir -p ~/.config/opencode/skill -
Clone or copy this skill to the skill directory:
git clone https://github.com/robzolkos/skill-rails-upgrade.git ~/.config/opencode/skill/rails-upgradeOr copy manually:
cp -r /path/to/skill-rails-upgrade ~/.config/opencode/skill/rails-upgrade -
Restart OpenCode to load the skill.
Usage
Navigate to a Rails project directory and invoke the skill:
/rails-upgrade
The skill will analyze your Rails application and provide:
- Version Information: Current vs latest Rails version
- Upgrade Complexity Assessment: Small/Medium/Large rating based on multiple factors
- Key Changes: Configuration updates, deprecations, breaking changes
- Recommended Steps: Step-by-step upgrade process
- Resources: Links to official guides and diffs
Example Output
### Version Information
- Current version: 7.1.3
- Latest version: 8.0.1
- Upgrade type: Major
### Upgrade Complexity Assessment: Large
| Factor | Rating |
|--------|--------|
| Version jump | Major version |
| Breaking changes | Many, significant |
| Config changes | Extensive |
### Key Changes to Address
1. New default framework defaults
2. Updated Active Record encryption
3. Kamal deployment changes
...
License
MIT