performance-profiler

performance-profiler is a skill for Claude Code, Codex from lfyxhappy/lfcode. It costs 53 tokens per session (327 once invoked), scanned A, original, MIT.

A method for measuring slow software with profiling and tracing tools to find where time, memory, CPU, or throughput is being lost.

In plain words
What is it for?
It helps investigate slow startup, latency, memory growth, rendering delays, CPU use, and throughput regressions, then compare an authorized change with the baseline.
Why use it?
It replaces guesses with a repeatable baseline and evidence about the actual bottleneck.

Skill for Claude CodeCodex

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

Good fit It helps investigate slow startup, latency, memory growth, rendering delays, CPU use, and throughput regressions, then compare an authorized change with the baseline.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lfyxhappy/lfcode/performance-profiler
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 lfyxhappy/lfcode --skill performance-profiler
Clone the repo
git clone --depth 1 https://github.com/lfyxhappy/lfcode

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 performance-profiler

README.md
[![agentmods](https://agentmods.dev/badge/skills/lfyxhappy/lfcode/performance-profiler/github.svg)](https://agentmods.dev/skills/lfyxhappy/lfcode/performance-profiler)
Your own site
<a href="https://agentmods.dev/skills/lfyxhappy/lfcode/performance-profiler"><img src="https://agentmods.dev/badge/skills/lfyxhappy/lfcode/performance-profiler/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 performance-profiler

Your own site · 80×15
<a href="https://agentmods.dev/skills/lfyxhappy/lfcode/performance-profiler"><img src="https://agentmods.dev/badge/skills/lfyxhappy/lfcode/performance-profiler.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 327 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.
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.00053 $0.00327
Opus 5.5 $0.00021 $0.00131
Sonnet 5.5 $0.00011 $0.00065
Haiku 4.5 $0.00005 $0.00033

Measured 1mo ago against content hash 28bc04642ef4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

performance-profiler 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 1mo 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.

packages/lfcode/src/skill/lfcode/.bundle/performance-profiler/SKILL.md · 28 lines

What it actually says

Performance Profiler

Measure before optimizing and compare like with like.

Workflow

  1. Define the metric, workload, environment, and acceptable threshold. Record a baseline and warm-up conditions.
  2. Inspect the real entrypoint, hot path, I/O, concurrency, caching, allocations, and generated artifacts involved in the report.
  3. Use the profiler, tracing, timing, memory, browser, or package tools already available in the repository. Prefer repeatable samples over a single wall-clock observation.
  4. Separate product work from test or environment noise. Check whether logs, debug mode, cold caches, and fixture size explain the result.
  5. If optimization is requested, make the smallest change tied to a measured bottleneck and preserve correctness, cancellation, ordering, and resource cleanup.
  6. Re-run the same workload, compare baseline and result, and run focused regression tests plus typecheck or build as needed.

Boundaries

  • Do not profile or alter production data, credentials, traffic, or process state without explicit authorization.
  • Do not optimize speculative code or report a percentage without stating sample size and conditions.
  • Treat memory or latency improvements as incomplete if correctness and error paths were not rechecked.

Completion check

Report the baseline, evidence, bottleneck, change if any, comparison result, and remaining measurement limitations.

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. 1mo ago First seen · 28 lines · 53 tokens per session scan A 28bc04642ef4

Subscribe to this mod's changes

performance-profiler is a skill published in the GitHub repository lfyxhappy/lfcode (2 stars, last pushed 26d ago), licensed MIT. It adds 53 tokens to every session and 327 once invoked, about $0.0002 per session on Opus 5.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-09-05.