performance

Diagnose bottlenecks and design caches using measurement-driven profiling workflows.

1|Updated Apr 24, 2026
One-click install
npx skills add https://github.com/kreek/consult --skill performance-kreek
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: performance
Source: https://github.com/kreek/consult/tree/main/plugin/skills/performance
Command: npx skills add https://github.com/kreek/consult --skill performance-kreek

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Teams often optimize code based on intuition rather than evidence, shipping changes that add complexity without measurable gains or that regress tail latency and memory. This Skill enforces a measure-first discipline for performance work and cache design. ## Core Features & Use Cases - Measurement Discipline: Requires naming a target metric (p99 latency, throughput, CPU, allocation) and capturing a baseline on production-shaped data before changing code. - Controlled Optimization: Enforces one performance change per commit, re-measured under the same workload, with checks that memory, error rate, and tail latency did not regress. - Cache Design Governance: Requires naming source of truth, invalidation trigger, stale tolerance, key contract, stampede protection, TTL/jitter, and metrics before keeping a cache. - Use Case: When a service endpoint is slow, use this Skill to profile the actual bottleneck, benchmark the fix against a baseline, and validate that p99 latency improved without regressing adjacent metrics. ## Quick Start Use the performance skill to profile this slow endpoint, establish a latency baseline, and design a caching strategy with explicit invalidation rules.

Frequently Asked Questions about performance

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize slow code without guessing?▼

Measure first: name the target metric such as p99 latency or allocation rate, capture a baseline on production-shaped data, then optimize only the measured bottleneck. Re-measure under the same workload before keeping the change.

How to design a cache with proper invalidation?▼

Define the source of truth, invalidation trigger, stale tolerance, key contract, stampede protection, TTL with jitter, and metrics before adding the cache. Treat TTL as a safety net, not the invalidation strategy, and prefer event or key-based expiration.

Why is average latency misleading for performance testing?▼

Averages hide tail behavior, so a change can improve the mean while worsening p95 or p99 latency that users actually feel. Always check tail percentiles and adjacent metrics like memory and error rate before keeping an optimization.

When should I not use this performance skill?▼

Avoid it for concurrency correctness issues without measured slowness, which belong to async-systems work, and for query safety without profiling context, which belongs to database work. It targets measured slowness and cache design only.

What makes a load test benchmark trustworthy?▼

Latency load generators must avoid coordinated omission, or the p99 results are fiction. Benchmarks should run under the same workload and environment as the baseline, with raw results or profile artifacts saved for comparison.