Skip to content

ag0os/rails-dev-plugin

Repository files navigation

Rails Dev Plugin

Comprehensive Claude Code plugin with specialized agents for Rails development

Version License

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.

πŸš€ Quick Start

Installation

Install directly from GitHub in any Rails project:

# In Claude Code
/plugin marketplace add ag0os/rails-dev-plugin
/plugin install rails-dev-plugin@ag0os

Team-Wide Auto-Install

For 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.

Per-Project Control

To disable the plugin in non-Rails projects, see examples/project-settings/ for template configurations.

First Use

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

✨ Features

πŸ€– 10 Specialized Agents

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

🎯 1 Autonomous Skill

  • Ruby Refactoring Expert - Code smell identification, refactoring patterns, Ruby best practices

πŸ“– Usage

Automatic Agent Selection

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

Explicit Agent Requests

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"

🎯 Use Cases

Building New Features

You: "I need to add a blog system with posts, comments, and tags"
β†’ Agents coordinate to create models, controllers, views, and tests

Refactoring

You: "This controller has too much business logic. Help me refactor it."
β†’ rails-architect analyzes, rails-service extracts logic, rails-test ensures coverage

Performance Optimization

You: "The posts#index action is slow with 1000+ records"
β†’ rails-architect + rails-devops suggest pagination, caching, and optimization

Test Coverage

You: "I need tests for the PaymentProcessor service"
β†’ rails-test creates comprehensive test suite with edge cases

πŸŽ› Management

Enable/Disable

# Disable (keeps installed)
/plugin disable rails-dev-plugin@ag0os

# Re-enable
/plugin enable rails-dev-plugin@ag0os

Update

/plugin uninstall rails-dev-plugin@ag0os
/plugin install rails-dev-plugin@ag0os

Uninstall

/plugin uninstall rails-dev-plugin@ag0os

πŸ— Plugin Structure

rails-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

🀝 Contributing

Contributions are welcome! Please see CONTRIBUTING.md for details.

Quick Contribution Guide

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-agent)
  3. Make your changes to agent markdown files
  4. Test the agent in a Rails project
  5. Commit your changes (git commit -m 'Add amazing new agent')
  6. Push to the branch (git push origin feature/amazing-agent)
  7. Open a Pull Request

πŸ› Troubleshooting

Plugin Not Found

Error: Plugin not found

Solution: Verify the marketplace was added correctly:

/plugin marketplace add ag0os/rails-dev-plugin

Agents Not Available

Solution: Restart Claude Code after installation.

Agent Not Responding Correctly

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

πŸ“š Documentation

πŸ”„ Changelog

See CHANGELOG.md for version history.

πŸ“„ License

MIT License - see LICENSE file for details.

πŸ™ Acknowledgments

  • Built for Claude Code
  • Inspired by Rails best practices and community conventions
  • Designed for modern Rails development workflows

πŸ’¬ Support

⭐️ Show Your Support

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

About

Comprehensive Claude Code plugin for Rails development

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •