read-diag-captures

read-diag-captures is a skill for Claude Code, Codex from grasscaograss/AwesomeWeldoneSkills. It costs 250 tokens per session (2,601 once invoked), scanned A, original, Apache-2.0.

A reader for diagnostic files produced by .NET tools such as dotnet-trace, dotnet-dump, and dotnet-counters. These files contain runtime events, memory snapshots, performance counters, or profiling data.

In plain words
What is it for?
Use it to locate and interpret .nettrace, .speedscope.json, .dmp, and .csv files, including event meanings and performance or memory problems.
Why use it?
It helps turn difficult-to-read diagnostic files into an explanation of what happened in a running application. It also separates these files from ordinary text logs.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to locate and interpret .nettrace, .speedscope.json, .dmp, and .csv files, including event meanings and performance or memory problems.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/grasscaograss/awesomeweldoneskills/read-diag-captures
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add grasscaograss/AwesomeWeldoneSkills --skill read-diag-captures
Clone the repo
git clone --depth 1 https://github.com/grasscaograss/AwesomeWeldoneSkills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for read-diag-captures

README.md
[![agentmods](https://agentmods.dev/badge/skills/grasscaograss/awesomeweldoneskills/read-diag-captures/github.svg)](https://agentmods.dev/skills/grasscaograss/awesomeweldoneskills/read-diag-captures)
Your own site
<a href="https://agentmods.dev/skills/grasscaograss/awesomeweldoneskills/read-diag-captures"><img src="https://agentmods.dev/badge/skills/grasscaograss/awesomeweldoneskills/read-diag-captures/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for read-diag-captures

Your own site · 80×15
<a href="https://agentmods.dev/skills/grasscaograss/awesomeweldoneskills/read-diag-captures"><img src="https://agentmods.dev/badge/skills/grasscaograss/awesomeweldoneskills/read-diag-captures.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 250 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,601 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00250 $0.02601
Opus 5 $0.00125 $0.01300
Sonnet 5 $0.00050 $0.00520
Haiku 4.5 $0.00025 $0.00260

Measured 11d ago against content hash 3eadf1873e97, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

read-diag-captures scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/resolve_diag.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

read-diag-captures/SKILL.md · 111 lines

How it starts

The opening of the file, as written. The whole thing — 111 lines — stays where its author put it; the contents beside it link to each section on GitHub.

读取诊断采集产物

读取并解读 .NET 动态诊断工具链(dotnet-trace/dotnet-dump/dotnet-counters)抓取的采集产物。与 add-diag-instrumentation 配对:那个 skill 埋 EventSource 事件、跑采集命令产出文件,本 skill 定位这些文件、把事件 ID 翻译成业务含义、按文件类型给出解读方法。

weldone-project-logs 的分工:那个读 Serilog 文本日志(一直在记、[INF]/[ERR] 那种),本 skill 读 EventSource 结构化事件产物(默认不记、运行时动态开抓、带类型化参数)。

捕获目录约定(核心)

诊断采集产物落在当前项目目录下与 Logs/ 并列的 Diagnostics/ 子目录:

%APPDATA%\Roboticplus\Weldone\1.0.x\          ← 配置根目录(%APPDATA% = C:\Users\<当前用户>\AppData\Roaming)
├── ProjectConfig.json                         ← 读 ProjectFolder 字段定当前项目
└── <ProjectFolder>\                           ← 当前项目子目录(如 KukaTest、JuLi)
    ├── Logs\logs-YYYYMMDD[_HHMMSS].log        ← Serilog 文本日志(weldone-project-logs)
    ├── Debug\                                 ← 规划中间结果 JSON(weld-plan-debug)
    ├── ProductionData\                         ← 生产数据快照
    └── Diagnostics\                           ← 本 skill 的目标(新增约定)
        ├── *.nettrace                         ← dotnet-trace 事件流(二进制)
        ├── *.speedscope.json                  ← nettrace 转换产物(明文,可直接读)
        ├── *.dmp                              ← dotnet-dump 进程内存快照(含敏感数据)
        └── *.csv                              ← dotnet-counters 指标表

关键原则

  • 配置根目录永远是 %APPDATA%\Roboticplus\Weldone\1.0.x禁止在任何输出或脚本里写死 mini-pc 之类的用户名。

  • 哪个项目是"当前项目"由 ProjectConfig.jsonProjectFolder 字段决定,不要假设;总是先读它。

  • Diagnostics/ 目录约定由本 skill 确立,尚未在代码中强制创建。从未用过 dotnet-trace/dotnet-dump 时此目录不存在是正常的。建议采集时用 --output 指向此目录,让产物统一落点:

    # 示例(实际采集走 add-diag-instrumentation 的流程,本 skill 只负责读结果)
    dotnet-trace collect -p <PID> --providers Robim-WeldPlanning --duration 00:00:30 \
      --output "%APPDATA%\Roboticplus\Weldone\1.0.x\<ProjectFolder>\Diagnostics\trace.nettrace"
    

执行流程

1. 定位目录与采集文件清单

优先跑脚本(确定性、token 高效,与 weldone-project-logs 同一套路径规则):

python "<skill>/scripts/resolve_diag.py" --list

输出:配置根目录、当前项目名、项目目录、诊断目录,以及 Diagnostics/ 下采集文件按修改时间倒序的清单(含文件大小、修改时间、按扩展名分类的类型标签,并对 0KB 文件标注提示)。

Read the full file on GitHub · 111 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 111 lines · 250 tokens per session scan A 3eadf1873e97

Subscribe to this mod's changes

read-diag-captures is a skill published in the GitHub repository grasscaograss/AwesomeWeldoneSkills (2 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 250 tokens to every session and 2,601 once invoked, about $0.0013 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

debug-optimize-lcp

Guides debugging and optimizing Largest Contentful Paint (LCP) using Chrome DevTools MCP tools. Use this skill whenever the user asks about LCP performance, slow page loads, Core Web Vitals optimization, or wants to understand why their page's main content takes too long to appear. Also use when the user mentions…

ChromeDevTools/chrome-devtools-mcp · 99 tokens

systematic-debugging

Use when debugging a failing test, build error, or runtime issue that isn't immediately obvious. Guides a 4-phase root cause analysis instead of random fix attempts.

open-metadata/OpenMetadata · 37 tokens

diagnose

Trace from a reproduced symptom to the source code that causes it. Pin the specific file and approximate line, rate confidence in the cause and clarity of the fix independently, and always propose a concrete fix.

emdash-cms/emdash · 43 tokens

repro-admin

Reproduce an EmDash admin UI bug. Attach a container, start the demo dev server, drive the admin with agent-browser using the dev-bypass session, and capture the reproduction as screenshots plus a replayable transcript.

emdash-cms/emdash · 48 tokens

log-error-digest

Analyze log files to troubleshoot errors, identify peak error periods, and produce error clustering, frequency statistics, and time distribution reports. Supports JSON, syslog, and Nginx formats with automatic detection. Use when a user uploads a .log file and asks to analyze errors, find patterns, debug issues, or…

zebbern/claude-code-guide · 71 tokens

byted-util-volcengine-detect-retry

An orchestration workflow for Volcengine Cloud Detect, a service that checks websites or network endpoints from test locations.

bytedance/agentkit-samples · 101 tokens