/SKILL.md
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. Use when upgrading Rails applications, planning multi-hop upgrades, or querying version-specific changes.
npx skillsauth add maquina-app/rails-upgrade-skill rails-upgrade-assistantInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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
testing
Create, edit, improve, or audit AgentSkills. Use when creating a new skill from scratch or when asked to improve, review, audit, tidy up, or clean up an existing skill or SKILL.md file. Also use when editing or restructuring a skill directory (moving files to references/ or scripts/, removing stale content, validating against the AgentSkills spec). Triggers on phrases like "create a skill", "author a skill", "tidy up a skill", "improve this skill", "review the skill", "clean up the skill", "audit the skill".
testing
Host security hardening and risk-tolerance configuration for OpenClaw deployments. Use when a user asks for security audits, firewall/SSH/update hardening, risk posture, exposure review, OpenClaw cron scheduling for periodic checks, or version status checks on a machine running OpenClaw (laptop, workstation, Pi, VPS).
testing
Create, edit, improve, or audit AgentSkills. Use when creating a new skill from scratch or when asked to improve, review, audit, tidy up, or clean up an existing skill or SKILL.md file. Also use when editing or restructuring a skill directory (moving files to references/ or scripts/, removing stale content, validating against the AgentSkills spec). Triggers on phrases like "create a skill", "author a skill", "tidy up a skill", "improve this skill", "review the skill", "clean up the skill", "audit the skill".
testing
Host security hardening and risk-tolerance configuration for OpenClaw deployments. Use when a user asks for security audits, firewall/SSH/update hardening, risk posture, exposure review, OpenClaw cron scheduling for periodic checks, or version status checks on a machine running OpenClaw (laptop, workstation, Pi, VPS).