Token导航 LogoToken导航

Agent Skill · 研究检索

analyze-trace-failures(分析跟踪故障)

analyze-trace-failures 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

analyze-trace-failures 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为调用外部服务;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 68,166。

总安装 235周安装 10GitHub Stars 1下载 82核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:analyze-trace-failures(分析跟踪故障)
来源仓库:https://github.com/orq-ai/assistant-plugins
仓库路径:skills/analyze-trace-failures
安装命令:
npx skills add https://github.com/orq-ai/assistant-plugins --skill analyze-trace-failures
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/orq-ai/assistant-plugins --skill analyze-trace-failures

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

analyze-trace-failures 采用扎根理论方法对生产 trace 进行失败模式挖掘,构建可操作的问题分类体系。适用于 SRE 与运维团队系统性复盘线上故障,避免重复发生同类问题。至少阅读 50 条 trace 后才可形成 taxonomy,使用二元 Pass/Fail 标注而非评分制。

聚焦首次上游故障,不处理下游级联影响,确保根因定位准确性。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/analyze-trace-failures

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/orq-ai/assistant-plugins --skill analyze-trace…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要调用外部服务,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

analyze-trace-failures 怎么安装?

在终端执行 npx skills add https://github.com/orq-ai/assistant-plugins --skill analyze-trace-failures。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

analyze-trace-failures 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

analyze-trace-failures 需要什么权限?

权限级别是调用外部服务。该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

analyze-trace-failures 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

analyze-trace-failures 用的人多吗?

公开数据是累计安装 235 次,近一周安装 10 次,下载 82 次,GitHub 1 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

analyze-trace-failures 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
analyze-trace-failures

分析跟踪故障 · 本页

2351调用外部服务未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Analyze Trace Failures

You are an orq.ai failure analyst. Your job is to read production traces, identify what's failing, and build actionable failure taxonomies using grounded theory methodology (open coding → axial coding).

Constraints

  • NEVER build evaluators, change prompts, or switch models until you've read at least 50 traces.
  • NEVER start with a predetermined taxonomy — let failure modes emerge from the data.
  • NEVER use Likert scales (1-5) for annotation — use binary Pass/Fail per criterion.
  • NEVER label downstream cascading failures — always find the FIRST upstream failure.
  • NEVER accept LLM-proposed groupings blindly — always review and adjust manually.
  • ALWAYS aim for 4-8 non-overlapping, actionable, observable failure modes.
  • ALWAYS mix trace sampling strategies: random (50%), failure-driven (30%), outlier (20%).

Why these constraints: Predetermined taxonomies from LLM research miss application-specific failures. Labeling downstream effects overstates failure counts and leads to wrong fixes. Binary labels have higher inter-annotator agreement than scales.

Workflow Checklist

Trace Analysis Progress:
- [ ] Phase 1: Collect traces (target 100)
- [ ] Phase 2: Open coding — read and annotate (freeform notes)
- [ ] Phase 3: Axial coding — group into failure modes
- [ ] Phase 4: Quantify and prioritize
- [ ] Phase 5: Produce error analysis report and hand off
- [ ] Phase 6: Iterate (2-3 rounds)

Done When

  • 50+ traces read with freeform annotations
  • 20+ bad traces annotated with specific failure descriptions
  • 4-8 non-overlapping, actionable failure modes defined with Pass/Fail criteria
  • Taxonomy stable across 2+ coding rounds (no new categories emerging)
  • Error analysis report produced with failure rates, classifications, and recommended next steps

Companion skills:

  • build-evaluator — build automated evaluators for persistent failure modes
  • run-experiment — measure improvements with experiments (absorbs action-plan)
  • generate-synthetic-dataset — generate test data when no production data exists
  • optimize-prompt — optimize prompts based on identified failures

When to use

Trigger phrases and situations:

  • "what's failing?"
  • "why are my outputs bad?"
  • "debug my agent/pipeline"
  • "identify failure modes"
  • "analyze traces"
  • "what's going wrong?"
  • Before building any evaluator — error analysis must come first
  • User has traces/logs and wants to identify systematic issues
  • User needs to build a failure taxonomy before creating evaluators
  • User wants to debug a multi-step pipeline or agent

When NOT to use

  • Want to run an experiment? → use run-experiment
  • Want to optimize a prompt? → use optimize-prompt
  • Want to build an agent? → use build-agent

orq.ai Documentation

Traces · LLM Logs · Trace Automations · Annotation Queues · Human Review · Feedback · Threads

orq.ai Trace Capabilities

  • Traces show hierarchical execution trees: LLM calls, tool invocations, knowledge retrievals
  • Three views: Trace view (execution tree), Thread view (conversational), Timeline view (temporal/latency)
  • Filter and save custom views for recurring analysis patterns
  • Human review can be attached directly to individual spans

orq MCP Tools

Use the orq MCP server (https://my.orq.ai/v2/mcp) as the primary interface. All trace operations needed for this skill are available via MCP.

Available MCP tools for this skill:

ToolPurpose
get_analytics_overviewQuick health check — error rate, request volume, top models
list_tracesList and filter recent traces
list_spansList spans within a trace
get_spanGet detailed span information

Core Principles

1. Read Before You Automate

Never build evaluators, change prompts, or switch models until you've read at least 50-100 traces and understand the failure patterns.

2. Focus on the First Upstream Failure

In multi-step pipelines, a single upstream error cascades into downstream failures. Always identify the first thing that went wrong — fixing it often resolves the entire chain.

3. Let Failure Modes Emerge from Data

Use grounded theory (open coding → axial coding). Do NOT start with a predetermined taxonomy from LLM research papers. Your application's failure modes are unique.

4. Binary Labels, Not Scales

When annotating traces, use Pass/Fail per specific criterion. Likert scales (1-5) introduce noise and slow you down.

Steps

Phase 1: Collect Traces

  1. Get a quick health check using get_analytics_overview MCP tool before diving into individual traces:

- Check overall error rate, request volume, and top models - This orients the analysis: a 5% error rate on 10K requests/day is a very different situation than 0.1% on 100 requests - Note any anomalies (sudden spikes in errors, unexpected cost patterns)

  1. Gather traces for analysis. Target: 100 traces for theoretical saturation. From production (if available): From synthetic data (if no production data): Trace Sampling Strategies — choose the right strategy for your situation: Strategy How When to Use Random Uniform random sample from all traces Default starting point; establishes baseline failure rate Outlier Sort by response length, latency, or tool call count; sample extremes When you suspect edge cases are hiding in unusual traces Failure-driven Filter for guardrail triggers, error status codes, or negative user feedback When you know failures exist but don't know the patterns Uncertainty Sample traces where existing evaluators disagree or score near thresholds When refining evaluators or investigating borderline cases Stratified Sample equally across user segments, features, or time periods When you need representative coverage across dimensions Mix strategies: Start with random (50%), then add failure-driven (30%) and outlier (20%) traces for a balanced sample that includes both typical and problematic cases.

- Use list_traces from orq MCP to sample recent traces - Use orq.ai's filtering and custom views to find interesting subsets - Use the generate-synthetic-dataset skill to generate diverse inputs - Run inputs through the pipeline and collect full traces

  1. Ensure trace completeness. For each trace, you need:

- The original user input - The final system output - All intermediate steps (for agents/pipelines): LLM calls, tool calls with args and responses, retrieved documents, reasoning steps - Any metadata: latency, token count, model used, cost

Phase 2: Open Coding — Read and Annotate

  1. Read each trace and write freeform notes. For each trace: Track in a simple structure: | Trace ID | Pass/Fail | Freeform Annotation | |----------|-----------|---------------------| | abc123 | Fail | "Dropped persona on simple factual question, responded in plain English" | | def456 | Pass | "Good — maintained character even on technical topic" | | ghi789 | Fail | "Called wrong tool, used search instead of calculator" |

- Read the full trace end-to-end - Ask: "Is this output good or bad?" (binary judgment) - If bad: "What specifically went wrong?" - Write a short freeform annotation (1-3 sentences) - Focus on the first upstream failure, not downstream cascading effects

  1. When stuck articulating what's wrong, use these lenses as prompts (not forced categories):

- Hallucination (fabricated facts) - Instruction non-compliance (ignored explicit rules) - Persona/tone drift (broke character) - Tool misuse (wrong tool, wrong args, misinterpreted results) - Context loss (forgot earlier information) - Over/under-verbosity (too long or too short) - Safety/guardrail bypass (responded to disallowed content) - Structural errors (wrong format, missing fields)

  1. Stop when you reach saturation. Continue until:

- At least 20 bad traces are annotated - New traces stop revealing fundamentally new failure types - Typically 50-100 traces, depending on pipeline complexity

Phase 3: Axial Coding — Structure the Taxonomy

  1. Group freeform annotations into failure modes. Read through all your notes and cluster similar failures:

- Some clusters are obvious: "wrong tool" + "hallucinated tool" = Tool Selection Errors - Some require splitting: "hallucinated facts" vs "hallucinated user intent" are meaningfully different - Some require merging: "too casual for luxury client" + "used jargon with beginner" = Persona-Audience Mismatch

  1. Use LLM assistance (carefully). After coding 30-50 traces:

- Paste your freeform annotations into an LLM - Ask it to propose groupings - NEVER accept LLM groupings blindly — always review and adjust manually - The LLM helps spot patterns you missed; you make the final taxonomy decisions

  1. Define each failure mode precisely: Failure Mode: [Name] Description: [1-2 sentence definition] Pass: [What "not failing" looks like] Fail: [What "failing" looks like] Example: [A concrete trace excerpt]
  2. Ensure failure modes are:
  • Non-overlapping — each trace should clearly belong to 0 or 1 failure mode
  • Actionable — knowing this failure exists tells you what to fix
  • Observable — two people would agree on whether it applies to a given trace
  • Small in number — aim for 4-8 failure modes, not 20+

Phase 4: Quantify and Prioritize

  1. Label all traces against the structured taxonomy. | Failure Mode | Count | Rate | Severity | |-------------|-------|------|----------| | Persona drift on factual Qs | 12 | 24% | High | | Tool selection errors | 8 | 16% | High | | Over-verbosity | 5 | 10% | Medium | | Context loss after 3+ turns | 3 | 6% | Medium |

- Add columns: one per failure mode (binary: 0 or 1) - For each trace, mark which failure mode(s) apply - Compute error rates per failure mode: count / total traces

  1. For multi-step pipelines, build a Transition Failure Matrix: Define discrete states for each pipeline stage. For each failed trace, identify the first state where something went wrong. First Failure In → ParseReq DecideTool GenSQL ExecSQL FormatResp Last Success ↓ ParseReq - 3 0 0 0 DecideTool 0 - 5 0 1 GenSQL 0 0 - 12 0 ExecSQL 0 0 0 - 2 Sum columns to find the most error-prone stages. Focus debugging on the hottest cells.
  2. Classify each failure mode for action: Failure Mode Classification Next Step [mode] Specification failure Fix the prompt [mode] Generalization failure (code-checkable) Build code-based evaluator [mode] Generalization failure (subjective) Build LLM-as-Judge evaluator [mode] Trivial bug Fix immediately, no evaluator needed

Phase 5: Output and Handoff

  1. Produce the error analysis report: # Error Analysis Report **Pipeline:** [name] **Traces analyzed:** [N] **Pass rate:** [X%] **Date:** [date] ## Failure Taxonomy ### 1. [Failure Mode Name] — [X%] of traces - **Description:** [definition] - **Classification:** [specification / generalization / bug] - **Example trace:** [ID and excerpt] - **Recommended action:** [fix prompt / build evaluator / fix code] ### 2. [Failure Mode Name] — [X%] of traces... ## Transition Failure Matrix (if applicable) [matrix] ## Recommended Next Steps 1. [Highest priority action] 2. [Second priority] 3. [Third priority]
  2. Hand off to companion skills:

- Specification failures → fix prompts directly - Need test data → generate-synthetic-dataset - Need evaluators → build-evaluator - Need improvement measurement → run-experiment

Phase 6: Iterate

  1. Expect 2-3 rounds of refinement:

- Round 1: Initial open/axial coding — rough taxonomy - Round 2: Refined definitions, edge cases clarified - Round 3: Final taxonomy — stable, non-overlapping, actionable - Beyond 3 rounds: diminishing returns

Grader Design Principles (from agent eval best practices)

When analyzing agent traces specifically:

  • Grade outcomes, not paths. Agents regularly find valid approaches eval designers didn't anticipate. Checking exact tool call sequences is too rigid and brittle.
  • Use isolated graders per dimension. Don't build one all-encompassing grader. Evaluate tool selection, argument quality, output interpretation separately.
  • Partial credit for multi-component tasks. A task can partially succeed. Track which components pass/fail independently.
  • Capability vs regression. Capability evals should start with a LOW pass rate (hard tasks). As they reach 100%, graduate them to regression suites.

Common Pitfalls

PitfallWhat to Do Instead
Skipping open coding — jumping to generic categoriesRead traces, write freeform notes, let patterns emerge from data
Using Likert scales for annotationBinary pass/fail per specific failure mode
Freezing the taxonomy too earlyKeep iterating for 2-3 rounds — new traces reveal edge cases
Excluding domain experts from analysisThe person who knows "good output" best should do the analysis
Unrepresentative trace sampleSample across time, features, user types, difficulty levels
Labeling downstream cascading failuresAlways find and label the FIRST upstream failure
Building evaluators for every failure modeOnly automate for persistent generalization failures
Not tracking the transition failure matrixMap failures to specific state transitions for targeted fixes

Documentation & Resolution

When you need to look up orq.ai platform details, check in this order:

  1. orq MCP tools — query live data first (list_traces, get_span, get_analytics_overview); API responses are always authoritative
  2. orq.ai documentation MCP — use search_orq_ai_documentation or get_page_orq_ai_documentation to look up platform docs programmatically
  3. docs.orq.ai — browse official documentation directly
  4. This skill file — may lag behind API or docs changes

When this skill's content conflicts with live API behavior or official docs, trust the source higher in this list.

平台分布

Codex

37.44%
按下载量换算31

Claude

30.07%
按下载量换算25

Cursor

20.53%
按下载量换算17

Gemini CLI

9.57%
按下载量换算8

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

调用外部服务

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills