name: architect-diagnose-performance description: Diagnose latency, saturation, and throughput regressions.
Diagnose Performance
Use when there are latency spikes, timeout increases, throughput drops, or capacity pressure.
Inputs
- Cloudflare Observability MCP (latency/error distributions)
- PostHog MCP (user-facing impact/error trends)
- Recent git commits/PRs for regression correlation
Workflow
- Identify worst affected route/service and incident window.
- Compare baseline vs incident for latency, errors, saturation.
- Determine bottleneck stage and likely trigger.
- Propose smallest safe remediation.
Output
- impacted service/path
- before/after metrics
- bottleneck hypothesis + confidence
- remediation plan