Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

heap-sql

Skill by petrbouda

Teaches an AI assistant how to query a parsed Java heap dump with SQL through heap_executeQuery. It explains the index schema and the traps that give silently wrong answers.

  • Score 61
  • 82 stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install heap-sql

Built from the published package, never by AI.

git clone --depth 1 https://github.com/petrbouda/jeffrey /tmp/jeffrey && mkdir -p ~/.claude/skills && cp -r /tmp/jeffrey/jeffrey-claude-plugin/skills/heap-sql ~/.claude/skills/heap-sql

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install heap-sql in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

Heap-sql is an agent skill that teaches an assistant how to query a parsed Java heap dump through the heap_executeQuery tool. A parsed dump becomes its own DuckDB index, separate from the profile's JFR database. The skill describes the index tables, such as class, instance, outbound_ref, string_content and retained_size, and warns about traps that return wrong answers without an error.

The skill tells the assistant to try the purpose-built heap_ tools first and to use raw SQL only for questions they do not cover, such as counts or joins across a class. It also covers heap_oql for object-level questions. The skill is aimed at people analysing Java heap dumps with Jeffrey through an AI assistant.

Written from the project's SKILL.md and checked against it.

What it can do

  • heap_executeQueryRuns read-only SELECT or WITH queries against the heap-dump index.
  • heap_listTablesLists the tables in the live heap-dump index schema.
  • heap_describeTableDescribes the columns of a table in the heap-dump index.
  • heap_oqlRuns Jeffrey's OQL against the object graph for object-level questions.
  • heap_getDominatorTreeRootsBuilds the dominator tree so retained_size and dominator tables are populated.

What you need

  • A parsed heap dump indexed by Jeffrey
  • An MCP-capable AI assistant with the microscope or jeffrey heap tools available

Try asking

  • Count instances per class in this heap dump, sorted by bytes
  • Find which objects hold the strings containing a given value
  • List the subclasses of java.util.AbstractMap in this heap dump

Good to know

  • heap_executeQuery accepts SELECT and WITH only.
  • Results are capped at 100 rows and queries time out after thirty seconds.
  • The dominator and retained_size tables are empty until the dominator tree is built.
  • Object ids are stable within one dump and meaningless across dumps.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: jeffrey-claude-plugin/skills/heap-sql/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

Allowed tools: mcp__plugin_microscope_jeffrey__heap_* mcp__jeffrey__heap_*

Alternatives to heap-sql

All alternatives →
openclaw-github-repo-commandersickn33
94

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.

AAA Skill 50k
gradiogradio-app
94

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.

AAA Skill 44k
hig-components-menussickn33
94

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.

AAA Skill 50k
fastapi-templateswshobson
94

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.

AAA Skill 43k
appfunctionsandroid
94

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.

AAA Skill 11k
agent-qa-authoringsickn33
94

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.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

heap-sql: common questions

What does heap-sql teach an assistant to do?

It teaches the assistant the schema of a Jeffrey heap-dump index and the traps that return wrong answers without an error. It also says when to use raw SQL instead of the purpose-built heap tools.

When should the assistant use heap_executeQuery instead of other heap tools?

The source says to use heap_executeQuery only for questions the purpose-built heap tools do not cover. Examples include counts or joins across a class that those tools do not shape.

Why does string_content matter for string questions?

The string table holds the UTF-8 name pool for class and field names, not String contents. The decoded text of Java String instances is in string_content, and content can be NULL for long strings.

How do I install heap-sql?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is heap-sql free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is heap-sql safe to use?

It scores 61 of 100. Grades: maintenance A, 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 heap-sql?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

heap-sql Install

Add to stack

Loading.