Code Optimizer
ArabelaTso/Skills-4-SE
Analyzes and optimizes code for better performance, memory usage, and efficiency.
Use QueryPlanSnapshotCli to capture and compare RDF4J query plans, then assess likely performance improvements/regressions from execution verification and semantic plan diffs.
$ npx skills add eclipse-rdf4j/rdf4j --skill query-plan-snapshot-cli -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install eclipse-rdf4j/rdf4j query-plan-snapshot-cli --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/eclipse-rdf4j/rdf4j.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agent/skills/query-plan-snapshot-cli .claude/skills/query-plan-snapshot-cli && rm -rf skills-srcUse ~/.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/
Install the "query-plan-snapshot-cli" agent skill from https://github.com/eclipse-rdf4j/rdf4j/tree/main/.agent/skills/query-plan-snapshot-cli into .claude/skills/query-plan-snapshot-cli/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "query-plan-snapshot-cli", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/eclipse-rdf4j/rdf4j/tree/main/.agent/skills/query-plan-snapshot-cliType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add eclipse-rdf4j/rdf4j --skill query-plan-snapshot-cli -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install eclipse-rdf4j/rdf4j query-plan-snapshot-cli --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/eclipse-rdf4j/rdf4j.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agent/skills/query-plan-snapshot-cli .agents/skills/query-plan-snapshot-cli && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "query-plan-snapshot-cli" agent skill from https://github.com/eclipse-rdf4j/rdf4j/tree/main/.agent/skills/query-plan-snapshot-cli into .agents/skills/query-plan-snapshot-cli/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "query-plan-snapshot-cli", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add eclipse-rdf4j/rdf4j --skill query-plan-snapshot-cli -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install eclipse-rdf4j/rdf4j query-plan-snapshot-cli --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/eclipse-rdf4j/rdf4j.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agent/skills/query-plan-snapshot-cli .cursor/skills/query-plan-snapshot-cli && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "query-plan-snapshot-cli" agent skill from https://github.com/eclipse-rdf4j/rdf4j/tree/main/.agent/skills/query-plan-snapshot-cli into .cursor/skills/query-plan-snapshot-cli/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "query-plan-snapshot-cli", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/eclipse-rdf4j/rdf4j.git --path .agent/skills/query-plan-snapshot-cli--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add eclipse-rdf4j/rdf4j --skill query-plan-snapshot-cli -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install eclipse-rdf4j/rdf4j query-plan-snapshot-cli --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/eclipse-rdf4j/rdf4j.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agent/skills/query-plan-snapshot-cli .gemini/skills/query-plan-snapshot-cli && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "query-plan-snapshot-cli" agent skill from https://github.com/eclipse-rdf4j/rdf4j/tree/main/.agent/skills/query-plan-snapshot-cli into .gemini/skills/query-plan-snapshot-cli/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "query-plan-snapshot-cli", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install eclipse-rdf4j/rdf4j query-plan-snapshot-cliInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add eclipse-rdf4j/rdf4j --skill query-plan-snapshot-cli -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/eclipse-rdf4j/rdf4j.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agent/skills/query-plan-snapshot-cli .github/skills/query-plan-snapshot-cli && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "query-plan-snapshot-cli" agent skill from https://github.com/eclipse-rdf4j/rdf4j/tree/main/.agent/skills/query-plan-snapshot-cli into .github/skills/query-plan-snapshot-cli/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "query-plan-snapshot-cli", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add eclipse-rdf4j/rdf4j --skill query-plan-snapshot-cli -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install eclipse-rdf4j/rdf4j query-plan-snapshot-cli --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/eclipse-rdf4j/rdf4j.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agent/skills/query-plan-snapshot-cli .opencode/skills/query-plan-snapshot-cli && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "query-plan-snapshot-cli" agent skill from https://github.com/eclipse-rdf4j/rdf4j/tree/main/.agent/skills/query-plan-snapshot-cli into .opencode/skills/query-plan-snapshot-cli/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "query-plan-snapshot-cli", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
query-plan-snapshot-cliUse QueryPlanSnapshotCli to capture and compare RDF4J query plans, then assess likely performance improvements/regressions from execution verification and semantic plan diffs.
Query Plan Snapshot CLI is an agent skill from eclipse-rdf4j/rdf4j. Use QueryPlanSnapshotCli to capture and compare RDF4J query plans, then assess likely performance improvements/regressions from execution verification and semantic plan diffs. Trigger when users ask about optimizer impact, query-plan drift, join algorithm changes, or query performance regressions in testsuites/benchmark.
Its SKILL.md is about 1.5k tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files, including scripts and reference files (for example `references/workflow.md`, `scripts/interpret_query_plan_regression.py` and `scripts/run_query_plan_snapshot.sh`).
It sits in Databases, covering Query optimization. It works with Java. The repository describes itself as: Eclipse RDF4J: scalable RDF for Java. The licence is BSD-3-Clause.
4 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit fdbf6e5. It shows what the files ask for, not the result of running them.
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.
Ships 2 files in scripts/ (Python and Shell), which the agent can run.
Shell commands in SKILL.md call:
mvnpython3From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Query Plan Snapshot CLI loads about 1.5k tokens when it runs, and up to ~2.2k if it reads all its reference files. Until then it costs about 87 tokens; SKILL.md has 541 words of instructions outside code blocks.
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.
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); the scripts in this folder are not scanned.
The full file from eclipse-rdf4j/rdf4j at commit fdbf6e5, republished under its BSD-3-Clause licence (© eclipse-rdf4j). 541 words, ~1,536 tokens.
.claude/skills/query-plan-snapshot-cli/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.Use this skill to run reproducible query-plan captures, triage historical theme-query benchmark results, and classify likely regression/improvement signals.
Result files live in:
core/sail/lmdb/src/test/java/org/eclipse/rdf4j/sail/lmdb/benchmark/theme-query-benchmark-resultsNormalize raw JMH output into a new result file:
pbpaste | scripts/theme-query-benchmark-results.sh capturescripts/theme-query-benchmark-results.sh capture raw-jmh.txtAnalyze 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.shSort 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-regressionsOnly 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 10Analyze 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 --allDrill 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 10Interpretation:
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.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.Use this path when the goal is optimizer-loop work: find the fastest known plan/query for a theme/query, then compare new runs back to that history before touching production logic.
Theme regression/snapshot tests in core/sail/lmdb now support reusing a prepared LMDB store across runs.
-Drdf4j.lmdb.themeRegression.persistentStore.enabled=true-Drdf4j.lmdb.themeRegression.persistentStore.root=persistent-lmdb-theme-storepersistent-lmdb-theme-storeBehavior:
triples/data.mdb and values/data.mdb sizes (from expected-db-file-sizes.properties), tests reuse it and skip rebuild/ingest.Example focused run:
mvn -o -Dmaven.repo.local=.m2_repo -pl core/sail/lmdb -Dtest=LmdbThemeQueryRegressionTest#socialMediaFiveCycleInterleavesValuesWithFollowsEdges -Drdf4j.lmdb.themeRegression.persistentStore.enabled=true testUse this when you need semantic plan diffs between two controlled captures of the same query.
--query-id.--compare-existing).Use wrapper (enforces pre-install and optional logging):
./.codex/skills/query-plan-snapshot-cli/scripts/run_query_plan_snapshot.sh --log /tmp/qps-baseline.log -- --store memory --theme MEDICAL_RECORDS --query-index 0 --query-id med-q0./.codex/skills/query-plan-snapshot-cli/scripts/run_query_plan_snapshot.sh --log /tmp/qps-candidate.log -- --store memory --theme MEDICAL_RECORDS --query-index 0 --query-id med-q0 --compare-latest --diff-mode structure+estimatesmvn -o -Dmaven.repo.local=.m2_repo -pl testsuites/benchmark -DskipTests exec:java@query-plan-snapshot -Dexec.args="--compare-existing --query-id med-q0 --compare-indices 1,0 --no-interactive --diff-mode structure+estimates" | tee /tmp/qps-compare.logpython3 ./.codex/skills/query-plan-snapshot-cli/scripts/interpret_query_plan_regression.py --baseline-log /tmp/qps-baseline.log --candidate-log /tmp/qps-candidate.log --comparison-log /tmp/qps-compare.logaverageMillis down with stable resultCount: improvement signal.averageMillis up with stable resultCount: regression signal.actualResultSizes=diff: semantic/data-shape risk; perf conclusion low confidence.joinAlgorithms=diff or structure=diff: optimizer behavior changed; correlate with runtime delta.estimates=diff only: model/statistics shift; validate with repeated runs.For more detailed reading patterns and triage prompts, use references/workflow.md.
© eclipse-rdf4j, BSD-3-Clause. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 3 other files (scripts, references) in .agent/skills/query-plan-snapshot-cli of eclipse-rdf4j/rdf4j.
Open the folder on GitHubat commit fdbf6e5
Query Plan Snapshot CLI 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Query Plan Snapshot CLI this skilleclipse-rdf4j/rdf4j | 420 | — | ~1.5k | Automated safety check: Pass | BSD-3-Clause | |
| Code OptimizerArabelaTso/Skills-4-SE | 253 | — | ~3.1k | Automated safety check: Pass | Apache-2.0 | |
| SQL Optimization Patternsynulihao/AgentSkillOS | 617 | 11 repos | ~3.3k | Automated safety check: Pass | None | |
| Cloud Trace Queryinggoogle/skills | 21k | — | ~1.7k | Automated safety check: Pass | Apache-2.0 | |
| Query Engine Designrevfactory/claude-code-harness | 120 | — | ~474 | Automated safety check: Pass | None | |
| Wp Acf And Content Modelingjorgerosal/wordpress-skills | 101 | — | ~3.2k | Automated safety check: Pass | MIT |
ArabelaTso/Skills-4-SE
Analyzes and optimizes code for better performance, memory usage, and efficiency.
ynulihao/AgentSkillOS
Master SQL query optimization, indexing strategies, and EXPLAIN analysis to dramatically improve database performance and eliminate slow queries.
google/skills
Query Cloud Trace spans, filter by latency thresholds or error status, correlate distributed traces with Cloud Logging, and diagnose latency bottlenecks across Google Cloud services.
revfactory/claude-code-harness
SQL query engine design and implementation guide. An agent skill from revfactory/claude-code-harness.
jorgerosal/wordpress-skills
WordPress ACF and content modeling review. An agent skill from jorgerosal/wordpress-skills.
affaan-m/ECC
JPA/Hibernate patterns for entity design, relationships, query optimization, transactions, auditing, indexing, pagination, and pooling in Spring Boot.
eclipse-rdf4j/rdf4j
Run a repeatable RDF4J performance loop against one JMH benchmark in Docker with Linux Java 26 and JFR CPU-time profiling.
eclipse-rdf4j/rdf4j
Parse JMH result text by finding the first header line that starts with Benchmark and contains Mode and Score, build a structured table for all columns/rows, compare overlapping benchmarks across 2+…
eclipse-rdf4j/rdf4j
Run Maven tests in this repo with a consistent workflow (module test-artifact cleanup, root -Pquick install to refresh .m2repo, then module verify or a single test class/method).
eclipse-rdf4j/rdf4j
Debug Maven Surefire unit tests by running them in JDWP "wait for debugger" mode (-Dmaven.surefire.debug) and attaching to the forked test JVM using jdb (preferred for CLI/agent debugging)…
eclipse-rdf4j/rdf4j
Retrieve GitHub issues, pull requests, and milestones with read-only, whitelisted gh commands only.
Works with
Categories
Use QueryPlanSnapshotCli to capture and compare RDF4J query plans, then assess likely performance improvements/regressions from execution verification and semantic plan diffs. Query Plan Snapshot CLI is an agent skill from eclipse-rdf4j/rdf4j. Use QueryPlanSnapshotCli to capture and compare RDF4J query plans, then assess likely performance improvements/regressions from execution verification and semantic plan diffs.
Query Plan Snapshot CLI fits situations like: users ask about optimizer impact; query-plan drift; join algorithm changes; query performance regressions in testsuites/benchmark.
Run `npx skills add eclipse-rdf4j/rdf4j --skill query-plan-snapshot-cli -a claude-code`. Or copy the skill folder (.agent/skills/query-plan-snapshot-cli in eclipse-rdf4j/rdf4j) into .claude/skills/query-plan-snapshot-cli in your project. Claude Code loads it when a task matches its description.
Run `npx skills add eclipse-rdf4j/rdf4j --skill query-plan-snapshot-cli -a codex`. Or copy the skill folder (.agent/skills/query-plan-snapshot-cli in eclipse-rdf4j/rdf4j) into .agents/skills/query-plan-snapshot-cli in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add eclipse-rdf4j/rdf4j --skill query-plan-snapshot-cli -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/query-plan-snapshot-cli, .gemini/skills/query-plan-snapshot-cli, .github/skills/query-plan-snapshot-cli and .opencode/skills/query-plan-snapshot-cli in your project.
Going by SKILL.md and its folder, Query Plan Snapshot CLI needs Python and a shell for the scripts in its folder and the command-line tools its instructions call (mvn and python3). Our summary lists: Python 3; A Bash shell.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
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. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
Query Plan Snapshot CLI is published under the BSD-3-Clause licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.5k tokens (SKILL.md is roughly 6.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 650 tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Query Plan Snapshot CLI: Code Optimizer (ArabelaTso/Skills-4-SE, 253 stars), SQL Optimization Patterns (ynulihao/AgentSkillOS, 617 stars), Cloud Trace Querying (google/skills, 21k stars) and Query Engine Design (revfactory/claude-code-harness, 120 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
eclipse-rdf4j (a GitHub organization) maintains it in eclipse-rdf4j/rdf4j, which has 420 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on October 7, 2026.
Source: eclipse-rdf4j/rdf4j on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.