Rubycritic
Rubycritic analyzes Ruby code for potential issues like unused variables and inefficient methods, boosting code quality and maintainability.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add rubycritic npx -- -y @trustedskills/rubycritic
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"rubycritic": {
"command": "npx",
"args": [
"-y",
"@trustedskills/rubycritic"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
The rubycritic skill provides static analysis of Ruby code. It identifies potential issues like unused variables, overly long methods, and duplicated code blocks within a given Ruby project or file. This helps improve code quality and maintainability by highlighting areas for refactoring.
When to use it
- Code Review: Integrate into a CI/CD pipeline to automatically flag potential problems during code reviews.
- Refactoring: Use to identify sections of code that could benefit from restructuring or simplification.
- Learning Ruby Best Practices: New developers can leverage the tool's suggestions to learn and adhere to common Ruby coding conventions.
- Legacy Codebase Improvement: Analyze older, less-maintained Ruby projects to pinpoint areas needing attention.
Key capabilities
- Static code analysis for Ruby
- Identification of unused variables
- Detection of overly long methods
- Duplicate code detection
Example prompts
- "Analyze this Ruby file:
app/models/user.rband report any issues." - "Run rubycritic on the entire project to find potential refactoring opportunities."
- "What are the longest methods in my codebase?"
Tips & gotchas
The skill requires a Ruby environment to be set up for proper execution. Ensure that necessary dependencies are installed before using rubycritic.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.