Borrowing it
Nothing to install: this file belongs to fold-run/fold. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/fold-run/fold/main/.claude/skills/perf/SKILL.mdgit clone --depth 1 https://github.com/fold-run/foldWrote 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/fold-run/fold/perf)<a href="https://agentmods.dev/skills/fold-run/fold/perf"><img src="https://agentmods.dev/badge/skills/fold-run/fold/perf/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/fold-run/fold/perf"><img src="https://agentmods.dev/badge/skills/fold-run/fold/perf.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.00063 | $0.00607 |
| Opus 5.5 | $0.00025 | $0.00243 |
| Sonnet 5.5 | $0.00013 | $0.00121 |
| Haiku 4.5 | $0.00006 | $0.00061 |
Grade A, and why
perf 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 2mo 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 — 51 lines — stays where its author put it; the contents beside it link to each section on GitHub.
fold proxy-path performance
The merge gate: added p50 through the gateway < 5 ms
(bench/latency_test.go TestAddedLatencyGate, skipped unless
FOLD_BENCH=1). Performance here is a test, not a vibe — every claim
needs a BENCH_RESULT number behind it.
The gate has a blind spot, by design. Its fixture is one upstream with
one trivial tool, so it measures the proxy hop and nothing that scales with
federation size. For anything touching the list path — merge, policy
filtering, namespacing, cursors — the instrument is
go test ./gateway -run '^$' -bench BenchmarkFederatedListTools -benchmem,
and allocations per request are the signal to watch (they are stable across
machines in a way ns/op is not). FOLD_LOAD_UPSTREAMS / FOLD_LOAD_TOOLS
give tools/perf the same federated shape.
Workflow
-
Measure: launch the bench-profiler agent (yellow) to run the gate, get a clean baseline via stash-bisect if the working diff touched the proxy path, and profile if the gate is blown. It returns numbers and top contributors with file:line.
-
Fix using the repo's pattern — per-request work moves to snapshot-build time:
- Anything derivable from config alone (compiled matchers, key
prefixes, indexes, namespace tables) is computed once when the
routessnapshot is built and read per-request from the snapshot. - Hot-path keys: preallocate/intern rather than
fmt.Sprintfper request. - Never fix latency by buffering less correctly — streaming pass-through is an invisibility requirement, not an optimization.
- Never fix by loosening the gate threshold or skipping the bench.
- Anything derivable from config alone (compiled matchers, key
prefixes, indexes, namespace tables) is computed once when the
-
Verify: re-run
make bench2–3 times, thenmake race(snapshot precomputation moves state — races follow), thenmake check. -
Report the before/after
BENCH_RESULTlines verbatim.
When the gate fails in CI but passes locally
CI runners are slower and noisier. Compare the CI run's BENCH_RESULT
against recent green runs (gh run view --log on both) before concluding
regression vs flake. A genuine regression shows in added_p50 relative to
direct_p50, not in absolute numbers.
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.
- 2mo ago First seen · 51 lines · 63 tokens per session scan A 22720d0dc8cb
perf is a skill published in the GitHub repository fold-run/fold (1 stars, last pushed 12d ago), licensed Apache-2.0. It adds 63 tokens to every session and 607 once invoked, about $0.0003 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-08-31.
perf compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| perffold-run/fold | Skill | 1 | 12d ago | Apache-2.0 | A | 63 | Claude Code |
| migrate-goldmark-extension-v1-to-v2yuin/goldmark | Skill | 5.1k | 4d ago | MIT | A | 26 | Claude Code |
| use-modern-goJetBrains/go-modern-guidelines | Skill | 3.9k | 22d ago | Apache-2.0 | A | 32 | Claude Code |
| pi-loop-forensicsdimetron/pi-go | Skill | 222 | 3d ago | MIT | A | 65 | Claude Code, Codex |
| nightly-session-watchdimetron/pi-go | Skill | 222 | 3d ago | MIT | A | 78 | Claude Code, Codex |
| tui-render-debugdimetron/pi-go | Skill | 222 | 3d ago | MIT | A | 33 | Claude Code, Codex |
| memory-minedimetron/pi-go | Skill | 222 | 3d ago | MIT | A | 35 | Claude Code |