Agent skill

Ln 44 Performance Optimizer

by levnikolaevich in levnikolaevich/claude-code-skills

Profiles and improves a measured performance bottleneck; retains only verified improvements.

MITAuto-check passedDevelopment

Install Ln 44 Performance Optimizer

skills CLI
$ npx skills add levnikolaevich/claude-code-skills --skill ln-44-performance-optimizer -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install levnikolaevich/claude-code-skills ln-44-performance-optimizer --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/levnikolaevich/claude-code-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/implementation-suite/skills/ln-44-performance-optimizer .claude/skills/ln-44-performance-optimizer && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
ln-44-performance-optimizer
GitHub stars
572
Token cost
~3.5k tokens
SKILL.md length
1,785 words
Files
1
Skills in repo
31
Repo updated
First seen
Licence
MIT

At a glance

Profiles and improves a measured performance bottleneck; retains only verified improvements.

  • Works in 5 steps: Define the Problem and Protect the… → Establish a Reproducible Baseline → Profile and Form Hypotheses → …
  • Development work in your project
  • SKILL.md covers Tool Routing, Evidence Rules, Checklist and Self-Check, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Ln 44 Performance Optimizer is an agent skill from levnikolaevich/claude-code-skills. Profiles and improves a measured performance bottleneck; retains only verified improvements.

Its SKILL.md is about 3.5k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development. The repository describes itself as: Help your AI agent finish the job: solve the right problem, keep changes focused, and show what was verified. For Claude Code and Codex. The licence is MIT.

When your agent uses it

  • Development work in your project

Example prompts

  • “Use the ln-44-performance-optimizer skill to profile and improves a measured performance bottleneck; retains only verified improvements”
  • “/ln-44-performance-optimizer”

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Define the Problem and Protect the Workspace
  2. Establish a Reproducible Baseline
  3. Profile and Form Hypotheses
  4. Execute Atomic Keep-or-Discard Experiments
  5. Stop, Verify, and Report

What it can do on your machine

Read from SKILL.md and the folder at commit 0ce8796. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Ln 44 Performance Optimizer loads about 3.5k tokens when it runs. Until then it costs about 30 tokens; SKILL.md has 1,785 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~30
When it runs · the whole SKILL.md, loaded when a task matches
~3.5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from levnikolaevich/claude-code-skills at commit 0ce8796, republished under its MIT licence (© levnikolaevich). 1,785 words, ~3,499 tokens.

Download SKILL.mdSave it as .claude/skills/ln-44-performance-optimizer/SKILL.md (or your agent's skills folder).
name
ln-44-performance-optimizer
description
Profiles and improves a measured performance bottleneck; retains only verified improvements.

Performance Optimizer

Goal: Optimize only measured problems. Preserve correctness, isolate experiments, and retain a change only when comparable evidence shows that it improves the agreed metric without unacceptable regressions.

Execution contract: The checklist defines completion. Track each item internally as PENDING, PROVEN with evidence, CLEARED with evidence its condition is absent, or UNPROVEN with a gap; reading, delegation, tool failure, a zero exit status, or a self-reported success is not proof; only the observed outcome is. Reconcile after each section. Before returning, resolve all PENDING, count only PROVEN and CLEARED, and apply verdict and approval rules to every gap. Preserve intent, scope, and existing authorization. Continue authorized work; ask only for consequential unresolved choices or required external approval. When no one can answer during the run, state the exact question and apply the skill's verdict for the remaining gap instead of waiting or guessing. Scale depth to material risk without skipping checks. Preserve dependency and safety order; otherwise choose an appropriate verification method. Accept equivalent user or repository evidence; no other skill, named artifact, or complete lifecycle is required. Preserve source requirement and decision IDs. Bind reused evidence to relevant source versions, dirty changes, configuration, and environment; invalidate only affected claims. On continuation, reconcile task, authorization, current state, and unresolved evidence. For long work, return a compact continuation record or update an already authorized artifact; read-only skills do not persist it. Distinguish artifact readiness, verified behavior, and external-action authority. Prepare authorized work before required approval. If blocked by an instruction, cite its exact source and unresolved boundary; do not invent approval gates from caution.

Tool Routing

NeedPreferred toolUse it whenFallback
Repository state and safe edit boundaryGit status, diff, branch or worktree inspection, and repository instructionsAlways before profiling or editingStop if user changes cannot be isolated safely
Baseline and final metricExisting benchmark, load test, reproducible command, or production-like replayThe metric and workload reflect the reported problemCreate the smallest local benchmark that reproduces the behavior without inventing production scale
Bottleneck evidenceExisting profiler, tracing, query diagnostics, allocation tools, or OS-level metricsLocating CPU, memory, I/O, lock, query, network, or scheduler costTargeted instrumentation with cleanup plan
Code path and blast radiusLanguage server or host-native code intelligenceFollowing hot symbols, callers, implementations, and affected contractsNarrow search plus direct inspection of definitions and consumers
Correctness and regressionsRepository-defined tests, build, lint, type, and smoke commandsBefore and after every retained experimentChoose the smallest portfolio action when current evidence cannot detect the likely material regression
Runtime and dependency semanticsOfficial documentation, release notes, and specifications matching installed versionsA hypothesis depends on optimizer, runtime, database, framework, or library behaviorPrimary-source web research; otherwise mark the hypothesis UNVERIFIED

Do not optimize by aesthetic preference or benchmark a different workload from the reported problem. Never discard user changes, use destructive Git reset, or run uncontrolled load against production.

Evidence Rules

  • Separate cold-start, warm steady-state, and saturated-load behavior when the reported problem can occur in more than one regime.
  • Profile contribution and end-to-end impact separately: a hot function can improve while the user-visible metric does not.
  • Treat profiler estimates, synthetic workloads, and production observations as different evidence classes and label them.
  • Correctness, resource safety, and operational stability are hard constraints, not secondary metrics.

Checklist

1. Define the Problem and Protect the Workspace
  • Resolve the user-visible problem, workload, environment, primary metric, overall target, minimum improvement required to keep an experiment, and hard constraints before editing.
  • Confirm a measurable performance symptom and distinguish its cause from incorrect results or missing observability. Configuration, capacity, and dependencies may be valid bottlenecks; fix them only within the approved scope.
  • Read repository instructions and inspect Git state, branches, uncommitted changes, ignored artifacts, and available isolation mechanisms.
  • Preserve user work and isolate experiments in a safe branch or worktree when changes, benchmarks, or generated artifacts could interfere.
  • Start a run-owned resource ledger with every created absolute path, worktree, process ID, cache, profile, and temporary artifact; never register pre-existing resources as cleanup targets.
  • Identify correctness, security, memory, cost, compatibility, and operational constraints that no optimization may violate.
  • Locate existing benchmarks, profiles, performance tests, production traces, service-level objectives, and known environmental variability.
2. Establish a Reproducible Baseline
  • Use the same metric type as the observed problem: latency distribution, throughput, CPU, memory, allocation, I/O, query count, lock wait, or another direct measure.
  • Make the workload representative and deterministic enough to compare, including data size, concurrency, cache state, warmup, and build mode.
  • Cover the operating points that could reverse the conclusion--at minimum the reported case plus relevant data-size or concurrency boundaries--without inventing synthetic scale.
  • Choose a bounded comparison budget sufficient to assess material noise; record raw results, an appropriate center/percentile, spread, failures, and environment. Report inconclusive measurements rather than repeating until a gain appears.
  • When drift or noise is material, interleave or randomize baseline and candidate runs and prefer paired comparisons over one block of "before" followed by one block of "after."
  • Verify that the benchmark detects an intentionally slower or obviously changed path when practical; a benchmark insensitive to behavior cannot validate optimization.
  • Run relevant correctness tests before editing so pre-existing failures are not attributed to experiments.
  • Stop and report BLOCKED if the problem cannot be reproduced and no trustworthy production evidence can define a safe proxy.
3. Profile and Form Hypotheses
  • Profile the end-to-end path before focusing on a function, query, allocation, lock, or network call.
  • Build a ranked cost map with measured contribution, call frequency, inclusive and exclusive cost where available, and affected workload.
  • Trace the top costs to implementation, callers, data shape, concurrency model, configuration, and external dependencies.
  • Distinguish root bottlenecks from downstream symptoms, measurement overhead, debug builds, cold starts, and one-time initialization.
  • If profiling crosses services or processes whose code is in scope, align traces/correlation IDs and follow the measured downstream path; do not label an accessible internal service "external" and stop at its latency.
  • Estimate profiler or instrumentation perturbation and confirm the final end-to-end result without invasive instrumentation.
  • Research official runtime, framework, database, and dependency behavior only when it can confirm or reject a concrete hypothesis.
  • Check existing platform and dependency capabilities before proposing custom caches, pools, schedulers, serializers, or data structures.
  • Write a small ordered hypothesis set; for each state expected metric change, mechanism, affected files, risk, dependencies, and verification.
  • Reject hypotheses that lack a measurable mechanism, require speculative scale, or cannot be rolled back independently.
Show full SKILL.md (719 more words)Show less
4. Execute Atomic Keep-or-Discard Experiments
  • Test value and boundary: Require every test to detect a concrete defect in this product's business logic and name the protected business outcome. Prefer E2E through user or external-system boundaries; use integration or unit tests only for business scenarios difficult to exercise reliably through E2E. Reject platform, trivial-wiring, implementation-detail, and duplicate proof with no distinct business failure signal.
  • Map each risky hypothesis to existing proof and the material regression it could cause; implement KEEP, ADD, UPDATE, MERGE, DELETE, or justified NO_TEST within the approved test scope to produce the smallest trustworthy safety evidence, remove superseded testware, and retire temporary characterization proof when its trigger ends.
  • For caching, batching, parallelism, pooling, or retry changes, explicitly protect invalidation, ordering, idempotency, cancellation, backpressure, timeout, and bounded-resource semantics that the faster path could violate.
  • Apply the smallest coherent change that tests one mechanism; group changes only when their effects are intentionally inseparable.
  • Keep instrumentation bounded, low-overhead, and easy to remove; never leave secrets or sensitive payloads in diagnostic output.
  • Run focused correctness checks after the edit. Attribute failures to the experiment, baseline, or environment; repair bounded experiment defects and recheck, or discard when correctness cannot be established.
  • Repeat the exact baseline benchmark under comparable conditions and preserve raw results.
  • Inspect the diff for accidental cleanup, unrelated refactoring, generated churn, debug flags, changed benchmark inputs, and hidden configuration changes.
  • Mark KEEP only when the experiment meets the predeclared minimum improvement beyond noise and every hard constraint passes.
  • Mark DISCARD and revert only that experiment when the keep threshold is missed, results regress, or safety becomes uncertain; never lower the threshold after observing results.
  • After a kept change, establish the new compound baseline before testing the next hypothesis.
5. Stop, Verify, and Report
  • Continue only when new measurement supports another hypothesis; stop at the agreed target, diminishing returns, exhausted safe options, or a missing prerequisite; report explicitly whether the target was reached.
  • Confirm that build, lint, type, test, smoke, benchmark, and operational evidence covers the final retained state and all required gates. Reuse passing evidence for that state; rerun checks only where later changes or unresolved failures invalidate it.
  • Run-owned cleanup: Remove only run-owned ledger entries: verify absolute paths remain inside approved temporary roots, stop exact recorded process IDs, preserve dirty or pre-existing worktrees, and retain evidence artifacts intentionally reported.
  • Confirm that the benchmark definition and acceptance threshold did not drift during the run.
  • Reconcile the hypothesis ledger with retained edits and raw results, including discarded experiments.
  • Bind measured improvement to the workload, environment, baseline and retained code/configuration; distinguish benchmark improvement from proven production impact.
  • Use DELIVERED only when retained improvements reach the agreed overall target with every constraint passing; use PARTIAL when a verified improvement is kept but the overall target remains unmet. Use NO_CHANGE when all experiments are discarded and the baseline is restored; use BLOCKED when a safety prerequisite, reproducible baseline, or safe restoration path is unavailable.

Self-Check

  • Reconcile before returning. Check item-level evidence, requirement coverage, contradictions, scope, verdict, and applicable cleanup. Correct the report or authorized artifacts. Reuse valid evidence; do not automatically rescan the repository or rerun successful commands. Repeat checks only for relevant changes, failures, or unresolved evidence. Disclose remaining gaps.

Output Contract

Report in the user's language, in this order; label all five fields and state each fact once. Use controlled plain language: one fact per sentence, usually under 20 words, active voice, and one term per concept, with no synonyms for verdicts, IDs, or states. Small results may use one line per field; omit empty tables and do not copy linked artifacts:

  1. Result: The exact skill-specific verdict token first, then the supported outcome.
  2. Scope: Reviewed/changed scope, exclusions, baseline, and material assumptions.
  3. Evidence: Skill-specific fields below; distinguish facts, inferences, and unverified claims. Link artifacts; use tables when useful.
  4. Verification: Checks/results, unavailable evidence, and applicable cleanup/external state.
  5. Completion: Checklist: X/Y complete; Incomplete: None or each UNPROVEN item's reason, outcome impact, and exact next action; residual risks and required decisions.

Skill-specific evidence: Target workload, metric, acceptance threshold, correctness constraints, environment, sampling and variance method; comparable baseline/final distributions and deltas. Record every hypothesis, mechanism, KEEP / DISCARD, measurements, and verification. Include affected test portfolio actions, residual bottlenecks, and run-owned raw samples, commands, configuration, final diff, and cleanup evidence with paths/hashes when available.

© levnikolaevich, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in plugins/implementation-suite/skills/ln-44-performance-optimizer of levnikolaevich/claude-code-skills.

Open the folder on GitHubat commit 0ce8796

Compare with similar skills

Ln 44 Performance Optimizer next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Ln 44 Performance Optimizer compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Ln 44 Performance Optimizer this skilllevnikolaevich/claude-code-skills572—~3.5kAutomated safety check: PassMIT
Vercel Composition Patternssupabase/supabase111k58 repos~726Automated safety check: PassMIT
Finishing a Development Branchobra/superpowers297k5 repos~1.9kAutomated safety check: PassMIT
Typescript Advanced Typesrolling-scopes/rsschool-app10k25 repos~4.2kAutomated safety check: PassMPL-2.0
PR Babysitteropeninterpreter/openinterpreter69k3 repos~4.2kAutomated safety check: PassApache-2.0
Code Review ChecklistshareAI-lab/learn-claude-code78k5 repos~1.1kAutomated safety check: PassMIT

Similar skills

  • Official

    React composition patterns that scale. An agent skill from supabase/supabase.

    111k GitHub starsUsed in 58 repos~726 tokens
    DevelopmentAuto-check passed
  • Walks the last step of a branch: confirm tests pass, detect the git environment, ask how to integrate, carry out your choice and clean up the worktree.

    297k GitHub starsUsed in 5 repos~1.9k tokens
    DevelopmentAuto-check passed
  • Typescript Advanced Types

    rolling-scopes/rsschool-app

    Master TypeScript's advanced type system including generics, conditional types, mapped types, template literals, and utility types for building type-safe applications.

    10k GitHub starsUsed in 25 repos~4.2k tokens
    DevelopmentAuto-check passed
  • PR Babysitter

    openinterpreter/openinterpreter

    Watches an open GitHub pull request until it merges, handling review comments, diagnosing CI failures and retrying flaky checks along the way.

    69k GitHub starsUsed in 3 repos~4.2k tokens
    DevelopmentAuto-check passed
  • Code Review Checklist

    shareAI-lab/learn-claude-code

    Reviews code against a five-part checklist covering security, correctness, performance, maintainability and testing, and reports findings in a fixed format.

    78k GitHub starsUsed in 5 repos~1.1k tokens
    DevelopmentAuto-check passed
  • Greploop

    onyx-dot-app/onyx

    Iteratively improves a PR (GitHub), MR (GitLab), or shelved changelist (Perforce) until Greptile gives it a 5/5 confidence score with zero unresolved comments.

    32k GitHub starsUsed in 4 repos~3.3k tokens
    DevelopmentAuto-check passed

More from levnikolaevich/claude-code-skills

All 31 skills in this repo
  • Ln 53 Documentation Auditor

    levnikolaevich/claude-code-skills

    Audits documentation and comments for trust, coverage, consistency and freshness; read-only.

    572 GitHub stars~3.8k tokensUpdated 4 days ago
    Auto-check passed
  • Ln 81 Skill Reviewer

    levnikolaevich/claude-code-skills

    Reviews skill instructions, trigger boundaries and distribution contracts; not product code.

    572 GitHub stars~3.5k tokensUpdated 4 days ago
    Auto-check passed
  • Ln 11 Opportunity Evaluator

    levnikolaevich/claude-code-skills

    Evaluates new product opportunities through demand, channels and economics before committing to build.

    572 GitHub stars~3k tokensUpdated 4 days ago
    Auto-check passed
  • Ln 12 Product Requirements Builder

    levnikolaevich/claude-code-skills

    Defines product requirements, business rules and acceptance criteria for a committed intent; edits product docs only.

    572 GitHub stars~1.9k tokensUpdated 4 days ago
    Auto-check passed
  • Ln 13 Interaction Design Builder

    levnikolaevich/claude-code-skills

    Designs user flows, interaction states and mockups for a defined product scope; does not implement UI code.

    572 GitHub stars~1.8k tokensUpdated 4 days ago
    Auto-check passed
  • Ln 21 System Design Baseline Builder

    levnikolaevich/claude-code-skills

    Defines measurable architecture drivers and constraints before system design; edits architecture docs only.

    572 GitHub stars~2.5k tokensUpdated 4 days ago
    Auto-check passed

Categories

Questions about Ln 44 Performance Optimizer

What does Ln 44 Performance Optimizer do?

Profiles and improves a measured performance bottleneck; retains only verified improvements. Ln 44 Performance Optimizer is an agent skill from levnikolaevich/claude-code-skills. Profiles and improves a measured performance bottleneck; retains only verified improvements.

When should I use Ln 44 Performance Optimizer?

Ln 44 Performance Optimizer fits situations like: development work in your project.

How do I install Ln 44 Performance Optimizer in Claude Code?

Run `npx skills add levnikolaevich/claude-code-skills --skill ln-44-performance-optimizer -a claude-code`. Or copy the skill folder (plugins/implementation-suite/skills/ln-44-performance-optimizer in levnikolaevich/claude-code-skills) into .claude/skills/ln-44-performance-optimizer in your project. Claude Code loads it when a task matches its description.

How do I install Ln 44 Performance Optimizer in Codex?

Run `npx skills add levnikolaevich/claude-code-skills --skill ln-44-performance-optimizer -a codex`. Or copy the skill folder (plugins/implementation-suite/skills/ln-44-performance-optimizer in levnikolaevich/claude-code-skills) into .agents/skills/ln-44-performance-optimizer in your project. Codex loads it when a task matches its description.

Can I use Ln 44 Performance Optimizer in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add levnikolaevich/claude-code-skills --skill ln-44-performance-optimizer -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/ln-44-performance-optimizer, .gemini/skills/ln-44-performance-optimizer, .github/skills/ln-44-performance-optimizer and .opencode/skills/ln-44-performance-optimizer in your project.

What does Ln 44 Performance Optimizer need to run?

SKILL.md names no scripts, command-line tools or credentials: Ln 44 Performance Optimizer is instructions for the agent only.

Does Ln 44 Performance Optimizer access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Ln 44 Performance Optimizer safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Ln 44 Performance Optimizer use?

Ln 44 Performance Optimizer is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Ln 44 Performance Optimizer use?

About 3.5k tokens (SKILL.md is roughly 14k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Ln 44 Performance Optimizer?

Skills that share tags, products or a category with Ln 44 Performance Optimizer: Vercel Composition Patterns (supabase/supabase, 111k stars), Finishing a Development Branch (obra/superpowers, 297k stars), Typescript Advanced Types (rolling-scopes/rsschool-app, 10k stars) and PR Babysitter (openinterpreter/openinterpreter, 69k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Ln 44 Performance Optimizer?

levnikolaevich (a GitHub user) maintains it in levnikolaevich/claude-code-skills, which has 572 GitHub stars. The repository holds 31 skills in this directory. The repository was last updated on October 5, 2026.

Source: levnikolaevich/claude-code-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.