Skip to content
Back to skills

Opt Debt

ASecurity

Scans the codebase for deliberate YAGNI shortcut markers (shortcut:, opt:) and compiles an actionable technical debt ledger with revisit triggers.

  • 2 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added October 17, 2026
ai-agentsjavascriptpythonjavashellbashsqlnodegit

Works with

  • cli

Security analysis

A100/100

Scanned November 11, 2026

npx -y skills add airshell/ai-optimizer --skill opt-debt --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Opt Debt?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Opt Debt
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/airshell-opt-debt/badge)](https://www.skillsdirectory.com/skills/airshell-opt-debt)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: opt-debt
description: >-
  Scans the codebase for deliberate YAGNI shortcut markers (shortcut:, opt:)
  and compiles an actionable technical debt ledger with revisit triggers.
license: MIT
metadata:
  origin: AI Optimizer
  maintainer: Airshell (https://github.com/airshell)
---

# YAGNI Shortcut Ledger (`opt-debt`)

When developers and AI coding agents follow strict YAGNI principles, they write the minimum code required for the current task and defer speculative complexity. That trade is honest only when tracked. Every deliberate simplification carries a `shortcut:` comment naming its ceiling and the trigger to revisit. Older code may carry the previous `opt:` prefix — this skill harvests both into an actionable ledger.

## When to Use

- Before code review or major release milestones
- When asked to "list shortcuts", "show technical debt", or "what did we defer"
- To audit which temporary simplifications need scheduled follow-ups

## Marker Syntax

The standardized convention is `shortcut: <ceiling>, <trigger>`:

```python
# shortcut: in-memory aggregation ceiling 10k records, migrate to indexed SQLite
```

```javascript
// shortcut: synchronous fs read for single-user CLI, async stream if multi-tenant server introduced
```

## Scan

```bash
P='(#|//|--|/\*) ?(shortcut|opt):'
if git rev-parse --git-dir >/dev/null 2>&1; then git grep --untracked -nE "$P"
else grep -rnE "$P" . --exclude-dir={node_modules,.git,dist,build,vendor}; fi
```

## Output Format

One row per marker, grouped by file:

`<file>:<line> — <what was simplified>. ceiling: <the limit>. trigger: <when to revisit>.`

Tag any marker with no clear revisit condition as `no-trigger` — a ceiling without a revisit condition is the shape that rots.

End with:
`<N> markers, <M> with no trigger.`

Nothing found:
`No shortcut debt. Clean ledger.`

## Boundaries

- **Report only.** Do not refactor, fix, or remove markers — the user decides what to pay down.
- **Do not invent debt.** Generic `TODO`/`FIXME` comments are not `shortcut:` markers.
- **Data-first presentation.** Save judgements for one closing line, only if something is genuinely alarming.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.