codebase-cleanup-tech-debt

You are a technical debt expert specializing in identifying, quantifying, and prioritizing technical debt in software projects. Analyze the codebase to uncover debt, assess its impact, and create acti

Author

Install

Hot:10

Download and extract to your skills directory

Copy command and send to OpenClaw for auto-install:

Download and install this skill https://openskills.cc/api/download?slug=sickn33-skills-codebase-cleanup-tech-debt&locale=en&source=copy

Technical Debt Analysis and Remediation Specialist

Skill Overview

This is an AI capability specifically designed to help development teams identify, quantify, and prioritize technical debt. It provides actionable remediation plans and ROI forecasts through comprehensive codebase analysis.

Applicable Scenarios

  • Legacy Project Modernization
  • When you take over a long-maintained legacy project and find poor code quality, frequent bugs, and slow feature development, this skill helps you quickly identify all technical debt, quantify its impact, and create a phased cleanup plan.

  • Development Efficiency Bottleneck Diagnosis
  • If your team feels "everything is slow," every change requires touching many places, or you often introduce new bugs when fixing issues, this skill can help find the root causes—such as code duplication, high complexity, or architectural debt.

  • Building a Code Quality Management System
  • For teams that want to establish a sustainable code quality management practice, this skill not only finds current issues but also provides strategies to prevent new debt, configurations for automated quality gates, and recommendations for team development standards.

    Core Features

  • Comprehensive Technical Debt Inventory
  • Automatically scans the codebase for various types of debt:

  • Code debt: duplicated code, high-complexity functions, overly long methods, God classes

  • Architectural debt: design flaws, outdated frameworks, cyclic dependencies, boundary violations

  • Test debt: insufficient coverage, brittle tests, lack of integration tests

  • Documentation debt: missing API docs, undocumented complex logic

  • Infrastructure debt: manual deployments, lack of monitoring, no rollback mechanisms
  • Impact Assessment and Cost Calculation
  • Not only lists problems but helps you calculate the real cost of the debt:

  • Development speed impact: how many extra hours to fix a bug

  • Quality impact: production bug rate, average fix cost

  • Risk level: security vulnerabilities, data loss, performance degradation

  • Trend analysis: debt growth rate, future projections
  • Actionable Remediation Roadmap
  • Provides a phased action plan based on ROI:

  • Quick fixes (1–2 weeks): high value, low effort, e.g., extract duplicated logic

  • Mid-term improvements (1–3 months): refactor core components, upgrade frameworks

  • Long-term planning (quarterly level): architecture modernization, comprehensive testing

  • Each item includes estimated effort hours and ROI calculations
  • Frequently Asked Questions

    What is technical debt? What can this skill do for me?

    Technical debt is the cumulative consequence of sacrificing long-term quality for short-term speed in software development—like carrying a credit card balance, it will need to be paid back sooner or later. This skill acts like a professional debt advisor and helps you:

  • Clearly understand "how much you owe" (debt inventory)

  • Know "what happens if you don't pay" (impact assessment)

  • Plan "the most cost-effective way to pay it back" (prioritized remediation plan)
  • Do small projects also have technical debt? Is it worth analyzing?

    As long as there is code, technical debt will exist—small projects are no exception. In fact, small projects are better suited to address debt early: less code and lower change costs. Many projects become hard to maintain as they grow because early debt was neglected. This skill is especially useful for small and medium projects, helping you establish good code quality foundations while the project is still small.

    How is this skill different from tools like SonarQube?

    Tools like SonarQube are good at detecting code issues but primarily output technical metrics (complexity, duplication rate, etc.). This skill differs in that it:

  • Translates code issues into business terms (time cost, monetary loss)

  • Provides an action plan: not only tells you "what's wrong," but also "what to fix first and how"

  • Offers prevention strategies: team processes and standards to prevent new debt

  • Supplies communication templates: helps technical teams explain to management why refactoring investment is necessary
  • You can think of this skill as: tools handle "detection," this skill handles "analysis and decision-making."