Stellarion
Tools

stellarion_tech_debt_report [Pro]

Aggregated technical debt report with severity scoring and effort estimates
This is a Pro tool. Requires a Stellarion Pro license. A 180-day free trial starts automatically.

Produces an aggregated technical debt report by combining multiple quality signals: complexity hotspots (cyclomatic > 15, cognitive > 20), public functions without tests, high-coupling modules (> 15 dependencies), unused exports, and oversized files (> 30 functions or > 1000 lines). Each item is scored by severity and estimated effort.

When to Use

  • To prioritize refactoring work during a cleanup sprint
  • To build a case for paying down technical debt with stakeholders
  • To identify the highest-impact improvements with the least effort
  • Before planning a large feature to understand which areas of the codebase need attention first

Parameters

ParameterTypeRequiredDefaultDescription
categoryenumNoallFilter by debt category: complexity, cognitive_complexity, missing_tests, high_coupling, unused_code, large_file
severityenumNolowMinimum severity to include: low, medium, high, critical
limitnumberNo50Maximum number of items to return

Examples

Full debt report

Show me all the technical debt in this project.

Returns a comprehensive list of all debt items across all categories, sorted by severity.

Focus on complexity issues

What are the most complex functions? Show me anything with high cyclomatic or cognitive complexity.

Uses category: "complexity" (or "cognitive_complexity") to filter to complexity-related debt.

Find untested public APIs

Which public functions don't have tests?

Uses category: "missing_tests" to list public functions with no corresponding test function.

Critical issues only

Show me only the critical technical debt — the stuff that needs fixing now.

Sets severity: "critical" to filter to the highest-priority items.

Top 10 worst offenders

Give me the top 10 worst technical debt items.

Sets limit: 10 to return only the highest-scoring items.

Output Format

Each debt item includes:

  • File path and line number — location of the issue
  • Category — which type of debt: complexity, cognitive_complexity, missing_tests, high_coupling, unused_code, or large_file
  • Symbol name — the function, class, or module involved
  • Severitylow, medium, high, or critical
  • Score — numeric value backing the severity (e.g., cyclomatic complexity of 28)
  • Effort estimate — rough effort to fix: trivial, small, medium, large
  • Description — human-readable explanation

Severity thresholds

CategoryMediumHighCritical
Cyclomatic complexity> 15> 25> 40
Cognitive complexity> 20> 30> 50
Missing testspublic functionpublic API entry pointexported from package
High coupling> 15 deps> 25 deps> 40 deps
Large file> 30 functions> 50 functions> 80 functions

Tips

  • Sort by severity and effort to find "quick wins" — high-severity items with trivial or small effort
  • The missing_tests category only flags public functions — internal helpers are excluded to reduce noise
  • high_coupling measures efferent coupling (outgoing dependencies) — a module with 20+ dependencies is fragile
  • Use category filters to generate focused reports for specific team discussions
  • Combine with stellarion_codebase_health for the big picture, then drill into debt details here
  • Re-run after paying down debt to track progress