This skill provides patterns for identifying, categorizing, and tracking technical debt. It includes scoring methodologies, YAML schemas for tracking files, and strategies for systematic debt resolution.
التثبيت
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
This skill provides patterns for identifying, categorizing, and tracking technical debt. It includes scoring methodologies, YAML schemas for tracking files, and strategies for systematic debt resolution.
Technical Debt Skill
Systematically identify, track, and resolve technical debt.
---
id: DEBT-001
title: Duplicate validation logic in controllers
category: code
severity: medium
impact: 3
effort: 2
priority: p2
status: open
created: 2024-01-15
tags: [duplication, validation, controllers]
affected_files:
- app/controllers/orders_controller.rb
- app/controllers/users_controller.rb
- app/controllers/products_controller.rb
---
# Duplicate Validation Logic in Controllers## Description
Validation logic for email, phone, and address is duplicated across multiple controllers instead of being centralized.
## Impact-**Maintenance**: Changes must be made in multiple places
-**Bugs**: Inconsistent validation between controllers
-**Time**: Extra time reviewing each controller
## Current State```ruby
# In OrdersController
def validate_email(email)
email =~ /\A[\w+\-.]+@[a-z\d\-]+(\.[a-z\d\-]+)*\.[a-z]+\z/i
end
# Same code in UsersController, ProductsController...