Technical Debt Patterns
Technical Debt Patterns
Expert patterns for detecting, categorizing, and prioritizing technical debt in Rails applications.
Decision Tree: Debt Category Identification
What type of issue is this?
│
├─ Code structure problem?
│ ├─ Method too long (>20 lines) → Code Smell: Long Method
│ ├─ Class too large (>150 lines) → Code Smell: Large Class
│ ├─ Excessive parameter passing → Code Smell: Data Clump
│ └─ Method uses another object's data → Code Smell: Feature Envy
│
├─ Complexity issue?
│ ├─ Flog score >60 → Complexity: High
│ ├─ Cyclomatic complexity >10 → Complexity: High
│ ├─ Deep nesting (>3 levels) → Complexity: Nesting
More from kaakati/rails-enterprise-dev
flutter conventions & best practices
Dart 3.x and Flutter 3.x conventions, naming patterns, code organization, null safety, and async/await best practices
56getx state management patterns
GetX controllers, reactive state, dependency injection, bindings, navigation, and best practices
55tailadmin ui patterns
TailAdmin dashboard UI framework patterns and Tailwind CSS classes. ALWAYS use this skill when: (1) Building any dashboard or admin panel interface, (2) Creating data tables, cards, charts, or metrics displays, (3) Implementing forms, buttons, alerts, or modals, (4) Building navigation (sidebar, header, breadcrumbs), (5) Any UI work that should follow TailAdmin design. This skill REQUIRES fetching from the official GitHub repository to ensure accurate class usage - NEVER invent classes.
40mvvm-architecture
Expert MVVM decisions for iOS/tvOS: choosing between ViewModel patterns (state enum vs published properties vs Combine), service layer boundaries, dependency injection strategies, and testing approaches. Use when designing ViewModel architecture, debugging data flow issues, or deciding where business logic belongs. Trigger keywords: MVVM, ViewModel, ObservableObject, @StateObject, service layer, dependency injection, unit test, mock, architecture
38rails localization (i18n) - english & arabic
Comprehensive internationalization skill for Ruby on Rails applications with proper English and Arabic translations, RTL support, pluralization rules, date/time formatting, and culturally appropriate content adaptation.
35rspec testing patterns
Complete guide to testing Ruby on Rails applications with RSpec. Use this skill when writing unit tests, integration tests, system tests, or when setting up test infrastructure including factories, shared examples, and mocking strategies.
32