routing-patterns
Installation
SKILL.md
Routes Best Practices
Purpose
This skill helps AI agents review, generate, and update Rails routes following professional patterns and best practices. It covers RESTful resource routing, route concerns for code reusability, shallow nesting strategies, and advanced route configurations that can be applied to any Rails application.
Context
This skill covers:
- Rails routing with RESTful conventions
- Route concerns for DRY (Don't Repeat Yourself) principle
- Shallow nesting to avoid overly long URLs
- Custom parameters and metadata for flexible routing
- Custom route resolvers for polymorphic paths
- Constraint-based routing for authorization
- Organization patterns for maintainable routes files