sota-performance — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited sota-performance (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Make systems fast by default and find why they are slow by evidence. This skill encodes two disciplines that share one rule set:
and protected by regression tests before it ships.
by user-facing impact, and prescribe fixes with expected gains.
Core doctrine: measure first, but fix known pathologies on sight. Profiling is mandatory before micro-optimization; it is NOT required to remove an O(n²) loop, an N+1 query, or an unbounded cache. "Premature optimization" never excuses shipping a known pathology.
When writing new code or features:
and decompose it across hops. An endpoint with a 200 ms p99 budget that calls auth (10 ms) + 2 DB queries (2×15 ms) + serialization (5 ms) has 155 ms of headroom — spend it consciously. See rules/01-methodology.md.
anything works. n unbounded: complexity class is the design. See rules/02-algorithms-data-structures.md.
per item. Stream large results; never materialize unbounded data.
avoid per-iteration allocation in loops that run > 10⁴ times per second. See rules/03-memory.md.
writes, compression chosen per payload type. See rules/04-io-network.md.
TTL + jitter, eviction policy, invalidation path, stampede protection, and a hit-ratio metric. A cache missing any of these is a future incident. See rules/05-caching.md.
budget. A perf improvement without a regression gate is a loan, not an asset.
CLS ≤ 0.1 at p75). See rules/06-frontend-web.md.
Work outside-in, hottest path first:
SLO: request handlers, queue consumers, render loops, cron jobs over large datasets. Audit those first; ignore cold admin paths until the end.
await/network/DB calls → N+1 (rules/02)rules/02).includes/in list/linear find inside a loop → O(n·m) (rules/02)SELECT *, queries without LIMIT, missing pagination (rules/02, rules/04)rules/03, rules/05)addEventListener/subscribe without matching removal (rules/03)rules/04)rules/04)rules/04)JSON.parse/serialize of large payloads in hot loops (rules/03)process↔kernel (syscalls), service↔DB, service↔service, server↔browser. Count round trips per user action; > 3 sequential round trips is a finding.
to create (connections, TLS sessions, regexes, compiled templates, clients) should be created once and reused.
pool bounds, no cache eviction — absent code is the most common perf bug.
(rules/01). Compare p99 to p50; ratio > 10× means contention, GC, or stampedes, not slow code.
network, pools, queues. RED per service (Rate, Errors, Duration).
waiting. A request that is slow with idle CPU is blocked on I/O or locks.
| Severity | Criteria |
|---|---|
| Critical | Active or imminent user-facing failure: unbounded growth (memory leak, unpaginated scan) that will OOM/timeout at production scale; O(n²)+ on user-controlled input; stampede-capable cache in front of a fragile origin; p99 SLO breached now. |
| High | Measurable user-facing degradation: N+1 on a hot path; missing pool/keep-alive adding RTTs per request; blocking call on event loop; CWV in "poor" band; hot-path complexity that degrades super-linearly with organic growth. |
| Medium | Wasteful but currently within budget: avoidable allocations in warm paths; missing compression; suboptimal cache TTLs; sequential awaits worth ~10–50 ms; bundle over budget but CWV still "needs improvement". |
| Low | Hygiene: micro-inefficiencies in cold paths, style-level fixes, missing benchmarks for non-critical code. |
Escalate one level if the code path is on the critical user journey (checkout, login, search) or if growth is super-linear with data/users.
[SEVERITY] <one-line title>
Location: <file:line(s)>
Pattern: <pathology name, e.g. "N+1 query", "unbounded cache">
Evidence: <code excerpt or metric>
Impact: <quantified or estimated user-facing effect, with the math>
Fix: <specific change, with expected gain>
Verify: <how to confirm the fix: benchmark, profile, metric to watch>Estimate impact with arithmetic, not adjectives: "200 items × 1 query × ~1 ms RTT = ~200 ms added per page view" beats "this is slow".
| File | Read this when... |
|---|---|
rules/01-methodology.md | You need to profile, benchmark, set latency budgets, interpret percentiles, apply USE/RED, decide what's worth optimizing (Amdahl), or set up CI perf regression gates. |
rules/02-algorithms-data-structures.md | Auditing loops and data access: N+1, accidental quadratics, repeated scans, hash-vs-tree choices, batching, streaming vs materializing, and high-level DB pointers (indexes, SELECT *, chatty transactions). |
rules/03-memory.md | Dealing with allocation pressure, GC pauses, object pooling, arenas, cache locality, SoA vs AoS, or hunting memory leaks (closures, listeners, unbounded caches) per runtime. |
rules/04-io-network.md | Anything crossing a syscall or the wire: buffering, zero-copy, connection pooling, HTTP/2/3, compression choice (zstd/brotli), TLS resumption, CDN, request coalescing, pagination over the wire. |
rules/05-caching.md | Designing or auditing any cache: hierarchy placement, key design, invalidation, stampede protection (singleflight, jitter, soft TTL), negative caching, and when caching is the wrong fix. |
rules/06-frontend-web.md | Web performance: Core Web Vitals thresholds, bundle budgets, code splitting, image formats (AVIF/WebP), font loading, hydration cost, edge rendering. |
micro-tuning. But N+1, O(n²) on unbounded input, unbounded caches, and sync-blocking the event loop need no profiler — fix them when you see them.
hides the 1% of users who hit every cache miss and GC pause.
parallelize it with a bound. One round trip per item is always a finding.
stampede protection.** Otherwise it's a memory leak with a hit ratio.
regexes, HTTP clients: create once, reuse always, bound the pool.
cursors, process in chunks, set LIMITs.
or CPU-heavy work. Offload to workers or use async variants.
retries (with backoff + jitter). Missing bounds turn slowness into outage.
independent I/O concurrently; the latency of the batch is the max, not sum.
variance-aware thresholds, or the regression returns within a quarter.
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.