ワンクリックで
gem-check
Analyze Ruby gem security vulnerabilities, outdated dependencies, and health status with actionable upgrade recommendations
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Analyze Ruby gem security vulnerabilities, outdated dependencies, and health status with actionable upgrade recommendations
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
| name | gem-check |
| description | Analyze Ruby gem security vulnerabilities, outdated dependencies, and health status with actionable upgrade recommendations |
Analyze your Ruby project's dependencies for security vulnerabilities, outdated gems, and maintenance concerns. This skill runs gemtracker to provide structured reports and helps prioritize which gems to update.
When using gem-check, follow these steps:
/gem-check to scan your project's Gemfile.lockKey principle: You decide what to update and when. I can provide analysis, explain changes, help with conflicts, and suggest strategies—but you control the final decisions.
When invoked on a Ruby project with Gemfile.lock, this skill:
gemtracker --report json to get structured dependency data/gem-check
This will analyze your current project's Gemfile.lock and report findings.
/gem-check /path/to/rails-app
Shows all CVEs found in your gems:
🔴 SECURITY VULNERABILITIES (2 found)
─────────────────────────────────────
1. rack (2.1.2 → CRITICAL)
CVE-2021-22942: HTTP request smuggling vulnerability
Scope: default (PRODUCTION)
Impact: DIRECT - First-level dependency
→ Upgrade to rack 2.2.4 or 3.0.0+
2. devise (4.8.0 → HIGH)
CVE-2022-0000: Authentication bypass in certain configurations
Scope: default (PRODUCTION)
Impact: TRANSITIVE - Dependency of other gems
Lists gems with available updates, prioritized by impact:
🟡 OUTDATED GEMS (23 found)
─────────────────────────────
HIGH PRIORITY (First-level, production use):
• rails: 7.0.0 → 8.1.3 (major jump - requires testing)
• devise: 4.8.0 → 4.9.3 (patch update - low risk)
• pg: 1.3.0 → 1.5.4 (minor update - safe)
MEDIUM PRIORITY (First-level, other groups):
• rspec: 3.10.0 → 3.13.0 (dev only)
• pry: 0.14.0 → 0.14.2 (dev only)
LOW PRIORITY (Transitive dependencies):
• bundler: 2.1.0 → 2.5.1 (23 transitive uses)
• json: 2.6.0 → 2.6.3 (11 transitive uses)
Flags first-level gems with maintenance concerns:
🟠 MAINTENANCE CONCERNS (3 gems)
─────────────────────────────────
WARNING:
• thin (1.8.1) - No releases for 3+ years
Maintainers: 1 | Last commit: 2019
→ Consider: Use Puma or other maintained alternatives
CRITICAL:
• net-ftp (0.2.0) - Archived repository
Maintainers: 0 | No activity since 2021
→ Action: Plan migration to maintained alternative
📊 PROJECT HEALTH SUMMARY
────────────────────────
Total gems: 189
First-level: 63
Transitive: 126
Status:
✓ 163 gems are healthy and up-to-date
⚠️ 23 gems have updates available
🔴 2 gems have known vulnerabilities
🟠 3 gems show maintenance concerns
RECOMMENDED ACTIONS (prioritized):
1. IMMEDIATE: Update 'rack' to patch CVE-2021-22942
2. THIS SPRINT: Update Rails (major version change, needs testing)
3. NEXT SPRINT: Update remaining 21 gems
→ Focus on first-level dependencies first
→ Transitive updates often happen automatically
Estimated effort:
• Critical fixes: 1-2 hours
• Rails upgrade: Full sprint
• Other updates: 4-6 hours
Ask for help updating a specific gem:
Help me update rails from 7.0.0 to 8.1.3
I can:
Ask to update a specific gem:
Update devise to 4.9.3
I can:
Gemfile with new versionGet a prioritized action plan:
Create an upgrade plan for all outdated gems
I'll provide:
Installation Check - Verifies gemtracker is available
brew install gemtrackerGemfile.lock Detection - Looks for Gemfile.lock in:
JSON Analysis - Runs gemtracker with structured output:
Report Generation - Creates actionable summary:
User-Driven Updates - You decide what to update:
This skill requires the gemtracker CLI tool. If not found, I'll prompt you to install it. For detailed installation instructions, see reference.md.
When reading reports, gem groups matter for prioritization:
A vulnerability in test is less urgent than one in default.
✅ Do's:
❌ Don'ts:
/gem-check # Analyze current project
/gem-check ~/my-rails-app # Analyze specific project
"Help me upgrade Rails safely"
"Update devise to 4.9.3"
"Create a prioritized plan to update all outdated gems"
For more detailed examples including workflows for security-first updates, large projects, and CI/CD integration, see examples.md.
For detailed information about using this skill:
External resources:
This skill is open source under the MIT License. See LICENSE for full details.
MIT License Summary: