ln-33-code-modernizer

ln-33-code-modernizer is a skill for Claude Code from levnikolaevich/claude-code-skills. It costs 31 tokens per session (2,587 once invoked), scanned A, original, MIT.

A guide for modernizing one limited part of a codebase by removing outdated custom mechanisms or reducing the size and maintenance burden of the delivered software.

In plain words
What is it for?
Use it for bounded modernization work after mapping the current mechanism, its users, configuration, lifecycle, and callers; it is not intended for routine upgrades or performance tuning.
Why use it?
It sets evidence-based checks for deciding whether a modernization actually reduces workflow friction, risk, duplicated dependencies, maintenance work, or artifact cost while preserving behavior.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the optimization-suite plugin — 5 skills shipped together

Good fit Use it for bounded modernization work after mapping the current mechanism, its users, configuration, lifecycle, and callers; it is not intended for routine upgrades or performance tuning.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/levnikolaevich/claude-code-skills/ln-33-code-modernizer
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 levnikolaevich/claude-code-skills --skill ln-33-code-modernizer
Clone the repo
git clone --depth 1 https://github.com/levnikolaevich/claude-code-skills

Made for: Claude Code.

Or install optimization-suite, the plugin that ships this one along with the rest of its 5 skills.

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 ln-33-code-modernizer

README.md
[![agentmods](https://agentmods.dev/badge/skills/levnikolaevich/claude-code-skills/ln-33-code-modernizer.svg)](https://agentmods.dev/skills/levnikolaevich/claude-code-skills/ln-33-code-modernizer)
Your own site
<a href="https://agentmods.dev/skills/levnikolaevich/claude-code-skills/ln-33-code-modernizer"><img src="https://agentmods.dev/badge/skills/levnikolaevich/claude-code-skills/ln-33-code-modernizer.svg" alt="Measured on agentmods" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,587 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.00031 $0.02587
Opus 5 $0.00015 $0.01293
Sonnet 5 $0.00006 $0.00517
Haiku 4.5 $0.00003 $0.00259

Measured yesterday against content hash 6128997e1eaf, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

ln-33-code-modernizer 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 yesterday.

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.

plugins/optimization-suite/skills/ln-33-code-modernizer/SKILL.md · 111 lines

How it starts

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

Code Modernizer

Goal: Modernize a bounded capability only when the new design measurably reduces human workflow friction, maintenance, risk, dependency duplication, or delivered artifact cost. Preserve behavior, isolate migrations, and revert changes that do not create net value.

Execution contract: The ordered checkboxes are the Definition of Done. Track every item internally as PENDING, PROVEN with concrete evidence, CLEARED with evidence that its condition is absent, or UNPROVEN with a gap; reading, delegation, or tool failure is not proof. Reconcile items after each section. Before returning, resolve all PENDING and count only PROVEN and CLEARED; apply the skill's verdict and approval rules to every gap. Preserve user intent, scope, and existing authorization. Continue authorized work; ask only for consequential unresolved choices or required external approval. Scale depth to material risk without silently skipping checks. Preserve dependency and safety ordering; otherwise choose the verification method appropriate to each obligation.

Tool Routing

Need Preferred tool Use it when Fallback
Current mechanism and consumers Native file search plus language server or host-native code intelligence Mapping contracts, callers, configuration, data, lifecycle, and tests Narrow import, symbol, route, and configuration search with direct reads
Existing platform capabilities Manifests, lockfiles, runtime APIs, and current official documentation Avoiding new dependencies or custom code for an already available feature Repository examples and source inspection; mark capability UNVERIFIED if current docs are unavailable
External replacement candidates Official package registries, source repositories, documentation, releases, advisories, and license data Comparing maintained software with custom implementation Primary-source web research; do not rely on popularity lists alone
Baseline and value Build output, bundle analysis, code inventory, benchmark, defects, or maintenance evidence Defining what modernization must improve Reproducible static counts with documented scope and limitations
Safe migration Git isolation, focused edits, native package manager, and repository generation commands Replacing one bounded capability and its consumers Stop if user changes or generated state cannot be protected
Verification Repository-defined build, lint, type, test, smoke, packaging, and runtime checks Before migration and after every retained step Choose the smallest portfolio action when existing evidence cannot prove a material contract
Delivered artifact analysis Existing bundle analyzer, size report, startup profile, or dependency report Bundle size, load path, or runtime cost is part of the goal Build artifact comparison with reproducible file and compression rules

Read the full file on GitHub · 111 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. yesterday Changed · -17 lines · -5 tokens per session 6128997e1eaf
  2. 8d ago First seen · 128 lines · 36 tokens per session scan A 247ca2ce06f9

Subscribe to this mod's changes

ln-33-code-modernizer is a skill published in the GitHub repository levnikolaevich/claude-code-skills (558 stars, last pushed 2d ago), licensed MIT. It adds 31 tokens to every session and 2,587 once invoked, about $0.0002 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

dev-rc

The last gate before merge — QA, security audit, review and changelog, with objective pass conditions.

ToruAI/toru-claude-agents · 25 tokens

triage-report

Drain the .review/ report queue. Resolves un-triaged scan/audit reports (producer-agnostic — check-docs-consistency and any other scanner), dispatches the triage-report subagent (Sonnet) one report at a time for per-finding dispositions (promote / patch / dup / needs-investigation / dismiss), then the gateway absorbs…

RockyHong/super-bootstrap · 151 tokens

review-loop

Run the adversarial verification loop — implement, then hand the change to a fresh checker that did not write it, fix what it finds, and re-dispatch until APPROVE. Use before claiming any behavioural change is done, and on requests like "review loop", "adversarial review", "independent review", "get this verified"…

sangrokjung/claude-forge · 100 tokens

solid-principles

SOLID principles checklist with Java examples. Use when a class has too many responsibilities, an abstraction leaks, or a dependency points the wrong way, and when the user asks about Single Responsibility, Open/Closed, Liskov, Interface Segregation or Dependency Inversion. For naming, duplication and method length…

decebals/claude-code-java · 73 tokens

architecture-review

Analyze Java project architecture at macro level - package structure, module boundaries, dependency direction, and layering. Use when user asks "review architecture", "check structure", "package organization", or when evaluating if a codebase follows clean architecture principles.

decebals/claude-code-java · 51 tokens

java-code-review

Systematic code review for Java with null safety, exception handling, concurrency, and performance checks. Use when user says "review code", "check this PR", "code review", or before merging changes.

decebals/claude-code-java · 45 tokens