rdf4j: Skill for Claude Code

.agent/skills/hotspot-jit-forensics/SKILL.md

hotspot-jit-forensics is a skill for Claude Code, Codex from eclipse-rdf4j/rdf4j. It costs 64 tokens per session (1,164 once invoked), scanned A, original, BSD-3-Clause.

A playbook for investigating how the Java HotSpot runtime compiles and runs performance-critical code.

In plain words
What is it for?
Use it to collect JVM facts and produce compiler logs, bytecode details, JFR data, and other performance evidence.
Why use it?
It helps explain slow Java code caused by missed inlining, excessive allocation, compilation limits, or runtime stalls.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex.

This is eclipse-rdf4j/rdf4j's own configuration. It tells Claude Code and Codex how to work on rdf4j itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything rdf4j configures →

Reuse

Borrowing it

Nothing to install: this file belongs to eclipse-rdf4j/rdf4j. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/eclipse-rdf4j/rdf4j/main/.agent/skills/hotspot-jit-forensics/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/eclipse-rdf4j/rdf4j

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for hotspot-jit-forensics

README.md
[![agentmods](https://agentmods.dev/badge/skills/eclipse-rdf4j/rdf4j/hotspot-jit-forensics/github.svg)](https://agentmods.dev/skills/eclipse-rdf4j/rdf4j/hotspot-jit-forensics)
Your own site
<a href="https://agentmods.dev/skills/eclipse-rdf4j/rdf4j/hotspot-jit-forensics"><img src="https://agentmods.dev/badge/skills/eclipse-rdf4j/rdf4j/hotspot-jit-forensics/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for hotspot-jit-forensics

Your own site · 80×15
<a href="https://agentmods.dev/skills/eclipse-rdf4j/rdf4j/hotspot-jit-forensics"><img src="https://agentmods.dev/badge/skills/eclipse-rdf4j/rdf4j/hotspot-jit-forensics.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,164 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00064 $0.01164
Opus 5 $0.00032 $0.00582
Sonnet 5 $0.00013 $0.00233
Haiku 4.5 $0.00006 $0.00116

Measured 8d ago against content hash c690582d6fea, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

hotspot-jit-forensics scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/jit-directives.sh, scripts/jit-facts.sh, scripts/jit-run-log.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agent/skills/hotspot-jit-forensics/SKILL.md · 147 lines

How it starts

The opening of the file, as written. The whole thing — 147 lines — stays where its author put it; the contents beside it link to each section on GitHub.

HotSpot C2 / JIT Forensics & Optimization

A practical playbook for diagnosing Java performance issues by looking at what HotSpot actually does.

Use this skill when you suspect:

  • Lost inlining, megamorphic dispatch, or deoptimization.
  • A hot method is slow because it never reaches C2.
  • High CPU in tiny methods (often a no-inline or missed intrinsic).
  • High allocation rate or cache-unfriendly object layout.
  • Compilation failures/bailouts (node limits, method too big, deep inlining).
  • Code cache pressure, safepoint stalls, or lock contention.

Quick start (repeatable artifacts)

  1. Collect JVM facts
.codex/skills/hotspot-jit-forensics/scripts/jit-facts.sh --out jit-facts.txt

For a running process:

.codex/skills/hotspot-jit-forensics/scripts/jit-facts.sh --pid <pid> --out jit-facts.txt
  1. Generate a C2 directives file
.codex/skills/hotspot-jit-forensics/scripts/jit-directives.sh \
  --method "com/foo/MyClass.myMethod()" \
  --out c2-directives.json5
  1. Run the target command with compiler logging
.codex/skills/hotspot-jit-forensics/scripts/jit-run-log.sh \
  --directives c2-directives.json5 \
  --logfile jit.xml \
  -- java -XX:+UnlockDiagnosticVMOptions -jar app.jar

Artifacts produced:

  • jit-facts.txt (version, flags, OS/arch, optional jcmd output)
  • c2-directives.json5 (method-scoped compiler diagnostics)
  • jit.xml (HotSpot compilation log)
  • Console output with inlining and assembly (if hsdis is available)

Core workflow

1) Profile first (do not guess)

Use JFR or async-profiler to identify the actual hot method(s).

2) Confirm compilation tier

Determine if the method is interpreted, C1, or C2.

Runtime:

jcmd <pid> Compiler.codelist | head
jcmd <pid> Compiler.queue
jcmd <pid> Compiler.codecache

Start-up (noisy):

java -XX:+PrintCompilation -jar app.jar

3) Capture inlining + compilation decisions for ONE method

Prefer Compiler Directives with a focused match.

Read the full file on GitHub · 147 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 147 lines · 64 tokens per session scan A c690582d6fea

Subscribe to this mod's changes

hotspot-jit-forensics is a skill published in the GitHub repository eclipse-rdf4j/rdf4j (412 stars, last pushed yesterday), licensed BSD-3-Clause. It adds 64 tokens to every session and 1,164 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

open-ontologies

AI-native ontology engineering using 50+ MCP tools backed by an in-memory Oxigraph triple store. Build, validate, query, and govern RDF/OWL ontologies with a generate-validate-iterate loop. Use when building ontologies, knowledge graphs, RDF data, SPARQL queries, BORO/4D modeling, SHACL validation, clinical…

fabio-rovai/open-ontologies · 110 tokens

mcp-sparql

Exposes SPARQL query capabilities to LLMs via the Model Context Protocol. Supports SELECT, ASK, CONSTRUCT, and DESCRIBE queries against any SPARQL endpoint.

daedalus/mcp-sparql · 0 tokens

knowledge-graph-sparql

Knowledge graph construction, SPARQL querying, and entity linking for library and research data management using RDF and Wikidata.

xjtulyc/awesome-rosetta-skills · 31 tokens

nullaway

Guide for resolving NullAway static analysis errors. Best practices for: Passing ObservableSupplier/Supplier Dereferencing potentially @Nullable values Adding @NullMarked to Java code.

chromium/chromium · 43 tokens

tika-eval-encoding-regression

Condensed tika-eval pattern for charset-detector regression hunts ("A picks encoding X, B picks Y") using one build and two configs — encoding-pair flip queries, OOV/languageness/FFFD signals, per-file detector attribution.

apache/tika · 60 tokens

wxjava-troubleshooter

A troubleshooting guide for WxJava, a Java library used to connect applications to WeChat services. It organizes problems involving setup, access tokens, signatures, payment certificates, callbacks, data conversion, network requests, and multiple accounts.

binarywang/WxJava · 65 tokens