Comprehensive Claude Code plugin with specialized agents for Rails development
A Claude Code plugin that provides specialized AI agents and autonomous Skills to assist with all aspects of Rails application development. From models and controllers to architecture decisions and DevOps, this plugin has you covered.
Install directly from GitHub in any Rails project:
# In Claude Code
/plugin marketplace add ag0os/rails-dev-plugin
/plugin install rails-dev-plugin@ag0osFor teams, add to your Rails project's .claude/settings.json:
# Copy the example template
mkdir -p .claude
cp examples/project-settings/rails-project.json .claude/settings.json
git add .claude/settings.json
git commit -m "Enable Rails Dev Plugin for team"Or create manually:
{
"plugins": {
"marketplaces": [
{
"name": "rails-dev",
"source": "ag0os/rails-dev-plugin"
}
],
"installed": ["rails-dev-plugin@rails-dev"],
"autoInstall": true
}
}Commit this file to your repository. Team members will automatically get the plugin on first Claude Code launch.
To disable the plugin in non-Rails projects, see examples/project-settings/ for template configurations.
After installation, restart Claude Code and start using the agents:
You: "Create a new User model with authentication"
Claude: I'll use the rails-model agent to help...
Expert agents for every aspect of Rails development:
| Agent | Domain | Specialization |
|---|---|---|
rails-model |
Backend | ActiveRecord models, migrations, associations, validations, schema design |
rails-controller |
Backend | RESTful controllers, authentication/authorization, Pundit policies |
rails-service |
Backend | Service objects, business logic extraction, command/query patterns |
rails-jobs |
Backend | Background jobs, Active Job, Sidekiq, job scheduling |
rails-views |
Frontend | ViewComponents, ERB templates, TailwindCSS, modern UI patterns |
rails-stimulus-turbo |
Frontend | Hotwire, Stimulus controllers, Turbo frames/streams |
rails-graphql |
API | GraphQL schema design, resolvers, mutations, query optimization |
rails-test |
Testing | TDD with Minitest/RSpec, test coverage, fixtures, system tests |
rails-architect |
Architecture | Architectural decisions, design patterns, system structure |
rails-devops |
Operations | Deployment, CI/CD, Docker, performance, monitoring |
- Ruby Refactoring Expert - Code smell identification, refactoring patterns, Ruby best practices
Claude Code automatically selects the appropriate agent based on your request:
You: "Add validations to the Order model"
β Uses rails-model agent
You: "Create a controller for managing products"
β Uses rails-controller agent
You: "Design a service object for payment processing"
β Uses rails-architect + rails-service agents
You can also explicitly request specific agents:
You: "Use the rails-architect agent to review my service layer design"
You: "Have the rails-test agent help me improve test coverage"
You: "I need to add a blog system with posts, comments, and tags"
β Agents coordinate to create models, controllers, views, and tests
You: "This controller has too much business logic. Help me refactor it."
β rails-architect analyzes, rails-service extracts logic, rails-test ensures coverage
You: "The posts#index action is slow with 1000+ records"
β rails-architect + rails-devops suggest pagination, caching, and optimization
You: "I need tests for the PaymentProcessor service"
β rails-test creates comprehensive test suite with edge cases
# Disable (keeps installed)
/plugin disable rails-dev-plugin@ag0os
# Re-enable
/plugin enable rails-dev-plugin@ag0os/plugin uninstall rails-dev-plugin@ag0os
/plugin install rails-dev-plugin@ag0os/plugin uninstall rails-dev-plugin@ag0osrails-dev-plugin/
βββ .claude-plugin/
β βββ plugin.json # Plugin metadata
β βββ marketplace.json # Marketplace configuration
βββ .mcp.json # MCP server configuration
βββ agents/ # 10 specialized agents
β βββ rails-architect.md
β βββ rails-controller.md
β βββ rails-devops.md
β βββ rails-graphql.md
β βββ rails-jobs.md
β βββ rails-model.md
β βββ rails-service.md
β βββ rails-stimulus-turbo.md
β βββ rails-test.md
β βββ rails-views.md
βββ skills/ # 1 autonomous Skill
β βββ ruby-refactoring/
β βββ SKILL.md
β βββ code-smells.md
β βββ refactoring-patterns.md
βββ docs/
β βββ quick-start.md # Common workflows
β βββ agent-decision-tree.md # Agent selection guide
βββ examples/
β βββ project-settings/ # Example .claude/settings.json files
β βββ rails-project.json
β βββ non-rails-project.json
β βββ README.md
βββ CHANGELOG.md
βββ CONTRIBUTING.md
βββ LICENSE
βββ README.md
Contributions are welcome! Please see CONTRIBUTING.md for details.
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-agent) - Make your changes to agent markdown files
- Test the agent in a Rails project
- Commit your changes (
git commit -m 'Add amazing new agent') - Push to the branch (
git push origin feature/amazing-agent) - Open a Pull Request
Error: Plugin not found
Solution: Verify the marketplace was added correctly:
/plugin marketplace add ag0os/rails-dev-pluginSolution: Restart Claude Code after installation.
Solution: Check the agent's markdown file for proper formatting and update the plugin:
/plugin uninstall rails-dev-plugin@ag0os
/plugin install rails-dev-plugin@ag0os- Quick Start Guide - Common workflows and examples
- Agent Decision Tree - Which agent to use when
- Agent Development Guide (coming soon)
- Best Practices (coming soon)
- FAQ (coming soon)
See CHANGELOG.md for version history.
MIT License - see LICENSE file for details.
- Built for Claude Code
- Inspired by Rails best practices and community conventions
- Designed for modern Rails development workflows
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Updates: Watch this repository for updates
- Quick Start: docs/quick-start.md
- Agent Guide: docs/agent-decision-tree.md
If this plugin helps your Rails development workflow, please consider:
- Starring the repository βοΈ
- Sharing it with your team
- Contributing improvements
- Reporting issues or suggestions
Made with β€οΈ for the Rails community