performance

performance is a skill for Codex from kreek/consult. It costs 26 tokens per session (754 once invoked), scanned A, a copy of a-message-just-for-you, MIT.

A set of rules for measuring and improving software speed, capacity, memory use, and caching. Profiling means collecting measurements that show where a program spends time or resources.

In plain words
What is it for?
Use it to investigate slow requests, improve response-time targets such as p99 latency, increase throughput, reduce allocations, read profiles, design benchmarks, and tune application, database, CDN, browser, or edge caches.
Why use it?
It prevents optimizing code based on guesses and helps distinguish CPU, memory, input/output, locking, and network problems. It also helps assess whether a cache actually improves results without causing stale data or overload.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it to investigate slow requests, improve response-time targets such as p99 latency, increase throughput, reduce allocations, read profiles, design benchmarks, and tune application, database, CDN, browser, or edge caches.

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

Made for: 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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/kreek/consult/performance"><img src="https://agentmods.dev/badge/skills/kreek/consult/performance.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 754 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 86% copy Near-identical to another mod 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.00026 $0.00754
Opus 5.5 $0.00010 $0.00302
Sonnet 5.5 $0.00005 $0.00151
Haiku 4.5 $0.00003 $0.00075

Measured 16d ago against content hash 2652b3b88334, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

performance 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 16d 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.

Origin

This is a copy

86% identical to a-message-just-for-you — 148 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

agents/.agents/skills/performance/SKILL.md · 68 lines

How it starts

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

Performance

Iron Law

MEASURE BEFORE OPTIMIZING. MEASURE AGAIN BEFORE KEEPING THE CHANGE.

When to Use

  • Diagnosing slowness, optimizing latency, throughput, or allocation, reading profiles, designing benchmarks, or deciding whether a performance change is worth keeping.
  • Adding, reviewing, or debugging caches at any layer, including stale data, stampedes, and hot keys.

When NOT to Use

  • Concurrency correctness without measured slowness; use async-systems.
  • Query safety without profiling context; use database.
  • HTTP cache semantics unrelated to storage or speed; use api.

Rules

  1. Name the target metric (p99 latency, throughput, CPU, allocation rate, memory, error-budget impact) and its user relevance before changing code. Capture a baseline on production-shaped data and concurrency.
  2. Optimize the measured bottleneck, not the code that looks suspicious.
  3. One performance change per commit, re-measured under the same workload and environment, with raw results or profile artifacts saved. Check that memory, error rate, tail latency, and CPU did not regress enough to erase the win.
  4. Latency load generators avoid coordinated omission, or the p99 is fiction.
  5. Added complexity is kept only when the measured gain justifies it.
  6. A cache is kept only after naming its source of truth, invalidation trigger, stale tolerance, key contract, stampede protection, TTL/jitter, and metrics (hit rate, miss latency, eviction, memory, refresh errors). TTL is a safety net, not the invalidation strategy.
  7. Cache keys encode every input that changes the value: freshness, tenant, permissions, locale, version. Cache contents holding secrets, PII, tenant data, or authorization context are sensitive storage; hand off to security.
  8. Cache tests cover stale data and invalidation, not only the warm-cache happy path.

Tripwires

Trigger Do this instead False alarm
"This code looks slow" Measure first and name the target metric. The user asked only for a hypothesis.
"Average latency improved" Check p95/p99 and adjacent metrics before keeping the change. Batch-only workload where tail latency is irrelevant.
"Micro-benchmark is faster, so the app is faster" Prove the end-to-end path or scope the claim to local mechanics. The claim is only about the local primitive.
"Add a cache" Name source of truth, invalidation trigger, stale tolerance, and metrics first. A bounded per-request memo with no cross-request staleness.
"TTL handles invalidation" Use event or key-based expiration; TTL is the safety net. Best-effort cache where stale data is explicitly acceptable.
"The hot key is rare" Add stampede protection or prove concurrency cannot pile up. Single-process local cache with bounded callers.
"No need to re-measure" Re-measure under the same workload. The change was reverted or not kept.

Read the full file on GitHub · 68 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 16d ago Changed · +7 tokens per session 2652b3b88334
  2. 1mo ago Changed · -31 lines 1a778ae18f93
  3. 1mo ago First seen · 99 lines · 19 tokens per session scan A 37277e7b91f5

Subscribe to this mod's changes

performance is a skill published in the GitHub repository kreek/consult (1 stars, last pushed 17d ago), licensed MIT. It adds 26 tokens to every session and 754 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 86% identical to a-message-just-for-you, differing in 148 lines, and is treated as a copy.

Related

Other skills, from other repositories

diagnose-project

Diagnose .NET SDK, restore, build, test, package, target framework, F# compile-order, C# analyzer, and project-reference failures with concrete next checks.

gaelic-ghost/socket · 39 tokens

bug-fix

Use when a bug, regression, or unexpected behaviour is reported and the user wants it fixed end to end — "why is X broken", "this stopped working after Y", "fix this crash". Also use when a symptom is known but its cause is not. Not for building new behaviour, and not for a change whose cause is already proven.

kardebadas/claude-plugin · 74 tokens

bug-investigate

Use when someone wants to know WHY something is broken and has not asked for it to be fixed — "why is this happening", "what's causing this error", "find out what's wrong", "diagnose this before we decide". Also use before committing to a fix, when the cause is unknown and the decision depends on it. Not for fixing …

kardebadas/claude-plugin · 83 tokens

xcode-build-run-workflow

Guide build, run, preview-adjacent, workspace-inspection, diagnostics, toolchain, and guarded mutation work in existing Xcode-managed projects and workspaces. Use when Xcode-aware execution is needed and the task is primarily about build, run, or project-integrity work rather than testing.

gaelic-ghost/socket · 67 tokens

xcode-debugger-mcp-workflow

Diagnose a running Apple app through Xcode’s active LLDB debugging session and assess the experimental Xcode 27 lldb-mcp executable. Use when setting breakpoints, inspecting frames or variables, issuing LLDB commands, or distinguishing a usable Xcode debugger session from an unavailable standalone debugger MCP server.

gaelic-ghost/socket · 70 tokens

safari-mcp-workflow

Inspect a scoped live site in Safari through Safari Technology Preview's local MCP server. Use for Safari-specific DOM, console, network, screenshot, accessibility, performance, interaction, responsive, or print-media evidence.

gaelic-ghost/socket · 48 tokens