latency-critical-systems

latency-critical-systems is a skill for Claude Code, Codex from nklofy/code-agent-skills. It costs 42 tokens per session (499 once invoked), scanned A, original, Apache-2.0.

An engineering guide for systems where response time and data freshness matter, such as live dashboards, market-data feeds, streaming agents, queues, caches, or execution gateways.

In plain words
What is it for?
Use it to measure latency percentiles, throughput, freshness, queue depth, cache performance, provider response time, rendering, retries, and behavior under load.
Why use it?
It helps teams find which part of a system causes delay or stale data instead of treating every performance issue as simply “slow.”

Skill for Claude CodeCodex

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

Good fit Use it to measure latency percentiles, throughput, freshness, queue depth, cache performance, provider response time, rendering, retries, and behavior under load.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nklofy/code-agent-skills/latency-critical-systems
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 nklofy/code-agent-skills --skill latency-critical-systems
Clone the repo
git clone --depth 1 https://github.com/nklofy/code-agent-skills

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 latency-critical-systems

README.md
[![agentmods](https://agentmods.dev/badge/skills/nklofy/code-agent-skills/latency-critical-systems/github.svg)](https://agentmods.dev/skills/nklofy/code-agent-skills/latency-critical-systems)
Your own site
<a href="https://agentmods.dev/skills/nklofy/code-agent-skills/latency-critical-systems"><img src="https://agentmods.dev/badge/skills/nklofy/code-agent-skills/latency-critical-systems/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 latency-critical-systems

Your own site · 80×15
<a href="https://agentmods.dev/skills/nklofy/code-agent-skills/latency-critical-systems"><img src="https://agentmods.dev/badge/skills/nklofy/code-agent-skills/latency-critical-systems.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 499 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.00042 $0.00499
Opus 5.5 $0.00017 $0.00200
Sonnet 5.5 $0.00008 $0.00100
Haiku 4.5 $0.00004 $0.00050

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

Security

Grade A, and why

latency-critical-systems 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.

Origin

Copies of this mod

2 near-identical copies found in the catalogue:

affaan-m-ECC/latency-critical-systems/SKILL.md · 75 lines

How it starts

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

Latency Critical Systems

Use this skill when the user cares about realtime behavior, hot paths, streaming freshness, or execution speed. This includes HFT-like infrastructure, but the skill is engineering-focused. It does not authorize live trading or financial advice.

Split The Metrics

Do not collapse everything into "fast." Track:

  • p50, p95, and p99 latency;
  • throughput;
  • freshness age;
  • queue depth;
  • cache hit rate;
  • provider/API response time;
  • browser render time;
  • correctness under load;
  • failure and retry behavior.

Map The Hot Path

Write the path from user/event to final visible state:

source event -> provider API -> ingest worker -> queue -> cache -> edge route
-> client stream -> browser render -> user-visible state

Then measure each segment separately.

Optimization Order

  1. Remove unnecessary round trips.
  2. Cache stable reads with freshness metadata.
  3. Batch small calls and writes.
  4. Move compute closer to the data or the user.
  5. Split hot and cold paths.
  6. Apply backpressure before queues grow unbounded.
  7. Use streaming only when it improves freshness or user experience.
  8. Add canaries for stale data, degraded providers, and bad cache state.

Verification

Use live readbacks when a deployed surface exists:

  • HTTP timing and response headers;
  • provider freshness timestamp;
  • queue or job state;
  • edge/cache state;
  • browser verification for actual UI freshness;
  • logs around retries and degraded mode.

For market-data or execution-adjacent paths, also verify orderbook age, VWAP assumptions, provider status, and kill-switch behavior before calling the path ready.

Guardrails

  • Do not optimize latency by dropping required validation.
  • Do not hide stale data behind fast cache hits.
  • Do not claim millisecond behavior from client labels without measurement.
  • Do not run live orders, destructive migrations, or customer-impacting deploys without an explicit approval gate.
  • Keep secrets and private payloads out of logs and benchmark artifacts.

Read the full file on GitHub · 75 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. 2mo ago First seen · 75 lines · 42 tokens per session scan A 64b6cfef0226

Subscribe to this mod's changes

latency-critical-systems is a skill published in the GitHub repository nklofy/code-agent-skills (18 stars, last pushed 3d ago), licensed Apache-2.0. It adds 42 tokens to every session and 499 once invoked, about $0.0002 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-09-03.

Related

latency-critical-systems compared with skills from other repositories

latency-critical-systems next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
latency-critical-systemsnklofy/code-agent-skillsSkill183d agoApache-2.0A42Claude Code, Codex
mem0-oss-to-platformmem0ai/mem0Skill70k2d agoApache-2.0A217Claude Code, Codex
tao-run-inference-serviceNVIDIA/skillsSkill4.2k2d agoApache-2.0A92Claude Code
azure-mgmt-botservice-dotnetmicrosoft/skillsSkill3.3k3d agoMITA78Claude Code
fastapi-router-pymicrosoft/skillsSkill3.3k3d agoMITA46Claude Code
dev-runtimelangwatch/langwatchSkill5.1ktodayApache-2.0A172Claude Code
api-designericrisco/rsc-harnessSkill6824d agoMITA105Claude Code, Codex