rdf4j: Skill for Claude Code

.agent/skills/debug-surefire/SKILL.md

debug-surefire is a skill for Claude Code, Codex from eclipse-rdf4j/rdf4j. It costs 147 tokens per session (2,494 once invoked), scanned A, original, BSD-3-Clause.

A workflow for debugging Maven Surefire unit tests by pausing the test process and attaching a Java debugger. Maven Surefire is the Maven component that runs tests.

In plain words
What is it for?
Use it to step through a failing JUnit test with jdb, IntelliJ, or VS Code, including a specific test method or project module.
Why use it?
It lets you stop at the failing test and inspect the program while it runs, instead of relying only on error output.

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/debug-surefire/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 debug-surefire

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/eclipse-rdf4j/rdf4j/debug-surefire"><img src="https://agentmods.dev/badge/skills/eclipse-rdf4j/rdf4j/debug-surefire.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 147 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,494 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.00147 $0.02494
Opus 5 $0.00073 $0.01247
Sonnet 5 $0.00029 $0.00499
Haiku 4.5 $0.00015 $0.00249

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

Security

Grade A, and why

debug-surefire 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 1 executable file (scripts/debug-surefire.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/debug-surefire/SKILL.md · 263 lines

How it starts

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

debug-surefire

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).

What this does

  • Runs mvn test with Surefire in debug mode via -Dmaven.surefire.debug.
  • Surefire launches the forked test JVM with a JDWP socket and suspend=y, meaning:
    • the forked JVM starts,
    • prints “Listening for transport dt_socket at address: ”,
    • then waits until a debugger attaches,
    • only then does it begin executing tests.

This is important: you do not attach to the mvn process itself; you attach to the forked JVM running the tests.

Quick start

  1. Start a suspended test run
  • Debug a test class:
    • .codex/skills/debug-surefire/scripts/debug-surefire.sh --test-class MyTest
  • Debug a single test method (quote the #):
    • .codex/skills/debug-surefire/scripts/debug-surefire.sh --test 'MyTest#shouldDoThing'
  • Debug a test in a specific module:
    • .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: 55005
  1. Attach with jdb (preferred)

In a second terminal, attach to the printed port:

  • Local attach (port only implies localhost):
    • jdb -attach 55005
  • Explicit host+port:
    • jdb -attach localhost:55005

If you need source listing inside jdb, provide a sourcepath up front:

  • jdb -sourcepath module/src/main/java:module/src/test/java -attach 55005
  1. Set breakpoints / catches, then resume

Once you’re at the jdb prompt, set a breakpoint (or exception catch) and continue:

  • stop in com.example.MyTest.shouldDoThing
  • catch uncaught java.lang.AssertionError
  • cont

Tip: right after attaching to a just-started suspended JVM, jdb may show:

  • No frames on the current call stack

Read the full file on GitHub · 263 lines

Files

What ships with it

1 file 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 · 263 lines · 147 tokens per session scan A 70ba91523a06

Subscribe to this mod's changes

debug-surefire is a skill published in the GitHub repository eclipse-rdf4j/rdf4j (412 stars, last pushed today), licensed BSD-3-Clause. It adds 147 tokens to every session and 2,494 once invoked, about $0.0007 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

testing

Skill validation framework PLUS daily test-suite health and regression intelligence. Validates skill conformance (frontmatter, manifest coverage, resolver coverage). Runs the project test suite in tiered phases (unit / evals / integration / system health), classifies failures, and produces a regression-aware report.

garrytan/gbrain · 63 tokens

detect-static-dependencies

ACTIVATION PREREQUISITE: the request or discovered target must explicitly identify C#, .NET, .cs, or .csproj; otherwise stay dormant without invoking this skill. USE FOR: locating System.DateTime.Now/UtcNow, System.IO.File/Directory, System.Environment, HttpClient, Console, or Process usage in C#; auditing C# code for…

dotnet/skills · 135 tokens

java-unit-test

A code-generation guide for Java unit tests in Spring Boot projects. Unit tests check one small piece of code in isolation; Spring Boot is a Java framework for building web applications and services.

hashgraph-online/awesome-codex-plugins · 113 tokens

write-fixture

Write Java/Kotlin tests with Fixture Monkey — enumerate the cases a method can produce, pick the ones worth testing, and build each fixture pinning only the properties that force the expected outcome.

naver/fixture-monkey · 42 tokens