perf-loop

A repeatable process for making Fallow’s code analysis run faster while preserving correct results. It compares the same benchmark before and after one bounded optimization.

In plain words
What is it for?
Use it to select a stable benchmark, measure a baseline, inspect the slow path, make one optimization, rerun checks, and keep the change only when the result is reproducible.
Why use it?
It prevents unreliable performance claims and helps detect when a speed improvement changes behavior or breaks a contract.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/fallow-rs/fallow/perf-loop
Any agent
npx skills add fallow-rs/fallow --skill perf-loop
Clone the repo
git clone --depth 1 https://github.com/fallow-rs/fallow

Made for: Claude Code, Codex.

Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 131 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00022 $0.00131
Opus 5 $0.00011 $0.00066
Sonnet 5 $0.00004 $0.00026
Haiku 4.5 $0.00002 $0.00013

Measured yesterday against content hash 1e57ef6b5a38, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

perf-loop 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 yesterday.

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.

.agents/skills/perf-loop/SKILL.md · 19 lines

What it actually says

Performance loop

  1. Choose a stable benchmark and preserve its identity and workload.
  2. Record a statistically useful baseline.
  3. Profile the hot path before editing.
  4. Implement one bounded optimization.
  5. Re-run the same benchmark and correctness checks.
  6. Keep the change only when the improvement is reproducible and no contract regresses.
  7. Use a new benchmark identifier for a materially different workload.
  8. Run review.

Do not report performance gains from debug builds or incomparable fixtures.

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. yesterday First seen · 19 lines · 22 tokens per session scan A 1e57ef6b5a38

Subscribe to this mod's changes

perf-loop is a skill published in the GitHub repository fallow-rs/fallow (4,429 stars, last pushed yesterday), licensed MIT. It adds 22 tokens to every session and 131 once invoked, about $0.0001 per session on Opus 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-30.

Related

Other skills, from other repositories

Biome

Biome 2.x — fast all-in-one web toolchain in Rust. Formats, lints, assists. Replaces Prettier + ESLint.

pledgeandgrow/pledge-skills · 33 tokens

eslint-docs

ESLint 10.x — flat config, rules, plugins, formatters, parsers, CLI, Node.js API, custom rules, migration.

pledgeandgrow/pledge-skills · 34 tokens

biome-code-review

Use this skill only when asked to review completed Biome changes in a PR, branch, commit range, diff, or working tree. Perform a read-only static review and report findings without editing files or running project code. Do not use for triage, reproduction, or implementation.

biomejs/biome · 61 tokens

doc-comments

Use this skill whenever writing or editing Rust //, ///, or //! comments in Biome, including comments added incidentally and end-user rustdoc inside lint/assist declarations. For lint/assist rustdoc, also load lint-rule-development for content requirements. Do not use for formatter handling of comments in user code.

biomejs/biome · 70 tokens

type-inference

Use this skill when working on Biome's Salsa-backed JavaScript and TypeScript inference, including type-aware lint rules, raw collection or inferred representations, analyzer requests, tracked queries, import or cycle resolution, profiling, and Salsa invalidation tests. Do not use for standalone CSS/HTML module-graph…

biomejs/biome · 78 tokens

eslint-migrate-options

Use this skill when biome migrate eslint must preserve configurable ESLint rule options through source-option models, Biome conversions, typed rule variants, and migration fixtures. Do not use for generated severity-only mapping or general rule-option design.

biomejs/biome · 53 tokens