Unit Test Skills for AI Coding Agents in Java Environments

Repositorymavka-ai/unit-tests-skillsTool

The mavka-ai/unit-tests-skills repository provides agent skills for generating Java unit tests using JUnit 5, Mockito, and AssertJ. Instead of one-shot generation, coding agents like Claude Code or Codex follow a structured process: plan coverage, generate tests, compile, and execute them.

Key points

  1. Enforces a structured four-step agent workflow: Plan, Generate, Compile, and Run.
  2. Increases mutation score from ~42% to 83–92% at 100% branch coverage in benchmark tests.
  3. Benchmarked on Spring Petclinic using Claude Code 2.1.276 (OPUS-5) and Codex 0.155.1 (gpt-5.6-sol).
  4. Compatible with Claude Code, Cursor, Codex, and AGENTS.md-compliant coding tools.
  5. Focuses on Java, JUnit 5, Mockito, AssertJ, and Given-When-Then test conventions.

Why it matters

Green builds and high branch coverage can hide unasserted bugs when AI writes simplistic tests. Structuring the agent process ensures thorough verification and higher fault detection in Java codebases.

Analysis

The Problem

AI coding assistants asked to write unit tests typically stop as soon as the test build passes. However, a green suite with 100% branch coverage can still fail to catch real defects if the assertions are shallow or incomplete.

Architecture and Workflow

The mavka-ai/unit-tests-skills repository injects a disciplined process via AGENTS.md and plugin definitions. Instead of prompting for tests in a single step, the agent must first inspect code branches and propose a test plan. Next, it writes focused Given-When-Then test cases using JUnit 5, Mockito, and AssertJ. Finally, it must compile and execute the suite before marking the task complete.

Target Audience and Maturity

This project targets Java developers using AI assistants like Claude Code, Cursor, or Codex who need reliable test suites for legacy or newly added services. With 75 stars, 11 forks, and an MIT license, the repository is relatively new and niche, but it demonstrates how workflow constraints improve code verification beyond basic prompting.

Found in

Summary generated by AI (Gemini 3.8 Flash, 21 November 2026). It may contain errors – the original source is authoritative.

Similar in content, found by the AI search.

  • Repository:coleam00/skills

    Cole's AI Skills: Modular Skill Files for Coding Agents

    The GitHub repository 'coleam00/skills' provides a collection of 33 practical skills designed for AI coding agents such as Claude Code. Instead of maintaining a monolithic 2,000-line CLAUDE.md instruction file, each skill resides in a standalone folder with a SKILL.md file and is loaded on demand. The set revolves around a standard development cycle: prime, plan, implement, validate, review, commit, and PR.

    482starsPython

    AI & LLMs· Tool

  • Link:Matt Pocock

    AI Skills for Real Engineers: Modular Slash Commands for Coding Agents

    Matt Pocock introduces mattpocock/skills, an open-source toolkit of 27 structured skills designed for coding agents such as Claude Code, Cursor, and Copilot. These slash commands guide agents through planning, TDD, code generation, and reviews. It helps software engineers enforce professional engineering standards in AI-assisted workflows.

    AI & LLMs· Tool

  • Repository:briiirussell/cybersecurity-skills

    Cybersecurity Skills: Security Workflows for AI Coding Agents

    An open-source repository provides structured cybersecurity skills for AI agents like Claude Code, Cursor, and Codex. It helps developers and security engineers run automated audits, dependency scans, and code reviews directly within agent workflows.

    479starsJavaScript

    AI & LLMs· Tool

  • Repository:obra/superpowers

    Superpowers: An Agentic Skills Framework and SDLC Methodology for Coding Agents

    Superpowers is an open-source development methodology and skills framework for AI coding agents. Instead of immediately writing code, agents clarify specifications, draft test-driven implementation plans, and execute tasks autonomously through subagents.

    285.9kstarsShell

    AI & LLMs· Tool

Let's talk about your project

Locations

  • Mattersburg
    Johann Nepomuk Bergerstraße 7/2/14
    7210 Mattersburg, Austria
  • Vienna
    Ungargasse 64-66/3/404
    1030 Wien, Austria

Parts of this content were created with the assistance of AI.