Tech Debt Audit logo

Tech Debt Audit

Organization
omagents
tech-debt-audit

Systematically audit a codebase for technical debt using a durable loop workflow. Each audit category is scanned, findings collected, and recorded before moving to the next. Trigger when the user says 'tech debt audit', 'audit code', 'code health check'.

Overview

Publisheromagents
Repositoryomagents
Skill nametech-debt-audit
Stars
361
Forks
2
Bundled files
1
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by omagents on GitHub. Read the source before you install it.

Installation

Install the Tech Debt Audit AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/omagents/omagents/tree/main/packages/core/skills/tech-debt-audit
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/omagents/omagents.git /tmp/omagents
mkdir -p .claude/skills
cp -r /tmp/omagents/packages/core/skills/tech-debt-audit .claude/skills/tech-debt-audit
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Tech Debt Audit in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Tech Debt Audit on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Tech Debt Audit is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Tech Debt Audit (Loop Engine)

Systematically scan a codebase for technical debt using a durable task queue. Each audit category is scanned independently, findings are collected, and a prioritized report is generated.

When to Use

  • User says "tech debt audit", "audit code", "code health check"
  • Before a major refactoring
  • Sprint planning for debt paydown
  • Periodic code health assessment

Audit Categories (Reference)

CategoryWhat to scanSeverity calibration
TODO/FIXMEgrep -rn "TODO|FIXME|HACK|XXX"Critical if security/data, High if blocking, Medium otherwise
Code duplicationSimilar function signatures, copy-pasted blocksHigh if > 20 lines duplicated, Medium otherwise
Complex functions> 50 lines, > 4 nesting, > 5 paramsHigh if > 100 lines, Medium if > 50
Outdated dependenciesnpm outdated / pip list --outdatedHigh if security patch available, Low otherwise
Missing testsSource files without test filesHigh for core modules, Low for utilities
Inconsistent patternsMixed naming, import styles, error handlingLow unless widespread

Loop Workflow

Phase 1: Build Task Queue

Initialize the loop with one task per audit category:

bash
loop_engine.py init tech-debt-audit '[
  {"category": "todo-fixme", "description": "Scan for TODO/FIXME/HACK comments"},
  {"category": "duplication", "description": "Find duplicated code blocks"},
  {"category": "complexity", "description": "Identify complex functions"},
  {"category": "dependencies", "description": "Check for outdated dependencies"},
  {"category": "missing-tests", "description": "Find source files without tests"},
  {"category": "inconsistencies", "description": "Detect inconsistent patterns"}
]'

Phase 2: Execute Loop

Repeat until next returns null:

Step 1: Get next task

bash
loop_engine.py next tech-debt-audit

If output is null, go to Phase 3.

Step 2: Scan for the category

Execute the appropriate scan:

bash
# TODO/FIXME
grep -rn "TODO\|FIXME\|HACK\|XXX\|WORKAROUND" --include="*.py" --include="*.ts" --include="*.js" --include="*.go" --include="*.rs" --include="*.java"

# Complex functions (Python example)
grep -n "def " --include="*.py" -A 50 | head -100

# Outdated dependencies
npm outdated 2>/dev/null || pip list --outdated 2>/dev/null || true

# Missing tests
glob "**/*.{py,ts,js}"
# Compare source files with test file patterns

Step 3: Collect findings

For each finding, record:

  • File path and line number
  • What was found
  • Severity (Critical/High/Medium/Low)
  • Age (use git blame for TODOs)

Step 4: Record result

bash
loop_engine.py complete tech-debt-audit <id> "Found 12 TODOs (2 High, 7 Medium, 3 Low), 3 FIXMEs (1 Critical)"

If the scan fails:

bash
loop_engine.py fail tech-debt-audit <id> "Could not run npm outdated: package.json not found"

Phase 3: Report

bash
loop_engine.py summary tech-debt-audit

Generate a consolidated report:

## Tech Debt Audit Report

**Overall Health:** [Good/Fair/Poor/Critical]

| Category | Findings | Severity |
|----------|----------|----------|
| TODO/FIXME | 15 items | 1 Critical, 2 High, 12 Medium |
| Code Duplication | 5 blocks | 2 High, 3 Medium |
| Complex Functions | 8 functions | 3 High, 5 Medium |
| Outdated Dependencies | 4 packages | 1 High, 3 Low |
| Missing Tests | 12 files | 5 High, 7 Low |
| Inconsistent Patterns | 3 issues | 3 Low |

### Prioritized Action Items

1. [CRITICAL] Fix race condition in src/cache.py:15 (FIXME, 3 months old)
2. [HIGH] Add rate limiting in src/auth.py:42 (TODO, 6 months old)
3. [HIGH] Add tests for 5 core modules
4. [MEDIUM] Refactor 3 functions over 100 lines
5. [LOW] Update 3 outdated dependencies

Rules

  • Don't fix anything during the audit - this is assessment only
  • Use git blame to age TODOs and understand context
  • Be specific - "refactor auth module" is not actionable; "split authenticate() into 3 functions" is
  • Include file paths and line numbers for every finding
  • If a category has no findings, mark complete with "no issues found"
  • Prioritize by risk - security/data issues are always Critical

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Tech Debt Audit AI skill do?

Systematically audit a codebase for technical debt using a durable loop workflow. Each audit category is scanned, findings collected, and recorded before moving to the next. Trigger when the user says 'tech debt audit', 'audit code', 'code health check'.

Why use Tech Debt Audit on TypingMind?

Because you install it once and use it with any model. Tech Debt Audit is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Tech Debt Audit in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/omagents/omagents/tree/main/packages/core/skills/tech-debt-audit. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Tech Debt Audit?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Tech Debt Audit?

As many as you like. As long as a model supports skills, you can use Tech Debt Audit with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Tech Debt Audit AI skill free?

Yes. It is published on GitHub by omagents under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇