Skip to content
technical-debt logo

Skill: technical-debt

technical-debt

Identifying, documenting, and systematically managing technical debt to maintain codebase health

baphled/dotopencode0installs1stars

SKILL.md

Full skill instructions

Skill: technical-debt

What I do

I provide a framework for managing technical debt. I help distinguish between strategic and unintentional debt, quantify its impact, and prioritise remediation whilst balancing delivery speed with long-term sustainability.

When to use me

  • Discovering code that requires improvement during feature development
  • Planning refactoring or cleanup work for a project
  • Assessing the overall health of a codebase
  • Communicating quality issues and risks to stakeholders
  • Prioritising remediation tasks based on impact and effort

Core principles

  1. Strategic Debt — Accept debt consciously to meet critical deadlines (MVP validation)
  2. Visibility — Never leave debt hidden; document it with explicit markers
  3. Boy Scout Rule — Always leave the code slightly better than you found it
  4. Quantified Impact — Prioritise debt that affects high-churn files or performance
  5. Continuous Remediation — Build debt reduction into every sprint (target <20% capacity)

Patterns & examples

In-Code Documentation:

// TODO(tech-debt): [HIGH] User search has O(n) complexity
// Problem: Linear search through 10k+ users causes timeouts
// Impact: Search page takes 5+ seconds, affecting customer satisfaction
// Effort: ~8 hours (add database index + refactor query)
// Tracked in: https://github.com/​org/​repo/​issues/​456
func SearchUsers(query string) []User { ... }

Prioritisation Matrix:

  • High Impact, Low Effort — Do First (Quick wins)
  • High Impact, High Effort — Plan & Schedule (Strategic)
  • Low Impact, Low Effort — Fill spare time (Opportunistic)
  • Low Impact, High Effort — Avoid (Not worth the cost)

Anti-patterns to avoid

  • ❌ Hiding Debt — Failing to document known issues or workarounds
  • ❌ Debt Freeze — Stopping all progress to fix all debt (unrealistic)
  • ❌ Analysis Paralysis — Documenting debt more than fixing it
  • ❌ Big Bang Rewrites — Replacing the entire system at once (extremely high risk)
  • ❌ Silent Failures — Allowing debt to cause bugs without alerting stakeholders

KB Reference

~/​vaults/​baphled/​3. Resources/​Knowledge Base/​AI Development System/​Skills/​Code-Quality/​Technical Debt.md

Related skills

  • refactor - Systematic code refactoring techniques
  • clean-code - Writing maintainable code to prevent future debt
  • code-reviewer - Identifying debt during the review process
  • architecture - Managing long-term design and structural debt

More skills from baphled

task-tracker logo
baphled/dotopencode

task-tracker

Track progress through structured task lists with complexity scoring and token tracking

1 0
View
style-guide logo
baphled/dotopencode

style-guide

Style guide enforcement and documentation conventions

1 0
View
tdd-first logo
baphled/dotopencode

tdd-first

Enforce strict test-first discipline — no implementation code before a failing test exists

1 0
View
tdd-workflow logo
baphled/dotopencode

tdd-workflow

DEPRECATED - Use bdd-workflow instead

1 0
View
systems-thinker logo
baphled/dotopencode

systems-thinker

Understand complex systems, interconnections, and emergent behaviors

1 0
View
trade-off-analysis logo
baphled/dotopencode

trade-off-analysis

Systematically evaluate trade-offs when comparing alternatives

1 0
View
tool-usage-discipline logo
baphled/dotopencode

tool-usage-discipline

Use skills for domain knowledge, MCP tools over manual lookups

1 0
View
writing-style logo
baphled/dotopencode

writing-style

Personal writing voice and communication style conventions

1 0
View
token-cost-estimation logo
baphled/dotopencode

token-cost-estimation

Estimate and track token costs before work sessions - complexity, duration, resources

1 0
View
ux-design logo
baphled/dotopencode

ux-design

Intuitive user experiences in terminal applications - mental models, interaction patterns

1 0
View
skill-discovery logo
baphled/dotopencode

skill-discovery

Automatically discover/load local skills and suggest external skills based on task context

1 0
View
token-efficiency logo
baphled/dotopencode

token-efficiency

Maximise AI interaction value per token - techniques, patterns, integration with cost estimation

1 0
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View