Agent skill

Trace Analysis

by ai-analyst-lab in ai-analyst-lab/ai-analyst

Trace an analytical claim to its receipt, source, query, result, and run evidence.

MITAuto-check passed

Install Trace Analysis

skills CLI
$ npx skills add ai-analyst-lab/ai-analyst --skill trace-analysis -a claude-code

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

GitHub CLI
$ gh skill install ai-analyst-lab/ai-analyst trace-analysis --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/ai-analyst-lab/ai-analyst.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/trace-analysis .claude/skills/trace-analysis && 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
trace-analysis
GitHub stars
304
Token cost
~381 tokens
SKILL.md length
184 words
Files
1
Skills in repo
43
Repo updated
First seen
Licence
MIT

At a glance

Trace an analytical claim to its receipt, source, query, result, and run evidence.

  • Works in 5 steps: The output states the claim. → The receipt identifies the source, data… → The trace records how the run unfolded. → …
  • The user asks where a number came from
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Wants to verify a query

What it does

Trace Analysis is an agent skill from ai-analyst-lab/ai-analyst. Trace an analytical claim to its receipt, source, query, result, and run evidence. Use when the user asks where a number came from, wants to verify a query, or needs to inspect provenance.

Its SKILL.md is about 380 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The repository describes itself as: AI Product Analyst — Claude Code-powered data analysis toolkit. The licence is MIT.

When your agent uses it

  • The user asks where a number came from
  • Wants to verify a query
  • Needs to inspect provenance

Example prompts

  • “/trace-analysis”

Workflow steps

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

  1. The output states the claim.
  2. The receipt identifies the source, data snapshot, query, and artifacts.
  3. The trace records how the run unfolded.
  4. Logs record specific system and query events.
  5. The query and result provide execution evidence.

What it can do on your machine

Read from SKILL.md and the folder at commit 52c0744. 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

    No scripts in the folder and no shell commands in SKILL.md.

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

  • Network

    No URLs in SKILL.md.

    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

Trace Analysis loads about 381 tokens when it runs. Until then it costs about 51 tokens; SKILL.md has 184 words of instructions outside code blocks.

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

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 ai-analyst-lab/ai-analyst at commit 52c0744, republished under its MIT licence (© ai-analyst-lab). 184 words, ~381 tokens.

Download SKILL.mdSave it as .claude/skills/trace-analysis/SKILL.md (or your agent's skills folder).
name
trace-analysis
description
Trace an analytical claim to its receipt, source, query, result, and run evidence. Use when the user asks where a number came from, wants to verify a query, or needs to inspect provenance.

Trace one analysis

First invoke the trace skill so the machine-readable provenance record, lightweight receipt, and shareable HTML exist. Then review the claim through these records:

  1. The output states the claim.
  2. The receipt identifies the source, data snapshot, query, and artifacts.
  3. The trace records how the run unfolded.
  4. Logs record specific system and query events.
  5. The query and result provide execution evidence.

Use helpers.evals.trace.inspect_receipt on working/trace_receipt_<analysis_id>.json to identify missing fields and initial query risks. Then inspect the analytical details that code cannot infer from syntax alone: population, filters, time window, timezone, exclusions, grain, join cardinality, missingness, referential integrity, freshness, reconciliation, and whether the claim stays within the evidence.

For a query with a join and aggregate, test the grain directly. Compare the candidate total with a defensible reference query when one exists. A query that runs successfully may still answer the wrong question.

Save the written review beside the analysis. Report the review path and the HTML trace path together. Report missing evidence as missing. A complete receipt makes an analysis inspectable. It does not make the analysis correct.

© ai-analyst-lab, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/trace-analysis of ai-analyst-lab/ai-analyst.

Open the folder on GitHubat commit 52c0744

Compare with similar skills

Trace Analysis 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.

Trace Analysis compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Trace Analysis this skillai-analyst-lab/ai-analyst304—~381Automated safety check: PassMIT
Claimsruvnet/ruflo74k2 repos~1.1kAutomated safety check: PassMIT
Analytics Trackingalirezarezvani/claude-skills28k1 repos~3.8kAutomated safety check: PassMIT
Analyticsgetsentry/sentry46k—~2.5kAutomated safety check: PassCustom licence
Debugging MCP AnalyticsPostHog/posthog40k—~7.6kAutomated safety check: PassCustom licence
Observe Traceruvnet/ruflo74k—~522Automated safety check: NotesMIT

Similar skills

  • Claims

    ruvnet/ruflo

    Claims-based authorization for agents and operations. An agent skill from ruvnet/ruflo.

    74k GitHub starsUsed in 2 repos~1.1k tokens
    Backend & APIsAuto-check passed
  • Analytics Tracking

    alirezarezvani/claude-skills

    Set up, audit, and debug analytics tracking implementation — GA4, Google Tag Manager, event taxonomy, conversion tracking, and data quality.

    28k GitHub starsUsed in 1 repo~3.8k tokens
    Data & AnalyticsAuto-check passed
  • Analytics

    getsentry/sentry

    Official

    Instrument and discover analytics events in Sentry's frontend UI.

    46k GitHub stars~2.5k tokensUpdated today
    Frontend & DesignAuto-check passed
  • Official

    Debug, support, and build PostHog MCP Analytics — product analytics for MCP servers (the @posthog/mcp and posthog.mcp SDKs plus the mcpanalytics product).

    40k GitHub stars~7.6k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Observe Trace

    ruvnet/ruflo

    Trace agent execution by collecting spans and building a trace tree for a task

    74k GitHub stars~522 tokensUpdated today
    Auto-check: notes
  • Shows how to add product analytics events to Opik's frontend, Java backend and Python SDK, all reporting through Segment to PostHog with an opik_ name prefix.

    22k GitHub stars~4.4k tokensUpdated today
    Data & AnalyticsAuto-check passed

More from ai-analyst-lab/ai-analyst

All 43 skills in this repo
  • Always Compare

    ai-analyst-lab/ai-analyst

    Never present a metric or number in isolation; anchor every number to a comparison (prior period, benchmark, or another segment) or state that none is available.

    304 GitHub stars~1.4k tokensUpdated 7 days ago
    Auto-check passed
  • Archaeology

    ai-analyst-lab/ai-analyst

    Retrieve proven SQL patterns, table cheatsheets, and join patterns from .knowledge/query-archaeology/ so past work gets reused.

    304 GitHub stars~1.3k tokensUpdated 7 days ago
    Auto-check passed
  • Archive Analysis

    ai-analyst-lab/ai-analyst

    Save completed analyses to the knowledge system's analysis archive for future reference.

    304 GitHub stars~2.7k tokensUpdated 7 days ago
    Auto-check passed
  • Auth Preflight

    ai-analyst-lab/ai-analyst

    Verify Google Workspace MCP authentication at the start of any session that needs Google APIs (Docs, Slides, Drive).

    304 GitHub stars~3.1k tokensUpdated 7 days ago
    Auto-check passed
  • Causal

    ai-analyst-lab/ai-analyst

    Causal inference toolkit for when experiments are not possible: estimate treatment effects from observational data with assumption checks and mandatory caveats.

    304 GitHub stars~1.8k tokensUpdated 7 days ago
    Auto-check passed
  • Chart To Drive

    ai-analyst-lab/ai-analyst

    Standardized workflow for uploading local chart PNGs to Google Drive and making them available for insertion into Google Docs and Slides.

    304 GitHub stars~1.4k tokensUpdated 7 days ago
    Auto-check passed

Questions about Trace Analysis

What does Trace Analysis do?

Trace an analytical claim to its receipt, source, query, result, and run evidence. Trace Analysis is an agent skill from ai-analyst-lab/ai-analyst. Trace an analytical claim to its receipt, source, query, result, and run evidence.

When should I use Trace Analysis?

Trace Analysis fits situations like: the user asks where a number came from; wants to verify a query; needs to inspect provenance.

How do I install Trace Analysis in Claude Code?

Run `npx skills add ai-analyst-lab/ai-analyst --skill trace-analysis -a claude-code`. Or copy the skill folder (.claude/skills/trace-analysis in ai-analyst-lab/ai-analyst) into .claude/skills/trace-analysis in your project. Claude Code loads it when a task matches its description.

How do I install Trace Analysis in Codex?

Run `npx skills add ai-analyst-lab/ai-analyst --skill trace-analysis -a codex`. Or copy the skill folder (.claude/skills/trace-analysis in ai-analyst-lab/ai-analyst) into .agents/skills/trace-analysis in your project. Codex loads it when a task matches its description.

Can I use Trace Analysis 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 ai-analyst-lab/ai-analyst --skill trace-analysis -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/trace-analysis, .gemini/skills/trace-analysis, .github/skills/trace-analysis and .opencode/skills/trace-analysis in your project.

What does Trace Analysis need to run?

SKILL.md names no scripts, command-line tools or credentials: Trace Analysis is instructions for the agent only.

Does Trace Analysis access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Trace Analysis 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 Trace Analysis use?

Trace Analysis is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Trace Analysis use?

About 381 tokens (SKILL.md is roughly 1.5k 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 Trace Analysis?

Skills that share tags, products or a category with Trace Analysis: Claims (ruvnet/ruflo, 74k stars), Analytics Tracking (alirezarezvani/claude-skills, 28k stars), Analytics (getsentry/sentry, 46k stars) and Debugging MCP Analytics (PostHog/posthog, 40k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Trace Analysis?

ai-analyst-lab (a GitHub organization) maintains it in ai-analyst-lab/ai-analyst, which has 304 GitHub stars. The repository holds 43 skills in this directory. The repository was last updated on September 30, 2026.

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