Agent skill

Mz Query Tracing

by MaterializeInc in MaterializeInc/materialize

Debug SQL execution time via distributed tracing (OpenTelemetry / Tempo).

Custom licenceAuto-check passedDevOps & Cloud

Install Mz Query Tracing

skills CLI
$ npx skills add MaterializeInc/materialize --skill mz-query-tracing -a claude-code

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

GitHub CLI
$ gh skill install MaterializeInc/materialize mz-query-tracing --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/MaterializeInc/materialize.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/mz-query-tracing .claude/skills/mz-query-tracing && 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
mz-query-tracing
GitHub stars
6.4k
Token cost
~1.8k tokens
SKILL.md length
708 words
Files
2
Skills in repo
15
Repo updated
First seen
Licence
Custom licence

At a glance

Debug SQL execution time via distributed tracing (OpenTelemetry / Tempo).

  • Works in 8 steps: Start the monitoring stack → Start environmentd with tracing → Verify both services are running → …
  • Tasks that involve Observability
  • SKILL.md covers Important: Use Optimized Builds, Prerequisites, Workflow: Trace a Query and Interpreting Results, plus 1 more section
  • Runs Python scripts from its folder; calls curl, psql and python3

What it does

Mz Query Tracing is an agent skill from MaterializeInc/materialize. Debug SQL execution time via distributed tracing (OpenTelemetry / Tempo). Trigger: "why is this query slow", "where is the time going", "this SELECT takes forever", or latency breakdown for SQL statement. Also tracing queries, span analysis, Tempo traces, trace IDs, opentelemetryfilter.

Its SKILL.md is about 1.8k tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file (for example `trace_tree.py`).

It sits in DevOps & Cloud, covering Observability and SQL. It works with SQL, OpenTelemetry and PostgreSQL. The repository describes itself as: The live data layer for apps and AI agents. Create up-to-the-second views into your business, just using SQL.

When your agent uses it

  • Tasks that involve Observability
  • Tasks that involve SQL

Example prompts

  • “why is this query slow”
  • “where is the time going”
  • “this SELECT takes forever”
  • “/mz-query-tracing”

Requirements

  • Python 3

Workflow steps

8 steps, taken from the step headings in SKILL.md.

  1. Start the monitoring stack
  2. Start environmentd with tracing
  3. Verify both services are running
  4. Set the trace filter at runtime (if not set at startup)
  5. Run the query and capture the trace ID
  6. Wait for spans to be flushed
  7. Fetch the trace from Tempo
  8. Analyze the trace

What it can do on your machine

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

    Ships script files (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • curl
    • psql
    • python3

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

  • Network

    No URLs in SKILL.md. Its commands use curl, 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

Mz Query Tracing loads about 1.8k tokens when it runs. Until then it costs about 76 tokens; SKILL.md has 708 words of instructions outside code blocks.

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

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

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 708 words (~1,842 tokens).

“Use distributed tracing (OpenTelemetry / Tempo) to understand where time is spent during SQL statement execution in a local Materialize instance.”

— opening of SKILL.md by MaterializeInc, Custom licence
name
mz-query-tracing

Read the full SKILL.md on GitHub

Files

SKILL.md and 1 other file in .agents/skills/mz-query-tracing of MaterializeInc/materialize.

  • SKILL.md
  • trace_tree.py

Open the folder on GitHubat commit b760ecc

Compare with similar skills

Mz Query Tracing 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.

Mz Query Tracing compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Mz Query Tracing this skillMaterializeInc/materialize6.4k—~1.8kAutomated safety check: PassCustom licence
Database Observabilitygrafana/skills279—~1.1kAutomated safety check: PassApache-2.0
TMA1 Observability Querytma1-ai/tma1119—~5.1kAutomated safety check: NotesApache-2.0
Rift Backend EffectCompound-inc/rift124—~1.8kAutomated safety check: PassCustom licence
Gorm ExpertLeoYeAI/openclaw-master-skills2.2k—~3.4kAutomated safety check: PassMIT
Otel Javaollygarden/opentelemetry-agent-skills106—~1.4kAutomated safety check: PassApache-2.0

Similar skills

  • Official

    Set up Grafana Cloud Database Observability for MySQL and PostgreSQL — enables pgstatstatements / Performance Schema, creates a least-privilege monitoring user, configures the…

    279 GitHub stars~1.1k tokensUpdated yesterday
    DevOps & CloudAuto-check passed
  • Answers questions about agent spend, token use, traces, events, errors and tool usage by running read-only SQL against a local TMA1 observability store.

    119 GitHub stars~5.1k tokensUpdated 20 days ago
    AI & LLM EngineeringAuto-check: notes
  • Rift Backend Effect

    Compound-inc/rift

    A skill your agent uses when adding, reviewing, or refactoring backend code in Rift's TanStack Start app that should follow apps/start/BACKENDEFFECTPLAYBOOK.md.

    124 GitHub stars~1.8k tokensUpdated 10 days ago
    DevOps & CloudAuto-check passed
  • Gorm Expert

    LeoYeAI/openclaw-master-skills

    GORM v2 最佳实践与性能优化。适用于:代码审查、慢查询优化、N+1、连接池、 事务管理、分库分表、Prometheus/OTel监控、Session安全、Clause/Upsert、 缓存集成、BaseModel脚手架、SQL→struct生成、多租户隔离。

    2.2k GitHub stars~3.4k tokensUpdated 2 mo ago
    DevOps & CloudAuto-check passed
  • Otel Java

    ollygarden/opentelemetry-agent-skills

    OpenTelemetry in Java — Javaagent zero-code instrumentation, Spring Boot Starter, manual autoconfigure SDK, declarative YAML configuration, BOM dependency management, sensitive-data capture and…

    106 GitHub stars~1.4k tokensUpdated today
    DevOps & CloudAuto-check passed
  • GCP Essentials

    ericrisco/rsc-harness

    A skill your agent uses when running a small product on core Google Cloud via the gcloud CLI: a project, Cloud Run deploys, a locked-down Cloud Storage bucket, managed Cloud SQL, and least-privilege…

    167 GitHub stars~3.7k tokensUpdated today
    DevOps & CloudAuto-check passed

More from MaterializeInc/materialize

All 15 skills in this repo
  • Mz Release Signoff

    MaterializeInc/materialize

    Verify a release candidate on the Grafana dashboards and sign off in release.

    6.4k GitHub stars~7.2k tokensUpdated today
    Auto-check passed
  • Mz Benchmark

    MaterializeInc/materialize

    Add/modify/debug Materialize perf benchmark scenarios. An agent skill from MaterializeInc/materialize.

    6.4k GitHub stars~2.8k tokensUpdated today
    Auto-check passed
  • Mz Commit

    MaterializeInc/materialize

    Trigger: "commit", "prepare commit", "create PR", "push", "open pull request", or mentions committing, pre-commit checks, pull requests in Materialize.

    6.4k GitHub stars~2.3k tokensUpdated today
    Auto-check passed
  • Mz Dbt Release

    MaterializeInc/materialize

    Cut a dbt-materialize PyPI release: bump the version in version.py and setup.py, date the Unreleased CHANGELOG entry, and open the release PR with a Ship: <url body.

    6.4k GitHub stars~1.2k tokensUpdated today
    Auto-check passed
  • Mz Debug CI

    MaterializeInc/materialize

    Investigate CI failures on PR via gh + Buildkite MCP or bk CLI.

    6.4k GitHub stars~3.9k tokensUpdated today
    Auto-check passed
  • Mz Limits Test

    MaterializeInc/materialize

    Add/modify/debug limits test. An agent skill from MaterializeInc/materialize.

    6.4k GitHub stars~808 tokensUpdated today
    Auto-check passed

Categories

Questions about Mz Query Tracing

What does Mz Query Tracing do?

Debug SQL execution time via distributed tracing (OpenTelemetry / Tempo). Mz Query Tracing is an agent skill from MaterializeInc/materialize. Debug SQL execution time via distributed tracing (OpenTelemetry / Tempo).

When should I use Mz Query Tracing?

Mz Query Tracing fits situations like: tasks that involve Observability; tasks that involve SQL.

How do I install Mz Query Tracing in Claude Code?

Run `npx skills add MaterializeInc/materialize --skill mz-query-tracing -a claude-code`. Or copy the skill folder (.agents/skills/mz-query-tracing in MaterializeInc/materialize) into .claude/skills/mz-query-tracing in your project. Claude Code loads it when a task matches its description.

How do I install Mz Query Tracing in Codex?

Run `npx skills add MaterializeInc/materialize --skill mz-query-tracing -a codex`. Or copy the skill folder (.agents/skills/mz-query-tracing in MaterializeInc/materialize) into .agents/skills/mz-query-tracing in your project. Codex loads it when a task matches its description.

Can I use Mz Query Tracing 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 MaterializeInc/materialize --skill mz-query-tracing -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/mz-query-tracing, .gemini/skills/mz-query-tracing, .github/skills/mz-query-tracing and .opencode/skills/mz-query-tracing in your project.

What does Mz Query Tracing need to run?

Going by SKILL.md and its folder, Mz Query Tracing needs Python for the scripts in its folder and the command-line tools its instructions call (curl, psql and python3). Our summary lists: Python 3.

Does Mz Query Tracing access the network?

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

Is Mz Query Tracing 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 Mz Query Tracing use?

Mz Query Tracing has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Mz Query Tracing use?

About 1.8k tokens (SKILL.md is roughly 7.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 Mz Query Tracing?

Skills that share tags, products or a category with Mz Query Tracing: Database Observability (grafana/skills, 279 stars), TMA1 Observability Query (tma1-ai/tma1, 119 stars), Rift Backend Effect (Compound-inc/rift, 124 stars) and Gorm Expert (LeoYeAI/openclaw-master-skills, 2.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Mz Query Tracing?

MaterializeInc (a GitHub organization) maintains it in MaterializeInc/materialize, which has 6,377 GitHub stars. The repository holds 15 skills in this directory. The repository was last updated on October 8, 2026.

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