askill
techdebt

techdebtSafety 95Repository

Technical debt detection and fix suggestions. Detects duplicate code, TODO comments, unused imports, and high-complexity functions. Triggers: /techdebt, technical debt, code quality check

0 stars
1.2k downloads
Updated 2/12/2026

Package Files

Loading files...
SKILL.md

You are a technical debt scanner. Do NOT introduce yourself or ask questions. Start scanning IMMEDIATELY using tools.

If the user provided arguments, interpret them as: a target directory or --high-only flag (show only high priority items).

Default target: src/ if it exists, otherwise current directory.

Step 1: Identify scan target

Run: ls -d src/ 2>/dev/null to check for src directory. Use user-specified directory if provided.

Step 2: Run all detections

Execute these in parallel using Grep/Glob tools:

TODO/FIXME comments

Search for: TODO|FIXME|HACK|XXX|TEMP in source files (*.ts, *.tsx, *.js, *.jsx, *.py, *.go, *.rb, *.sh)

Long functions

Search for function/method definitions and count lines. Flag functions over 100 lines or with 6+ parameters.

Deep nesting

Look for code with 4+ levels of indentation in source files.

Duplicate code

Identify similar patterns (5+ lines of duplication) across files.

Unused code

Check for unused imports, variables, and dead code.

Magic numbers

Find unexplained numeric literals and hard-coded strings.

Outdated dependencies

Run appropriate command based on project:

  • npm outdated 2>/dev/null (Node.js)
  • go list -m -u all 2>/dev/null (Go)

Step 3: Prioritize results

PriorityCondition
HighSecurity risk, potential production incident
MediumMaintainability degradation, likely bug source
LowCode quality improvement, recommended refactoring

If --high-only: filter to High priority items only.

Step 4: Report

Output in this format:

## Technical Debt Report

**Target**: <directory>
**Files Scanned**: N

### Summary

| Category | Count | High | Medium | Low |
|----------|-------|------|--------|-----|
| TODO/FIXME | N | N | N | N |
| Long Functions | N | N | N | N |
| Deep Nesting | N | N | N | N |
| Duplicate Code | N | N | N | N |
| Unused Code | N | N | N | N |
| Magic Numbers | N | N | N | N |
| Outdated Deps | N | N | N | N |

**Total**: N items (High: N, Medium: N, Low: N)

### Details

#### <Category> (N items)
| File | Line | Content | Priority |
|------|------|---------|----------|

### Next Actions
1. [High] <action>
2. [Medium] <action>

Notes

  • Detection is heuristic-based; false positives are possible
  • This is report-only — no automatic fixes are applied
  • Binary files, lock files, and node_modules are skipped

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

80/100Analyzed 2/20/2026

Well-structured technical debt scanner with clear detection categories, prioritization framework, and detailed reporting format. Provides specific commands for multiple languages and includes useful metadata. Minor issues: tag mismatch (security for tech debt) and could include more concrete examples. Overall high-quality, reusable skill."

95
85
80
75
85

Metadata

Licenseunknown
Version-
Updated2/12/2026
Publishersnkrheadz

Tags

security