perf-audit

perf-audit is a skill for Claude Code, Codex from sjarmak/coding-agent-workflows. It costs 106 tokens per session (1,074 once invoked), scanned A, original, MIT.

A method for finding and improving slow software by measuring a real user journey first. It uses repeatable benchmarks to locate the work causing delay, then checks that changes improve the real journey without changing its behavior.

In plain words
What is it for?
Use it to investigate slow commands, pages, queries, order runs, or test suites, and to compare targeted fixes against a stable measurement.
Why use it?
It avoids optimizing code based on guesses or noisy timing results. It also helps prevent speed improvements from disappearing later.

Skill for Claude CodeCodex

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

Good fit Use it to investigate slow commands, pages, queries, order runs, or test suites, and to compare targeted fixes against a stable measurement.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sjarmak/coding-agent-workflows/perf-audit
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 sjarmak/coding-agent-workflows --skill perf-audit
Clone the repo
git clone --depth 1 https://github.com/sjarmak/coding-agent-workflows

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 perf-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/sjarmak/coding-agent-workflows/perf-audit/github.svg)](https://agentmods.dev/skills/sjarmak/coding-agent-workflows/perf-audit)
Your own site
<a href="https://agentmods.dev/skills/sjarmak/coding-agent-workflows/perf-audit"><img src="https://agentmods.dev/badge/skills/sjarmak/coding-agent-workflows/perf-audit/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 perf-audit

Your own site · 80×15
<a href="https://agentmods.dev/skills/sjarmak/coding-agent-workflows/perf-audit"><img src="https://agentmods.dev/badge/skills/sjarmak/coding-agent-workflows/perf-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 106 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,074 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.00106 $0.01074
Opus 5.5 $0.00042 $0.00430
Sonnet 5.5 $0.00021 $0.00215
Haiku 4.5 $0.00011 $0.00107

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

Security

Grade A, and why

perf-audit 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.

source/skills/perf-audit/SKILL.md · 80 lines

How it starts

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

Performance Audit

Measure a user-visible journey before optimizing it. Reuse a deterministic benchmark where possible, validate that it predicts the real journey, and preserve behavior while removing repeated or hidden work.

For a combined hygiene and performance audit, use the shared ledger with kind perf.

The loop (one journey per thread)

  1. Name the journey a person or scheduler actually waits on: a CLI command, an order run, a page load, a query, a test suite. Record its current wall-clock at a stated percentile (p50/p75) and where the number came from. Rank journeys by frequency x delay; start with the largest.
  2. Build or find a benchmark that reproduces it. Prefer deterministic counts over timings: instruction counts (valgrind --tool=callgrind, perf stat -e instructions), function call counts (profiler or coverage), query counts and rows scanned (EXPLAIN, slow-query log), subprocess and network call counts, bytes read/written. Timings on a loaded shared machine are noise.
  3. Validate the benchmark against wall-clock: a change that cuts the count must cut the real time too. Discard a metric that does not predict the journey, however easy it is to move.
  4. Trace, then fix the biggest bottleneck. Propose several small, independently revertible changes rather than one large one. Each keeps its unit tests green, and those tests exist before the optimization.
  5. Confirm in the field (logs, events, traces) after it lands. If the journey did not improve, revert or disable and try the next hypothesis.
  6. Ratchet the win: commit the benchmark with a threshold or a recorded baseline that CI or a scheduled job checks, so a regression fails loudly. Wins decay in a fast-moving codebase without one.

What to hunt (patterns that paid off)

  • The same work repeated: one ID resolved three times, a lookup inside a loop, an unwindowed aggregate recomputed on every run when its answer only changes rarely (cache it, or compute it when the input changes).
  • Expensive checks without a cheap prefilter: run a first-character or substring test before a regex; check a size or timestamp before hashing.
  • Hidden work that no load metric sees: a leftover reload, retry, or poll loop firing thousands of times a day. Count calls, not just latency.
  • Encoding and representation traps: one non-ASCII character pushing a whole string or buffer onto a slow path; accidental copies between types.
  • Redoing setup on every invocation: recompiling, re-parsing config, re-opening connections, cold caches a warm or precomputed artifact would avoid.
  • Work before the user can act: render or return the useful part first; prefetch on a strong intent signal (hover, the previous step finishing).
  • Re-rendering or re-processing unchanged items: touch only what changed; memoize finished pieces; move heavy work off the latency path.
  • Timeouts as symptoms: a query or call that sits near a server-side limit fails under load. Fix the work, then decide whether the limit is right.

Read the full file on GitHub · 80 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. 1mo ago First seen · 80 lines · 106 tokens per session scan A 80690948168c

Subscribe to this mod's changes

perf-audit is a skill published in the GitHub repository sjarmak/coding-agent-workflows (7 stars, last pushed 2d ago), licensed MIT. It adds 106 tokens to every session and 1,074 once invoked, about $0.0004 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-10-02.

Related

perf-audit compared with skills from other repositories

perf-audit next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
perf-auditsjarmak/coding-agent-workflowsSkill72d agoMITA106Claude Code, Codex
browser-tracemxyhi/ok-skillsSkill5189d agoApache-2.0A88Claude Code
orca-replaymxyhi/ok-skillsSkill5189d agoApache-2.0A67Claude Code
opencli-autofixmxyhi/ok-skillsSkill5189d agoApache-2.0A61Claude Code
diagnosing-bugsmxyhi/ok-skillsSkill5189d agoApache-2.0A40Codex
data-manager-api-troubleshootinggoogle/skillsSkill25ktodayApache-2.0A179Claude Code, Codex
reproduce-and-fix-issuesbacknotprop/pstackSkill5.5ktodayMITA48Claude Code, Cursor