Agent skill

Unit Testing

by Leavesfly in Leavesfly/Jimi

“Java单元测试编写指南(基于JUnit和Mockito)”

— description from SKILL.md by Leavesfly
No licenceAuto-check passedTesting & QA

Install Unit Testing

skills CLI
$ npx skills add Leavesfly/Jimi --skill unit-testing -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Leavesfly/Jimi unit-testing --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Leavesfly/Jimi.git skills-src && mkdir -p .claude/skills && cp -r skills-src/src/main/resources/skills/unit-testing .claude/skills/unit-testing && rm -rf skills-src

Use ~/.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/

Facts

Skill name
unit-testing
GitHub stars
237
Token cost
~667 tokens
SKILL.md length
76 words
Files
1
Skills in repo
9
Repo updated
First seen
Licence
None found

At a glance

  • Works in 4 steps: 测试独立性:每个测试用例应独立运行,不依赖其他测试的执行顺序或结果 → 单一职责:每个测试只验证一个具体的行为或场景 → 命名清晰:测试方法名应清楚描述测试场景,推荐格式:方法名_测试场景_期望结果 → …
  • SKILL.md covers 测试原则, 测试结构(AAA模式), 常用断言 and Mock使用指南, plus 4 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

About this skill

Unit Testing is a skill in Leavesfly/Jimi (237 stars). Its SKILL.md is about 667 tokens. No licence found.

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. 测试独立性:每个测试用例应独立运行,不依赖其他测试的执行顺序或结果
  2. 单一职责:每个测试只验证一个具体的行为或场景
  3. 命名清晰:测试方法名应清楚描述测试场景,推荐格式:方法名_测试场景_期望结果
  4. 覆盖全面:包括正常场景、边界条件、异常情况三个维度

What it can do on your machine

Read from SKILL.md and the folder at commit 75e1158. It shows what the files ask for, not the result of running them.

  • Tool permissions

    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.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are java).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Unit Testing loads about 667 tokens when it runs. Until then it costs about 11 tokens; SKILL.md has 76 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~11
When it runs · the whole SKILL.md, loaded when a task matches
~667

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.

Safety

Auto-check passed

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); files beside SKILL.md are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 76 words (~667 tokens).

name
unit-testing
version
1.0.0
category
testing
triggers
unit test, 单元测试, junit, mockito, 测试用例, test case

Read the full SKILL.md on GitHub

Files

Just SKILL.md in src/main/resources/skills/unit-testing of Leavesfly/Jimi.

Open the folder on GitHubat commit 75e1158

Compare with similar skills

Unit Testing 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.

Unit Testing compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Unit Testing this skillLeavesfly/Jimi237—~667Automated safety check: PassNone
Debug Surefireeclipse-rdf4j/rdf4j420—~2.4kAutomated safety check: PassBSD-3-Clause
Minecraft TestingJahrome907/minecraft-agent-skills166—~3.8kAutomated safety check: PassMIT
Eclipse Testgradusnikov/eclipse-chatgpt-plugin171—~1kAutomated safety check: PassMIT
Migrate Junit Source To TabletestDataDog/dd-trace-java736—~950Automated safety check: PassApache-2.0
Test Analysis Extensionsmicrosoft/testfx1k2 repos~1.1kAutomated safety check: PassMIT

Similar skills

  • Debug Surefire

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

    420 GitHub stars~2.4k tokensUpdated today
    Testing & QAAuto-check passed
  • Minecraft Testing

    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.

    166 GitHub stars~3.8k tokensUpdated 24 days ago
    Testing & QAAuto-check passed
  • Eclipse Test

    gradusnikov/eclipse-chatgpt-plugin

    Run JUnit tests in Eclipse projects — all tests, by package, by class, or individual test methods.

    171 GitHub stars~1k tokensUpdated 9 days ago
    Testing & QAAuto-check passed
  • Official

    Convert JUnit 5 @MethodSource/@CsvSource/@ValueSource parameterized tests to @TableTest (JDK8)

    736 GitHub stars~950 tokensUpdated today
    Testing & QAAuto-check passed
  • Test Analysis Extensions

    microsoft/testfx

    Official

    Provides file paths to language-specific reference files for the test ANALYSIS skills (assertion-quality, test-anti-patterns, test-gap-analysis, test-smell-detection, test-tagging).

    1k GitHub starsUsed in 2 repos~1.1k tokens
    Testing & QAAuto-check passed
  • Junit 5 Skill

    sickn33/agentic-awesome-skills

    Generates production-grade JUnit 5 unit and integration tests in Java.

    47k GitHub starsUsed in 1 repo~1.8k tokens
    Testing & QAAuto-check passed

More from Leavesfly/Jimi

All 9 skills in this repo
  • Weather

    Leavesfly/Jimi

    Get current weather and forecasts (no API key required). An agent skill from Leavesfly/Jimi.

    237 GitHub starsUsed in 19 repos~287 tokens
    Auto-check passed
  • API Design

    Leavesfly/Jimi

    RESTful API design best practices and conventions guide. An agent skill from Leavesfly/Jimi.

    237 GitHub stars~349 tokensUpdated 1 mo ago
    Auto-check passed
  • Database Design

    Leavesfly/Jimi

    数据库设计规范与优化指南

    237 GitHub stars~1.1k tokensUpdated 1 mo ago
    Auto-check passed
  • Git Commit Guide

    Leavesfly/Jimi

    Git 提交规范(Conventional Commits)

    237 GitHub stars~864 tokensUpdated 1 mo ago
    Auto-check passed
  • Java Best Practices

    Leavesfly/Jimi

    Java 编码最佳实践与设计模式

    237 GitHub stars~381 tokensUpdated 1 mo ago
    Auto-check passed
  • Code Review

    Leavesfly/Jimi

    代码审查最佳实践指南

    237 GitHub stars~297 tokensUpdated 1 mo ago
    Auto-check passed

Works with

Categories

Questions about Unit Testing

How do I install Unit Testing in Claude Code?

Run `npx skills add Leavesfly/Jimi --skill unit-testing -a claude-code`. Or copy the skill folder (src/main/resources/skills/unit-testing in Leavesfly/Jimi) into .claude/skills/unit-testing in your project. Claude Code loads it when a task matches its description.

How do I install Unit Testing in Codex?

Run `npx skills add Leavesfly/Jimi --skill unit-testing -a codex`. Or copy the skill folder (src/main/resources/skills/unit-testing in Leavesfly/Jimi) into .agents/skills/unit-testing in your project. Codex loads it when a task matches its description.

Can I use Unit Testing in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Leavesfly/Jimi --skill unit-testing -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/unit-testing, .gemini/skills/unit-testing, .github/skills/unit-testing and .opencode/skills/unit-testing in your project.

What does Unit Testing need to run?

SKILL.md names no scripts, command-line tools or credentials: Unit Testing is instructions for the agent only.

Does Unit Testing access the network?

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.

Is Unit Testing safe to install?

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. Review the folder before installing.

What licence does Unit Testing use?

No licence was found for Unit Testing or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Unit Testing use?

About 667 tokens (SKILL.md is roughly 2.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Unit Testing?

Skills that share tags, products or a category with Unit Testing: Debug Surefire (eclipse-rdf4j/rdf4j, 420 stars), Minecraft Testing (Jahrome907/minecraft-agent-skills, 166 stars), Eclipse Test (gradusnikov/eclipse-chatgpt-plugin, 171 stars) and Migrate Junit Source To Tabletest (DataDog/dd-trace-java, 736 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Unit Testing?

Leavesfly (a GitHub user) maintains it in Leavesfly/Jimi, which has 237 GitHub stars. The repository holds 9 skills in this directory. The repository was last updated on August 19, 2026.

Source: Leavesfly/Jimi on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.