Use when the user wants to run static analysis on Java (or Apex, Visualforce, Kotlin, JavaScript, JSP, PLSQL, Scala, Swift, T-SQL, XML, XSL, Modelica, VM) source code to find bug patterns, code smells, unused imports, dead code, design problems...
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Pmd?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/moabualruz-pmd)
---
name: pmd
description: "Use when the user wants to run static analysis on Java (or Apex, Visualforce, Kotlin, JavaScript, JSP, PLSQL, Scala, Swift, T-SQL, XML, XSL, Modelica, VM) source code to find bug patterns, code smells, unused imports, dead code, design problems..."
---
# pmd
## When to use
See [references/when-to-use.md](references/when-to-use.md). Load only when this section is needed.
## Invocation
See [references/invocation.md](references/invocation.md). Load only when this section is needed.
## Patterns
See [references/patterns.md](references/patterns.md). Load only when this section is needed.
## Anti-patterns
See [references/anti-patterns.md](references/anti-patterns.md). Load only when this section is needed.
## Cross-refs
See [references/cross-refs.md](references/cross-refs.md). Load only when this section is needed.