Skip to content
Back to skills

Distributed Trace Analysis

ASecurity

Use this skill when you need to analyze distributed traces for call paths, latency, errors, and evidence gaps; triggers include 分布式 Trace 分析 and distributed trace analysis.

  • 313 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 6, 2026
ai-agentsgotestinggit

Security analysis

A100/100

Pro scans all 12 files and shows the line behind each finding

Scanned November 6, 2026

npx -y skills add naodeng/awesome-qa-skills --skill distributed-trace-analysis --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Distributed Trace Analysis?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Distributed Trace Analysis
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/naodeng-distributed-trace-analysis-awesome-qa-skills/badge)](https://www.skillsdirectory.com/skills/naodeng-distributed-trace-analysis-awesome-qa-skills)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: distributed-trace-analysis
description: Use this skill when you need to analyze distributed traces for call paths, latency, errors, and evidence gaps; triggers include 分布式 Trace 分析 and distributed trace analysis.
license: PolyForm-Noncommercial-1.0.0
metadata:
  version: "1.0.0"
  compatibility: ""
  author: "Awesome QA Skills contributors"
  language: "zh-CN"
  category: "testing-types"
  source: "https://github.com/naodeng/awesome-qa-skills"
  license-url: "https://polyformproject.org/licenses/noncommercial/1.0.0"
---

# 分布式链路分析(中文版)

## 何时使用

- 需要利用 trace、span 和服务拓扑定位跨服务延迟、错误传播与依赖异常。
- 需要对现有方案、结果或证据做风险评审,并形成可执行改进项。
- 输入不完整,但仍需先给出带假设和信息缺口的可用初版。

## 输出格式选项

- 默认输出 Markdown,适合评审、执行和持续补充。
- 用户要求表格、CSV、JSON 或工单格式时,保留同样的风险、证据、优先级和边界字段。
- 若输出会进入自动化流程,先确认字段 schema、枚举值和必填项。

## 如何使用

1. 先阅读并遵循 `prompts/distributed-trace-analysis.md` 的输入、执行规则、最低覆盖清单和输出顺序。
2. 补充真正影响判断的范围、环境、版本、限制、证据和成功标准。
3. 先做输入审计,再区分已确认事实、合理假设和待确认问题。
4. 按风险和证据强度排序,产出可直接执行、评审或验证的结果。
5. 信息不足时不要停在提问:先交付受限初版,并说明哪些结论暂不能成立。

## 参考文件

- 校准领域结果、正确对照或证据缺口时,读取 [references/domain-decision-example.md](references/domain-decision-example.md) 的脱敏输入、逐项预期与复算依据。

- 每次执行必须读取 `prompts/distributed-trace-analysis.md`;它是本 Skill 的完整执行规范。
- 需要评测或回归本 Skill 时,读取 `evals/eval.yaml` 与匹配的 `evals/cases/` 用例。
- 只有目录实际存在且任务需要时,才读取 `references/`、`examples/`、`scripts/` 或 `output-formats.md`,不要假设不存在的资产。

## 领域执行要点

1. 固定 trace/span ID、parent ID、异步 links、服务/部署版本、起止时刻和采样范围;核对父子包含关系与时钟偏差,link 不自动当同步父子。
2. 同一时钟域内按区间并集扣除同步子 span 得 observed exclusive time;重叠子 span 不能相加。缺 span 时只报可见区间,不能宣称真实独占时间。
3. 关键路径根据真实依赖顺序和阻塞等待识别;queue time 需 enqueue/dequeue 证据,不把未解释空白都归为排队。
4. 最慢 span 仅是调查候选,根因需日志/指标/故障实验佐证;缺 span、采样和时钟不确定性分别限制结论。
## 核心约束

- 相关性不等于根因
- 标明采样和时钟偏差
- 不要只盯总耗时而忽略重试与排队
- 不编造输入中不存在的系统行为、字段、数据、指标或根因。
- 关键结论必须关联证据;证据不足时标记为假设并给出验证方法。
- 优先级必须说明业务影响、发生可能性或可探测性依据。

## 交付前自检

- [ ] 已覆盖:关键路径、span 耗时、错误传播、重试放大、上下文丢失、采样偏差、跨区依赖、变更关联。
- [ ] 已区分事实、假设、缺口和建议。
- [ ] 高风险项有明确优先级、证据、负责人或下一步。
- [ ] 输出包含可验证的判断标准,而非泛泛而谈。
- [ ] 未执行未经授权的生产写操作或破坏性动作。

## 常见误区

- 只列检查点,不说明输入条件、预期结果或证据。
- 把所有事项都标为高优先级,失去取舍价值。
- 用工具名或通用理论替代领域判断。
- 输入不完整时直接拒绝,或反过来假装结论已经确定。

## 最佳实践

- 从最可能造成业务损失、安全问题或发布阻塞的路径开始。
- 用最小可验证实验缩小不确定性,并记录复现条件。
- 让输出能够被另一位工程师直接执行和复核。

Files in this skill

  • SKILL.md4.1 KB
  • agents/openai.yaml308 B
  • evals/cases/basic-success.yaml818 B
  • evals/cases/domain-method-regression.yaml1.5 KB
  • evals/cases/edge-incomplete-input.yaml813 B
  • evals/cases/edge-risk-priority.yaml799 B
  • evals/eval.yaml605 B
  • evals/fixtures/check-domain-decisions.sh95 B
  • evals/fixtures/check_domain_decisions.py3.8 KB
  • evals/fixtures/domain-oracle.json241 B
  • prompts/distributed-trace-analysis.md3.7 KB
  • references/domain-decision-example.md1.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.