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.
npx skills add sjarmak/coding-agent-workflows --skill perf-auditgit clone --depth 1 https://github.com/sjarmak/coding-agent-workflowsWrote 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.
[](https://agentmods.dev/skills/sjarmak/coding-agent-workflows/perf-audit)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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)
- 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.
- 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. - 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.
- 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.
- Confirm in the field (logs, events, traces) after it lands. If the journey did not improve, revert or disable and try the next hypothesis.
- 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.
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.
- 1mo ago First seen · 80 lines · 106 tokens per session scan A 80690948168c
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.
perf-audit compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| perf-auditsjarmak/coding-agent-workflows | Skill | 7 | 2d ago | MIT | A | 106 | Claude Code, Codex |
| browser-tracemxyhi/ok-skills | Skill | 518 | 9d ago | Apache-2.0 | A | 88 | Claude Code |
| orca-replaymxyhi/ok-skills | Skill | 518 | 9d ago | Apache-2.0 | A | 67 | Claude Code |
| opencli-autofixmxyhi/ok-skills | Skill | 518 | 9d ago | Apache-2.0 | A | 61 | Claude Code |
| diagnosing-bugsmxyhi/ok-skills | Skill | 518 | 9d ago | Apache-2.0 | A | 40 | Codex |
| data-manager-api-troubleshootinggoogle/skills | Skill | 25k | today | Apache-2.0 | A | 179 | Claude Code, Codex |
| reproduce-and-fix-issuesbacknotprop/pstack | Skill | 5.5k | today | MIT | A | 48 | Claude Code, Cursor |