xwiki-convert-tests

xwiki-convert-tests is a skill for Claude Code from xwiki/xwiki-dev-llm. It costs 66 tokens per session (4,174 once invoked), scanned A, original, LGPL-2.1.

A workflow for updating XWiki unit tests to JUnit 5 and Mockito, two tools used to write and isolate Java tests. It can also clean up the style of existing JUnit 5 tests.

In plain words
What is it for?
Use it to convert unit tests from JUnit 4 or JMock, update MockitoComponentMockingRule tests, and normalize existing JUnit 5 test style.
Why use it?
It removes repetitive conversion and style work when older tests use JUnit 4 or JMock, or use older XWiki mocking patterns.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the xwiki plugin — 24 skills, 2 hooks shipped together

Good fit Use it to convert unit tests from JUnit 4 or JMock, update MockitoComponentMockingRule tests, and normalize existing JUnit 5 test style.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xwiki/xwiki-dev-llm/xwiki-convert-tests
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add xwiki/xwiki-dev-llm --skill xwiki-convert-tests
Clone the repo
git clone --depth 1 https://github.com/xwiki/xwiki-dev-llm

Made for: Claude Code.

Or install xwiki, the plugin that ships this one along with the rest of its 24 skills, 2 hooks.

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 xwiki-convert-tests

README.md
[![agentmods](https://agentmods.dev/badge/skills/xwiki/xwiki-dev-llm/xwiki-convert-tests.svg)](https://agentmods.dev/skills/xwiki/xwiki-dev-llm/xwiki-convert-tests)
Your own site
<a href="https://agentmods.dev/skills/xwiki/xwiki-dev-llm/xwiki-convert-tests"><img src="https://agentmods.dev/badge/skills/xwiki/xwiki-dev-llm/xwiki-convert-tests.svg" alt="Measured on agentmods" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,174 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.
Origin unknown 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.00066 $0.04174
Opus 5 $0.00033 $0.02087
Sonnet 5 $0.00013 $0.00835
Haiku 4.5 $0.00007 $0.00417

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

Security

Grade A, and why

xwiki-convert-tests 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.

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.

xwiki/skills/xwiki-convert-tests/SKILL.md · 452 lines

The source is not reproduced here

Licensed LGPL-2.1

The repository is licensed LGPL-2.1, which this catalogue does not treat as permission to reproduce the file. Read it at the source.

Read it on GitHub

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 · 452 lines · 66 tokens per session scan A f40ef6ee1d71

Subscribe to this mod's changes

xwiki-convert-tests is a skill published in the GitHub repository xwiki/xwiki-dev-llm (3 stars, last pushed today), licensed LGPL-2.1. It adds 66 tokens to every session and 4,174 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-08-31.

Related

Other skills, from other repositories

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

test-quality

Write high-quality JUnit 5 tests with AssertJ assertions. Use when user says "add tests", "write tests", "improve test coverage", or when reviewing/creating test classes for Java code.

decebals/claude-code-java · 45 tokens

java-regression-test-generator

Automatically generate regression tests for Java codebases by analyzing changes between old and new code versions. Use when users need to: (1) Generate tests after refactoring or code changes, (2) Ensure previously tested behavior still works in new versions, (3) Cover modified or newly added code paths, (4) Migrate…

ArabelaTso/Skills-4-SE · 111 tokens

111-java-maven-dependencies

Use when you need to add or evaluate Maven dependencies that improve code quality or domain modeling — including nullness annotations (JSpecify), static analysis (Error Prone + NullAway), functional programming (VAVR), architecture testing (ArchUnit), or money and currency support (JavaMoney) — and want a…

jabrena/plinth · 133 tokens

130-java-testing-strategies

Use when you need to apply testing strategies for Java code — RIGHT-BICEP to guide test creation, A-TRIP for test quality characteristics, or CORRECT for verifying boundary conditions. This should trigger for requests such as Review Java code for testing strategies; Apply RIGHT-BICEP testing strategies in Java code…

jabrena/plinth · 96 tokens

incremental-java-programmer

Incrementally implement new features in Java repositories from natural language descriptions. Use when adding functionality to existing Java codebases (Maven or Gradle projects). Takes a feature description as input and outputs modified repository with implementation code, corresponding JUnit tests, and verification…

ArabelaTso/Skills-4-SE · 78 tokens