skill-rails-upgrade
Upgrade Rails Applications with Confidence
This skill analyzes your Rails application and provides a comprehensive upgrade assessment with version-specific guidance and a selective file merge plan to safely upgrade to newer Rails versions.
Die Skill-ZIP herunterladen
In Claude hochladen
Gehe zu Einstellungen → Fähigkeiten → Skills → Skill hochladen
Einschalten und loslegen
Teste es
Verwendung von "skill-rails-upgrade". Analyze my Rails app for upgrading to the latest version
Erwartetes Ergebnis:
- Current Rails Version: 7.1.3
- Latest Rails Version: 8.0.1
- Upgrade Type: Major
- Complexity: Large - expect significant changes
- Key Breaking Changes:
- - New framework defaults require review
- - Active Storage configuration changes
- - Turbo 8.0 updates needed
- Recommended Steps:
- 1. Review deprecation warnings in 7.1.3
- 2. Update Gemfile to Rails 8.0.1
- 3. Run bundle update rails
- 4. Review JavaScript dependencies
- 5. Create selective merge plan
Verwendung von "skill-rails-upgrade". What files will change in my Rails upgrade?
Erwartetes Ergebnis:
- New Files to Create:
- - config/initializers/new_framework_defaults_8_0.rb
- - bin/ci (new CI script)
- Safe to Update (no local changes):
- - public/404.html, public/500.html
- Needs Manual Merge:
- - config/application.rb (i18n config)
- - config/environments/development.rb (letter_opener)
- - bin/dev (foreman setup)
Sicherheitsaudit
SicherAll static findings are false positives. The 'external_commands' detections are shell command examples in documentation (not code execution). The 'network' detections are legitimate Rails documentation URLs. The 'weak cryptographic algorithm' detections are false positives - YAML frontmatter and plain text were incorrectly flagged. This is a legitimate Rails upgrade assistant skill with no security concerns.
Probleme mit mittlerem Risiko (1)
Probleme mit niedrigem Risiko (2)
Risikofaktoren
⚙️ Externe Befehle (73)
🌐 Netzwerkzugriff (7)
📁 Dateisystemzugriff (5)
Erkannte Muster
Qualitätsbewertung
Was du bauen kannst
Planning a Rails 7 to 8 upgrade
Get a comprehensive assessment of what changes are needed to upgrade from Rails 7.x to Rails 8.x, including breaking changes and required file updates.
Safe incremental upgrades
Follow a step-by-step process that checks for local customizations before updating files, ensuring no project-specific changes are lost.
JavaScript dependency alignment
Check and recommend updates for Rails-related JavaScript packages (Turbo, Stimulus, Action Cable) to match the target Rails version.
Probiere diese Prompts
Use the rails-upgrade skill to analyze this Rails application and tell me what version it is running and what the latest Rails version is.
Use the rails-upgrade skill to perform a complete upgrade assessment. I want to upgrade from my current version to the latest Rails. Provide a summary of breaking changes, new files needed, and a plan for handling my local customizations.
Use the rails-upgrade skill to generate a selective file update plan. Check which config files have local customizations and show me exactly what would change for each file.
Use the rails-upgrade skill to check my JavaScript dependencies. I use npm/yarn and want to ensure my Rails-related packages (Turbo, Stimulus) are compatible with the target Rails version.
Bewährte Verfahren
- Always run the upgrade analysis on a clean git branch before making changes
- Review deprecation warnings in your current version before upgrading
- Test each framework default enablement one at a time
- Keep your JavaScript dependencies aligned with your Rails version
Vermeiden
- Running rails app:update directly without checking for local customizations
- Skipping the JavaScript dependency audit when using Turbo or Stimulus
- Ignoring deprecation warnings before starting the upgrade
- Enabling all new framework defaults at once without testing