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.
npx skills add last9/last9-mcp-server --skill diagnose-error-rategit clone --depth 1 https://github.com/last9/last9-mcp-serverWrote 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.
[](https://agentmods.dev/skills/last9/last9-mcp-server/diagnose-error-rate)<a href="https://agentmods.dev/skills/last9/last9-mcp-server/diagnose-error-rate"><img src="https://agentmods.dev/badge/skills/last9/last9-mcp-server/diagnose-error-rate/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.
<a href="https://agentmods.dev/skills/last9/last9-mcp-server/diagnose-error-rate"><img src="https://agentmods.dev/badge/skills/last9/last9-mcp-server/diagnose-error-rate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00025 | $0.01119 |
| Opus 5.5 | $0.00010 | $0.00448 |
| Sonnet 5.5 | $0.00005 | $0.00224 |
| Haiku 4.5 | $0.00003 | $0.00112 |
Grade A, and why
diagnose-error-rate 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.
How it starts
The opening of the file, as written. The whole thing — 25 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Workflow: diagnose an elevated error rate 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.
- Call get_service_performance_details (service_name=, env=) over to confirm the error-rate rise and find the failing operation.
- Call get_change_events (service_name=) over ; if a change precedes the errors, call analyze_change_impact with that event as change_event:
no significant changerules the change out, so move on;insufficient datadoes not, so keep the change a suspect. - Call get_exceptions for to identify the dominant aggregate exception type. Its rows are not trace samples and do not provide exact exception time bounds.
- If telemetry.traces != "absent", call get_service_traces for representative failing traces of that operation; otherwise skip trace tools.
- If telemetry.logs != "absent", first call get_emerging_log_patterns(service_name=, env=) over to see which log templates are new or changed against the preceding window, adding severity_filters=["error", "fatal", "critical"] only when severity_set is "all". When severity_set is none or partial, severity lives in the body and that filter would drop those lines, so omit it and add body_filters=["error", "exception", "fatal"] instead: unfiltered, info and debug templates can fill the sample and top_n and fold error templates into other. If the service's error lines carry none of those words, omit body_filters, raise top_n (maximum 100) and sample_size (maximum 5000), and read error templates from the result. An empty patterns list means no log novelty above min_count and change_factor, not unchanged logs: say so, mention below_min_count_patterns when it is non-zero and any window with sample_limit_reached, and do not manufacture a log finding. Then AGGREGATE FIRST: call get_logs with a count pipeline using profile.signal_shape — use signal_shape.level_field when the profile reports one; when it does not, discover the field with get_log_attributes_for_pipeline instead of guessing a name (never SeverityText when severity_set is none or partial); if log_format is "json", add parse stage per signal_shape.parse_hint; gate on ERROR/FATAL using the level field; aggregate $count grouped by logger. Then call get_log_patterns(service_name=, env=) over , with the same severity_filters and body_filters rules, to name the dominant error templates — all before reading any raw lines. When telemetry.logs == "absent", skip log tools.
- Call get_service_dependency_graph to check whether the errors originate from a downstream dependency.
Report the dominant error, whether it is local or downstream, and the log or trace signal that explains it. Map to each tool's own time window.
Additional rendered branches: Workflow: diagnose an elevated error rate in over .
- 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 error-rate rise and find the failing operation.
- If telemetry.logs != "absent", first call get_emerging_log_patterns(service_name=) over to see which log templates are new or changed against the preceding window, adding severity_filters=["error", "fatal", "critical"] only when severity_set is "all". When severity_set is none or partial, severity lives in the body and that filter would drop those lines, so omit it and add body_filters=["error", "exception", "fatal"] instead: unfiltered, info and debug templates can fill the sample and top_n and fold error templates into other. If the service's error lines carry none of those words, omit body_filters, raise top_n (maximum 100) and sample_size (maximum 5000), and read error templates from the result. An empty patterns list means no log novelty above min_count and change_factor, not unchanged logs: say so, mention below_min_count_patterns when it is non-zero and any window with sample_limit_reached, and do not manufacture a log finding. Then AGGREGATE FIRST: call get_logs with a count pipeline using profile.signal_shape — use signal_shape.level_field when the profile reports one; when it does not, discover the field with get_log_attributes_for_pipeline instead of guessing a name (never SeverityText when severity_set is none or partial); if log_format is "json", add parse stage per signal_shape.parse_hint; gate on ERROR/FATAL using the level field; aggregate $count grouped by logger. Then call get_log_patterns(service_name=) over , with the same severity_filters and body_filters rules, to name the dominant error templates — all before reading any raw lines. When telemetry.logs == "absent", skip log tools.
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.
- today Changed · +5 lines 69d4f9e2839e
- yesterday First seen · 20 lines · 25 tokens per session scan A ae349c68c168
diagnose-error-rate is a skill published in the GitHub repository last9/last9-mcp-server (62 stars, last pushed today), licensed Apache-2.0. It adds 25 tokens to every session and 1,119 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.
diagnose-error-rate compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| diagnose-error-ratelast9/last9-mcp-server | Skill | 62 | today | Apache-2.0 | A | 25 | Claude Code, Codex |
| observability-phoenixdavila7/claude-code-templates | Skill | 35k | today | MIT | A | 47 | Claude Code, Codex |
| langsmith-observabilitysynthetic-sciences/openscience | Skill | 4.5k | yesterday | Apache-2.0 | A | 45 | Claude Code, Codex |
| detecting-process-injection-techniquesadriannoes/awesome-agentic-ai | Skill | 111 | 8d ago | MIT | A | 78 | Claude Code, Codex |
| systematic-debuggingmonoscope-tech/monoscope | Skill | 2.2k | today | AGPL-3.0 | A | 21 | Claude Code, Codex |
| investigating-ransomware-attack-artifactsadriannoes/awesome-agentic-ai | Skill | 111 | 8d ago | MIT | B | 36 | Claude Code, Codex |
| signoz-investigating-alertsSigNoz/agent-skills | Skill | 22 | 9d ago | MIT | A | 138 | Claude Code |