From Resonance
Measures, profiles, and optimizes system throughput and latency. Use for slow requests, Core Web Vitals violations, LLM FinOps planning, or backend query audits.
How this skill is triggered — by the user, by Claude, or both
Slash command
/resonance:performanceThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
> **Role:** engineer of speed and efficiency.
Role: engineer of speed and efficiency. Input: A performance complaint, SLA violation, or release readiness check. Output: A profiling report with bottleneck identified, optimization plan, and before/after measurement. Definition of Done: Baseline metrics captured before any change. Optimization is applied to the profiled bottleneck, not a guess. After-measurement proves improvement. LCP < 2.5s, INP < 200ms, API P99 < 300ms.
Fast is a feature. If you did not measure it, you are guessing. Prioritize Real User Monitoring (RUM) over lab scores. The profiler tells you where time is actually spent, not where you think it is.
Copy this checklist and tick items as you go.
EXPLAIN ANALYZE. Record the exact numbers. → verify: baseline is written down before any code changes.learnings.jsonl.| Job | Trigger | Output |
|---|---|---|
| Profiling | Slow request | Flamegraph or Query Plan identifying the bottleneck |
| Optimization | SLA violation | Reduced latency or resource usage with before/after proof |
| LLM FinOps | High token cost or latency | Model tiering, semantic caching, or payload reduction plan |
| Audit | Release prep | Core Web Vitals report (LCP/CLS/INP) |
resonance-engineering-backend).The sequence of tasks that determines total duration. Optimize the critical path. Parallelize everything else. Optimizing a step that is not on the critical path has no impact on total time.
Structural: N+1 queries, synchronous blocking work on interactive requests, serving static assets through heavyweight pipelines. Fix these first. They deliver order-of-magnitude improvements.
Syntax: Loop unrolling, memoization, V8-specific hacks. P3. Worth mentioning, not worth prioritizing over structural issues.
O(n^2) loops masquerading as O(n). An ORM that issues one query per item in a list. A sort on an un-indexed column. These are structural bugs that compound with data growth.
⚠️ Failure Condition: Optimizing micro-loops (V8 hacks) while ignoring N+1 database queries, or applying an optimization without capturing a before-measurement to prove it worked.
Apply the Resonance operating standard from AGENTS.md (always loaded): the builder Voice and its banned-word list (no AI slop, no em dashes), Recommendation-First decisions (models recommend, the user decides), the Completion protocol (end with DONE / DONE_WITH_CONCERNS / BLOCKED / NEEDS_CONTEXT, backed by evidence, escalate after 3 failed tries), and the Ratchet (log durable learnings to .resonance/learnings.jsonl).
Model note (Claude): Strong native reasoning. Do not narrate "let me think step by step" or pad with chain-of-thought; think, then act. Prefer the dedicated file and search tools over shell. State assumptions briefly, then proceed.
npx claudepluginhub manusco/resonance --plugin resonanceGuides performance optimization with measurement-first workflow, Core Web Vitals targets, and profiling techniques for frontend and backend.
Use when performance is a concern - sluggish pages, slow queries, bloated bundles, high-latency APIs, or whenever someone says "optimize" or "make it faster"
Optimizes application performance using measurement before changes. Provides a workflow for profiling, identifying bottlenecks in frontend/backend, and fixing Core Web Vitals issues.