đź’Ž

Ruby Pro

Sicher

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.

UnterstĂĽtzt: Claude Codex Code(CC)
🥉 72 Bronze
1

Die Skill-ZIP herunterladen

2

In Claude hochladen

Gehe zu Einstellungen → Fähigkeiten → Skills → Skill hochladen

3

Einschalten und loslegen

Teste es

Verwendung von "Ruby Pro". Create a Ruby method to validate email format

Erwartetes Ergebnis:

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

Verwendung von "Ruby Pro". Optimize a slow ActiveRecord query

Erwartetes Ergebnis:

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

Verwendung von "Ruby Pro". Write RSpec tests for a Rails controller

Erwartetes Ergebnis:

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

Sicherheitsaudit

Sicher
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
Gescannte Dateien
0
Analysierte Zeilen
0
befunde
1
Gesamtzahl Audits
Keine Sicherheitsprobleme gefunden
Auditiert von: claude

Qualitätsbewertung

38
Architektur
100
Wartbarkeit
87
Inhalt
50
Community
100
Sicherheit
74
Spezifikationskonformität

Was du bauen kannst

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.

Probiere diese 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.

Bewährte Verfahren

  • 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

Vermeiden

  • 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

Häufig gestellte Fragen

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.

Entwicklerdetails

Dateistruktur

đź“„ SKILL.md