Agent skill

Coding Trace Analyze

by uw-syfi in uw-syfi/TraceLab

Run, summarize, plot, validate, and export normalized coding-trace JSONL files.

Apache-2.0Auto-check passedDocuments & Office

Install Coding Trace Analyze

skills CLI
$ npx skills add uw-syfi/TraceLab --skill coding-trace-analyze -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install uw-syfi/TraceLab coding-trace-analyze --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/uw-syfi/TraceLab.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/coding-trace-analyze .claude/skills/coding-trace-analyze && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
coding-trace-analyze
GitHub stars
138
Token cost
~2.5k tokens
SKILL.md length
813 words
Files
2
Skills in repo
7
Repo updated
First seen
Licence
Apache-2.0

At a glance

Run, summarize, plot, validate, and export normalized coding-trace JSONL files.

  • Works in 6 steps: Work from the coding-trace repo root,… → Use trace/syfi_coding_trace.duckdb for… → Use uv run python ... so matplotlib,… → …
  • Computing aggregate session/provider/model/token counts
  • SKILL.md covers Overview, First Steps, Quick Summary and Run The Artifact Suite, plus 7 more sections
  • Calls uv

What it does

Coding Trace Analyze is an agent skill from uw-syfi/TraceLab. Run, summarize, plot, validate, and export normalized coding-trace JSONL files. Use when computing aggregate session/provider/model/token counts, normalized decoding-speed proxies, exact-reasoning TPOT/TTFT estimates, prefix versus append token distributions, tool latency/count summaries, generation-time and human-wait CDFs, KV-cache active ratio, cache-hit ratios, timing-fit CSV analyses, multi-round CSV traces, self-contained PNG artifacts, validator audits under validators/, or interpreting per-experiment…

Its SKILL.md is about 2.5k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `agents/openai.yaml`).

It sits in Documents & Office, covering CSV and tabular files. The repository describes itself as: An open toolkit and public dataset hub for collecting, sanitizing, analyzing, and visualizing coding agent traces. The licence is Apache-2.0.

When your agent uses it

  • Computing aggregate session/provider/model/token counts
  • Normalized decoding-speed proxies
  • Exact-reasoning TPOT/TTFT estimates
  • Prefix versus append token distributions

Example prompts

  • “/coding-trace-analyze”

Requirements

  • Python 3

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. Work from the coding-trace repo root, identified by pyproject.toml, README.md, and the artifacts/ and scripts/ directories.
  2. Use trace/syfi_coding_trace.duckdb for normal analysis. Pass --db only to select another
  3. Use uv run python ... so matplotlib, numpy, and pillow resolve from the project environment.
  4. Keep artifacts and validators separate: plotting/analysis outputs belong under artifacts/; formula, denominator, and integrity checks…
  5. Let artifacts/run_all.py derive artifacts/llm_generation/timing_fit/timing_fit_trace.csv from
  6. Read the experiment's README.md first — it documents exactly how that experiment computes its metric (TTFT, effective tool latency…

What it can do on your machine

Read from SKILL.md and the folder at commit 11b8b14. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • uv

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use uv, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Coding Trace Analyze loads about 2.5k tokens when it runs. Until then it costs about 141 tokens; SKILL.md has 813 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~141
When it runs · the whole SKILL.md, loaded when a task matches
~2.5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from uw-syfi/TraceLab at commit 11b8b14, republished under its Apache-2.0 licence (© uw-syfi). 813 words, ~2,503 tokens.

Download SKILL.mdSave it as .claude/skills/coding-trace-analyze/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
coding-trace-analyze
description
Run, summarize, plot, validate, and export normalized coding-trace JSONL files. Use when computing aggregate session/provider/model/token counts, normalized decoding-speed proxies, exact-reasoning TPOT/TTFT estimates, prefix versus append token distributions, tool latency/count summaries, generation-time and human-wait CDFs, KV-cache active ratio, cache-hit ratios, timing-fit CSV analyses, multi-round CSV traces, self-contained PNG artifacts, validator audits under validators/, or interpreting per-experiment artifacts under artifacts/.

Coding Trace Analyze

Overview

Use this skill to analyze normalized round traces after collection and sanitization. Analysis and validation default to the released DuckDB at trace/syfi_coding_trace.duckdb. JSONL is a pipeline boundary for collection, merging, sanitization, privacy audit, and optional DB materialization; do not make it the default analysis source.

Analyses are organized as artifact experiments. Each experiment is a folder under artifacts/<category>/<experiment>/ containing one analyze/plot script, a README.md that states the question, inputs, and exact metric definitions, and (when run) the generated outputs. Shared logic lives in artifacts/utils/. Validation and audit checks live separately under validators/<category>/<validator>/ and are run by validators/run_all.py.

Categories:

  • artifacts/trace_facts/ — headline facts and format conversions (overview_summary, csv_export).
  • artifacts/llm_generation/ — input token composition + generation timing (prefix_append_distribution, adjusted_prefix_append, output_append_assignment, token_spindles, output_tokens, generation_time_cdf, append_vs_prefix_latency, timing_fit, timing_feature_ambiguity).
  • artifacts/tool_calls/ — tool_latency_distribution, tool_call_counts, tool_time_by_kind, tool_category_distribution, claude_long_tool_calls.
  • artifacts/prefix_cache/ — cache hit-rate behavior (cache_hit_ratio, cache_hit_idle_relationship, cache_replay, kv_cache_active_ratio).
  • artifacts/human_in_the_loop/ — human_input_wait, user_turn_response_time, user_turn_decomposition.
  • artifacts/session/ — session_token_steps, total_input_growth.
  • validators/ — integrity/formula/denominator checks such as trace_facts/tool_duplicate_audit, human_in_the_loop/user_turn_response_audit, human_in_the_loop/user_turn_gap_audit, and human_in_the_loop/e2e_formula_check.

First Steps

  1. Work from the coding-trace repo root, identified by pyproject.toml, README.md, and the artifacts/ and scripts/ directories.
  2. Use trace/syfi_coding_trace.duckdb for normal analysis. Pass --db only to select another already-materialized sanitized trace.
  3. Use uv run python ... so matplotlib, numpy, and pillow resolve from the project environment.
  4. Keep artifacts and validators separate: plotting/analysis outputs belong under artifacts/; formula, denominator, and integrity checks belong under validators/.
  5. Let artifacts/run_all.py derive artifacts/llm_generation/timing_fit/timing_fit_trace.csv from the selected DuckDB. Pass --timing-input only for an intentional external timing CSV override.
  6. Read the experiment's README.md first — it documents exactly how that experiment computes its metric (TTFT, effective tool latency, generation time, cache-hit ratio, etc.). The shared definitions are collected in artifacts/utils/README.md.

Quick Summary

bash
uv run python artifacts/trace_facts/overview_summary/analyze.py
uv run python artifacts/trace_facts/overview_summary/analyze.py --json

Reports separate merged/Claude/Codex sections with scope, token, generation-timing, and tool totals. Treat normalized decoding speed as a trace-level proxy from input-ready event to last model-output event, not a serving-engine decode timer. The post-reasoning TPOT estimate and TTFT residual are computed only for rows with exact reasoning-token counts; provider sections without that accounting report these values as null.

Run The Artifact Suite

Use the artifact dispatcher when running all artifact experiments, a category, or scripts with nonstandard output wiring (stdout capture, CSV export, or derived timing CSVs).

bash
uv run python artifacts/run_all.py --list
uv run python artifacts/run_all.py
uv run python artifacts/run_all.py --only tool_calls
uv run python artifacts/run_all.py --only prefix_cache/cache_hit_ratio

The artifact dispatcher defaults to 16 concurrent jobs. Use --jobs 1 for serial runs, --dry-run to inspect commands, and --stop-on-fail when failure should stop launching new experiments. For a full analysis run after sanitization, use:

bash
uv run python artifacts/run_all.py \
  --db trace/syfi_coding_trace.duckdb \
  --log-dir "$TMPDIR/coding_trace_artifact_runlogs"

Run Validators

Use the validator dispatcher for checks that validate trace integrity, metric denominator coverage, and formula assumptions. These scripts write reports under validators/, not under artifacts/.

bash
uv run python validators/run_all.py --list
uv run python validators/run_all.py
uv run python validators/run_all.py --only human_in_the_loop
uv run python validators/run_all.py --only trace_facts/tool_duplicate_audit

For a full validator run paired with the artifact suite, use:

bash
uv run python validators/run_all.py \
  --db trace/syfi_coding_trace.duckdb \
  --log-dir "$TMPDIR/coding_trace_validator_runlogs"

Running An Experiment

Most experiments can also be run directly; outputs land next to the script.

bash
# token input composition
uv run python artifacts/llm_generation/prefix_append_distribution/plot.py
# tool latency distribution, counts, time-by-kind
uv run python artifacts/tool_calls/tool_latency_distribution/plot.py
uv run python artifacts/tool_calls/tool_call_counts/plot.py
# generation-time and human-wait CDFs
uv run python artifacts/llm_generation/generation_time_cdf/plot.py
uv run python artifacts/human_in_the_loop/human_input_wait/plot.py

DB-backed scripts commonly expose --db, -o/--output-dir, --group-by {provider,model,provider_model}, --sample-size, --pair-sample-size, --per-tool-sample-size, --max-groups, --top-tools, --min-tool-calls-for-plot (collapse rare tool names into Other in PNGs; CSV summaries keep full detail), --seed (deterministic, default 42), and --progress-every.

Some experiments retain -i/--input as an explicit JSONL compatibility path. csv_export requires -o, and overview_summary prints text or --json to stdout; the dispatcher handles those output differences while still passing the selected DuckDB.

Show full SKILL.md (296 more words)Show less

Timing Fit Analyses

The timing-fit family reads a long-form timing-segment CSV, not the normalized JSONL trace. The artifact dispatcher builds artifacts/llm_generation/timing_fit/timing_fit_trace.csv automatically from --db before running timing experiments, including when the user requests only a downstream timing experiment. Build it directly only when running timing scripts by hand:

bash
uv run python artifacts/llm_generation/timing_fit/collect_timing_fit_trace.py \
  --db trace/syfi_coding_trace.duckdb \
  -o artifacts/llm_generation/timing_fit/timing_fit_trace.csv

Then run the timing experiments:

bash
uv run python artifacts/llm_generation/append_vs_prefix_latency/analyze.py
uv run python artifacts/llm_generation/timing_fit/fit_timing_trace.py
uv run python artifacts/llm_generation/timing_feature_ambiguity/analyze.py
uv run python artifacts/llm_generation/timing_feature_ambiguity/build_summary.py

Do not treat scripts/ as the owner for this CSV. It is a generated artifact local to artifacts/llm_generation/timing_fit/ and should be consumed from there.

Self-Contained PNGs

As the final step of every plotting experiment, the PNGs embed their README, the source CSV data, and the plotting code as compressed PNG text chunks (the CSVs are still written to disk normally). Inspect or unpack any figure:

bash
uv run python artifacts/utils/png_sidecar.py list    <figure>.png
uv run python artifacts/utils/png_sidecar.py extract <figure>.png -o "$TMPDIR/unpacked"

CSV Export

bash
uv run python artifacts/trace_facts/csv_export/convert.py \
  --db trace/syfi_coding_trace.duckdb \
  -o artifacts/trace_facts/csv_export/coding_trace.csv

Writes id,input_len,output_len,arrival_time,round_idx,tool_wait_after_ms,prefix_len. Maps newly_append_tokens to input_len, prefix_tokens to prefix_len, and uses tool_wall_latency_ms for tool_wait_after_ms by default. Use --tool-latency-source internal only when the downstream consumer should model tool-runner-reported duration rather than client-observed wall wait.

Interpretation Guidance

  • prefix_tokens approximates prompt-cache hit size; newly_append_tokens approximates uncached prompt-side work.
  • Tool latency uses tool_internal_latency_ms when available, then falls back to tool_wall_latency_ms.
  • CSV export uses wall latency by default because it models client-observed tool wait between LLM rounds.
  • Missing or nonpositive latency is tracked separately; do not silently treat it as zero.
  • Sampling is deterministic by default with --seed 42.
  • bad_json counts malformed or non-object JSONL lines skipped during loading.

Reporting Guidance

When summarizing analysis results:

  • Lead with the input path, row count, provider split, and whether the input was sanitized.
  • Distinguish token totals from token distributions.
  • Mention when quantiles are sample-based and include sample settings if they affect interpretation.
  • Avoid claiming causality from trace timing alone. Use phrases such as "trace-level proxy" for normalized decoding speed and tool latency.
  • Cite the experiment's README.md for the exact metric definition behind any number.

© uw-syfi, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in skills/coding-trace-analyze of uw-syfi/TraceLab.

  • SKILL.md
  • agents/openai.yaml

Open the folder on GitHubat commit 11b8b14

Compare with similar skills

Coding Trace Analyze next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Coding Trace Analyze compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Coding Trace Analyze this skilluw-syfi/TraceLab138—~2.5kAutomated safety check: PassApache-2.0
Data Table Managern8n-io/n8n207k—~2.3kAutomated safety check: PassCustom licence
Instrument Data To Allotropeaws-samples/amazon-bedrock-agents-healthcare-lifesciences2742 repos~2.7kAutomated safety check: PassApache-2.0
Abuse Hunternexu-io/harness-engineering-guide663—~1.9kAutomated safety check: PassMIT
Markitshift-labs-ai/markit1.3k—~299Automated safety check: PassMIT
Sector Analysttradermonty/claude-trading-skills3k1 repos~2.3kAutomated safety check: PassMIT

Similar skills

  • Official

    Load before calling data-tables or parse-file. An agent skill from n8n-io/n8n.

    207k GitHub stars~2.3k tokensUpdated today
    Documents & OfficeAuto-check passed
  • Instrument Data To Allotrope

    aws-samples/amazon-bedrock-agents-healthcare-lifesciences

    Official

    Convert laboratory instrument output files (PDF, CSV, Excel, TXT) to Allotrope Simple Model (ASM) JSON format or flattened 2D CSV.

    274 GitHub starsUsed in 2 repos~2.7k tokens
    Documents & OfficeAuto-check passed
  • Abuse Hunter

    nexu-io/harness-engineering-guide

    Detect and investigate bulk registration abuse on SaaS platforms.

    663 GitHub stars~1.9k tokensUpdated 5 mo ago
    Documents & OfficeAuto-check passed
  • Markit

    shift-labs-ai/markit

    Convert files and URLs to Markdown. An agent skill from shift-labs-ai/markit.

    1.3k GitHub stars~299 tokensUpdated 1 mo ago
    Documents & OfficeAuto-check passed
  • Sector Analyst

    tradermonty/claude-trading-skills

    This skill should be used when analyzing sector rotation patterns and market cycle positioning.

    3k GitHub starsUsed in 1 repo~2.3k tokens
    Documents & OfficeAuto-check passed
  • Uap Release Analyzer

    ckpxgfnksd-max/uap-release-analyzer

    Inventory, extract, and analyze tranches of declassified UAP/UFO files — including war.gov/UFO/ "PURSUE" releases, FBI Vault, NARA boxes, and AARO publications.

    155 GitHub stars~2.6k tokensUpdated 5 mo ago
    Documents & OfficeAuto-check passed

More from uw-syfi/TraceLab

  • Prepare, publish, refresh, or validate the TraceLab public dataset on Hugging Face under UW-SyFI/TraceLab.

    138 GitHub stars~1.4k tokensUpdated 1 mo ago
    Auto-check passed
  • Coding Trace Collect

    uw-syfi/TraceLab

    Collect, count, and extract Claude Code and Codex CLI local histories into normalized coding-trace JSONL files.

    138 GitHub stars~1.9k tokensUpdated 1 mo ago
    Auto-check: notes
  • Coding Trace Normalize

    uw-syfi/TraceLab

    Explain and work with the normalized coding-trace JSONL row format produced by extractclauderounds.py, extractcodexrounds.py, and collectllmtraces.py.

    138 GitHub stars~1.6k tokensUpdated 1 mo ago
    Auto-check passed
  • Coding Trace Raw

    uw-syfi/TraceLab

    Read and explain raw Claude Code and Codex CLI session logs in this coding-trace repo.

    138 GitHub stars~1.3k tokensUpdated 1 mo ago
    Auto-check passed
  • Coding Trace Sanitize

    uw-syfi/TraceLab

    Sanitize normalized coding-trace JSONL rows for public sharing.

    138 GitHub stars~1.3k tokensUpdated 1 mo ago
    Auto-check: notes
  • Tracelab Public Release

    uw-syfi/TraceLab

    Publish TraceLab snapshots from the internal repo to the public uw-syfi/TraceLab GitHub repo as clean, mergeable, incremental pull requests from a persistent public mirror branch.

    138 GitHub stars~2.7k tokensUpdated 1 mo ago
    Auto-check passed

Questions about Coding Trace Analyze

What does Coding Trace Analyze do?

Run, summarize, plot, validate, and export normalized coding-trace JSONL files. Coding Trace Analyze is an agent skill from uw-syfi/TraceLab. Run, summarize, plot, validate, and export normalized coding-trace JSONL files.

When should I use Coding Trace Analyze?

Coding Trace Analyze fits situations like: computing aggregate session/provider/model/token counts; normalized decoding-speed proxies; exact-reasoning TPOT/TTFT estimates; prefix versus append token distributions.

How do I install Coding Trace Analyze in Claude Code?

Run `npx skills add uw-syfi/TraceLab --skill coding-trace-analyze -a claude-code`. Or copy the skill folder (skills/coding-trace-analyze in uw-syfi/TraceLab) into .claude/skills/coding-trace-analyze in your project. Claude Code loads it when a task matches its description.

How do I install Coding Trace Analyze in Codex?

Run `npx skills add uw-syfi/TraceLab --skill coding-trace-analyze -a codex`. Or copy the skill folder (skills/coding-trace-analyze in uw-syfi/TraceLab) into .agents/skills/coding-trace-analyze in your project. Codex loads it when a task matches its description.

Can I use Coding Trace Analyze in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add uw-syfi/TraceLab --skill coding-trace-analyze -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/coding-trace-analyze, .gemini/skills/coding-trace-analyze, .github/skills/coding-trace-analyze and .opencode/skills/coding-trace-analyze in your project.

What does Coding Trace Analyze need to run?

Going by SKILL.md and its folder, Coding Trace Analyze needs the command-line tools its instructions call (uv). Our summary lists: Python 3.

Does Coding Trace Analyze access the network?

SKILL.md contains no URLs. Its commands use uv, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Coding Trace Analyze safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Coding Trace Analyze use?

Coding Trace Analyze is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Coding Trace Analyze use?

About 2.5k tokens (SKILL.md is roughly 10k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Coding Trace Analyze?

Skills that share tags, products or a category with Coding Trace Analyze: Data Table Manager (n8n-io/n8n, 207k stars), Instrument Data To Allotrope (aws-samples/amazon-bedrock-agents-healthcare-lifesciences, 274 stars), Abuse Hunter (nexu-io/harness-engineering-guide, 663 stars) and Markit (shift-labs-ai/markit, 1.3k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Coding Trace Analyze?

uw-syfi (a GitHub organization) maintains it in uw-syfi/TraceLab, which has 138 GitHub stars. The repository holds 7 skills in this directory. The repository was last updated on August 22, 2026.

Source: uw-syfi/TraceLab on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.