Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

write-test

Skill by jenkinsci

Writes a JUnit 5 test for the P4 Jenkins plugin that covers every acceptance criterion, following the repo's JenkinsRule and p4d conventions. Useful for developers adding test coverage or working through the Red step of TDD.

  • Score 71
  • 88 stars
  • BSD-2-Clause
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install write-test

Built from the published package, never by AI.

git clone --depth 1 https://github.com/jenkinsci/p4-plugin /tmp/p4-plugin && mkdir -p ~/.claude/skills && cp -r /tmp/p4-plugin/.claude/skills/write-test ~/.claude/skills/write-test

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install write-test in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The write-test skill guides an AI assistant to write or extend a JUnit 5 test for the P4 Jenkins plugin. It turns a requirement or ticket into a checklist of acceptance criteria, including negative and edge cases, and maps each one to an assertion. It asks for the smallest test type that proves the behaviour, preferring a pure unit test with Mockito over a server-backed integration test.

Server-backed tests use JenkinsRule, DefaultEnvironment and SampleServerExtension, with a unique P4ROOT per class. The bundled p4d binary is resolved automatically by SimpleTestServer, so p4d does not need to be on the PATH. The skill ends with a Red step that runs a single test with mvn test to confirm it fails for the right reason, followed by a coverage check. It is aimed at developers working on the P4 Jenkins plugin who follow TDD.

Written from the project's SKILL.md and checked against it.

What it can do

  • Requirement checklistTurns each acceptance criterion into a separate, verifiable bullet, including negative and edge cases.
  • Test type choicePicks the smallest test type that proves the behaviour, preferring pure unit tests.
  • Test placement and namingMirrors the package of the code under test and uses the <ClassUnderTest>Test naming pattern.
  • Arrange, act, assert structureKeeps each test to minimal fixture setup, one action and specific assertions.
  • Server-backed test skeletonProvides a JenkinsRule and SampleServerExtension template with a unique P4ROOT per class.
  • Red step checkRuns a single test with mvn test and confirms it fails for the right reason before implementation.
  • Coverage checkRe-reads the checklist so every criterion has an assertion or a stated reason for omission.

What you need

  • The P4 Jenkins plugin repository
  • Maven, for the mvn test command
  • JUnit 5 and JenkinsRule test setup from the repo

Try asking

  • Write a test for this ticket that covers every acceptance criterion.
  • Add test coverage for the credentials handling in this plugin.
  • Write the failing Red test for this feature before I implement it.

Good to know

  • Targets the P4 Jenkins plugin repository conventions only.
  • Uses JUnit 5 (Jupiter) only, not JUnit 4.
  • Tests must not run in parallel and forkCount should not be added.
  • If the bundled p4d will not run on an unsupported OS or architecture, the test cannot be server-backed.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .claude/skills/write-test/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to write-test

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

write-test: common questions

Does the skill need p4d installed on my PATH?

No. The source says the p4d binary is bundled per version and OS under src/test/resources and resolved automatically by SimpleTestServer.

Which test framework does it use?

It uses JUnit 5 (Jupiter) only. The source says JUnit 4 org.junit.Test must not be used.

What is the Red step?

It is running only the new test before the code exists, so it fails for the right reason, such as an assertion gap, rather than a compile or wiring error.

How do I install write-test?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is write-test free?

The code is published under the BSD-2-Clause licence. The service it connects to may have its own pricing.

Is write-test safe to use?

It scores 71 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to write-test?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

write-test Install

Add to stack

Loading.