Rails design system

From pproenca/dot-skills · View interactive version

Rails design system is an AI agent skill from the GitHub repository pproenca/dot-skills. Ruby on Rails design system guidelines for building consistent, maintainable UI with minimal abstraction. This skill should be used when creating or refactoring Rails views, partials, components, form builders, helpers, Stimulus controllers, Turbo Frames, Turbo Streams, or design tokens. Triggers on

How to use this skill

Skill file

Community Ruby on Rails Design System Best Practices

Comprehensive design system guide for Ruby on Rails applications, maintained by Community. Contains 51 rules across 9 categories, prioritized by impact to guide automated refactoring and code generation. Covers the full Rails frontend stack: Turbo (Drive, Frames, Streams), Stimulus, ERB partials, design tokens, form builders, and view helpers. Complements rails-dev (controllers, models, queries) and tailwind (CSS patterns) by covering the systematic UI component architecture layer.

When to Apply

Reference these guidelines when:

Rule Categories by Priority

| Priority | Category | Impact | Prefix |

|----------|----------|--------|--------|

| 1 | Design Decisions | CRITICAL | decide- |

| 2 | Design Tokens | CRITICAL | token- |

| 3 | Turbo Integration | HIGH | turbo- |

| 4 | Partial Patterns | HIGH | partial- |

| 5 | Component Architecture | HIGH | comp- |

| 6 | Form System | MEDIUM-HIGH | form- |

| 7 | Helper Patterns | MEDIUM | helper- |

| 8 | Stimulus Behaviors | MEDIUM | stim- |

| 9 | Consistency & Organization | LOW-MEDIUM | org- |

Quick Reference

1. Design Decisions (CRITICAL)

2. Design Tokens (CRITICAL)

3. Turbo Integration (HIGH)

4. Partial Patterns (HIGH)

5. Component Architecture (HIGH)

6. Form System (MEDIUM-HIGH)

7. Helper Patterns (MEDIUM)

8. Stimulus Behaviors (MEDIUM)

9. Consistency & Organization (LOW-MEDIUM)

How to Use

Read individual reference files for detailed explanations and code examples:

Reference Files

| File | Description |

|------|-------------|

| references/_sections.md | Category definitions and ordering |

| assets/templates/_template.md | Template for new rules |

| metadata.json | Version and reference information |

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.