speakeasy-api/dprint-plugin-java/compare-pjf
Claude Code and agent skill by speakeasy-api/dprint-plugin-java
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Compare dprint-plugin-java output against spotless:palantir-java-format on a Java project. Builds the WASM plugin, formats with both tools, normalizes imports, and reports match rate with categorized diffs.
Install
npx vskill@latest install speakeasy-api/dprint-plugin-java/compare-pjfSKILL.md
Compare dprint-plugin-java vs spotless:PJF
Compare the output of dprint-plugin-java against spotless:palantir-java-format on a real Java project to measure formatting parity.
Usage
If no project path is given, a usage message is printed.
What it does
- Builds the WASM plugin (
cargo build --release --target wasm32-unknown-unknown --features wasm) - Copies
.javafiles from the target project (excludingbuild/and.gradle/dirs) - Formats with dprint using the freshly-built WASM plugin
- Formats with spotless:PJF using a temporary Gradle wrapper project
- Normalizes both outputs (strips
java.lang.*imports, sorts imports, strips trailing whitespace) - Compares and reports match rate with unified diffs for mismatches
Requirements
- Rust stable toolchain with
wasm32-unknown-unknowntarget dprintCLI installed- Java 21 (auto-detected via
mise where java@21or$JAVA_HOME) python3- A Gradle wrapper (
gradlew+gradle/) — the script copies one from the target project if available
Output
Key notes
- Always compare from fresh source files, not re-formatted output. Re-formatting inflates match rates.
- Normalization removes
java.lang.*imports (PJF strips these; our formatter intentionally keeps them) and sorts import blocks alphabetically. - Current baseline on
sdk-javav2(473 files): 99.6% match rate.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/compare-pjf/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/speakeasy-api/dprint-plugin-java/compare-pjf)