debugging
Skill by indexable-inc
Explains how to find out why a blaze build reran, ran slowly, used too much memory or did not converge. Written for developers debugging blaze builds from their profile Parquet files.
Install debugging
Built from the published package, never by AI.
git clone --depth 1 https://github.com/indexable-inc/blaze /tmp/blaze && mkdir -p ~/.claude/skills && cp -r /tmp/blaze/.agents/skills/debugging ~/.claude/skills/debuggingRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/indexable-inc/blaze /tmp/blaze && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/blaze/.agents/skills/debugging ~/.gemini/antigravity-cli/skills/debuggingAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill teaches an assistant how to diagnose a blaze build from its profile Parquet files. It explains where the files live under the blaze state directory, what each table holds (spans, query_counts, provenance, key_parts, misses and counters), and how to run DuckDB through blaze debug sql, blaze explain and BLAZE_DUCKDB. It includes ready queries for top time by span, reruns and their causes, key diffs between runs, memory by task, admission waits and cycles.
The skill sets out a method: reproduce the build, capture it under a daemon that keeps a history, query the rows, state one cause in numbers, then remove the cause and confirm the effect is gone. It is meant for developers debugging slow, rerunning, memory-hungry or non-converging blaze builds, and for anyone writing queries over the profile.
Written from the project's SKILL.md and checked against it.
What it can do
- Locate profile filesFinds the profile Parquet history directory and explains the manifest and schema files.
- Query tablesDescribes the spans, query_counts, provenance, key_parts, misses and counters tables.
- Run DuckDB queriesRuns queries with blaze debug sql, blaze explain and a DuckDB binary set by BLAZE_DUCKDB.
- Find reruns and causesLists which memos reran, why they reran, and the root input or untracked read behind them.
- Diff build keysCompares key parts between two builds or two blaze homes to explain cache misses.
- Inspect memory by taskShows granted versus peak memory per task kind and tasks that exceeded their grant.
- Analyse admission waitsShows what held tasks back before they started, such as memory or a work or io thread.
- Walk cause chainsProvides a recursive query that follows a rerun's cause back to its root.
- Verify fixesGuides removing a cause and comparing the same query before and after to prove the effect is gone.
What you need
- blaze with a blaze serve daemon that keeps a profile history
- DuckDB, set through BLAZE_DUCKDB or nix run .#duckdb (DuckDB 1.5.5)
- Nix, for the flake dev shell or the pinned DuckDB build
Try asking
- Why did my blaze build rerun infer_query so many times?
- Show me the top time by span for build 3 in my blaze profile.
- Diff the build keys between my laptop and CI blaze homes.
Good to know
- Blaze never links DuckDB or looks for it on PATH, so the binary must be set explicitly.
- Files written before schema 4 or 5 read some columns as null.
- Provenance rows stop being recorded past 2^19 rows between two builds, though counts still hold every run.
- Globbing the profile directory can read rows twice, so the manifest file list should be used.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/debugging/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md14 KB
Alternatives to debugging
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
debugging: common questions
Where are the blaze profile files stored?
They are in the profile directory under the blaze state directory, which is $BLAZE_HOME/v2 when BLAZE_HOME is set, or the XDG or ~/.cache location otherwise. The manifest.json file lists the files that make up the history.
How do I find out why a blaze build reran?
Start with blaze explain memo_hit_rate_per_query_kind, then run blaze explain why_reran to follow each rerun's cause to its root. The skill asks that the claimed cause be removed and the effect checked afterwards.
How do I run DuckDB against blaze profiles?
Use blaze debug sql with a query, which defines every table and view over the history. Set BLAZE_DUCKDB to an absolute path to the DuckDB binary, or use nix run .#duckdb.
How do I install debugging?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is debugging free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is debugging safe to use?
It scores 81 of 100. Grades: maintenance A, licence A, quality A. 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 debugging?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
