Use when ruboCop cops including built-in cops, configuration, auto-correction, and development.
Master RuboCop for Ruby code quality enforcement, including built-in cops, custom configuration, auto-correction, and development workflows. Use when configuring RuboCop, running inspections, auto-fixing violations, or troubleshooting Ruby linting issues in projects.
/plugin marketplace add TheBushidoCollective/han/plugin install jutsu-react-native-web@hanThis skill is limited to using the following tools:
Master RuboCop cops including built-in cops, configuration, auto-correction, and development. This skill provides comprehensive coverage of essential concepts, patterns, and best practices for professional RuboCop development.
RuboCop is a powerful tool for ruby development, providing robust capabilities for maintaining code quality and ensuring reliable software delivery. This skill covers the fundamental through advanced aspects of working with RuboCop.
Setting up RuboCop requires proper installation and configuration in your development environment.
# Installation command specific to RuboCop
# Follow official documentation for latest version
Create appropriate configuration files and setup for your project structure:
Understanding the core principles of RuboCop is essential for effective usage:
RuboCop provides several key features that make it valuable:
Proper configuration ensures RuboCop works optimally:
For complex scenarios, RuboCop offers advanced capabilities:
// Basic RuboCop setup
// Demonstrates fundamental usage patterns
// Shows proper initialization and configuration
// Core setup code
function basicSetup() {
// Initialize framework
// Configure basic options
// Return configured instance
}
// Usage example
const instance = basicSetup();
// Configuration example for RuboCop
// Shows how to properly configure
// Includes common options and patterns
// Configuration object
const config = {
option1: 'value1',
option2: 'value2',
advanced: {
setting1: true,
setting2: false
}
};
// Apply configuration
function applyConfig(config) {
// Validation logic
// Application logic
// Return result
}
// Advanced usage pattern
// Demonstrates sophisticated techniques
// Shows best practices in action
function advancedPattern() {
// Setup phase
// Execution phase
// Cleanup phase
}
// Integration with other tools
// Shows real-world usage
// Demonstrates interoperability
function integrationExample() {
// Setup integration
// Execute workflow
// Handle results
}
// Proper error handling approach
// Defensive programming patterns
// Graceful degradation
function withErrorHandling() {
try {
// Main logic
} catch (error) {
// Error recovery
} finally {
// Cleanup
}
}
// Performance-optimized implementation
// Shows efficiency techniques
// Demonstrates best practices
function optimizedApproach() {
// Efficient implementation
// Resource management
// Performance monitoring
}
// Testing approach for RuboCop
// Unit test examples
// Integration test patterns
function testExample() {
// Test setup
// Execution
// Assertions
// Teardown
}
// Production-ready implementation
// Includes monitoring and logging
// Error recovery and resilience
function productionExample() {
// Production configuration
// Monitoring setup
// Error handling
// Logging
}
RuboCop allows extensive customization for specific needs:
Optimize RuboCop performance for production:
Integrate RuboCop into continuous integration pipelines:
Common issues and their solutions:
Mastering RuboCop requires understanding both fundamentals and advanced concepts. This skill provides the foundation for professional-grade usage, from initial setup through production deployment. Apply these principles consistently for best results.
Comprehensive configuration example demonstrating best practices and common patterns used in production environments.
# Detailed configuration setup
# Includes all necessary options
# Optimized for production use
Alternative configuration approach for different use cases, showing flexibility and adaptability of the framework.
# Alternative configuration
# Different optimization strategy
# Suitable for specific scenarios
Advanced configuration for complex environments with multiple requirements and constraints.
# Advanced configuration
# Handles complex scenarios
# Production-ready setup
Organize your setup in a modular way to improve maintainability and scalability across large projects.
Implementation details:
Optimize for performance in production environments with proven strategies and techniques.
Key considerations:
Implement robust error recovery mechanisms to handle failures gracefully.
Recovery strategies:
Comprehensive testing approach ensuring code quality and reliability.
Testing layers:
Seamless integration into continuous integration and deployment pipelines.
Steps:
Connect with popular development tools and IDEs for improved workflow.
Tools:
Implement monitoring and observability for production systems.
Monitoring aspects:
Create and maintain consistent standards across the team.
Standards to define:
Streamline onboarding for new team members.
Onboarding steps:
Effective code review practices for quality assurance.
Review checklist:
Detailed troubleshooting steps for frequently encountered problem.
Resolution steps:
Another common issue with comprehensive resolution approach.
Diagnostic steps:
Third common scenario with clear resolution path.
Investigation process:
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.
Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.