omd-slim

omd-slim is a skill for Claude Code, Codex from AbyssCN/oh-my-dag. It costs 94 tokens per session (838 once invoked), scanned A, original, MIT.

A code-maintenance audit that records known technical debt and looks for unnecessary complexity. Technical debt is a shortcut or unfinished work kept for later, while overengineering is extra structure that current needs do not require.

In plain words
What is it for?
Use it to create a debt ledger, scan selected paths for overengineering, and produce evidence-based suggestions for simplifying the code.
Why use it?
It keeps deliberate shortcuts visible and identifies accidental duplication, unused layers, dead code, and needless abstractions. Its recommendations are for deletion only and should be checked against real callers first.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to create a debt ledger, scan selected paths for overengineering, and produce evidence-based suggestions for simplifying the code.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/abysscn/oh-my-dag/omd-slim
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 AbyssCN/oh-my-dag --skill omd-slim
Clone the repo
git clone --depth 1 https://github.com/AbyssCN/oh-my-dag

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 omd-slim

README.md
[![agentmods](https://agentmods.dev/badge/skills/abysscn/oh-my-dag/omd-slim/github.svg)](https://agentmods.dev/skills/abysscn/oh-my-dag/omd-slim)
Your own site
<a href="https://agentmods.dev/skills/abysscn/oh-my-dag/omd-slim"><img src="https://agentmods.dev/badge/skills/abysscn/oh-my-dag/omd-slim/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 omd-slim

Your own site · 80×15
<a href="https://agentmods.dev/skills/abysscn/oh-my-dag/omd-slim"><img src="https://agentmods.dev/badge/skills/abysscn/oh-my-dag/omd-slim.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 94 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 838 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00094 $0.00838
Opus 5 $0.00047 $0.00419
Sonnet 5 $0.00019 $0.00168
Haiku 4.5 $0.00009 $0.00084

Measured 12d ago against content hash d89e1d4cf6d7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

omd-slim 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 12d 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.

client-skills/omd-slim/SKILL.md · 35 lines

What it actually says

/omd-slim — 精益审计(先债后瘦)

两步:先把已知欠账(你主动留的 ponytail: 捷径)收成台账,再让车队找你没意识到的过度工程。两者不同——债是你故意留的,过度工程是意外长出来的。

Pass 0 — debt 台账(先记已知债)

bun run scripts/omd-debt.ts [--paths "src,scripts"]:纯 grep 扫全仓 // ponytail: <天花板>, <升级触发> 标记,收成 ledger(缺升级触发的标 - = rot 风险)。零 LLM。让"以后再说"不烂成"永远不说"。这是已知债的账,不判对错,只收拢。

Pass 1+2 — 过度工程专审(经 dag_slim)

调 omd MCP dag_slim(可能带 mcp__omd__ 前缀;未加载先 ToolSearch "dag_slim"),scope 可选收窄。异步三段式:dag_slim(scope?)dag_status 轮询 → dag_result 取报告路径自己 Read。车队按 global-first 两遍法(系统级先跑,-50% 在这):

Pass 1 — global(系统级):跨文件找 —

  • dedup: 同一逻辑手写在 N 处 → 一个共享 util(最大赢面)
  • collapse: 一个概念的并行实现 → 合并成一个
  • layer: 没人需要的整层/包装/间接 → 删掉这层
  • couple: 局部"最小"选择造成的耦合/重复 → 全局一致的替代

Pass 2 — local(逐 hunk):delete: 死代码/用不上的灵活性 · stdlib: 标准库/Bun 已有 · native: 平台已有(CSS/DB 约束)· yagni: 单实现的抽象/无人设的配置 · shrink: 同逻辑更少行。 格式:L<行>: <tag> <what>. <replacement>.

不要 flag(不是膨胀)

文档化的 ponytail:/DEFER、契约面、刻意留的扩展缝 = 规划非投机,别 yagni/delete;前端体验代码(动效/状态/层级)= 交付物非灵活性,别删。

转述纪律

每条删除建议给"删了它谁受损"的反证——确认无真实调用方 + 无近期演进信号才建议删。报告是候选,动手前自己核实引用面,别凭车队一句话砍代码。

与既有 skill 的边界

  • omd-slim = 只找过度工程 + 记已知债,只删不加。找 bug/正确性 → /omd-review;扫安全 → /omd-audit;架构浅模块加厚(是"加"不是"删") → /omd-deepen。
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. 12d ago First seen · 35 lines · 94 tokens per session scan A d89e1d4cf6d7

Subscribe to this mod's changes

omd-slim is a skill published in the GitHub repository AbyssCN/oh-my-dag (39 stars, last pushed yesterday), licensed MIT. It adds 94 tokens to every session and 838 once invoked, about $0.0005 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-08-30.

Related

Other skills, from other repositories

optimization

Use when improving performance, latency, throughput, memory usage, or general efficiency. Start by defining target metrics, measuring comprehensively, attributing bottlenecks, validating with static analysis, and prioritizing macro-optimizations before micro-optimizations.

1jehuang/jcode · 52 tokens

smiles-validation

Strict SMILES validation, structural comparison, and modification verification. Catches invalid LLM-generated molecules.

synthetic-sciences/openscience · 24 tokens

neuron-debugger

Debug and monitor Neuron AI applications with Inspector APM, event observability, logging, and performance analysis. Use this skill whenever the user mentions debugging, monitoring, observability, performance analysis, tracing, Inspector, or needs to understand why an agent is behaving a certain way. Also trigger for…

neuron-core/neuron-ai · 90 tokens

code-search

Search a codebase efficiently with ripgrep regular expressions, file globs, and git history search. Use to locate symbols, usages, and definitions instead of reading whole files.

agentscope-ai/agentscope-java · 38 tokens

agent-identity

Verify an agent's live address and billing account before sharing a chat link, diagnosing a deploy mismatch, or deciding why two hosts share an identity.

openonion/connectonion · 33 tokens

data-fetching

Use when implementing or debugging ANY network request, API call, or data fetching. Covers fetch API, axios, React Query, SWR, error handling, caching strategies, offline support.

Intelligent-Internet/ii-agent · 41 tokens