بنقرة واحدة
debt
Technical debt tracker — TODOs, suppressed rules, skipped tests, churn hotspots
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Technical debt tracker — TODOs, suppressed rules, skipped tests, churn hotspots
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Interactive issue design — researches the codebase and produces implementation-ready GitHub issues
Comprehensive codebase audit — security, error handling, patterns, tests, data, dependencies
Deep single-file analysis — bugs, security, patterns, test coverage
| name | debt |
| description | Technical debt tracker — TODOs, suppressed rules, skipped tests, churn hotspots |
| disable-model-invocation | true |
Tracks and ranks technical debt across the codebase. Combines static markers (TODOs, suppressions), test gaps, and git churn to identify the riskiest areas.
grep -rn "TODO\|FIXME\|HACK\|XXX\|OPTIMIZE\|REFACTOR" \
--include="*.rb" \
--exclude-dir=node_modules --exclude-dir=vendor --exclude-dir=.git --exclude-dir=target \
. 2>/dev/null || true
For each marker, read the surrounding context (3-5 lines) to understand what the debt is.
grep -rn "rubocop:disable" --include="*.rb" . 2>/dev/null || true
grep -rn "skip\b\|pending\b" --include="*_test.rb" --include="*_spec.rb" . 2>/dev/null || true
Find files that change most frequently — high churn signals instability or ongoing debt.
# Top 30 most frequently changed files in the last 6 months
git log --since="6 months ago" --name-only --pretty=format: | \
grep -v '^$' | sort | uniq -c | sort -rn | head -30
For the top 20 highest-churn files, check if they have corresponding tests.
Score each debt item on a 1-10 scale based on:
| Factor | Weight | Description |
|---|---|---|
| Churn | 3x | Files changed 10+ times in 6 months = high churn |
| Test coverage | 3x | No tests = maximum risk |
| Suppressed rules | 2x | Disabled lint/type checks = hidden issues |
| Age | 1x | Old TODOs (> 3 months) = likely forgotten |
| Blast radius | 1x | Shared code (base classes, lib) = wider impact |
# Technical Debt Report
**Total debt items**: N
## Risk-Ranked Debt
### 1. `path/to/file` — Risk: 9/10
**Churn**: N changes in 6 months
**Tests**: N tests (N public methods untested)
**Suppressions**: N
**Markers**: N TODOs, N HACKs
**Details**:
- Line 42: `TODO: description` (added date)
- Line 78: suppressed lint rule — reason
## Debt by Category
| Category | Count | Oldest |
|----------|-------|--------|
| TODO | N | [date] |
| FIXME | N | [date] |
| HACK | N | [date] |
| Suppressed rules | N | - |
| Skipped tests | N | - |
| Untested high-churn files | N | - |
## Churn Hotspots
Files with high churn and low test coverage:
- `path/to/file` — N changes, N tests
After presenting the report, offer:
The top N items are high-risk debt. Want me to generate GitHub issues for them?
If accepted, generate one issue per high-risk item using the /design format with the auto-ready label.