rails-design-system

Generate Ruby on Rails UIs with Turbo, Stimulus, and ERB partials.

193|17|Updated Jan 16, 2026
One-click install
npx skills add https://github.com/pproenca/dot-skills --skill rails-design-system
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rails-design-system
Source: https://github.com/pproenca/dot-skills/tree/main/skills/.experimental/rails-design-system
Command: npx skills add https://github.com/pproenca/dot-skills --skill rails-design-system

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill provides a comprehensive set of guidelines and best practices for building consistent, maintainable, and accessible user interfaces in Ruby on Rails applications, covering the entire frontend stack.

Core Features & Use Cases

  • Standardized UI Architecture: Enforces consistent patterns for Turbo, Stimulus, ERB partials, components, form builders, and view helpers.
  • Design Token Integration: Guides the definition and usage of design tokens with Tailwind CSS for visual consistency.
  • Use Case: When refactoring a Rails view, use this Skill to ensure all new partials, components, and helpers adhere to established design system rules, preventing UI drift and improving maintainability.

Quick Start

Apply the rails-design-system skill to audit the consistency of ERB partials and Tailwind CSS tokens in the application.

Frequently Asked Questions about rails-design-system

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

FAQPage Schema
How do I maintain UI consistency in a Ruby on Rails application?

To maintain UI consistency in a Ruby on Rails application, apply standardized guidelines for Turbo, Stimulus, ERB partials, and design tokens. This prevents UI drift during refactoring by enforcing consistent patterns across the entire frontend stack.

What is the best way to integrate Tailwind CSS design tokens with Rails components?

Integrating Tailwind CSS design tokens with Rails components involves defining visual tokens and applying them consistently across ERB partials and form builders. This ensures visual uniformity and aids AI agents in generating compliant frontend code.

How do I structure ERB partials and view helpers for a maintainable Rails design system?

Structuring ERB partials and view helpers for a maintainable Rails design system requires adhering to established architectural rules. Following 51 categorized rules ensures components, form builders, and helpers remain consistent and accessible.

Can I use this design system approach to audit existing Rails views?

Yes, you can use this design system approach to audit existing Rails views. Apply the guidelines to check the consistency of ERB partials, Stimulus controllers, and Tailwind CSS tokens, ensuring your current architecture aligns with best practices.

Does this Rails design system guidelines cover Turbo and Stimulus integration?

Yes, these Rails design system guidelines cover Turbo and Stimulus integration. They provide standardized patterns for using these frameworks alongside ERB components and view helpers to build consistent, maintainable user interfaces.

Why does my Rails frontend UI drift when refactoring components?

Rails frontend UI drifts during refactoring when partials and components lack standardized design tokens and architectural rules. Enforcing strict guidelines for form builders, helpers, and Tailwind CSS usage prevents this visual inconsistency.