Claude RubyCritic Skill automates Ruby code quality analysis. It benefits developers and operations teams by integrating RubyCritic into Claude Code workflows. The skill connects to Ruby projects and CI/CD pipelines, providing static analysis and code quality metrics.
git clone https://github.com/esparkman/claude-rubycritic-skill.gitClaude RubyCritic Skill automates Ruby code quality analysis. It benefits developers and operations teams by integrating RubyCritic into Claude Code workflows. The skill connects to Ruby projects and CI/CD pipelines, providing static analysis and code quality metrics.
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/esparkman/claude-rubycritic-skillCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Analyze the following Ruby code using RubyCritic and provide a detailed report. The code is from [COMPANY]'s [PROJECT_NAME] in the [INDUSTRY] sector. Focus on complexity, duplication, and documentation issues. Format the output with clear sections and actionable recommendations.
# RubyCritic Analysis Report ## Project Overview - **Project Name**: [PROJECT_NAME] - **Industry**: [INDUSTRY] - **Company**: [COMPANY] ## Code Quality Metrics - **Complexity**: High (Average cyclomatic complexity: 8.2) - **Duplication**: Moderate (12.3% of code is duplicated) - **Documentation**: Incomplete (Only 45% of methods are documented) ## Key Findings ### High Complexity Areas - `app/controllers/api_controller.rb` has a cyclomatic complexity of 15 - `app/services/payment_processor.rb` has multiple nested conditionals ### Duplication Issues - Similar code patterns found in `app/models/user.rb` and `app/models/admin.rb` - Repeated validation logic in multiple model files ### Documentation Gaps - Critical methods in `app/lib/encryption.rb` lack documentation - No module-level documentation for `app/lib/reporting` ## Recommendations 1. Refactor `api_controller.rb` to reduce complexity 2. Extract common validation logic into a concern or module 3. Add documentation for all public methods and modules 4. Consider using RubyCritic's autogenerated documentation for quick improvements
AI assistant built for thoughtful, nuanced conversation
neobank for e-commerce businesses
Simple data integration for modern teams
Business communication and collaboration hub
Customer feedback management made simple
Enterprise workflow automation and service management platform