techdebt

Detect and classify duplicated code in recent session changes.

Updated Mar 19, 2026
One-click install
npx skills add https://github.com/japurcell/skills --skill techdebt-japurcell
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: techdebt
Source: https://github.com/japurcell/skills/tree/main/skills/techdebt
Command: npx skills add https://github.com/japurcell/skills --skill techdebt-japurcell

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps teams identify and remove duplicated or redundant code introduced during the current session across any language or framework, reducing maintenance costs and improving clarity.

Core Features & Use Cases

  • Detect and prioritize code duplication across modified files.
  • Classify findings as exact duplicates, near duplicates, or reimplementation.
  • Recommend safe, maintainable refactors and shared helpers.
  • Generate a concise report with scope, actions, and validation plan.
  • Guide safe deployment of refactors with minimal behavior changes.

Quick Start

Run a deduplication pass on the current session and generate a concise report detailing scope, findings, refactors, and validation.

Frequently Asked Questions about techdebt

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find and remove duplicated code introduced in the current session?

To remove duplicated code, this Skill analyzes recent session changes across any language, classifies findings as exact or near duplicates, and suggests safe refactors to improve maintainability.

Does this code deduplication workflow support multiple programming languages?

Yes, the deduplication workflow is language-agnostic, meaning it detects and removes redundant code across modified files in any programming language or framework during your current session.

What is the best way to refactor near duplicate code without breaking existing behavior?

The best way to safely refactor near duplicate code is to apply recommended shared abstractions and follow the generated validation plan to ensure minimal behavior changes during deployment.

How do I get a report of duplicated items and shared abstractions after a code review?

You can generate a concise report detailing deduplicated items, shared abstractions, scope, actions taken, and test results by running a deduplication pass on your current session diffs.

Can I use static analysis to identify reimplementation and exact duplicates across modified files?

Yes, static analysis is applied to recent changes to classify findings as exact duplicates, near duplicates, or reimplementation, guiding you toward maintainable refactors and shared helpers.

What are the limitations of language-agnostic code deduplication for session diffs?

While deduplication works across languages, limitations include ensuring minimal behavior changes, requiring a validation plan to verify safe refactors, and relying on accurate session diff tracking.