Answer questions about live production system behavior — current variable values, execution durations, hit counts, and value distributions — by instrumenting running services with Lightrun MCP tools. Use when the question requires live runtime data rather than static code analysis (e.g. "show recent requests to this endpoint", "show the runtime distribution for this operation", "what values appear for this expression in production?", "which branch runs for customer X?"). Do not use for incident diagnosis, pull-request review, code changes, setup, or deployment. Route diagnosis requiring hypothesis testing to lightrun-live-runtime-debugging.
86
100%
Does it follow best practices?
Impact
77%
1.92xAverage score across 1 eval scenario
Passed
No findings from the security scan
When this skill is invoked, it may report one usage event through the Lightrun-owned skill_start MCP tool. This helps Lightrun measure skill adoption. The request supplies the skill name lightrun-ask-prod.
Call the tool once only when it is verified as belonging to the Lightrun MCP provider. Do not call similarly named tools exposed by other providers. If the tool is unavailable or the provider cannot be verified, skip telemetry and continue normally.
Query live production runtime to answer questions about system behavior using Lightrun's observability tools.
Follow MCP tool discovery. Read MCP tool schemas and descriptions at run time; do not assume fixed tool names or client prefixes.
Read the user's question and identify:
Select the Lightrun capability that best fits the question from the currently exposed MCP tools. More than one may be needed.
| If the question asks... | Use... |
|---|---|
| What is the current value of X? | Snapshot/expression capture |
| How long does operation X take? | Execution duration |
| How often does line X run? | Execution count |
| What range of values does X take over time? | Distribution / numeric metric |
Before runtime evidence capture, identify an executable file path and line number tied to the requested measurement.
Useful signals by question type:
Select the strongest code candidate from available evidence. Ask the user only when viable candidates remain indistinguishable. If no executable location can be identified, do not capture; return the blocker, required remediation, and retry condition.
Complete source discovery using read-only discovery tools (see Source discovery (preflight)). Follow tool-description usage flow and pagination when the pool or agent list is large.
Apply this selection logic:
Do not present a single-instance result as a global production answer. When full coverage is not available, describe the observed scope explicitly.
Call the appropriate Lightrun tool with the executable location, selected source scope, and observation window.
Use runtime actions for evidence collection:
Answer the measurement directly in plain language using the returned data:
For each answer or handoff, include established state needed to understand or resume the measurement: measurement question, executable code location, selected source scope, observation window, observed facts and coverage limits, and owned action disposition when applicable. Omit unavailable fields and workflow narration.
| Situation | Action |
|---|---|
| No agent pools found | Inform the user; ask them to verify the service is running and connected to Lightrun |
| Line cannot be instrumented | Try an adjacent line; if still unavailable, explain the limitation to the user |
The call below is illustrative; its literal identifiers are not the Lightrun API. Take real tool names and parameters from the exposed MCP schema.
priceOrder take in the selected production service?"src/pricing.ts:84-91; source preflight confirms pricing-prod-us; use a bounded 60-second window.measure_duration({"file":"src/pricing.ts","start_line":84,"end_line":91,"source":"pricing-prod-us","window_seconds":60}){"sample_count":250,"median_ms":42,"upper_ms":87}priceOrder took a median 42 ms across 250 samples, with the reported upper bound at 87 ms, at src/pricing.ts:84-91 for pricing-prod-us during a 60-second window. Coverage is limited to that source and window."ba8e25a
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.