Guide deterministic runtime investigations in environments using Lightrun MCP tools, 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.
60
41%
Does it follow best practices?
Impact
89%
1.27xAverage score across 3 eval scenarios
Passed
No known issues
Optimize this skill with Tessl
npx tessl skill review --optimize ./skills/lightrun-error-remediation-automation/SKILL.mdProvide a repeatable runtime debugging workflow that helps QA and engineers investigate incidents to a fix proposal with focused, high-signal runtime evidence.
This skill requires saving small investigation state (e.g., problem IDs, hypothesis IDs, runtime action IDs, timestamps, status flags, or cleanup status) to persist between unattended sessions.
Storage Discovery Protocol:
AutomationMemory, or an equivalent agent-native durable automation memory when available. Store one durable record per unique problem ID and update it as hypotheses, runtime action IDs, outputs, and cleanup status change.state.json. This ban does not apply to an explicitly exposed durable automation memory facility such as Cursor AutomationMemory when it supports read/update by stable key.state-storage-unavailable.This skill may run unattended and with different coding agents. Do not rely on agent-specific directories, local files, user-home directories, or interactive prompts for storage, source-selection, or reproduction decisions. Use approved durable persistent storage only: a Memories/Memory MCP, Cursor AutomationMemory, an equivalent agent-native durable automation memory, or another connected persistent store. If required input is unavailable, return a machine-readable blocker with an explicit retry condition instead of asking the user.
get_runtime_sourcesagentNames or customSourceName or tagNames.get_runtime_sources.get_runtime_sources returns valid sources.get_runtime_sources.runtime-source-ambiguous with an explicit retry condition.state-storage-unavailable and do not schedule runtime actions. When state storage is available, save action IDs, cleanup status, and related investigation state before ending the run.When a Lightrun runtime action is created for a hypothesis, the investigation MUST verify whether the expected result is available before moving to diagnosis or fix delivery. Verification is a single status or result check per investigation run, not an open-ended polling loop.
reproduction-required with exact trigger instructions, persist the active action, and leave the action active when it is still needed; do not open a PR, implement a local fix, cancel the action, or issue a final diagnosis.reproduction-required; do not open a PR, implement a local fix, or issue a final diagnosis unless the terminal action result itself definitively falsifies the hypothesis.reproduction-required with the updated action window and explicit retry condition.Use this skill in the following sequence:
reproduction-required with the action retained.
3.4. If all related Lightrun actions failed and no further hypothesis investigation is possible from them, cancel these actions, quit the known-problem logical branch, and continue as if there were no actions at all; add new actions only after generating a new hypothesis.
3.5. Cancel any related Lightrun actions created by this skill that are no longer required.
3.6. Update hypothesis statuses after verification of signals using action IDs or result identifiers from persistent storage.
3.7. Summarize final diagnosis based on hypothesis statuses.
3.8. Open a PR with the fix proposal when possible; implement a minimal local source-code fallback only if PR creation is blocked.
3.9. Finish the current investigation run and stop the chat immediatelyreproduction-required with the active action ID, reproduction steps, and retry condition, then stop.Investigation template:
get_runtime_sourcesruntime-source-ambiguous is returned with an explicit retry condition.agentPoolName + selector mode(s))state-storage-unavailable when safe state persistence cannot be selectedruntime-source-ambiguous when no defensible target was selectedget_runtime_sources appears before any runtime evidence tool.890166b
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.