agentleFS
hrmnisthetuffesthrmnisthetuffest/ultra-optimizer/.claude/skills/ping-optimize/SKILL.md

ping-optimize

Skill1 starsChanged 26 days agoMITView on GitHub

Diagnose and reduce application-perceived network latency and wasted network work in the app being developed. Use for round trips, request waterfalls, DNS/TCP/TLS overhead, connection reuse, HTTP/2 and HTTP/3, caching, retries and backoff, WebSocket and real-time traffic, game netcode, streaming, downloads and API chattiness, and for adapting the app's OWN networking to measured conditions. Changes only the application's networking implementation, never router, OS, driver, DNS, VPN or device settings.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If the line above is empty, audit the whole project's networking.

    line 12
  2. Distinctive:

    Preserve behavior and security: Keep features, API contracts, authentication, authorization, encryption, data integrity, offline behavior, …

    line 19
  3. Distinctive:

    Bounded, authorized testing: Prefer passive observation and existing telemetry.

    line 20
  4. Distinctive:

    No hidden machinery: No background network agents, runtime network monitoring or telemetry without explicit developer authorization and …

    line 21

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

/ping-optimize: network-performance diagnosis and optimization

This command makes the application communicate more efficiently, respond sooner, transfer data better and stay reliable on poor networks, so users wait less. It is not about making one ping number smaller. It is a network specialization that uses RACE-style, measured-condition adaptation, but it is a separate command from /race (hardware-aware optimization) and /optimize (universal, device-independent optimization). Do not run either of them from here; mention them if their scope is a better fit.

Requested scope: $ARGUMENTS If the line above is empty, audit the whole project's networking. If a target, endpoint, workload or subsystem is named, scope everything to it. Users need not know networking jargon: translate findings into plain words.

Non-negotiable rules

  1. Application only. Never change router, modem, Wi-Fi, Ethernet adapter or driver, OS networking or TCP/IP settings, registry, device DNS, VPN, proxy, firewall, MTU, adapter power, BIOS/firmware or ISP settings. Never promise to remove ISP latency or shorten physical distance. Reject requests that need those changes and offer an application-level alternative.
  2. Attribute before optimizing. Place each delay in one of nine buckets (application, local networking code, DNS, connection setup, transport, network path, remote server processing, data transfer, post-response client processing). Never confuse server processing time with network RTT. Never claim an app change reduced server ping without endpoint-specific measurements.
  3. Measure first, report honestly. Establish a baseline, repeat measurements, compare before and after with percentiles. Never invent numbers. Label each claim as verified fact, measurement, estimate, hypothesis or unknown. One successful ping is not proof.
  4. Preserve behavior and security. Keep features, API contracts, authentication, authorization, encryption, data integrity, offline behavior, error handling, rate limits and user preferences. Never disable TLS verification, weaken encryption or bypass restrictions. Never cache private or authenticated content incorrectly. Never blindly retry non-idempotent operations.
  5. Bounded, authorized testing. Prefer passive observation and existing telemetry. Active probes only against endpoints the developer owns or explicitly authorizes: bounded, cancellable, no flooding, no scans, no excess parallel connections. Never collect browsing history, tokens, cookies, private bodies or unrelated personal data.
  6. No hidden machinery. No background network agents, runtime network monitoring or telemetry without explicit developer authorization and documented user controls (pause, disable, last-known-good restore). No AI-based network optimization, agents or services unless the developer explicitly selects them.
  7. Adaptive changes need evidence and limits. Bandwidth is not latency, and a faster link does not justify more concurrency. Every adaptive rule needs a measured trigger, hysteresis, safe bounds and a fallback.
  8. Safe and reversible. Inspect repo state first; small reviewable changes; baseline and rollback point; no destructive or external actions (reset, force-push, deploy, publish, PR) without authorization; restore the previous known-good state if validation fails.

Workflow (10 steps)

  1. Inspect the project: languages, frameworks, networking libraries, protocols, architecture, application category. Run python3 scripts/detect_network_stack.py <project-root> (relative to this skill's directory) for a first guess, then verify by reading code.
  2. Map how data travels: client calls, endpoints, protocols, proxies and CDNs, auth flow, retry layers, caches.
  3. Baseline with available telemetry or a bounded, authorized probe. See the benchmark references.
  4. Diagnose: attribute latency to the nine buckets; find sequential dependencies, duplicates, polling, missing reuse, oversized payloads, bad retries.
  5. Research official documentation and standards for the actual stack; record URL, version and access date; mark anything unfetched as unverified.
  6. Discover opportunities from the real code.
  7. Prioritize by expected impact, evidence confidence, effort, regression risk, security implications and compatibility.
  8. Implement focused, reviewable changes that preserve behavior.
  9. Validate: unit and integration tests, simulated network conditions (latency, jitter, loss, bandwidth cap, interruption, DNS failure, slow or erroring server, partial responses, rate limiting, reconnection, offline), regression checks. Verify no duplicate transactions, corruption, infinite retries, request storms, broken auth or lost functionality.
  10. Report: bottlenecks, changes, files modified, before/after measurements, test results, untested areas, remaining issues, recommendations.

Load references on demand (do not load everything)

Reference root: references/INDEX.md lists every file with a one-line purpose. Load only what the scope needs.

SituationLoad
Starting an auditnetwork-detection, latency-analysis, application-network-profiling
Slow first request / handshakesdns-intelligence, tcp-intelligence, tls-intelligence, connection-management
Protocol choicehttp-protocols, http2, http3-and-quic
Ping, jitter, loss, congestionping-analysis, jitter-analysis, packet-loss-analysis, congestion-analysis, loaded-latency
Server vs network blameserver-response-analysis, bandwidth-analysis
Fixing request patternsrequest-optimization, latency-reduction, connection-pooling, concurrency
Caching, size, prefetchcaching, compression, prefetching, streaming
Failure behaviorretry-and-recovery, adaptive-bandwidth
Backend/server componentserver-integration
Measuring and testinglatency-benchmarks, bandwidth-benchmarks, jitter-and-packet-loss, network-regression-testing
Application categoryone file from references/network-application-profiles/: browsers, games, messaging, video, downloads, cloud sync, API/SaaS

Executable contracts (stdlib Python, illustrative templates, not universal runtime code): templates/network_reference_model.py (backoff with jitter, idempotency keys, retry budget, request dedup, adaptive concurrency with hysteresis) and templates/network_sim.py (deterministic simulated network for condition tests). Adapt them to the project's language; do not paste them blindly.

Scope and limits

Findings that depend on a particular user's network or device belong in app-level adaptive logic that the developer approves, not in global defaults. Universal fixes (redundant requests, waterfalls, serialization, correct caching) are the kind of change /optimize also makes; this command may make them when network evidence motivates them. Document what could not be measured. Report format and timing rules: baseline before change, no performance claim before measurement.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.