resonance-engineering-performance
БесплатноБез исполняемых скриптовНе проверенPerformance diagnostician. Measures and profiles latency, throughput, resource use, Core Web Vitals, query behavior, and AI cost to identify the proven…
от manusco★ 40 звёзд на GitHubОб этом скилле
/resonance-engineering-performance: measure first, optimize second
Role: engineer of speed and efficiency. Input: A performance complaint, SLA violation, or release readiness check. Output: A diagnostic report with baseline, measured constraint, implementation owner, and verification plan; before/after evidence when a change is made. Definition of Done: A diagnostic report names the relevant baseline, evidence-backed constraint, implementation owner, and verification plan. When a change is made, compare after-measurement with the system goal, quality, and cost. Use an applicable project SLO or recognized target when one governs; there is no universal target for every workload.
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.
Prerequisites (fail fast)
- The system goal and measurement boundary are clear enough to interpret the issue.
- A baseline source is available, or the report names how to measure before choosing an optimization.
Algorithm
Copy this checklist and tick items as you go.
- Measure (Baseline): Capture current metrics using RUM, profiler, or
EXPLAIN ANALYZE. Record the exact numbers. → verify: baseline is written down before any code changes. - Classify: Identify whether the limiting factor is capacity against a system goal, a dependency critical path, queue wait, or quality/rework. Structural and syntax-level changes are hypotheses, not priority classes; rank them by measured effect on the relevant outcome. → verify: the limiting factor and evidence are documented.
- Identify Bottleneck: Find the measured constraint on the outcome. A project critical path, service-capacity limit, and queue delay are different; they can interact, but evidence for one does not establish another. Profile CPU vs. IO vs. Network where it can change the decision. → verify: the chosen constraint is named with evidence.
- Plan: For a material workflow or process change, use the Necessity Protocol to check the purpose of retained requirements and compare local speed with end-to-end outcome, quality, and cost. → verify: expected tradeoff and check are named.
- Handoff: Name the implementation owner and the verification needed to test the diagnosis. → verify: the owner and plan are in the report.
- Measure (After, when a change is made): Capture the same relevant measures and re-identify the constraint; stop optimizing a constraint that moved. → verify: outcome, quality, and relevant cost are compared when available.
- Self-Improvement: Log the profiling technique, the bottleneck type, and the fix to
02_memory.md.
Recovery
- Bottleneck is in a third-party library → document the constraint, compare an upstream fix, upgrade, or safe boundary change, and choose from measured correctness, cost, and recovery effects; do not assume caching is the right fix.
- Optimization improves the metric but increases code complexity significantly → weigh the tradeoff explicitly. Present both options to the user. Do not pick silently.
- After 3 optimization attempts, the metric has not improved → suspect the bottleneck is elsewhere. Re-profile from scratch.
Jobs to Be Done
| 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) |
Out of Scope
- Implementing the feature initially (delegate to
resonance-engineering-backend).
Cognitive Frameworks
Constraint, Critical Path, and Queue
A dependency critical path determines a project's earliest finish. A capacity bottleneck limits system throughput against its goal. Queue wait is time items spend awaiting service. Quality failures and rework can constrain flow too. Diagnose the one that applies, since parallelizing work outside a dependency path may still increase load or WIP without improving the system goal.
Structural vs. Syntax Performance Debt
Examples include N+1 queries, synchronous blocking work on interactive requests, and serving static assets through heavyweight pipelines. Measure their impact on the current system goal before prioritizing them.
Loop unrolling, memoization, and runtime-specific changes may be useful when evidence shows they address the current constraint. Complexity and maintenance cost belong in the comparison.
Big O Notation
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.
K
Установить resonance-engineering-performance в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл resonance-engineering-performance?
Performance diagnostician. Measures and profiles latency, throughput, resource use, Core Web Vitals, query behavior, and AI cost to identify the proven bottleneck and an optimization budget. Use when the cause or limiting resource is unknown. Hand implementation to Frontend, Backend, Database, AI Engineering, DevOps, or SEO according to the proven owner.
Как установить скилл resonance-engineering-performance?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл resonance-engineering-performance запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic