Skip to content
Skillpedia
Misc280k · #78

latency-critical-systems

Enables your agent to optimize latency-sensitive systems. Monitors real-time performance and ensures data is delivered quickly and accurately.

What it does

This tool helps check and improve the speed of systems that need to respond very quickly, like real-time dashboards or trading systems. It measures how fast things happen and where they might be slow.

When to use it

  • ✓When real-time response speed is critical.
  • ✓To understand bottlenecks in data streaming systems.
  • ✓When optimizing how quickly data reaches the user.

Example of what to ask your AI

“Analyze the latency of my market feed and identify bottlenecks.”

Want more? Open the sections below.

How to use

The easiest way: copy the message below and paste it into Claude, ChatGPT, Cursor or any AI. It reads the skill and follows the instructions.

Skill link

https://github.com/affaan-m/ECC/blob/main/pi/core/skills/latency-critical-systems/SKILL.md

Ready-to-paste message

Use this skill to help me: https://github.com/affaan-m/ECC/blob/main/pi/core/skills/latency-critical-systems/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
How it works

The tool measures different aspects of speed, such as how long an action takes to complete (p50, p95, p99), how quickly data is updated, and the size of waiting queues. It also maps the path data takes to find where delays are occurring.

Installation

Easiest way: copy the skill link and paste it into Claude, ChatGPT or Cursor asking it to follow the instructions.

In the terminal (Claude Code, Codex, Cursor), in your project folder:

npx skills add affaan-m/ECC --skill latency-critical-systems

Or download just the file:

curl -L https://raw.githubusercontent.com/affaan-m/ECC/main/pi/core/skills/latency-critical-systems/SKILL.md -o SKILL.md
Technical content (original SKILL.md)

Original text by the author, straight from 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.
FAQ

What are p50, p95, and p99 latencies?

These are speed measurements. p50 is the time it takes for half of the actions to complete. p95 is the time it takes for 95% of actions. p99 is the time for 99% of actions. They help understand both average speed and worst-case scenarios.

What is 'freshness age'?

It indicates how recent the data is. If data is too old, it might not be useful or could even be harmful.

Can I use this for financial trading?

No. This tool is focused on engineering to improve system speed, not for giving financial advice or executing trades.

Details

Original description by the author

Optimize and verify latency-sensitive systems — realtime dashboards, market data feeds, streaming agents, execution gateways, queues, and caches — by tracking p50/p95/p99 latency, freshness age, and queue depth, mapping hot paths, and running live readbacks. Use when p95 latency, throughput, or data freshness matters.

repo: affaan-m/ECC

Popularity

GitHub stars
280k
Ranking position
#78
License
MIT
Updated
10/15/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills