coding-trace-analyze
Skill by uw-syfi
Runs, summarizes, plots, validates, and exports normalized coding-trace data. Built for researchers analyzing LLM coding session traces, token counts, tool latency, and cache behavior.
Install coding-trace-analyze
Built from the published package, never by AI.
git clone --depth 1 https://github.com/uw-syfi/TraceLab /tmp/TraceLab && mkdir -p ~/.claude/skills && cp -r /tmp/TraceLab/skills/coding-trace-analyze ~/.claude/skills/coding-trace-analyzeRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/uw-syfi/TraceLab /tmp/TraceLab && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/TraceLab/skills/coding-trace-analyze ~/.gemini/antigravity-cli/skills/coding-trace-analyzeAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install coding-trace-analyze in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
coding-trace-analyze is an agent skill for analyzing normalized coding-trace JSONL files after collection and sanitization. It covers aggregate session, provider, model, and token counts, normalized decoding-speed proxies, TTFT and TPOT estimates, token distributions, tool latency, generation-time CDFs, KV-cache and cache-hit ratios, and CSV and PNG outputs. Analysis defaults to the released DuckDB at trace/syfi_coding_trace.duckdb.
Analyses are organized as artifact experiments under artifacts/, each with an analyze or plot script and a README that defines the metrics. Validation and audit checks live under validators/ and run through validators/run_all.py. The skill is aimed at people who want to run, check, or interpret these coding-trace experiments, and it documents how to export the trace to CSV.
Written from the project's SKILL.md and checked against it.
What it can do
- Overview summaryReports headline session, provider, token, generation-timing, and tool totals, as text or JSON.
- Artifact suite runnerRuns all artifact experiments, one category, or a single experiment via artifacts/run_all.py.
- Validator runsRuns integrity, formula, and denominator checks through validators/run_all.py.
- Tool summariesCovers tool_latency_distribution, tool_call_counts, and tool_time_by_kind experiments.
- Cache analysisCovers cache_hit_ratio and kv_cache_active_ratio experiments under prefix_cache.
- Timing fit analysesRuns timing_fit and timing_feature_ambiguity on a long-form timing-segment CSV.
- Human wait analysisCovers human_input_wait and user_turn_response_time experiments.
- CSV exportConverts the trace to coding_trace.csv with prefix and append token fields.
- Self-contained PNGsEmbeds the README, source data, and plotting code in each figure, with list and extract commands.
What you need
- Coding-trace repo root with pyproject.toml, README.md, artifacts/, and scripts/
- uv, used to run scripts with the project environment
- Python packages matplotlib, numpy, and pillow
- Released DuckDB file at trace/syfi_coding_trace.duckdb
Try asking
- Run the overview summary on the coding trace DuckDB and report the provider split.
- Plot the tool latency distribution from the trace and explain the metric.
- Run the validator suite and tell me which checks failed.
Good to know
- TPOT and TTFT estimates are computed only for rows with exact reasoning-token counts; other providers report null.
- Normalized decoding speed is a trace-level proxy, not a serving-engine decode timer.
- Trace timing alone does not establish causality, according to the source's reporting guidance.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/coding-trace-analyze/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to coding-trace-analyze
All alternatives →Guides an assistant through the Kaggle CLI, covering competitions, datasets, notebooks, models, benchmarks, authentication and quota. It is for people who use the kaggle command-line tool.
Generates Python code that uses BigQuery DataFrames (BigFrames) for data processing, analysis and machine learning on BigQuery. It is meant for Python data tasks, and the source says to use bigquery-basics for SQL-first workflows.
Discovers connected data sources and proposes loading options when a workspace lacks the data a question needs. Suited to users who want to connect database, warehouse or cloud sources from the chat.
Guides developers through enabling the Data Manager API, setting up Application Default Credentials, and installing its client libraries. Built for developers who are getting started with the API and need local environment and access setup.
Guides authoring and validating Apache Airflow DAGs for Managed Service for Apache Airflow (MSAA), formerly Cloud Composer. Built for developers who create or extend Airflow DAGs in these environments.
Extracts structured JSON data from over 40 websites, including Amazon, LinkedIn, Instagram, TikTok, Facebook and YouTube. Built on Bright Data's Web Data APIs, it returns product details, profiles, reviews, posts and comments from a URL.
Compare with kaggle-cli, bigquery-bigframes or data-loading
coding-trace-analyze: common questions
What data does it analyze by default?
It analyzes the released DuckDB at trace/syfi_coding_trace.duckdb. JSONL is a pipeline boundary and is not the default analysis source.
Are the decoding speed numbers exact serving-engine timings?
No. The source treats normalized decoding speed as a trace-level proxy from the input-ready event to the last model-output event, not a serving-engine timer.
Where do validator reports go?
Validator reports are written under validators/, while plotting and analysis outputs go under artifacts/.
How do I install coding-trace-analyze?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is coding-trace-analyze free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is coding-trace-analyze safe to use?
It scores 66 of 100. Grades: maintenance B, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to coding-trace-analyze?
Similar skills: kaggle-cli, bigquery-bigframes, data-loading, data-manager-api-setup.
