prioritizing-technical-debt

prioritizing-technical-debt is a skill for Claude Code, Codex from Cratis/AI. It costs 64 tokens per session (580 once invoked), scanned A, original, MIT.

A planning guide that ranks technical-debt and refactoring targets using CodeScene project data. Technical debt is code that makes future changes harder or riskier; CodeScene is a service that measures related code-health signals.

In plain words
What is it for?
It helps select a project, find high-risk hotspots and explicit improvement goals, inspect shortlisted files, and build a ranked refactoring plan.
Why use it?
It replaces a long, unranked list of problem files with a suggested order for improvement. It only applies when the project has the required CodeScene setup and tools.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps select a project, find high-risk hotspots and explicit improvement goals, inspect shortlisted files, and build a ranked refactoring plan.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cratis/ai/prioritizing-technical-debt
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Cratis/AI --skill prioritizing-technical-debt
Clone the repo
git clone --depth 1 https://github.com/Cratis/AI

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for prioritizing-technical-debt

README.md
[![agentmods](https://agentmods.dev/badge/skills/cratis/ai/prioritizing-technical-debt/github.svg)](https://agentmods.dev/skills/cratis/ai/prioritizing-technical-debt)
Your own site
<a href="https://agentmods.dev/skills/cratis/ai/prioritizing-technical-debt"><img src="https://agentmods.dev/badge/skills/cratis/ai/prioritizing-technical-debt/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for prioritizing-technical-debt

Your own site · 80×15
<a href="https://agentmods.dev/skills/cratis/ai/prioritizing-technical-debt"><img src="https://agentmods.dev/badge/skills/cratis/ai/prioritizing-technical-debt.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 580 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00064 $0.00580
Opus 5.5 $0.00026 $0.00232
Sonnet 5.5 $0.00013 $0.00116
Haiku 4.5 $0.00006 $0.00058

Measured 1mo ago against content hash 1c8040c8eb75, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

prioritizing-technical-debt scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cratis/ai/skills/prioritizing-technical-debt/SKILL.md · 49 lines

How it starts

The opening of the file, as written. The whole thing — 49 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Prioritizing Technical Debt

Use only in repositories that opted into cratis/codescene and have CodeScene MCP tools available; otherwise skip without blocking and say so. The Cratis policy in .cratis/ai/rules/codescene.md overrides this skill where they differ.

Overview

Use this skill to bring high-level CodeScene project data into planning. The goal is to turn hotspots, goals, and file-level metrics into a ranked improvement plan rather than just listing raw results.

When to Use

  • The user asks what to improve first.
  • The workflow needs a ranked list of refactoring targets.
  • The user has a CodeScene instance and wants project-level guidance.

Do not use this skill for single-file refactoring mechanics. Use guiding-refactoring-with-code-health for that.

Quick Reference

  • select_project: Establish the correct project context.
  • list_technical_debt_hotspots_for_project: Find high-impact hotspots.
  • list_technical_debt_goals_for_project: Find files with explicit debt goals.
  • list_technical_debt_hotspots_for_project_file: Drill into a shortlisted file.
  • list_technical_debt_goals_for_project_file: Drill into file-level goals.
  • code_health_score: Compare or validate shortlisted files.
  • code_health_refactoring_business_case: Add ROI framing when the user wants justification.

Implementation

  1. Run select_project if the project context is not already clear.
  2. Gather project hotspots and project goals.
  3. Shortlist candidates based on hotspot severity, churn, and explicit goals.
  4. Drill into the top files with the file-level hotspot and goal tools.
  5. Use code_health_score to support ranking.
  6. Return a ranked list, a small incremental plan for each top candidate, and business justification when relevant.

Read the full file on GitHub · 49 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed 1c8040c8eb75
  2. 1mo ago First seen · 49 lines · 64 tokens per session scan A 8ab49f73ca10

Subscribe to this mod's changes

prioritizing-technical-debt is a skill published in the GitHub repository Cratis/AI (4 stars, last pushed today), licensed MIT. It adds 64 tokens to every session and 580 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-11.

Related

prioritizing-technical-debt compared with skills from other repositories

prioritizing-technical-debt next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
prioritizing-technical-debtCratis/AISkill4todayMITA64Claude Code, Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill101ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill395ktodayMITA36Claude Code
systematic-debuggingobra/superpowersSkill330k2d agoMITA21Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill14kyesterdayCC0-1.0A113Claude Code, Codex
next-cache-components-adoptionvercel/next.jsSkill144ktodayMITA95Claude Code