/lightrun-ai:lightrun-ask-prodfrom lightrun-ai
Answers production behavior questions using Runtime History or live Lightrun instrumentation. Use when runtime evidence is needed (variable values, execution durations, hit counts, distributions) rather than static code analysis.
Ships in lightrun-ai. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
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.
Answer production questions from suitable captured Runtime History, falling back to live measurement when needed.
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 values, request examples, or branch/stack behavior were observed? | Runtime History; snapshot/expression capture if insufficient |
| What is the current value of X? | Runtime History only if sufficiently current; otherwise 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 |
For a new duration, execution-count, or numeric-metric measurement that stored snapshots cannot supply, skip irrelevant history calls and proceed to the live flow. Historical hit counts and deduplicated values are not execution counts or measured production distributions.
When stored snapshots can answer the question, use the exposed Runtime History read tools before creating a live action. Follow the history query guidance; do not gate these reads on active-agent/source preflight.
Empty or insufficient history triggers the existing live flow; it does not prove that code did not execute or that a value did not occur.
Before creating a live action, 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:
unknown otherwise), sample scope, and completeness limits; do not present past captures as current state without sufficient evidenceFor 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 when live measurement is needed | Inform the user; ask them to verify the service is running and connected to Lightrun; this does not block an answer from sufficient history |
| 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."What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (lightrun-platform/lightrun-ai) — no native marketplace selected
npx claudepluginhub p/lightrun-platform-lightrun-skills5 skills in this plugin
/lightrun-error-remediation-automationGuide deterministic runtime investigations in environments using Lightrun MCP tools, using suitable Runtime History before new live actions, with preflight gating, recovery/resume rules, evidence-first diagnosis, PR-first fix proposal delivery, and local source-code fallback only when PR creation is not possible./lightrun-live-runtime-debuggingDiagnose bugs and incidents using suitable captured Runtime History before focused live capture with Lightrun MCP. Use when static analysis or logs cannot explain the failure mechanism, when a hypothesis must be tested against runtime values or control flow, or when resuming Lightrun async actions. For latency, timeout, deadline, SLO, or hang diagnosis, use lightrun-slow-execution-diagnosis when available; if unavailable, continue here with best-effort evidence. Do not use for one-off production measurements (use lightrun-ask-prod when available; otherwise report the measurement-scope gap), pull-request review, code changes, setup, or deployment./lightrun-runtime-aware-pr-reviewUse when reviewing a pull request with runtime or production evidence — for example to review a PR with runtime verification, gather production evidence, or simulate a patch on live samples. Reviews a pull request by diffing against the PR merge base, checking Runtime History before collecting live samples for remaining gaps, and simulating the patch on captured production inputs./lightrun-slow-execution-diagnosisDiagnose performance incidents in running services with Lightrun MCP: slow endpoints, latency or SLO regressions, timeouts, deadline-exceeded errors, hangs, and slowness that is intermittent, sporadic, occasional, happens only sometimes, or appears only under load. Use relevant Runtime History for state/path context before creating live actions. Prefer this over lightrun-live-runtime-debugging, including for mixed slow-and-incorrect cases. Use slow-execution snapshots when a duration boundary separates problematic executions; use focused active-path snapshots or call stacks for known hangs that may not reach an end marker. Select the narrowest code section, derive an evidence-based threshold, and correlate captured state with code and telemetry. Use lightrun-live-runtime-debugging for non-performance diagnosis and lightrun-ask-prod for one-off timing, when available; otherwise report the scope gap. Do not use for pull-request review, code changes, setup, deployment, or post-deployment performance validation.2 plugins in one repository ship this exact skill · first indexed Nov 20, 2026
Other plugins' skills for the same job