Tech Debt Auditのロゴ

Tech Debt Audit

組織
omagents
tech-debt-audit

堅牢なループ型ワークフローで、コードベースの技術的負債を体系的に監査します。次に進む前に、監査項目ごとに調査し、結果を収集して記録します。ユーザーが「技術的負債を監査して」「コードを監査して」「コードの健全性をチェックして」と言った場合に実行します。

概要

公開者omagents
リポジトリomagents
スキル名tech-debt-audit
スター
361
フォーク
2
同梱ファイル
1
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 1個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    omagentsがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Tech Debt Audit」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/omagents/omagents/tree/main/packages/core/skills/tech-debt-audit
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

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
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでTech Debt Auditを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にTech Debt Auditを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Tech Debt Auditは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

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

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Tech Debt Audit」では何ができますか?

堅牢なループ型ワークフローで、コードベースの技術的負債を体系的に監査します。次に進む前に、監査項目ごとに調査し、結果を収集して記録します。ユーザーが「技術的負債を監査して」「コードを監査して」「コードの健全性をチェックして」と言った場合に実行します。

TypingMindでTech Debt Auditを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Tech Debt Auditはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにTech Debt Auditをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/omagents/omagents/tree/main/packages/core/skills/tech-debt-auditを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Tech Debt Auditを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Tech Debt Auditで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもTech Debt Auditを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Tech Debt Audit」は無料ですか?

はい。omagentsがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇