rails-workflow

Guide Ruby on Rails development with StandardRB, Brakeman, RSpec, and Solid Queue.

Updated Apr 11, 2023
One-click install
npx skills add https://github.com/salverius-tech/dotfiles --skill rails-workflow
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rails-workflow
Source: https://github.com/salverius-tech/dotfiles/tree/main/home/dot_claude/skills/rails-workflow
Command: npx skills add https://github.com/salverius-tech/dotfiles --skill rails-workflow

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a comprehensive guide and best practices for developing Ruby on Rails applications, ensuring efficient, secure, and maintainable code.

Core Features & Use Cases

  • Development Workflow: Covers essential tools and commands for linting, security scanning, testing, and running Rails applications.
  • Rails 8.x Features: Details built-in authentication, background jobs (Solid Queue), and caching mechanisms.
  • Code Standards: Enforces patterns for controllers, service objects, models, and migrations.
  • Security Best Practices: Highlights the importance of Brakeman and secure coding patterns to prevent vulnerabilities.
  • Testing & Deployment: Guides on writing effective model and request specs, and database migration strategies.
  • Use Case: When starting a new Rails project or refactoring an existing one, use this Skill to ensure adherence to modern best practices and leverage the latest framework features.

Quick Start

Activate the rails-workflow skill to generate a new Rails authentication system.

Frequently Asked Questions about rails-workflow

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What are the best practices for Ruby on Rails 8.x development workflow?

A modern Ruby on Rails development workflow integrates StandardRB for linting, Brakeman for security analysis, RSpec for testing, and Solid Queue for background jobs. This combination enforces maintainable code patterns across controllers, service objects, and models.

How do I structure controllers and service objects in a Rails application?

Structure Rails controllers and service objects by enforcing specific patterns for code organization. This approach separates business logic into service objects while keeping controllers lean, ensuring secure and maintainable application architecture.

How do I set up background jobs using Solid Queue in Rails?

Set up Solid Queue in Rails by utilizing the framework's built-in background job features introduced in Rails 8.x. This workflow provides structured guidance for configuring and managing asynchronous tasks efficiently within your application.

What is the best way to run security analysis on a Ruby on Rails codebase?

The best way to run security analysis on a Ruby on Rails codebase is using Brakeman. This workflow integrates the scanner to identify vulnerabilities and enforces secure coding patterns across models, controllers, and migrations.

Does this Rails development workflow support RSpec for model and request specs?

Yes, this Rails development workflow supports RSpec for testing. It provides structured guidance on writing effective model and request specs to validate application behavior and ensure code reliability throughout the development process.

What database migration strategies should I use for maintainable Rails applications?

For maintainable Rails applications, use database migration strategies that enforce structured code organization. This workflow outlines specific patterns for managing migrations safely, ensuring database changes do not disrupt application stability.