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.
git clone --depth 1 https://github.com/andkirby/markdown-ticketWrote 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.
[](https://agentmods.dev/commands/andkirby/markdown-ticket/tech-debt)<a href="https://agentmods.dev/commands/andkirby/markdown-ticket/tech-debt"><img src="https://agentmods.dev/badge/commands/andkirby/markdown-ticket/tech-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.
<a href="https://agentmods.dev/commands/andkirby/markdown-ticket/tech-debt"><img src="https://agentmods.dev/badge/commands/andkirby/markdown-ticket/tech-debt.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.01737 |
| Opus 5.5 | $0.00000 | $0.00695 |
| Sonnet 5.5 | $0.00000 | $0.00347 |
| Haiku 4.5 | $0.00000 | $0.00174 |
Grade A, and why
tech-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 3mo 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.
How it starts
The opening of the file, as written. The whole thing — 238 lines — stays where its author put it; the contents beside it link to each section on GitHub.
MDT Technical Debt Detection Workflow (v2)
On-demand detection of technical debt patterns in implemented code.
Core Principle: Identify structural problems introduced during implementation. Every debt item must have concrete file locations, evidence, and fix direction.
User Input
$ARGUMENTS
Session Context
Use {TICKETS_PATH} in all file path templates below (if it's not defined read ticketsPath key from .mdt-config.toml).
Output Location
{TICKETS_PATH}/{CR-KEY}/debt.md
Execution Steps
Step 1: Extract Project Context
Detect or extract from CLAUDE.md / project config:
project:
source_dir: {src/, lib/, app/, ...}
test_command: {npm test, pytest, cargo test, go test, make test, ...}
build_command: {npm run build, cargo build, go build, make, ...}
file_extension: {.ts, .py, .rs, .go, .java, ...}
If CLAUDE.md exists, read it. Otherwise detect from project files.
Step 2: Load CR Context
- Call MCP tool
mdt-all:get_crwithmode="full"— abort if CR doesn't exist - Extract:
- Affected/new artifacts — files to analyze
- Architecture Design — check for violations
- Acceptance Criteria — extract scope/boundary constraints to verify
- Load requirements if exists: Check
{TICKETS_PATH}/{CR-KEY}/requirements.md- If found: check for unsatisfied requirements (debt indicator)
- Load tasks if exists: Check
{TICKETS_PATH}/{CR-KEY}/tasks.md- If found: check Requirement Coverage table for gaps
- If codebase available, scan actual files
Step 3: Detect Debt Patterns
Analyze against these patterns:
| Pattern | Signal | Severity |
|---|---|---|
| Duplication | Same logic in 2+ locations | High |
| Shotgun Surgery | Adding X requires editing N files | High |
| Missing Abstraction | Concept in code without type/interface | Medium |
| Hidden Coupling | Module imports internals of another | Medium |
| Responsibility Diffusion | Single concern across 3+ files | High |
| Unsatisfied Requirements | Requirements with no implementing code | High |
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.
- 3mo ago First seen · 238 lines · 0 tokens per session scan A 03d9829cf00f
tech-debt is a command published in the GitHub repository andkirby/markdown-ticket (7 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,737 tokens. 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-08-31.
tech-debt compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| tech-debtandkirby/markdown-ticket | Command | 7 | 1mo ago | MIT | A | 0 | Claude Code |
| qa-changesOpenHands/extensions | Command | 191 | today | MIT | A | 63 | Claude Code |
| react-nativegetsentry/toolkit | Command | 987 | today | none | A | 0 | Claude Code |
| auditar-cascadingluanpdd/kit-mcp | Command | 5 | 4d ago | MIT | A | 54 | Claude Code |
| http-serviceMadAppGang/magus | Command | 16 | 2d ago | MIT | A | 27 | Claude Code |
| doctordoncheli/don-cheli-sdd | Command | 60 | 3mo ago | Apache-2.0 | A | 76 | Claude Code |
| doctorfatihkan/badi | Command | 8 | 2mo ago | MIT | A | 0 | Claude Code |