Mps Tests
JetBrains/MPS
A skill your agent uses when writing or modifying tests inside MPS @tests models — NodesTestCase (typesystem, constraints, scopes, dataflow, generator output), EditorTestCase (intentions, actions…
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)…
$ npx skills add eclipse-rdf4j/rdf4j --skill debug-surefire -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install eclipse-rdf4j/rdf4j debug-surefire --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/debug-surefire .claude/skills/debug-surefire && 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 "debug-surefire" agent skill from https://github.com/eclipse-rdf4j/rdf4j/tree/main/.agent/skills/debug-surefire into .claude/skills/debug-surefire/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "debug-surefire", 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/debug-surefireType 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 debug-surefire -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install eclipse-rdf4j/rdf4j debug-surefire --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/debug-surefire .agents/skills/debug-surefire && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "debug-surefire" agent skill from https://github.com/eclipse-rdf4j/rdf4j/tree/main/.agent/skills/debug-surefire into .agents/skills/debug-surefire/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "debug-surefire", 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 debug-surefire -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install eclipse-rdf4j/rdf4j debug-surefire --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/debug-surefire .cursor/skills/debug-surefire && 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 "debug-surefire" agent skill from https://github.com/eclipse-rdf4j/rdf4j/tree/main/.agent/skills/debug-surefire into .cursor/skills/debug-surefire/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "debug-surefire", 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/debug-surefire--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 debug-surefire -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install eclipse-rdf4j/rdf4j debug-surefire --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/debug-surefire .gemini/skills/debug-surefire && 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 "debug-surefire" agent skill from https://github.com/eclipse-rdf4j/rdf4j/tree/main/.agent/skills/debug-surefire into .gemini/skills/debug-surefire/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "debug-surefire", 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 debug-surefireInstalls 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 debug-surefire -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/debug-surefire .github/skills/debug-surefire && 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 "debug-surefire" agent skill from https://github.com/eclipse-rdf4j/rdf4j/tree/main/.agent/skills/debug-surefire into .github/skills/debug-surefire/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "debug-surefire", 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 debug-surefire -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 debug-surefire --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/debug-surefire .opencode/skills/debug-surefire && 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 "debug-surefire" agent skill from https://github.com/eclipse-rdf4j/rdf4j/tree/main/.agent/skills/debug-surefire into .opencode/skills/debug-surefire/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "debug-surefire", 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.
debug-surefireDebug 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)…
Debug Surefire is an agent skill from 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), IntelliJ, or VS Code. Use when asked to debug/step through a failing JUnit test, attach a debugger to a Maven test run, or run mvn test -Dtest=Class[method] suspended on a port (including multi-module -pl runs). The JVM will block at startup until a debugger attaches; the agent should attach with jdb -attach <host:<port and…
Its SKILL.md is about 2.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including scripts (for example `scripts/debug-surefire.sh`).
It sits in Testing & QA, covering Unit testing and Debugging. It works with JUnit, JetBrains IDEs, Visual Studio Code and Java. The repository describes itself as: Eclipse RDF4J: scalable RDF for Java. The licence is BSD-3-Clause.
7 steps, taken from the step headings 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 1 file in scripts/ (Shell), which the agent can run.
Shell commands in SKILL.md call:
mvnFrom 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.
Debug Surefire loads about 2.4k tokens when it runs. Until then it costs about 146 tokens; SKILL.md has 1,095 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). 1,095 words, ~2,395 tokens.
.claude/skills/debug-surefire/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.Run Maven Surefire tests suspended in JDWP so you can attach a debugger and step through the code.
In headless/agent environments, attach with jdb (the JDK’s command-line debugger).
mvn test with Surefire in debug mode via -Dmaven.surefire.debug.suspend=y, meaning:<port>”,This is important: you do not attach to the mvn process itself; you attach to the forked JVM running the tests.
.codex/skills/debug-surefire/scripts/debug-surefire.sh --test-class MyTest#):.codex/skills/debug-surefire/scripts/debug-surefire.sh --test 'MyTest#shouldDoThing'.codex/skills/debug-surefire/scripts/debug-surefire.sh --module core/sail/shacl --test-class ShaclSailTest.codex/skills/debug-surefire/scripts/debug-surefire.sh --module rdf4j-sail-shacl --test 'ShaclSailTest#testSomething'When the forked JVM is ready, you should see something like:
Listening for transport dt_socket at address: 55005jdb (preferred)In a second terminal, attach to the printed port:
jdb -attach 55005jdb -attach localhost:55005If you need source listing inside jdb, provide a sourcepath up front:
jdb -sourcepath module/src/main/java:module/src/test/java -attach 55005Once you’re at the jdb prompt, set a breakpoint (or exception catch) and continue:
stop in com.example.MyTest.shouldDoThingcatch uncaught java.lang.AssertionErrorcontTip: right after attaching to a just-started suspended JVM, jdb may show:
No frames on the current call stackThat’s normal. The JVM hasn’t executed into any Java frames yet. Set breakpoints first, then cont.
-Pquick into the repo-local .m2_repo) and then runs mvn test with Surefire in debug mode.SUREFIRE_DEBUG_PORT=8000 to change the port (default: 55005).--no-offline / --online if offline (-o) resolution fails.-- is passed to Maven, e.g.:.codex/skills/debug-surefire/scripts/debug-surefire.sh --test-class MyTest -- -DtrimStackTrace=false -DfailIfNoTests=false -DforkCount=1 -DreuseForks=falseThis section is optimized for quickly getting signal from a failing unit test without drowning in framework/JDK internals.
Start / resume
cont — continue execution from current stop/breakpointrun — start execution when jdb launched the VM (less relevant when you used -attach)Breakpoints
stop in <class>.<method> — break on method entrystop at <class>:<line> — break at a specific linestop — list all breakpointsclear <class>.<method> / clear <class>:<line> — remove a breakpointclear — list breakpoints (same idea as stop listing)Stepping
next — step over calls (line-level)step — step into calls (line-level)step up — run until current method returnsstepi — step one bytecode instruction (rarely needed)Threads / stacks
threads — list threadsthread <id> — select default threadwhere — stack trace for current threadwhere all — stack traces for all threadsup / down — move the current frame up/down the stackInspect state
locals — print locals in current frameprint <expr> — evaluate/print an expression (same as eval)dump <expr> — more complete object dumpset <lvalue> = <expr> — mutate a variable/field (use sparingly)Source
list — show source around current linelist <line> or list <method> — show a specific regionuse <path1>:<path2> (aka sourcepath) — set where jdb looks for sourcesExceptions
catch uncaught <exception> — break when an uncaught exception occurscatch caught <exception> — break when a caught exception occurscatch all <exception> — break for both caught+uncaughtignore ... — undo a catchReduce noise
exclude <pattern>,<pattern>,... — don’t report step/method events for matching classesexclude none — clear exclusionsAutomation
monitor <command> — run a command every time the program stops (e.g., monitor where)read <file> — execute commands from a file!! — repeat last command<n> <command> — repeat command n times (e.g., 10 next)Right after connecting, set exclusions to avoid stepping into JDK/framework code:
exclude java.*,javax.*,jdk.*,sun.*,com.sun.*,org.junit.*,org.junit.jupiter.*,org.assertj.*,org.hamcrest.*,org.mockito.*,org.apache.maven.*You can always clear this later:
exclude noneCommon breakpoint patterns:
Break at the failing test method:
stop in com.example.MyTest.shouldDoThingBreak inside the code under test:
stop in com.example.service.FooService.doWorkBreak at a specific suspicious line:
stop at com.example.service.FooService:123If the method is overloaded, specify argument types:
stop in com.example.FooService.doWork(int,java.lang.String)Note: jdb supports deferred breakpoints. If the class isn’t loaded yet, it will still accept the breakpoint and activate it when the class loads.
For unit tests, breaking on the thrown assertion/error is often faster than guessing a line.
Useful catches:
Classic Java assertions / many test failures:
catch uncaught java.lang.AssertionErrorCommon in JUnit 5 assertions:
catch uncaught org.opentest4j.AssertionFailedErrorNPE hunting:
catch uncaught java.lang.NullPointerExceptionYou can remove a catch with ignore:
ignore uncaught java.lang.AssertionErrorTip: catch all java.lang.Throwable is the nuclear option. It works, but it can get loud.
Once breakpoints/catches are set:
contWhen you hit a breakpoint:
where to see the call stacklist to see nearby sourcelocals to see local variablesprint someVar or print this.someField to inspectnext to step over, step to step intoSurefire + JUnit can spin up multiple threads (and Maven itself has its own). When in doubt:
threadswhere allThen pick the thread that’s in your test/code-under-test:
thread <id>whereSurefire forking and parallelism can make debugging confusing. If you see multiple JVMs / inconsistent behavior, pass Maven flags to keep it single and fresh:
-DforkCount=1 -DreuseForks=falseExample:
.codex/skills/debug-surefire/scripts/debug-surefire.sh --test 'MyTest#shouldDoThing' -- -DforkCount=1 -DreuseForks=falseBy default, jdb breakpoints suspend all threads, which can create deadlocks in concurrent tests. You can tell jdb to suspend only the thread that hits the breakpoint:
stop thread in com.example.concurrent.Worker.run(You can also target a specific thread id with stop thread <thread_id> in ... if needed.)
jdb will execute startup commands from jdb.ini or .jdbrc in either user.home or user.dir.
This is handy for keeping your default exclusions/catches consistent, e.g.:
exclude java.*,javax.*,jdk.*,sun.*,com.sun.*,org.junit.*,org.assertj.*catch uncaught java.lang.AssertionErrorYou can also keep a project-local command file and load it on demand:
read .codex/skills/debug-surefire/jdb.cmdsjdb can’t connect
jdb -attach.Breakpoints don’t hit
classes to see what’s loaded.stop at <class>:<line> to avoid signature mismatch.list can’t find source
use module/src/main/java:module/src/test/java-sourcepath ... from the start.© 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 1 other file (scripts) in .agent/skills/debug-surefire of eclipse-rdf4j/rdf4j.
Open the folder on GitHubat commit fdbf6e5
Debug Surefire 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 |
|---|---|---|---|---|---|---|
| Debug Surefire this skilleclipse-rdf4j/rdf4j | 420 | — | ~2.4k | Automated safety check: Pass | BSD-3-Clause | |
| Mps TestsJetBrains/MPS | 1.7k | — | ~2.9k | Automated safety check: Pass | Apache-2.0 | |
| Code Completionfacioquo/stock-indicators-dotnet | 1.2k | — | ~1.2k | Automated safety check: Pass | Apache-2.0 | |
| Debug E2E Pipelinekubernetes-sigs/cloud-provider-azure | 294 | — | ~3.4k | Automated safety check: Pass | Apache-2.0 | |
| Minecraft TestingJahrome907/minecraft-agent-skills | 166 | — | ~3.8k | Automated safety check: Pass | MIT | |
| Eclipse Testgradusnikov/eclipse-chatgpt-plugin | 171 | — | ~1k | Automated safety check: Pass | MIT |
JetBrains/MPS
A skill your agent uses when writing or modifying tests inside MPS @tests models — NodesTestCase (typesystem, constraints, scopes, dataflow, generator output), EditorTestCase (intentions, actions…
facioquo/stock-indicators-dotnet
Quality gates for finishing work in this repository — dead-code cleanup, Roslynator and dotnet format fixes, markdownlint, build, unit tests, documentation, and Obsolete migration shims — with the…
kubernetes-sigs/cloud-provider-azure
Fetch and analyze Prow e2e pipeline failures for cloud-provider-azure.
Jahrome907/minecraft-agent-skills
Design and implement automated tests for current Minecraft 26.x or legacy 1.21.x mods and plugins using JUnit, MockBukkit, NeoForge Game Tests, or Fabric Game Tests.
gradusnikov/eclipse-chatgpt-plugin
Run JUnit tests in Eclipse projects — all tests, by package, by class, or individual test methods.
Leavesfly/Jimi
Java单元测试编写指南(基于JUnit和Mockito)
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
Use QueryPlanSnapshotCli to capture and compare RDF4J query plans, then assess likely performance improvements/regressions from execution verification and semantic plan diffs.
eclipse-rdf4j/rdf4j
Retrieve GitHub issues, pull requests, and milestones with read-only, whitelisted gh commands only.
Categories
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)…. Debug Surefire is an agent skill from eclipse-rdf4j/rdf4j.debug) and attaching to the forked test JVM using jdb (preferred for CLI/agent debugging), IntelliJ, or VS Code.
Debug Surefire fits situations like: asked to debug/step through a failing JUnit test; attach a debugger to a Maven test run; run mvn test -Dtest=Class[method] suspended on a port (including multi-module -pl runs).
Run `npx skills add eclipse-rdf4j/rdf4j --skill debug-surefire -a claude-code`. Or copy the skill folder (.agent/skills/debug-surefire in eclipse-rdf4j/rdf4j) into .claude/skills/debug-surefire in your project. Claude Code loads it when a task matches its description.
Run `npx skills add eclipse-rdf4j/rdf4j --skill debug-surefire -a codex`. Or copy the skill folder (.agent/skills/debug-surefire in eclipse-rdf4j/rdf4j) into .agents/skills/debug-surefire 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 debug-surefire -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/debug-surefire, .gemini/skills/debug-surefire, .github/skills/debug-surefire and .opencode/skills/debug-surefire in your project.
Going by SKILL.md and its folder, Debug Surefire needs a shell for the scripts in its folder and the command-line tools its instructions call (mvn). Our summary lists: 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.
Debug Surefire 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 2.4k tokens (SKILL.md is roughly 9.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Debug Surefire: Mps Tests (JetBrains/MPS, 1.7k stars), Code Completion (facioquo/stock-indicators-dotnet, 1.2k stars), Debug E2E Pipeline (kubernetes-sigs/cloud-provider-azure, 294 stars) and Minecraft Testing (Jahrome907/minecraft-agent-skills, 166 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.