Lightrun
16
Lightrun 调试 Skill 与 MCP 集成,用于调查生产环境运行时问题。
2 个 Skill
---
name: lightrun-live-runtime-debugging
description: >-
Guide deterministic runtime investigations in live environments using Lightrun
MCP tools, with preflight gating, recovery/resume rules, evidence-first
diagnosis, and explicit blocker/handoff outputs.
---
# Goal
Provide a repeatable live runtime debugging workflow that helps QA and engineers investigate incidents to a diagnosis with focused, high-signal runtime evidence.
# Preconditions
- User can access the target service source path and line location.
- Lightrun MCP server is installed and authenticated.
- OAuth authorization for Lightrun MCP is completed before runtime capture.
# MCP Preflight
Before collecting runtime evidence, run:
- `lightrun__get_runtime_sources`
Pass criteria:
- At least one valid agent pool is returned.
- A concrete target is selected: `agentNames`, `customSourceName`, or `tagNames`.
Fail criteria:
- Tool is unavailable, call fails, or source list is empty.
# Workflow
1. Frame the investigation question.
2. List top hypotheses and expected signals.
3. Run `lightrun__get_runtime_sources`.
4. Select the best runtime source target.
5. Choose the smallest useful set of Lightrun MCP tools for evidence collection.
6. Capture focused runtime evidence.
7. Update hypothesis status after each signal.
8. Produce a diagnosis with confidence, uncertainty, and next action.
# Runtime evidence strategy
Use Lightrun MCP tools to collect focused evidence, such as:
- expression values
- call stacks
- execution duration
- execution duration samples
- execution counts
- numeric runtime metrics
- numeric metric samples
Start with hypotheses first, then choose the tool that can confirm or falsify each hypothesis.
# Missing MCP recovery
If Lightrun MCP is unavailable:
1. Ask the user to install or enable Lightrun MCP.
2. Ask the user to complete OAuth authorization.
3. Ask the user to verify access to the expected environment or agent pool.
4. Re-run `lightrun__get_runtime_sources`.
5. Continue only after preflight succeeds.
# Output format
Return:
- investigation question
- selected runtime target
- hypothesis matrix
- signals collected
- evidence summary
- leading diagnosis
- confidence level
- ruled-out hypotheses
- remaining unknowns
- concrete code-fix proposal
- validation plan
- recommended next step相关插件
Astro↓ 60
Astro Cursor 插件:含官方 Astro Docs MCP、最佳实践规则与 add integration 等 Skill。filestack↓ 6
Filestack 官方插件,可直接在 Cursor 中上传文件、构建转换并生成安全策略。Contentrain↓ 1
面向 Contentrain CMS 的 MCP server,让 AI agent 和人类对其模型、内容和资源进行增删改查,并自动同步 git 分支。Archcore↓ 0
让 AI agent 按照你项目的架构、规则和决策来编写代码。cloudinary↓ 0
在 Cursor 中直接使用 Cloudinary,通过自然对话管理资源、应用转换、优化媒体等。Agent Skills↓ 329
Tech Leads Club 精选 Agent Skills 库——涵盖交付、安全、架构等实战 playbook。Power BI Modeling MCP Server↓ 279
Power BI Modeling MCP:为 AI Agent 提供语义建模能力,支持自然语言执行建模变更。Brilliant Directories↓ 199
Brilliant Directories 官方 MCP 服务器,管理会员、文章、线索、评论等。