rdf4j: Skill for Claude Code

.agent/skills/query-plan-snapshot-cli/SKILL.md

query-plan-snapshot-cli is a skill for Claude Code, Codex from eclipse-rdf4j/rdf4j. It costs 65 tokens per session (1,418 once invoked), scanned A, original, BSD-3-Clause.

A workflow for capturing and comparing RDF4J database query plans, which show how the system intends to execute a query.

In plain words
What is it for?
Use it to compare query plans, review benchmark history, and investigate likely performance regressions or improvements.
Why use it?
It helps identify whether a query became slower because the optimizer changed joins or other execution choices.

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/query-plan-snapshot-cli/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 query-plan-snapshot-cli

README.md
[![agentmods](https://agentmods.dev/badge/skills/eclipse-rdf4j/rdf4j/query-plan-snapshot-cli/github.svg)](https://agentmods.dev/skills/eclipse-rdf4j/rdf4j/query-plan-snapshot-cli)
Your own site
<a href="https://agentmods.dev/skills/eclipse-rdf4j/rdf4j/query-plan-snapshot-cli"><img src="https://agentmods.dev/badge/skills/eclipse-rdf4j/rdf4j/query-plan-snapshot-cli/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 query-plan-snapshot-cli

Your own site · 80×15
<a href="https://agentmods.dev/skills/eclipse-rdf4j/rdf4j/query-plan-snapshot-cli"><img src="https://agentmods.dev/badge/skills/eclipse-rdf4j/rdf4j/query-plan-snapshot-cli.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,418 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.00065 $0.01418
Opus 5 $0.00032 $0.00709
Sonnet 5 $0.00013 $0.00284
Haiku 4.5 $0.00006 $0.00142

Measured 7d ago against content hash 3b78e2e6e803, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

query-plan-snapshot-cli 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 7d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/interpret_query_plan_regression.py, scripts/run_query_plan_snapshot.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/query-plan-snapshot-cli/SKILL.md · 111 lines

How it starts

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

query-plan-snapshot-cli

Use this skill to run reproducible query-plan captures, triage historical theme-query benchmark results, and classify likely regression/improvement signals.

Fast workflow

  1. Capture raw benchmark output into a normalized result file when needed.
  2. Analyze the newest dated run against historical results.
  3. Drill into the fastest known runs for a specific theme/query.
  4. If needed, capture baseline/candidate plan snapshots and diff them semantically.

History triage

Result files live in:

  • core/sail/lmdb/src/test/java/org/eclipse/rdf4j/sail/lmdb/benchmark/theme-query-benchmark-results

Normalize raw JMH output into a new result file:

  • pbpaste | scripts/theme-query-benchmark-results.sh capture
  • scripts/theme-query-benchmark-results.sh capture raw-jmh.txt

Analyze only the queries that are more than 20% slower than history:

  • core/sail/lmdb/src/test/java/org/eclipse/rdf4j/sail/lmdb/benchmark/theme-query-benchmark-results/analyze-theme-query-history.sh

Sort regressions from biggest to smallest:

  • core/sail/lmdb/src/test/java/org/eclipse/rdf4j/sail/lmdb/benchmark/theme-query-benchmark-results/analyze-theme-query-history.sh --sort-regressions

Only print the top N regressions:

  • core/sail/lmdb/src/test/java/org/eclipse/rdf4j/sail/lmdb/benchmark/theme-query-benchmark-results/analyze-theme-query-history.sh --top 10

Analyze every latest query, including current-run wins over previous best:

  • core/sail/lmdb/src/test/java/org/eclipse/rdf4j/sail/lmdb/benchmark/theme-query-benchmark-results/analyze-theme-query-history.sh --all

Drill into the three fastest known runs for one theme/query and print optimized plan/query when present:

  • core/sail/lmdb/src/test/java/org/eclipse/rdf4j/sail/lmdb/benchmark/theme-query-benchmark-results/analyze-theme-query-history.sh --theme PHARMA --query-index 10

Interpretation:

  • Default mode: newest dated file only for the “latest” baseline; compares against all other results-*.md, including results-develop.md and results-main-branch.md, but prints only queries where latest is more than 20% slower than historical best.
  • --sort-regressions: flat regression list, biggest slowdown first.
  • --top N: top N regressions only; implies regression sorting.
  • --all: prints every latest query; if latest is a new best it prints how much faster it is than the previous best.
  • Query detail mode: top three runs sorted by score ascending; ties prefer richer files with plan/query content.
  • plan no | query yes: optimized query rendered, no physical plan block in that result file.
  • plan no | query no: summary-only run or no per-query capture in that file.

Read the full file on GitHub · 111 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. 7d ago First seen · 111 lines · 65 tokens per session scan A 3b78e2e6e803

Subscribe to this mod's changes

query-plan-snapshot-cli is a skill published in the GitHub repository eclipse-rdf4j/rdf4j (412 stars, last pushed yesterday), licensed BSD-3-Clause. It adds 65 tokens to every session and 1,418 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

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

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

kg-modality-sparql

Query and update the engine's RDF/OWL store over the W3C SPARQL 1.1 Protocol — the engine IS the triplestore (epistemic-graph owns the /sparql wire). Use when you need SELECT/ASK/ CONSTRUCT/DESCRIBE/UPDATE over triples/quads, named graphs, property paths, or when an existing rdflib/Jena/Stardog client should point at…

Knuckles-Team/epistemic-graph · 114 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

tika-eval-h2-query

Query the tika-eval H2 database directly for counts and joins the canned reports do not compute — connection gotchas, key tables, example queries. Use when the xlsx/summary.md reports are not enough.

apache/tika · 51 tokens

azure-data-tables-java

Build table storage applications with Azure Tables SDK for Java. Use when working with Azure Table Storage or Cosmos DB Table API for NoSQL key-value data, schemaless storage, or structured data at scale.

microsoft/skills · 47 tokens