Analyzes Rails applications and generates comprehensive upgrade reports with breaking changes, deprecations, and step-by-step migration guides for Rails 7.0 through 8.1.1...
This skill helps users upgrade Rails applications through a sequential three-step process:
rails_{version}_upgrade_findings.txtUser Benefits:
Claude should activate this skill when user says:
Initial Upgrade Requests (Generate Detection Script):
After Script Execution (Generate Reports):
Specific Report Requests (Only After Findings Shared):
Rails upgrades MUST follow this exact sequence:
7.0.x ā 7.1.x ā 7.2.x ā 8.0.x ā 8.1.x
You CANNOT skip versions. Examples:
If user requests a multi-hop upgrade (e.g., 7.0 ā 8.1):
docs/README.md - Human-readable overviewdocs/QUICK-REFERENCE.md - Command cheat sheetdocs/USAGE-GUIDE.md - Comprehensive how-toversion-guides/upgrade-7.0-to-7.1.md - Rails 7.0 ā 7.1version-guides/upgrade-7.1-to-7.2.md - Rails 7.1 ā 7.2version-guides/upgrade-7.2-to-8.0.md - Rails 7.2 ā 8.0version-guides/upgrade-8.0-to-8.1.md - Rails 8.0 ā 8.1workflows/upgrade-report-workflow.md - How to generate upgrade reportsworkflows/detection-script-workflow.md - How to generate detection scriptsworkflows/app-update-preview-workflow.md - How to generate app:update previewsexamples/simple-upgrade.md - Single-hop upgrade exampleexamples/multi-hop-upgrade.md - Multi-hop upgrade exampleexamples/detection-script-only.md - Detection script only requestexamples/preview-only.md - Preview only requestreference/breaking-changes-by-version.md - Quick lookupreference/multi-hop-strategy.md - Multi-version planningreference/deprecations-timeline.md - Deprecation trackingreference/testing-checklist.md - Comprehensive testingreference/pattern-file-guide.md - How to use pattern filesreference/quality-checklist.md - Pre-delivery verificationreference/troubleshooting.md - Common issues and solutionsdetection-scripts/patterns/rails-72-patterns.yml - Rails 7.2 patternsdetection-scripts/patterns/rails-80-patterns.yml - Rails 8.0 patternsdetection-scripts/patterns/rails-81-patterns.yml - Rails 8.1 patternsdetection-scripts/templates/detection-script-template.sh - Bash templatetemplates/upgrade-report-template.md - Main upgrade report structuretemplates/app-update-preview-template.md - Configuration previewTools:
railsMcpServer:project_info - Get Rails version, structure, API moderailsMcpServer:get_file - Read file contentsrailsMcpServer:list_files - Browse directoriesrailsMcpServer:analyze_environment_config - Config filesTools:
nvimMcpServer:get_project_buffers - List open filesnvimMcpServer:update_buffer - Update file contentWhen user requests an upgrade, follow this workflow:
1. Call: railsMcpServer:project_info
2. Store: current_version, target_version, project_type, project_root
1. Read: detection-scripts/patterns/rails-{VERSION}-patterns.yml
2. Read: detection-scripts/templates/detection-script-template.sh
3. Read: workflows/detection-script-workflow.md (for generation instructions)
1. Follow workflow in detection-script-workflow.md
2. Generate version-specific bash script
3. Deliver script to user
4. Instruct user to run script and share findings.txt
User runs: ./detect_rails_{version}_breaking_changes.sh
Script outputs: rails_{version}_upgrade_findings.txt
User shares findings back with Claude
1. Read: templates/upgrade-report-template.md
2. Read: version-guides/upgrade-{FROM}-to-{TO}.md
3. Read: templates/app-update-preview-template.md
4. Read: workflows/upgrade-report-workflow.md
5. Read: workflows/app-update-preview-workflow.md
1. Parse the findings.txt file
2. Extract detected breaking changes and affected files
3. Read user's actual config files for context
4. Identify custom code patterns from findings
Deliverable #1: Comprehensive Upgrade Report
workflows/upgrade-report-workflow.mdDeliverable #2: app:update Preview
workflows/app-update-preview-workflow.md1. Present Comprehensive Upgrade Report first
2. Present app:update Preview Report second
3. Explain next steps
4. Offer interactive help with Neovim (if available)
Load workflow files when you need detailed instructions:
Step 1 - Load Before Generating Detection Script:
workflows/detection-script-workflow.md - Before creating detection scriptsStep 2 - User Runs Script (No Claude action needed)
Step 3 - Load Before Generating Reports (After receiving findings):
workflows/upgrade-report-workflow.md - Before creating upgrade reportsworkflows/app-update-preview-workflow.md - Before creating previewsLoad When User Needs Examples:
examples/simple-upgrade.md - User asks about simple upgradesexamples/multi-hop-upgrade.md - User asks about complex upgradesexamples/detection-script-only.md - User wants only detection scriptexamples/preview-only.md - User wants only previewLoad When You Need Reference:
reference/pattern-file-guide.md - When processing YAML pattern filesreference/quality-checklist.md - Before delivering any outputreference/troubleshooting.md - When encountering issuesBefore delivering, verify:
For Detection Script:
After User Runs Script (Before Generating Reports):
For Comprehensive Upgrade Report:
For app:update Preview:
Detailed Checklist: See reference/quality-checklist.md
User says: "Upgrade my Rails app to 8.1"
Action - Phase 1 (Generate Script):
workflows/detection-script-workflow.mdAction - Phase 2 (Generate Reports):
workflows/upgrade-report-workflow.mdworkflows/app-update-preview-workflow.mdexamples/simple-upgrade.md for structureUser says: "Help me upgrade from Rails 7.0 to 8.1"
Action:
examples/multi-hop-upgrade.mdUser says: "Create a detection script for Rails 8.0"
Action:
workflows/detection-script-workflow.mdexamples/detection-script-only.mdUser says: "Here's my findings.txt" or shares script output
Action:
workflows/upgrade-report-workflow.mdworkflows/app-update-preview-workflow.mdUser says: "Show me the app:update changes for Rails 7.2"
Action:
workflows/app-update-preview-workflow.md and generateexamples/preview-only.mdThis skill follows a modular structure:
rails-upgrade-assistant/
āāā SKILL.md # This file (high-level)
āāā workflows/ # Detailed how-to guides
ā āāā upgrade-report-workflow.md
ā āāā detection-script-workflow.md
ā āāā app-update-preview-workflow.md
āāā examples/ # Usage examples
ā āāā simple-upgrade.md
ā āāā multi-hop-upgrade.md
ā āāā detection-script-only.md
ā āāā preview-only.md
āāā reference/ # Reference documentation
ā āāā pattern-file-guide.md
ā āāā quality-checklist.md
ā āāā troubleshooting.md
āāā version-guides/ # Version-specific guides
āāā templates/ # Report templates
āāā detection-scripts/ # Pattern files and templates
When to Load What:
workflows/ when generating deliverablesexamples/ when user needs clarificationreference/ when you need detailed guidanceA successful upgrade assistance session:
ā
Generated detection script (Phase 1)
ā
User ran script and shared findings.txt (Phase 2)
ā
Generated Comprehensive Upgrade Report using actual findings (Phase 3)
ā
Generated app:update Preview using actual findings (Phase 3)
ā
Used user's actual code from findings (not generic examples)
ā
Flagged all custom code with ā ļø warnings based on detected issues
ā
Provided clear next steps
ā
Offered interactive help (if Neovim available)
Verification: See reference/quality-checklist.md
Version: 1.0
Last Updated: November 2, 2025
Skill Type: Modular with external workflows and examples