Token导航 LogoToken导航TokenDH.com
研究检索external-servicegithub未标认证来源可访问许可证需确认审计异常

rails-upgrade-assistantRails upgrade 助手

Agent Skill

rails-upgrade-assistant 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

546

周安装

23

GitHub Stars

81

下载量

191
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:rails-upgrade-assistant(Rails upgrade 助手)
来源仓库:https://github.com/maquina-app/rails-upgrade-skill
仓库路径:skills/rails-upgrade-assistant
安装命令:
npx skills add https://github.com/maquina-app/rails-upgrade-skill --skill rails-upgrade-assistant
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/maquina-app/rails-upgrade-skill --skill rails-upgrade-assistant

简介

rails-upgrade-assistant 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。

  • 可结合来源仓库、安装命令和原始 README 继续核验具体用法。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。
  • 它属于研究检索类工具,适用于多种宿主环境。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Rails Upgrade Assistant Skill v1.0

Skill Identity

  • Name: Rails Upgrade Assistant
  • Version: 1.0
  • Purpose: Intelligent Rails application upgrades from 7.0 through 8.1.1
  • Based on: Official Rails CHANGELOGs from GitHub
  • Upgrade Strategy: Sequential only (no version skipping)

Core Functionality

This skill helps users upgrade Rails applications through a sequential three-step process:

Step 1: Breaking Changes Detection Script

  • Claude generates executable bash script tailored to the specific upgrade
  • Script scans user's codebase for breaking changes
  • Finds issues with file:line references
  • Generates findings report (TXT file)
  • Runs in < 30 seconds
  • Lists affected files for Neovim integration

Step 2: User Runs Script & Shares Findings

  • User executes the detection script in their project directory
  • Script outputs rails_{version}_upgrade_findings.txt
  • User shares findings report back with Claude

Step 3: Claude Generates Reports Based on Actual Findings

  • Comprehensive Upgrade Report: Breaking changes analysis with OLD vs NEW code examples, custom code warnings with ⚠️ flags, step-by-step migration plan, testing checklist and rollback plan
  • app:update Preview Report: Shows exact configuration file changes (OLD vs NEW), lists new files to be created, impact assessment (HIGH/MEDIUM/LOW), Neovim buffer list ready

User Benefits:

  • ⏱️ Saves 2-3 hours per upgrade (automated detection)
  • 🎯 90%+ accuracy in finding breaking changes
  • 📋 Clear file:line references for every issue
  • 🚀 Reports based on ACTUAL detected issues, not hypothetical
  • 📊 50% faster upgrades overall

Trigger Patterns

Claude should activate this skill when user says:

Initial Upgrade Requests (Generate Detection Script):

  • "Upgrade my Rails app to [version]"
  • "Help me upgrade from Rails [x] to [y]"
  • "What breaking changes are in Rails [version]?"
  • "Plan my upgrade from [x] to [y]"
  • "What Rails version am I using?"
  • "Analyze my Rails app for upgrade"
  • "Create a detection script for Rails [version]"
  • "Generate a breaking changes script"
  • "Find breaking changes in my code"

After Script Execution (Generate Reports):

  • "Here's my findings.txt"
  • "I ran the script, here are the results"
  • "The detection script found [X] issues"
  • "Can you analyze these findings?"
  • *User shares/uploads findings.txt file*

Specific Report Requests (Only After Findings Shared):

  • "Show me the app:update changes"
  • "Preview configuration changes for Rails [version]"
  • "Generate the upgrade report"
  • "Create the comprehensive report"

CRITICAL: Sequential Upgrade Strategy

⚠️ Version Skipping is NOT Allowed

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:

  • ❌ 7.0 → 7.2 (skips 7.1)
  • ❌ 7.0 → 8.0 (skips 7.1 and 7.2)
  • ✅ 7.0 → 7.1 (correct)
  • ✅ 7.1 → 7.2 (correct)

If user requests a multi-hop upgrade (e.g., 7.0 → 8.1):

  1. Explain the sequential requirement
  2. Break it into individual hops
  3. Generate separate reports for each hop
  4. Recommend completing each hop fully before moving to next

Available Resources

Core Documentation

  • docs/README.md - Human-readable overview
  • docs/QUICK-REFERENCE.md - Command cheat sheet
  • docs/USAGE-GUIDE.md - Comprehensive how-to

Version-Specific Guides (Load as needed)

  • version-guides/upgrade-7.0-to-7.1.md - Rails 7.0 → 7.1
  • version-guides/upgrade-7.1-to-7.2.md - Rails 7.1 → 7.2
  • version-guides/upgrade-7.2-to-8.0.md - Rails 7.2 → 8.0
  • version-guides/upgrade-8.0-to-8.1.md - Rails 8.0 → 8.1

Workflow Guides (Load when generating deliverables)

  • workflows/upgrade-report-workflow.md - How to generate upgrade reports
  • workflows/detection-script-workflow.md - How to generate detection scripts
  • workflows/app-update-preview-workflow.md - How to generate app:update previews

Examples (Load when user needs clarification)

  • examples/simple-upgrade.md - Single-hop upgrade example
  • examples/multi-hop-upgrade.md - Multi-hop upgrade example
  • examples/detection-script-only.md - Detection script only request
  • examples/preview-only.md - Preview only request

Reference Materials

  • reference/breaking-changes-by-version.md - Quick lookup
  • reference/multi-hop-strategy.md - Multi-version planning
  • reference/deprecations-timeline.md - Deprecation tracking
  • reference/testing-checklist.md - Comprehensive testing
  • reference/pattern-file-guide.md - How to use pattern files
  • reference/quality-checklist.md - Pre-delivery verification
  • reference/troubleshooting.md - Common issues and solutions

Detection Script Resources

  • detection-scripts/patterns/rails-72-patterns.yml - Rails 7.2 patterns
  • detection-scripts/patterns/rails-80-patterns.yml - Rails 8.0 patterns
  • detection-scripts/patterns/rails-81-patterns.yml - Rails 8.1 patterns
  • detection-scripts/templates/detection-script-template.sh - Bash template

Report Templates

  • templates/upgrade-report-template.md - Main upgrade report structure
  • templates/app-update-preview-template.md - Configuration preview

MCP Tools Integration

Required: Rails MCP Server

Tools:

  • railsMcpServer:project_info - Get Rails version, structure, API mode
  • railsMcpServer:get_file - Read file contents
  • railsMcpServer:list_files - Browse directories
  • railsMcpServer:analyze_environment_config - Config files

Optional: Neovim MCP Server

Tools:

  • nvimMcpServer:get_project_buffers - List open files
  • nvimMcpServer:update_buffer - Update file content

High-Level Workflow

When user requests an upgrade, follow this workflow:

Step 1: Detect Current Version

1. Call: railsMcpServer:project_info
2. Store: current_version, target_version, project_type, project_root

Step 2: Load Detection Script Resources

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)

Step 3: Generate Detection Script

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

Step 4: Wait for User to Run Script

User runs: ./detect_rails_{version}_breaking_changes.sh
Script outputs: rails_{version}_upgrade_findings.txt
User shares findings back with Claude

Step 5: Load Report Generation Resources

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

Step 6: Analyze User's Actual Findings

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

Step 7: Generate Reports Based on Findings

Deliverable #1: Comprehensive Upgrade Report

  • Workflow: See workflows/upgrade-report-workflow.md
  • Input: Actual findings from script + version guide data
  • Output: Report with real code examples from user's project

Deliverable #2: app:update Preview

  • Workflow: See workflows/app-update-preview-workflow.md
  • Input: Actual config files + findings
  • Output: Preview with real file paths and changes

Step 8: Present Reports

1. Present Comprehensive Upgrade Report first
2. Present app:update Preview Report second
3. Explain next steps
4. Offer interactive help with Neovim (if available)

When to Load Detailed Workflows

Load workflow files when you need detailed instructions:

Step 1 - Load Before Generating Detection Script:

  • workflows/detection-script-workflow.md - Before creating detection scripts

Step 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 reports
  • workflows/app-update-preview-workflow.md - Before creating previews

Load When User Needs Examples:

  • examples/simple-upgrade.md - User asks about simple upgrades
  • examples/multi-hop-upgrade.md - User asks about complex upgrades
  • examples/detection-script-only.md - User wants only detection script
  • examples/preview-only.md - User wants only preview

Load When You Need Reference:

  • reference/pattern-file-guide.md - When processing YAML pattern files
  • reference/quality-checklist.md - Before delivering any output
  • reference/troubleshooting.md - When encountering issues

Quality Checklist

Before delivering, verify:

For Detection Script:

  • All {PLACEHOLDERS} replaced with actual values
  • Patterns match target Rails version
  • Script includes all breaking changes from pattern file
  • File paths use user's actual project structure
  • User instructions are clear

After User Runs Script (Before Generating Reports):

  • Received and parsed findings.txt from user
  • Identified all detected breaking changes
  • Collected affected file paths
  • Noted custom code warnings from findings

For Comprehensive Upgrade Report:

  • All {PLACEHOLDERS} replaced with actual values
  • Used ACTUAL findings from script (not generic examples)
  • Breaking changes section includes real file:line references
  • Custom code warnings based on actual detected issues
  • Code examples use user's actual code from affected files
  • Next steps clearly outlined

For app:update Preview:

  • All {PLACEHOLDERS} replaced with actual values
  • File list matches user's actual config files
  • Diffs based on real current config vs target version
  • Neovim buffer list includes only affected files
  • Next steps clearly outlined

Detailed Checklist: See reference/quality-checklist.md


Common Request Patterns

Pattern 1: Full Upgrade Request

User says: "Upgrade my Rails app to 8.1"

Action - Phase 1 (Generate Script):

  1. Load: workflows/detection-script-workflow.md
  2. Generate detection script
  3. Deliver script with instructions to run it
  4. Wait for user to share findings.txt

Action - Phase 2 (Generate Reports):

  1. Parse findings.txt
  2. Load: workflows/upgrade-report-workflow.md
  3. Load: workflows/app-update-preview-workflow.md
  4. Generate Comprehensive Upgrade Report (using actual findings)
  5. Generate app:update Preview (using actual findings)
  6. Reference: examples/simple-upgrade.md for structure

Pattern 2: Multi-Hop Request

User says: "Help me upgrade from Rails 7.0 to 8.1"

Action:

  1. Explain sequential requirement
  2. Reference: examples/multi-hop-upgrade.md
  3. Follow Pattern 1 for FIRST hop (7.0 → 7.1)
  4. After first hop complete, repeat for next hops

Pattern 3: Detection Script Only

User says: "Create a detection script for Rails 8.0"

Action:

  1. Load: workflows/detection-script-workflow.md
  2. Generate detection script only
  3. Reference: examples/detection-script-only.md
  4. Do NOT generate reports yet (wait for findings)

Pattern 4: User Returns with Findings

User says: "Here's my findings.txt" or shares script output

Action:

  1. Parse findings.txt
  2. Load: workflows/upgrade-report-workflow.md
  3. Load: workflows/app-update-preview-workflow.md
  4. Generate Comprehensive Upgrade Report
  5. Generate app:update Preview

Pattern 5: Preview Only (After Findings Shared)

User says: "Show me the app:update changes for Rails 7.2"

Action:

  1. Check if user has shared findings
  2. If yes: Load workflows/app-update-preview-workflow.md and generate
  3. If no: Ask user to run detection script first
  4. Reference: examples/preview-only.md

Key Principles

  1. Always Generate Detection Script First (unless user only wants reports and has findings)
  2. Wait for User to Run Script (reports depend on actual findings)
  3. Always Use Actual Findings (no generic examples in reports)
  4. Always Flag Custom Code (with ⚠️ warnings based on detected issues)
  5. Always Use Templates (for consistency)
  6. Always Check Quality (before delivery)
  7. Load Workflows as Needed (don't hold everything in memory)
  8. Sequential Process is Critical (script → findings → reports)

File Organization

This 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:

  • Load workflows/ when generating deliverables
  • Load examples/ when user needs clarification
  • Load reference/ when you need detailed guidance

Success Criteria

A 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

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.75%
按下载量换算68

Claude

30.62%
按下载量换算58

Cursor

20.41%
按下载量换算39

Gemini CLI

9.44%
按下载量换算18

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

未通过

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills