본문으로 건너뛰기
Skillpedia
일반 코딩48k · #4185

code-refactoring-tech-debt

하는 일

이 도구는 개발을 늦추거나 버그를 일으킬 수 있는 문제를 코드에서 찾아냅니다. 영향과 필요한 노력에 따라 어떤 문제를 먼저 고칠지 제안합니다.

사용하는 경우

  • ✓코드를 이해하거나 수정하기 어려울 때.
  • ✓특정 코드 영역에서 버그가 많이 나타날 때.
  • ✓큰 변경을 하기 전에 새로운 문제가 생기지 않을지 점검하고 싶을 때.

스킬 링크

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/code-refactoring-tech-debt/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/code-refactoring-tech-debt/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“제 코드를 분석해서 가장 큰 문제가 무엇이고, 어떤 것부터 어떻게 고치면 좋을지 알려 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

도구는 코드와 변경 이력을 살펴 중복되거나 복잡하거나 오래된 부분을 찾습니다. 그다음 이런 문제의 비용을 추정하고, 가장 중요한 것부터 시작하는 수정 계획을 제안합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Compatibility and maintenance

Primary editorial path for this compatibility group. The full instructions and support files remain local so existing installations continue to work offline. This is one shared procedure, not an additional capability. Preserve the callable ID when an existing manifest or client configuration uses it. Modified in AAS on 2026-09-05; original metadata and license notices are retained.

Technical Debt Analysis and Remediation

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 actionable remediation plans.

Use this skill when

  • Working on technical debt analysis and remediation tasks or workflows
  • Needing guidance, best practices, or checklists for technical debt analysis and remediation

Do not use this skill when

  • The task is unrelated to technical debt analysis and remediation
  • You need a different domain or tool outside this scope

Context

The user needs a comprehensive technical debt analysis to understand what's slowing down development, increasing bugs, and creating maintenance challenges. Focus on practical, measurable improvements with clear ROI.

Requirements

Inspect the current repository, hotspots and real change/incident history. The numbers, thresholds, staffing and timelines below are hypothetical planning examples, not measurements, promised returns or mandatory quality gates. Report missing cost/usage inputs as unknown; never fill them with fabricated telemetry. Review-only scope does not authorize broad refactors, policy changes or deployment.

Instructions

1. Technical Debt Inventory

Conduct a thorough scan for all types of technical debt:

Code Debt

  • Duplicated Code

    • Exact duplicates (copy-paste)
    • Similar logic patterns
    • Repeated business rules
    • Quantify: Lines duplicated, locations
  • Complex Code

    • High cyclomatic complexity (>10)
    • Deeply nested conditionals (>3 levels)
    • Long methods (>50 lines)
    • God classes (>500 lines, >20 methods)
    • Quantify: Complexity scores, hotspots
  • Poor Structure

    • Circular dependencies
    • Inappropriate intimacy between classes
    • Feature envy (methods using other class data)
    • Shotgun surgery patterns
    • Quantify: Coupling metrics, change frequency

Architecture Debt

  • Design Flaws

    • Missing abstractions
    • Leaky abstractions
    • Violated architectural boundaries
    • Monolithic components
    • Quantify: Component size, dependency violations
  • Technology Debt

    • Outdated frameworks/libraries
    • Deprecated API usage
    • Legacy patterns (e.g., callbacks vs promises)
    • Unsupported dependencies
    • Quantify: Version lag, security vulnerabilities

Testing Debt

  • Coverage Gaps

    • Untested code paths
    • Missing edge cases
    • No integration tests
    • Lack of performance tests
    • Quantify: Coverage %, critical paths untested
  • Test Quality

    • Brittle tests (environment-dependent)
    • Slow test suites
    • Flaky tests
    • No test documentation
    • Quantify: Test runtime, failure rate

Documentation Debt

  • Missing Documentation
    • No API documentation
    • Undocumented complex logic
    • Missing architecture diagrams
    • No onboarding guides
    • Quantify: Undocumented public APIs

Infrastructure Debt

  • Deployment Issues
    • Manual deployment steps
    • No rollback procedures
    • Missing monitoring
    • No performance baselines
    • Quantify: Deployment time, failure rate

2. Impact Assessment

Calculate the real cost of each debt item:

Development Velocity Impact

Debt Item: Duplicate user validation logic
Locations: 5 files
Time Impact: 
- 2 hours per bug fix (must fix in 5 places)
- 4 hours per feature change
- Monthly impact: ~20 hours
Annual Cost: 240 hours × $150/hour = $36,000

Quality Impact

Debt Item: No integration tests for payment flow
Bug Rate: 3 production bugs/month
Average Bug Cost:
- Investigation: 4 hours
- Fix: 2 hours  
- Testing: 2 hours
- Deployment: 1 hour
Monthly Cost: 3 bugs × 9 hours × $150 = $4,050
Annual Cost: $48,600

Risk Assessment

  • Critical: Security vulnerabilities, data loss risk
  • High: Performance degradation, frequent outages
  • Medium: Developer frustration, slow feature delivery
  • Low: Code style issues, minor inefficiencies

3. Debt Metrics Dashboard

Create measurable KPIs:

…

자주 묻는 질문

‘기술 부채’란 무엇인가요?

금융 부채와 비슷하지만 코드에서의 것입니다. 시간이 지나며 소프트웨어를 유지 관리하고 발전시키기 어렵고 비싸게 만드는 지름길이나 임시방편을 뜻합니다.

어떤 문제를 찾나요?

중복된 코드, 지나치게 복잡한 코드, 테스트 부족, 오래된 라이브러리, 아키텍처 문제, 불완전한 문서를 찾습니다.

무엇을 먼저 고칠지 어떻게 결정하나요?

개발을 가장 많이 늦추거나 버그를 가장 많이 일으키는 문제 중에서, 더 쉽게 고칠 수 있는 것을 우선으로 합니다. 투자 대비 효과가 좋은 것에 집중합니다.

상세 정보

작성자의 원본 설명

Identify technical debt from actual code and change history, estimate its impact, and prioritize bounded improvements with explicit assumptions.

repo: sickn33/agentic-awesome-skills

인기도

GitHub 스타
48k
순위
#4185
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬