ruby-on-rails-development

star 0

Rails skills router and knowledge base. Routes your request to the appropriate specialist skill. Contains core Rails principles and conventions. Use when unsure which specialist to choose or for general Rails questions.

SeSAC-9rown By SeSAC-9rown schedule Updated 12/1/2025

name: ruby-on-rails-development description: Rails skills router and knowledge base. Routes your request to the appropriate specialist skill. Contains core Rails principles and conventions. Use when unsure which specialist to choose or for general Rails questions.

Rails Development Router

Welcome! I'll help route your Rails development task to the appropriate specialist.

๐ŸŽฏ How This Works

Based on your request, I'll automatically activate the right specialist skill:

Your Task Specialist Activated
Writing tests, TDD โ†’ rails-testing
UI components, Turbo โ†’ rails-viewcomponents
Security, encryption โ†’ rails-security
Business logic, workflows โ†’ rails-business-logic
Background jobs โ†’ rails-background-jobs
REST API โ†’ rails-api
GraphQL โ†’ rails-graphql
Inertia.js SPA โ†’ rails-inertia
Docker, deployment โ†’ rails-devops
Performance, optimization โ†’ rails-analyst
Documentation โ†’ rails-technical-writer
Project planning โ†’ rails-project-manager

๐Ÿš€ Quick Start

Just describe what you want to build:

โœ… "Create User model with email validation"
โœ… "Add authentication with Devise"
โœ… "Build a dashboard component"
โœ… "Setup CI/CD pipeline"
โœ… "Optimize slow queries"

I'll analyze your request and activate the right specialist!

๐Ÿ“š Core Rails Principles

All specialists follow these NON-NEGOTIABLE principles:

1. Test-First Development (TDD)

Every feature MUST follow Red-Green-Refactor:

# 1. RED - Write failing test FIRST
RSpec.describe User do
  it "validates email presence" do
    user = User.new(email: nil)
    expect(user).not_to be_valid
  end
end

# 2. Run test - MUST fail
# 3. GREEN - Write minimal code to pass
# 4. REFACTOR - Improve while tests pass

Rules:

  • โœ… Tests written BEFORE implementation
  • โœ… Never commit failing tests
  • โœ… Never skip/disable tests to pass builds
  • โœ… Red-Green-Refactor cycle strictly enforced

2. YAGNI Principle

You Aren't Gonna Need It - Don't create abstractions until needed.

# โŒ Don't create prematurely
# app/services/      (until pattern emerges)
# app/presenters/    (use decorators instead)
# config/constants.rb (for values used once)

# โœ… Create when actually needed
# app/interactions/  (ActiveInteraction)
# app/components/    (ViewComponents)

3. Convention Over Configuration

Follow Rails conventions unless compelling reason:

  • Naming: Models singular, Controllers plural
  • Routes: RESTful design
  • Structure: Standard Rails directories
  • Patterns: Rails way first

4. Security by Design

Always:

  • โœ… Strong parameters in controllers
  • โœ… Authorization on all actions (Pundit)
  • โœ… Encrypt sensitive data (Lockbox)
  • โœ… HTTPS in production
  • โœ… Rate limiting on APIs

5. Incremental Progress

Each commit should:

  • โœ… Compile successfully
  • โœ… Pass all tests
  • โœ… Be deployable
  • โœ… Represent complete feature slice

๐Ÿ“– Available Specialists

For detailed information about each specialist, see SKILLS_REGISTRY.md

๐ŸŽฏ Coordination

  • rails-project-manager - Plans features, coordinates specialists

๐Ÿ’ป Development

  • rails-testing - RSpec, FactoryBot, TDD
  • rails-viewcomponents - ViewComponent, Turbo, Stimulus
  • rails-business-logic - ActiveInteraction, AASM, decorators

๐ŸŒ API & Frontend

  • rails-api - REST APIs, JWT, serialization
  • rails-graphql - GraphQL schemas, mutations
  • rails-inertia - Inertia.js SPAs

๐Ÿ—๏ธ Infrastructure

  • rails-background-jobs - Solid Queue, jobs
  • rails-devops - Docker, CI/CD, deployment
  • rails-security - Pundit, Lockbox, authentication

๐Ÿ“Š Analysis

  • rails-analyst - Performance, optimization
  • rails-technical-writer - Documentation

๐Ÿ” Need Help Choosing?

Ask yourself:

What am I building?

  • Data/logic โ†’ rails-business-logic
  • UI component โ†’ rails-viewcomponents
  • API endpoint โ†’ rails-api or rails-graphql
  • Background task โ†’ rails-background-jobs

What am I fixing?

  • Slow queries โ†’ rails-analyst
  • Security issue โ†’ rails-security
  • Test failure โ†’ rails-testing
  • Deployment problem โ†’ rails-devops

What am I documenting?

  • README โ†’ rails-technical-writer
  • Code comments โ†’ rails-technical-writer

What am I planning?

  • Complex feature โ†’ rails-project-manager
  • Architecture decision โ†’ rails-project-manager

๐Ÿ’ก Example Workflows

Simple Task (One Specialist)

YOU: "Add email validation to User model"

CLAUDE: [Activates rails-testing]
        Writing test first (TDD)...
        Test fails (RED) โœ“
        Adding validation...
        Test passes (GREEN) โœ“

Complex Task (Multiple Specialists)

YOU: "Build comment system for articles"

CLAUDE: [Activates rails-project-manager]
        Analyzing requirements...

        Plan:
        Stage 1: Model & Tests (rails-testing)
        Stage 2: Business Logic (rails-business-logic)
        Stage 3: API (rails-api)
        Stage 4: UI Components (rails-viewcomponents)

        Starting Stage 1...

๐Ÿ› ๏ธ Tech Stack Reference

Our specialists support:

Core Framework

  • Rails 7.0, 7.1, 7.2, 8.0, 8.1
  • Ruby 3.2, 3.3+
  • PostgreSQL 14+

Frontend

  • ViewComponent 3.x
  • Hotwire (Turbo 8.x, Stimulus 3.x)
  • Tailwind CSS
  • Inertia.js 1.x

Backend

  • ActiveInteraction 5.x
  • AASM 5.x
  • Pundit 2.x
  • Lockbox 1.x
  • Solid Queue (Rails 7.1+)

DevOps

  • Docker
  • GitHub Actions / GitLab CI
  • Kamal 2.x (Rails 8.0+)

๐Ÿ“‹ Quality Checklist

Before any commit, specialists ensure:

# All must pass:
bundle exec rspec                    # Tests
bundle exec rubocop                  # Linting
bundle exec erblint --lint-all       # ERB linting
bundle exec brakeman --no-pager      # Security
bundle exec bundle-audit check       # Vulnerabilities

๐Ÿ”„ Continuous Improvement

This system is:

  • โœ… Extensible - Easy to add new specialists
  • โœ… Updatable - Each specialist versioned independently
  • โœ… Open Source - Community contributions welcome
  • โœ… Documented - All patterns and practices recorded

See SKILLS_REGISTRY.md for:

  • Complete specialist catalog
  • Version history
  • Extension guide
  • Contributing guidelines

๐ŸŽฌ Ready to Start?

Just tell me what you want to build, and I'll activate the right specialist!

Examples:

  • "Create an Article model with validations"
  • "Setup authentication system"
  • "Build a commenting feature"
  • "Optimize slow dashboard queries"
  • "Deploy to production with Docker"

Let's build something great! ๐Ÿš€

Install via CLI
npx skills add https://github.com/SeSAC-9rown/chytonpide-web --skill ruby-on-rails-development
Repository Details
star Stars 0
call_split Forks 0
navigation Branch main
article Path SKILL.md
More from Creator