ops-troubleshooting

ops-troubleshooting is a skill for Claude Code, Codex from ccfos/nightingale. It costs 99 tokens per session (4,128 once invoked), scanned A, original, Apache-2.0.

A workflow for investigating incidents in Nightingale, a monitoring platform. It uses alerts, metrics, logs, and target information to trace a problem to its likely direct cause.

In plain words
What is it for?
Use it to troubleshoot incidents, investigate alerts, check metrics and logs, locate faults, or perform a focused root-cause analysis. It is intended to guide step-by-step diagnosis and immediate mitigation.
Why use it?
It keeps an investigation focused on evidence and the relevant time window instead of pulling unrelated data. This helps connect the first anomaly with the alerts and system behavior around it.

Skill for Claude CodeCodex

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

About the project

Nightingale is an open-source monitoring and alerting system that connects to stored metrics and log data, evaluates alert rules, and distributes notifications. Operations teams use it to manage alarms and explore observability data alongside existing data sources and collectors. Catalogue add-ons provide skills for operating Nightingale.

ccfos/nightingale · 13,280 stars · on GitHub · n9e.github.io

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.

agentmods
npx agentmods add skills/ccfos/nightingale/ops-troubleshooting
Any agent
npx skills add ccfos/nightingale --skill ops-troubleshooting
Clone the repo
git clone --depth 1 https://github.com/ccfos/nightingale

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 ops-troubleshooting

README.md
[![agentmods](https://agentmods.dev/badge/skills/ccfos/nightingale/ops-troubleshooting.svg)](https://agentmods.dev/skills/ccfos/nightingale/ops-troubleshooting)
Your own site
<a href="https://agentmods.dev/skills/ccfos/nightingale/ops-troubleshooting"><img src="https://agentmods.dev/badge/skills/ccfos/nightingale/ops-troubleshooting.svg" alt="Measured on agentmods" height="20"></a>
Per session 99 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,128 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00099 $0.04128
Opus 5 $0.00049 $0.02064
Sonnet 5 $0.00020 $0.00826
Haiku 4.5 $0.00010 $0.00413

Measured 6d ago against content hash ad2eea1cc48f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

ops-troubleshooting 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 6d ago.

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.

aiagent/skill/embedded/builtin/ops-troubleshooting/SKILL.md · 353 lines

How it starts

The opening of the file, as written. The whole thing — 353 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Nightingale (n9e) Troubleshooting Expert (SRE Troubleshooting Expert)

You are a senior SRE with more than 10 years of experience, specialized in fault localization and root cause analysis based on the native capabilities of Nightingale (n9e).


Core Principles

  1. Evidence-chain driven: Every inference must be backed by data (alerts, metrics, logs, target information, etc.).
  2. Query on demand: Query step by step based on the current clues; do not blindly pull all data; control the number of returned rows and the time range.
  3. Least privilege: Only call the necessary tools, and do not echo sensitive fields in the results.
  4. Timeline first: Focus on the temporal relationships of the fault; first locate the anomaly's starting point, then expand upstream and downstream.
  5. Locate the direct cause: Do not pursue 100% root-cause coverage; focus on locating the direct cause and the basis for stopping the bleeding.
  6. Focus on the fault time window: Align all queries to the same time range to avoid context mismatch.

How to Obtain Data: Call the n9e Built-in Tools

This skill is entirely based on Nightingale's own data query capabilities, and does not depend on any external UI or browser. All information is obtained through the built-in tools below:

Alert-related

  • search_active_alerts — Query currently active (unrecovered) alerts; supports filtering by severity, keyword, time, business group, rule, and datasource.
  • search_history_alerts — Query historical alerts (including recovered/unrecovered), used for incident retrospectives and timeline analysis.
  • get_alert_event_detail — Get the full detail of a single alert event, including PromQL, tags, rule notes, trigger value, etc.
  • list_alert_rules / get_alert_rule_detail — View alert rule configuration to understand thresholds and trigger conditions.

Datasource & Metrics

  • list_datasources — List all datasources, obtaining datasource_id and plugin_type (prometheus/elasticsearch/loki/ck/mysql/pgsql/tdengine/doris/opensearch/victorialogs).
  • get_datasource_detail — Get datasource details.
  • list_metrics — Search metric names by keyword in Prometheus-type datasources.
  • get_metric_labels — Get all label keys and optional values of a metric, to help construct PromQL filter conditions.

Read the full file on GitHub · 353 lines

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. 6d ago First seen · 353 lines · 99 tokens per session scan A ad2eea1cc48f

Subscribe to this mod's changes

ops-troubleshooting is a skill published in the GitHub repository ccfos/nightingale (13,280 stars, last pushed yesterday), licensed Apache-2.0. It adds 99 tokens to every session and 4,128 once invoked, about $0.0005 per session on Opus 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-08-30.