Merge pull request #46 from ayaman/main

Add ruby-pro agent
This commit is contained in:
Seth Hobson
2025-08-10 10:22:39 -04:00
committed by GitHub
2 changed files with 39 additions and 1 deletions

View File

@@ -35,7 +35,7 @@ A comprehensive collection of specialized AI subagents for [Claude Code](https:/
## Overview ## Overview
This repository contains 58 specialized subagents that extend Claude Code's capabilities. Each subagent is an expert in a specific domain, automatically invoked based on context or explicitly called when needed. All agents are configured with specific Claude models based on task complexity for optimal performance and cost-effectiveness. This repository contains 60 specialized subagents that extend Claude Code's capabilities. Each subagent is an expert in a specific domain, automatically invoked based on context or explicitly called when needed. All agents are configured with specific Claude models based on task complexity for optimal performance and cost-effectiveness.
## Available Subagents ## Available Subagents
@@ -49,6 +49,7 @@ This repository contains 58 specialized subagents that extend Claude Code's capa
### Language Specialists ### Language Specialists
- **[python-pro](python-pro.md)** - Write idiomatic Python code with advanced features and optimizations - **[python-pro](python-pro.md)** - Write idiomatic Python code with advanced features and optimizations
- **[ruby-pro](ruby-pro.md)** - Write idiomatic Ruby code with metaprogramming, Rails patterns, gem development, and testing frameworks
- **[golang-pro](golang-pro.md)** - Write idiomatic Go code with goroutines, channels, and interfaces - **[golang-pro](golang-pro.md)** - Write idiomatic Go code with goroutines, channels, and interfaces
- **[rust-pro](rust-pro.md)** - Write idiomatic Rust with ownership patterns, lifetimes, and trait implementations - **[rust-pro](rust-pro.md)** - Write idiomatic Rust with ownership patterns, lifetimes, and trait implementations
- **[c-pro](c-pro.md)** - Write efficient C code with proper memory management and system calls - **[c-pro](c-pro.md)** - Write efficient C code with proper memory management and system calls
@@ -135,6 +136,7 @@ All 58 subagents are configured with specific Claude models based on task comple
**Development & Languages:** **Development & Languages:**
- `python-pro` - Python development with advanced features - `python-pro` - Python development with advanced features
- `ruby-pro` - Ruby development with metaprogramming, Rails patterns, and gem development
- `javascript-pro` - Modern JavaScript and Node.js - `javascript-pro` - Modern JavaScript and Node.js
- `typescript-pro` - Advanced TypeScript with type systems - `typescript-pro` - Advanced TypeScript with type systems
- `golang-pro` - Go concurrency and idiomatic patterns - `golang-pro` - Go concurrency and idiomatic patterns
@@ -372,6 +374,7 @@ payment-integration → security-auditor → Validated implementation
### 🔧 Implementation & Development ### 🔧 Implementation & Development
- **python-pro**: Python-specific development tasks - **python-pro**: Python-specific development tasks
- **ruby-pro**: Ruby metaprogramming, Rails applications, gem development, RSpec/Minitest testing
- **golang-pro**: Go-specific development tasks - **golang-pro**: Go-specific development tasks
- **rust-pro**: Rust-specific development, memory safety, systems programming - **rust-pro**: Rust-specific development, memory safety, systems programming
- **c-pro**: C programming, embedded systems, performance-critical code - **c-pro**: C programming, embedded systems, performance-critical code

35
ruby-pro.md Normal file
View File

@@ -0,0 +1,35 @@
---
name: ruby-pro
description: Write idiomatic Ruby code with metaprogramming, Rails patterns, and performance optimization. Specializes in Ruby on Rails, gem development, and testing frameworks. Use PROACTIVELY for Ruby refactoring, optimization, or complex Ruby features.
model: sonnet
---
You are a Ruby expert specializing in clean, maintainable, and performant Ruby code.
## Focus Areas
- Ruby metaprogramming (modules, mixins, DSLs)
- Rails patterns (ActiveRecord, controllers, views)
- Gem development and dependency management
- Performance optimization and profiling
- Testing with RSpec and Minitest
- Code quality with RuboCop and static analysis
## Approach
1. Embrace Ruby's expressiveness and metaprogramming features
2. Follow Ruby and Rails conventions and idioms
3. Use blocks and enumerables effectively
4. Handle exceptions with proper rescue/ensure patterns
5. Optimize for readability first, performance second
## Output
- Idiomatic Ruby code following community conventions
- Rails applications with MVC architecture
- RSpec/Minitest tests with fixtures and mocks
- Gem specifications with proper versioning
- Performance benchmarks with benchmark-ips
- Refactoring suggestions for legacy Ruby code
Favor Ruby's expressiveness. Include Gemfile and .rubocop.yml when relevant.