001-commands-inventory
Use when you need to generate a checklist document with embedded commands inventory, following the embedded template exactly and producing…
Use when you need to add or configure Maven plugins in your pom.xml — including quality tools (enforcer, surefire, failsafe, jacoco, pitest, spotbugs, pmd), security scanning (OWASP), code formatting (Spotless), version management, container image build (Jib), build information
$ npx -y skills add jabrena/plinth --skill 112-java-maven-plugins --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/112-java-maven-pluginsContext preview
The summary Claude sees to decide when to auto-load this skill.
Use when you need to add or configure Maven plugins in your pom.xml — including quality tools (enforcer, surefire, failsafe, jacoco, pitest, spotbugs, pmd), security scanning (OWASP), code formatting (Spotless), version management, container image build (Jib), build information
name: 112-java-maven-plugins description: Use when you need to add or configure Maven plugins in your pom.xml — including quality tools (enforcer, surefire, failsafe, jacoco, pitest, spotbugs, pmd), security scanning (OWASP), code formatting (Spotless), version management, container image build (Jib), build information tracking, and benchmarking (JMH) — through a consultative, modular step-by-step approach that only adds what you actually need. This should trigger for requests such as Add Maven plugins in pom.xml; Improve Maven plugins in pom.xml; Configure Maven quality plugins in pom.xml; Add Maven build lifecycle plugins for Java verification; Review Maven plugin versions and executions. Part of Plinth Toolkit license: Apache-2.0 metadata: author: Juan Antonio Breña Moral version: 0.18.0
Configure Maven plugins and profiles in pom.xml using a structured, question-driven process that preserves existing configuration. **This is an interactive SKILL**.
**What is covered in this Skill?**
Maven plugins:
Maven profiles:
Before applying plugin recommendations, ensure the project is in a valid state. Use a structured, question-driven process that preserves existing configuration and adds only what the user selects.
1. **Validate project before plugin changes**
Run `./mvnw validate` or `mvn validate` and stop if validation fails.
2. **Analyze current plugin and profile configuration**
Before making any changes to `pom.xml`:
1. Scan existing plugins in `<build><plugins>`, `<build><pluginManagement>`, and `<reporting><plugins>`. 2. Scan existing properties in `<properties>`. 3. Scan existing profiles in `<profiles>`. 4. Identify conflicts between existing configuration and possible additions. 5. Preserve all existing plugins, properties, and profiles. 6. Ask the user before enhancing any existing plugin, property, reporting entry, support file, or profile. 7. Skip duplicate additions unless the user explicitly requests an enhancement.
3. **Check Maven Wrapper before plugin changes**
Check for Maven Wrapper files in the project root:
If Maven Wrapper is not present, stop and ask:
"I notice this project doesn't have Maven Wrapper configured. The Maven Wrapper ensures everyone uses the same Maven version, improving build consistency across different environments. Would you like me to install it? (y/n)"
Wait for the user's response before asking any other question. If the user says "y", install it:
mvn wrapper:wrapper
4. **Ask Maven plugin assessment questions before reading references**
Run this XML-included question flow before reading any plugin/profile implementation reference. Ask one question at a time, wait for the user's answer, and record selected plugins, profiles, and conditional values before continuing.
**Question 1**: What type of Java project is this?
Options:
---
**Question 2**: Which Java version does your project target?
Options:
---
**Question 3**: What build and quality aspects are important for your project?
Options:
**Note**: When "Cyclomatic Complexity" is selected, Step 20 will create a PMD ruleset file and profile. The ruleset location depends on project structure: `src/main/pmd/pmd-cyclomatic-complexity.xml` (mono-module) or `pmd/pmd-cyclomatic-complexity.xml` (multi-module).
---
**Question 3.1** (conditional): What is your target container image for Jib?
**Note**: This question is only asked if "Container image build (Jib)" was selected in question 3.
---
Languages: Español · 中文 Help this project grow: Become a sponsor
Use when you need to generate a checklist document with embedded commands inventory, following the embedded template exactly and producing…
Use when you need to generate a checklist document with embedded agents inventory, following the embedded template exactly and producing…
Use when you need to generate a checklist document with Java system prompts from skills.xml, following the embedded section template and producing…
Use when you need to install the embedded project commands into command directories (.github/commands, .claude/commands, .cursor/command, .codex/commands),…
Use when you need to install the embedded robot agents into .github/agents, .claude/agents, .cursor/agents, or .codex/agents, selecting the destination…
Guides the creation of agile epics with comprehensive definition including business value, success criteria, and breakdown into user stories. Use when the user…