Agent skill

Analyze Trace

by voidhashcom in voidhashcom/lensflare

Walk a Lensflare trace span-by-span and explain timing, errors, and parent/child structure.

MITAuto-check passedDevOps & Cloud

Install Analyze Trace

skills CLI
$ npx skills add voidhashcom/lensflare --skill analyze-trace -a claude-code

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

GitHub CLI
$ gh skill install voidhashcom/lensflare analyze-trace --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/voidhashcom/lensflare.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/lensflare-desktop/skills/analyze-trace .claude/skills/analyze-trace && 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
analyze-trace
GitHub stars
100
Token cost
~340 tokens
SKILL.md length
150 words
Files
1
Skills in repo
3
Repo updated
First seen
Licence
MIT

At a glance

Walk a Lensflare trace span-by-span and explain timing, errors, and parent/child structure.

  • Works in 6 steps: If the user supplied a traceId, use it.… → Call lensflare:getTrace with the… → Read summary.spanCount and… → …
  • The user pastes a trace id
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Asks why is this slow

What it does

Analyze Trace is an agent skill from voidhashcom/lensflare. Walk a Lensflare trace span-by-span and explain timing, errors, and parent/child structure. Use when the user pastes a trace id, asks "why is this slow", or wants a request-level post-mortem of a real production / dev request captured in Lensflare.

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

It sits in DevOps & Cloud, covering Runbooks and postmortems. The licence is MIT.

When your agent uses it

  • The user pastes a trace id
  • Asks why is this slow
  • Wants a request-level post-mortem of a real production / dev request captured in Lensflare

Example prompts

  • “why is this slow”
  • “/analyze-trace”

Workflow steps

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

  1. If the user supplied a traceId, use it. Otherwise call lensflare:queryTelemetry to find a relevant trace (filter by serviceName, time, or…
  2. Call lensflare:getTrace with the resolved datasetId and traceId. If it returns null, double-check the traceId with queryTelemetry (traceId…
  3. Read summary.spanCount and summary.erroredSpanCount. If errors exist, lead with them: name + service + durationUs.
  4. Walk spans in order. Highlight the longest span, the deepest chain, and any span whose status = "error" or whose duration is more than 50%…
  5. Surface relatedEvents only when they materially explain a failure (e.g. an exception event on the failing span).
  6. End with a one-line root-cause hypothesis and a suggested follow-up query. Example: _"to see all requests with this error…

What it can do on your machine

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

Analyze Trace loads about 340 tokens when it runs. Until then it costs about 66 tokens; SKILL.md has 150 words of instructions outside code blocks.

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

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 voidhashcom/lensflare at commit 77af210, republished under its MIT licence (© voidhashcom). 150 words, ~340 tokens.

Download SKILL.mdSave it as .claude/skills/analyze-trace/SKILL.md (or your agent's skills folder).
name
analyze-trace
description
Walk a Lensflare trace span-by-span and explain timing, errors, and parent/child structure. Use when the user pastes a trace id, asks "why is this slow", or wants a request-level post-mortem of a real production / dev request captured in Lensflare.

Analyze a trace in Lensflare

  1. If the user supplied a traceId, use it. Otherwise call lensflare:queryTelemetry to find a relevant trace (filter by serviceName, time, or attributes). Pick the trace whose root span has the highest durationUs or whose status = "error".
  2. Call lensflare:getTrace with the resolved datasetId and traceId. If it returns null, double-check the traceId with queryTelemetry (traceId = "<id>") before reporting back.
  3. Read summary.spanCount and summary.erroredSpanCount. If errors exist, lead with them: name + service + durationUs.
  4. Walk spans in order. Highlight the longest span, the deepest chain, and any span whose status = "error" or whose duration is more than 50% of its parent's.
  5. Surface relatedEvents only when they materially explain a failure (e.g. an exception event on the failing span).
  6. End with a one-line root-cause hypothesis and a suggested follow-up query. Example: "to see all requests with this error: attributes.http.status_code = 500 and serviceName = \"api\"".

© voidhashcom, 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 plugins/lensflare-desktop/skills/analyze-trace of voidhashcom/lensflare.

Open the folder on GitHubat commit 77af210

Compare with similar skills

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

Analyze Trace compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Analyze Trace this skillvoidhashcom/lensflare100—~340Automated safety check: PassMIT
Trader Memory Coretradermonty/claude-trading-skills3k2 repos~4.3kAutomated safety check: PassMIT
Author Migrationnrwl/nx29k—~12kAutomated safety check: NotesMIT
Write Notes Like Deepseekczm15053/write-notes-like-deepseek477—~1.9kAutomated safety check: PassNone
OpenRig Upgrade Proceduremvschwarz/openrig5.5k—~2.9kAutomated safety check: PassApache-2.0
GreptimeDB Release RunbookGreptimeTeam/greptimedb6.7k—~1.4kAutomated safety check: PassApache-2.0

Similar skills

  • Trader Memory Core

    tradermonty/claude-trading-skills

    Track investment theses across their lifecycle — from screening idea to closed position with postmortem.

    3k GitHub starsUsed in 2 repos~4.3k tokens
    DevOps & CloudAuto-check passed
  • Author or scope a first-party Nx migration. An agent skill from nrwl/nx.

    29k GitHub stars~12k tokensUpdated yesterday
    DevOps & CloudAuto-check: notes
  • Write Notes Like Deepseek

    czm15053/write-notes-like-deepseek

    A skill your agent uses when a change is non-trivial by DSH standards (behavior, architecture, cross-file contracts, process/tooling, testing strategy, or on-disk/wire/config formats), when choosing…

    477 GitHub stars~1.9k tokensUpdated 15 days ago
    DevOps & CloudAuto-check passed
  • OpenRig Upgrade Procedure

    mvschwarz/openrig

    Walks an agent through upgrading the OpenRig CLI and daemon one observed step at a time, keeping live seats alive and reconciling managed plugin files.

    5.5k GitHub stars~2.9k tokensUpdated yesterday
    DevOps & CloudAuto-check passed
  • GreptimeDB Release Runbook

    GreptimeTeam/greptimedb

    Runbook for publishing a GreptimeDB version: pick the release branch, verify the Cargo version, then tag, create the GitHub release and open the docs note PR.

    6.7k GitHub stars~1.4k tokensUpdated 3 days ago
    DevOps & CloudAuto-check passed
  • Statem

    henryqin1997/statem

    A skill your agent uses when a long coding or research task should be managed with statem state-machine runbooks, including creating specs, starting or resuming runs, checking current state…

    1.3k GitHub stars~1.2k tokensUpdated 1 mo ago
    DevOps & CloudAuto-check passed

More from voidhashcom/lensflare

  • Find Error

    voidhashcom/lensflare

    Find recent errors in a Lensflare dataset and summarise their root cause.

    100 GitHub stars~355 tokensUpdated 3 mo ago
    Auto-check passed
  • Query Logs

    voidhashcom/lensflare

    Translate a natural-language question about logs or telemetry into a Lensflare query and return the results.

    100 GitHub stars~366 tokensUpdated 3 mo ago
    Auto-check passed

Categories

Questions about Analyze Trace

What does Analyze Trace do?

Walk a Lensflare trace span-by-span and explain timing, errors, and parent/child structure. Analyze Trace is an agent skill from voidhashcom/lensflare. Walk a Lensflare trace span-by-span and explain timing, errors, and parent/child structure.

When should I use Analyze Trace?

Analyze Trace fits situations like: the user pastes a trace id; asks why is this slow; wants a request-level post-mortem of a real production / dev request captured in Lensflare.

How do I install Analyze Trace in Claude Code?

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

How do I install Analyze Trace in Codex?

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

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

What does Analyze Trace need to run?

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

Does Analyze Trace 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 Analyze Trace 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 Analyze Trace use?

Analyze Trace 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 Analyze Trace use?

About 340 tokens (SKILL.md is roughly 1.4k 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 Analyze Trace?

Skills that share tags, products or a category with Analyze Trace: Trader Memory Core (tradermonty/claude-trading-skills, 3k stars), Author Migration (nrwl/nx, 29k stars), Write Notes Like Deepseek (czm15053/write-notes-like-deepseek, 477 stars) and OpenRig Upgrade Procedure (mvschwarz/openrig, 5.5k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Analyze Trace?

voidhashcom (a GitHub organization) maintains it in voidhashcom/lensflare, which has 100 GitHub stars. The repository holds 3 skills in this directory. The repository was last updated on June 25, 2026.

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