perf-analyzer
Use when an org role acts as perf analyzer and must find where time, memory and coordination overhead go, separating real regressions from noise. Covers baselines, p50-p99 percentiles, cross-layer metrics, flame graphs, anomaly detection and before/after re-measurement of fixes.
- License 许可
- Apache-2.0
- 所属仓库
- monoes/monomind
- 最近更新
- 2026-11-10
- Stars
- ★ 23
- Forks
- 2
01 前言 Front Matter
- name
- perf-analyzer
- tags
- [ "engineering", "performance", "observability", "debug" ]
- tools
- [ "monograph_query", "monograph_context", "monograph_impact" ]
- source
- https://github.com/monoes/monomind
- license
- Apache-2.0
- description
- Use when an org role acts as perf analyzer and must find where time, memory and coordination overhead go, separating real regressions from noise. Covers baselines, p50-p99 percentiles, cross-layer metrics, flame graphs, anomaly detection and before/after re-measurement of fixes.
03 SKILL.md 正文
Perf Analyzer — Best Practices
Focus
Diagnoses where time, memory, and coordination overhead actually go in a running system — collecting metrics, detecting bottlenecks, and separating real regressions from noise.
Best practices
- Always establish a baseline before judging any number — "slow" only means something relative to a prior measurement or an SLA.
- Collect metrics across layers at once (CPU, memory, I/O, network, queue depth, agent-level latency) so correlated causes aren't missed.
- Use percentiles (p50/p90/p95/p99), not just averages — averages hide the tail latency that actually hurts users.
- Correlate metrics across time windows before declaring a bottleneck; a single spike is not a pattern.
- Prioritize findings by business/user impact, not by which number is easiest to fix.
- Distinguish symptom from root cause — e.g. high CPU is often a symptom of a lock contention or N+1 query, not the root cause itself.
- Re-measure after every proposed fix; never accept a theoretical improvement without a before/after comparison.
- Track recurring bottleneck signatures over time — the same class of issue reappearing is more valuable data than a one-off spike.
Common pitfalls
- Optimizing the first hot function found by a profiler instead of the one on the critical path.
- Reporting raw averages that mask tail latency problems affecting a meaningful subset of requests.
- Treating a single anomalous measurement as a trend without checking for confounding load or environment changes.
- Chasing CPU/memory numbers in isolation without checking coordination overhead (locking, queueing, cross-agent messaging) in multi-agent or distributed systems.
- Declaring victory on a fix without a controlled before/after comparison under equivalent load.
Tools & techniques
- Flame graphs / CPU sampling profilers to find real hotspots, not guessed ones.
- 3-sigma or statistical-threshold anomaly detection over time series to flag genuine deviations.
- SLA/SLO-based evaluation (availability, response time, error rate, throughput) rather than raw metric thresholds.
- Bottleneck pattern signatures (recurring type + component + root cause) tracked over time to catch systemic issues.
- Resource utilization percentile breakdowns (p50/p90/p95/p99) per component to isolate tail-latency contributors.
04 同仓库更多 Skills
zk-steward
Org role guidance for a ZK steward: engineer zero-knowledge proof systems with circuit design, SNARK vs STARK choice and security review. This is zero-knowledge cryptography, not Zettelkasten note-taking.
writing-plans
Use when you have a spec or requirements for a multi-step coding task and must write an implementation plan before touching code. Produces bite-sized TDD tasks with exact file paths, code and commands for an engineer with zero context.
write-spec
Write a feature spec or PRD from a problem statement or feature idea. Use when turning a vague idea or user request into a structured document, scoping a feature with goals and non-goals, defining success metrics and acceptance criteria, or breaking a big ask into a phased spec.
write-query
Write optimized SQL for your dialect with best practices. Use when translating a natural-language data need into SQL, building a multi-CTE query with joins and aggregations, optimizing a query against a large partitioned table, or getting dialect-specific syntax for Snowflake, BigQuery, Postgres, etc.
workflow-automation
Org role guidance for workflow automation: build and maintain CI/CD definitions in GitHub Actions or equivalent: triggers, jobs, matrices, caching. Covers path filters, dependency caching, parallel jobs, timeouts and fail-fast ordering.
workflow-architect
Org role guidance for a workflow architect: map full workflow trees for systems, user journeys and agents, covering every branch and failure. Covers discovering workflows from code, handoff contracts, timeouts, recovery paths and observable state.