investigate-latency-spike

investigate-latency-spike is a skill for Claude Code, Codex from last9/last9-mcp-server. It costs 28 tokens per session (435 once invoked), scanned A, original, Apache-2.0.

A workflow for investigating a latency spike in a service. Latency is the time a system takes to respond; the workflow compares performance data with changes, traces, logs, and dependencies.

In plain words
What is it for?
Use it to investigate rising p95 or p99 response times, find slow operations, inspect representative traces, and check service dependencies.
Why use it?
It gives an ordered way to determine whether a slowdown comes from a recent change, a particular operation, or another service. It also skips trace steps when trace data is unavailable.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to investigate rising p95 or p99 response times, find slow operations, inspect representative traces, and check service dependencies.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/last9/last9-mcp-server/investigate-latency-spike
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add last9/last9-mcp-server --skill investigate-latency-spike
Clone the repo
git clone --depth 1 https://github.com/last9/last9-mcp-server

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for investigate-latency-spike

README.md
[![agentmods](https://agentmods.dev/badge/skills/last9/last9-mcp-server/investigate-latency-spike/github.svg)](https://agentmods.dev/skills/last9/last9-mcp-server/investigate-latency-spike)
Your own site
<a href="https://agentmods.dev/skills/last9/last9-mcp-server/investigate-latency-spike"><img src="https://agentmods.dev/badge/skills/last9/last9-mcp-server/investigate-latency-spike/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for investigate-latency-spike

Your own site · 80×15
<a href="https://agentmods.dev/skills/last9/last9-mcp-server/investigate-latency-spike"><img src="https://agentmods.dev/badge/skills/last9/last9-mcp-server/investigate-latency-spike.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 435 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00028 $0.00435
Opus 5.5 $0.00011 $0.00174
Sonnet 5.5 $0.00006 $0.00087
Haiku 4.5 $0.00003 $0.00044

Measured today against content hash 55d33515dea7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

investigate-latency-spike scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/amp/last9/references/skills/investigate-latency-spike/SKILL.md · 24 lines

What it actually says

Workflow: investigate a latency spike in (env "") over .

Steps: 0. Call get_service_profile(service_name=). Use the result for all routing below — do not re-derive telemetry shape via PromQL or attribute probing.

  1. Call get_service_performance_details (service_name=, env=) over to confirm the p99/p50 rise and locate the slow operation.
  2. Call get_change_events (service_name=) over ; if a change precedes the spike, call analyze_change_impact with that event as change_event: no significant change rules the change out, so move on; insufficient data does not, so keep the change a suspect.
  3. Call get_apm_service_deviations to find which attributes or operations deviate from baseline.
  4. If telemetry.traces != "absent", call get_service_traces for representative slow traces of the deviating operation; otherwise skip trace tools.
  5. Call get_service_dependency_graph to see whether the latency originates downstream.
  6. If a downstream span errors and telemetry.traces != "absent", call get_exceptions on that service to confirm the root cause.

Report the slowest operation, whether it is local or downstream, and the specific signal that explains the spike. Map to each tool's own time window (lookback minutes or an absolute range).

Additional rendered branches: Workflow: investigate a latency spike in over .

  1. Pick env from profile.deployment.envs; if multiple or empty, call get_service_environments for and pick the affected one — then call get_service_performance_details (service_name=) over to confirm the p99/p50 rise and locate the slow operation.
Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed · +4 lines 55d33515dea7
  2. yesterday First seen · 20 lines · 28 tokens per session scan A ab560646a72a

Subscribe to this mod's changes

investigate-latency-spike is a skill published in the GitHub repository last9/last9-mcp-server (62 stars, last pushed today), licensed Apache-2.0. It adds 28 tokens to every session and 435 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-12-05.

Related

investigate-latency-spike compared with skills from other repositories

investigate-latency-spike next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
investigate-latency-spikelast9/last9-mcp-serverSkill62todayApache-2.0A28Claude Code, Codex
observability-phoenixdavila7/claude-code-templatesSkill35ktodayMITA47Claude Code, Codex
langsmith-observabilitysynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A45Claude Code, Codex
detecting-process-injection-techniquesadriannoes/awesome-agentic-aiSkill1118d agoMITA78Claude Code, Codex
systematic-debuggingmonoscope-tech/monoscopeSkill2.2ktodayAGPL-3.0A21Claude Code, Codex
investigating-ransomware-attack-artifactsadriannoes/awesome-agentic-aiSkill1118d agoMITB36Claude Code, Codex
signoz-investigating-alertsSigNoz/agent-skillsSkill229d agoMITA138Claude Code