đź’Ž

Ruby Pro

Sûr

Master Ruby Development with Expert Guidance

Ruby developers struggle with writing idiomatic code and following best practices. This skill provides expert guidance on metaprogramming, Rails patterns, and performance optimization.

Prend en charge: Claude Codex Code(CC)
🥉 72 Bronze
1

Télécharger le ZIP du skill

2

Importer dans Claude

Allez dans Paramètres → Capacités → Skills → Importer un skill

3

Activez et commencez Ă  utiliser

Tester

Utilisation de "Ruby Pro". Create a Ruby method to validate email format

Résultat attendu:

A reusable email validation method using regex with proper Unicode support, following Ruby naming conventions and returning boolean values.

Utilisation de "Ruby Pro". Optimize a slow ActiveRecord query

Résultat attendu:

Refactored query using eager loading with includes, select optimization, and database indexing recommendations to reduce N+1 queries.

Utilisation de "Ruby Pro". Write RSpec tests for a Rails controller

Résultat attendu:

Complete controller spec with request tests, response status assertions, JSON payload validation, and authentication edge cases.

Audit de sécurité

Sûr
v1 • 2/24/2026

This is a prompt-only skill containing instructional text for Ruby programming assistance. Static analysis scanned 0 files with 0 risk patterns detected. No executable code, network access, filesystem operations, or external command execution present. The skill provides guidance on Ruby idioms, Rails patterns, and testing practices without any security concerns.

0
Fichiers analysés
0
Lignes analysées
0
résultats
1
Total des audits
Aucun problème de sécurité trouvé
Audité par: claude

Score de qualité

38
Architecture
100
Maintenabilité
87
Contenu
50
Communauté
100
Sécurité
74
Conformité aux spécifications

Ce que vous pouvez construire

Rails Application Development

Build robust Rails applications using MVC architecture, ActiveRecord patterns, and RESTful controllers.

Gem Library Creation

Develop and publish Ruby gems with proper specifications, versioning, and dependency management.

Code Quality Improvement

Refactor existing Ruby codebases to follow idioms, improve performance, and pass RuboCop analysis.

Essayez ces prompts

Basic Ruby Method
Write a Ruby method that takes an array of integers and returns the sum of all even numbers. Follow Ruby conventions and include edge case handling.
Rails Model Design
Design an ActiveRecord model for a blog post with associations to user and comments. Include validations, scopes, and a custom instance method for generating a slug.
Metaprogramming DSL
Create a Ruby DSL using metaprogramming that allows defining configuration options with type validation. Use class macros and method_missing appropriately.
RSpec Test Suite
Write a comprehensive RSpec test suite for a service class that processes payments. Include unit tests with mocks, integration tests, and edge cases for failure scenarios.

Bonnes pratiques

  • Follow Ruby naming conventions: snake_case for methods, CamelCase for classes, and descriptive variable names
  • Use blocks and enumerables instead of manual loops for cleaner, more expressive code
  • Apply the principle of least surprise by following Ruby and Rails community conventions

Éviter

  • Avoid excessive metaprogramming that makes code difficult to understand and debug
  • Do not ignore return values or suppress exceptions without proper handling
  • Never commit without running tests and RuboCop analysis on your changes

Foire aux questions

What Ruby versions does this skill support?
This skill covers Ruby 2.7 through Ruby 3.3, including modern features like pattern matching, endless methods, and rightward assignment.
Can this skill help with Rails-specific issues?
Yes, it specializes in Rails patterns including ActiveRecord queries, controller best practices, view helpers, and background job processing.
Does this skill write tests automatically?
The skill provides test code examples and guidance for RSpec and Minitest, but you must run and maintain the tests in your environment.
Can it help optimize slow Ruby code?
Yes, it can suggest performance improvements, identify bottlenecks, and recommend profiling tools like benchmark-ips and StackProf.
What about gem development and publishing?
It covers gemspec creation, dependency management, semantic versioning, and best practices for publishing to RubyGems.
Does this skill replace RuboCop or other static analysis tools?
No, it complements static analysis tools by providing contextual guidance and explaining the reasoning behind code quality rules.

Détails du développeur

Structure de fichiers

đź“„ SKILL.md