create-test

Analyze Java classes and scaffold JUnit 5 tests with assertions.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/bigdegenenergy/ai-dev-toolkit --skill create-test
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-test
Source: https://github.com/bigdegenenergy/ai-dev-toolkit/tree/main/profiles/java/.claude/skills/create-test
Command: npx skills add https://github.com/bigdegenenergy/ai-dev-toolkit --skill create-test

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Analyze a Java class and scaffold a JUnit 5 test with proper structure and assertions.

Core Features & Use Cases

  • Automatic test skeletons: generates a test class mirroring the source package and creates tests for public methods.
  • Dependency awareness: identifies constructor or method dependencies and suggests mocks where appropriate.
  • Use Case: when you need to rapidly validate new or existing Java classes with confidence.

Quick Start

Provide the Java class source to the skill and run the create-test skill to generate a JUnit 5 test scaffold in the corresponding test package.

Frequently Asked Questions about create-test

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I auto-generate JUnit 5 test skeletons from existing Java classes?

To auto-generate JUnit 5 test skeletons, provide your Java class source to the skill. It analyzes public methods and scaffolds a test class mirroring the source package with proper structure and assertions.

Can I generate unit tests with mocks for Java service and controller classes?

Yes, you can generate unit tests with mocks for Java service, controller, or utility classes. The skill identifies constructor or method dependencies and suggests appropriate mocks within the JUnit 5 test scaffold.

What do I need to generate JUnit 5 tests for my Java project?

You need JUnit 5 in your Java project to generate test skeletons. Provide the Java class source code, and the skill will scaffold tests in the corresponding test package across common packaging structures.

Does JUnit 5 test generation work with existing Java codebases?

JUnit 5 test generation works with both new and existing Java codebases. It analyzes your provided Java classes to identify testable methods and automatically creates matching test file structures.

What is the best way to scaffold unit tests for multiple Java utility classes?

The best way to scaffold unit tests for multiple Java utility classes is submitting the source code to the skill. It automatically identifies testable public methods and generates structured JUnit 5 test skeletons with appropriate assertions.