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.
Installation
Mit Codex oder Claude installieren Kopieren Sie diesen Prompt, fügen Sie ihn in Codex, Claude oder einen anderen Assistant ein und lassen Sie die Skill-Seite prüfen und installieren.
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...