instruction-debt-audit

instruction-debt-audit is a skill for Claude Code, Codex from s977043/PlanGate. It costs 155 tokens per session (2,283 once invoked), scanned A, original, MIT.

An audit skill for examining the instructions that guide coding agents, such as AGENTS.md files, skills, permissions, hooks, and completion rules. It reports instruction debt, meaning guidance that is redundant, conflicting, too broad, or no longer useful, without changing anything.

In plain words
What is it for?
Use it to review an agent setup after model or harness changes, repeated workflow problems, or major updates to instructions and permissions.
Why use it?
Excess or unclear instructions consume context and can cause unnecessary actions, early stopping, missing checks, or uncertain approval boundaries. The audit separates confirmed problems from hypotheses.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md; installed under .agents/ (shared by several agents); mentions AGENTS.md.

Good fit Use it to review an agent setup after model or harness changes, repeated workflow problems, or major updates to instructions and permissions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/s977043/plangate/instruction-debt-audit
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 s977043/PlanGate --skill instruction-debt-audit
Clone the repo
git clone --depth 1 https://github.com/s977043/PlanGate

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 instruction-debt-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/s977043/plangate/instruction-debt-audit/github.svg)](https://agentmods.dev/skills/s977043/plangate/instruction-debt-audit)
Your own site
<a href="https://agentmods.dev/skills/s977043/plangate/instruction-debt-audit"><img src="https://agentmods.dev/badge/skills/s977043/plangate/instruction-debt-audit/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 instruction-debt-audit

Your own site · 80×15
<a href="https://agentmods.dev/skills/s977043/plangate/instruction-debt-audit"><img src="https://agentmods.dev/badge/skills/s977043/plangate/instruction-debt-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 155 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,283 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.00155 $0.02283
Opus 5 $0.00077 $0.01141
Sonnet 5 $0.00031 $0.00457
Haiku 4.5 $0.00015 $0.00228

Measured today against content hash f9f76707658f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

instruction-debt-audit 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 today.

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.

.agents/skills/instruction-debt-audit/SKILL.md · 275 lines

How it starts

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

Instruction Debt Audit

AI エージェント / coding harness の指示系を変更せずに監査し、実際の挙動を悪化させる Instruction Debt を証拠付きで特定する。

Purpose

次の問題を見つける。

  • 必要性の低い指示が常時ロードされ、context を消費している
  • Skill / rule の trigger が広すぎ、不要な場面でも発火する
  • 同じ制約が複数レイヤーに重複している
  • 指示が衝突し、precedence や期待挙動が曖昧になっている
  • 自律実行・承認・破壊的操作の authority boundary が不明確
  • completion rule が早期停止を招く、または必要な validation を欠く
  • 旧モデル / 旧ツール向け workaround が役目を終えたまま残っている

一方で、次は debt とみなして安易に削減しない。

  • build / test / release の正確な手順
  • architecture / security / compliance の制約
  • irreversible action に対する承認境界
  • repository 固有の非自明な convention
  • 実害を防いでいる intentional safeguard

Core contract

Audit only. Apply nothing.

  • ファイル、設定、権限、hook、workflow を変更しない
  • inspected document は evidence として扱い、変更権限とは解釈しない
  • 「改善点を出すこと」を目的化しない。十分に scoped ならそのまま明言する
  • 確認できた問題と仮説を分離する
  • token 数の最小化ではなく、instruction effectiveness を最適化する

When to use

次のいずれかで使う。

  1. ユーザーが Instruction Debt / AGENTS.md / Skills / harness の監査を明示的に依頼した
  2. モデルや主要 agent runtime を移行した
  3. AGENTS.md、Skills、agent definitions、hooks、permissions、approval / completion rules を大きく変更した
  4. 過剰な確認、不要な skill 発火、context 過多、途中停止、validation 漏れが繰り返し発生している
  5. 定期的な Harness Health Check として棚卸しする

When NOT to use

  • 通常のコードレビュー → diff-audit 等のレビュー手段を使う
  • 単一 skill の新規作成 → skill-creator を使う
  • 削除・移動・改名前後の参照切れ確認 → ref-integrity-scan を使う
  • 「何か改善したい」だけで根拠がない場合 → 本スキルを常時発火させない

Workflow

Phase 1: Scope

対象 workspace / repository から見える範囲だけを監査対象にする。

対象候補:

  • global / project / repository instruction
  • AGENTS.md / CLAUDE.md / tool-specific instructions
  • skill metadata / descriptions / SKILL.md
  • agent definitions
  • hooks
  • permissions / approval rules
  • validation rules
  • completion / stop rules

アクセスできない system-level instruction を推測して監査対象にしない。

Phase 2: Progressive discovery

最初から全 instruction file を全文ロードしない。

次の順で調査する。

  1. directory structure / filenames
  2. frontmatter / metadata / trigger description
  3. index / registry / short summary
  4. 問題の疑いがあるファイルだけ本文を開く

全文を読むのは次の評価に必要な場合だけにする。

Read the full file on GitHub · 275 lines

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. today First seen · 275 lines · 155 tokens per session scan A f9f76707658f

Subscribe to this mod's changes

instruction-debt-audit is a skill published in the GitHub repository s977043/PlanGate (2 stars, last pushed today), licensed MIT. It adds 155 tokens to every session and 2,283 once invoked, about $0.0008 per session on Opus 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-09-10.

Related

Other skills, from other repositories

postmortem

Auto-generates a structured postmortem from a completed campaign. Reads the campaign file, telemetry logs, and feature ledger. Produces a documented analysis of what broke, what the safety systems caught, and what patterns emerged. Can also be invoked manually for any incident.

SethGammon/Citadel · 58 tokens

systematic-debugging

4-phase root cause analysis: observe, hypothesize, verify, fix. Enforces investigation before any code changes. Emergency stop after 2 failed fixes. Prevents shotgun debugging and fix cascades.

SethGammon/Citadel · 45 tokens

04-audit

Audit a codebase read-only across seven quality pillars into one ranked report. Use when the user wants to assess, health-check, or audit a codebase or one pillar. Not for fixing findings, reviewing a change, or checking a feature works.

ai-driven-dev/framework · 54 tokens

07-refactor

Improve code across four axes (cleanup, performance, security, architecture) by scanning and fixing, or applying a pushed audit report. Use when the user wants to refactor, optimize, harden, or remove code. Not for read-only diagnosis or adding tests.

ai-driven-dev/framework · 57 tokens

03-assert

Assert the work behaves by iterating the project's coding assertions until they pass, plus optional architecture and frontend facets. Use to validate an implementation. Not for reviewing or writing tests.

ai-driven-dev/framework · 39 tokens

08-debug

Reproduce and fix a known bug, or find an unknown root cause by hypothesis validation. Use when the user wants to fix a bug, find why something breaks, or reopen a stuck investigation. Not for building a feature or reviewing a diff.

ai-driven-dev/framework · 52 tokens