view --main 111-java-maven-dependencies-skill-uluchsheniya-kachestva-koda.md
111-java-maven-dependencies: Скилл улучшения качества кода
//
Используй, когда нужно добавить или оценить зависимости Maven, улучшающие качество кода — например, аннотации для проверки на null (JSpecify), статический анализ (Error Prone + NullAway), функциональное программирование (VAVR) или тестирование архитектуры (ArchUnit) — и хочешь получить консультативный, основанный на вопросах подход, добавляющий только то, что действительно необходимо. Часть проекта skills-for-java.
SKILL.md
references
111-java-maven-dependencies-archunit.md
1.3 KB
111-java-maven-dependencies-javamoney.md
2.8 KB
111-java-maven-dependencies-jspecify.md
4 KB
111-java-maven-dependencies-vavr.md
1.2 KB
readonly
--- lines
---
name: 111-java-maven-dependencies
description: Use when you need to add or evaluate Maven dependencies that improve code quality — including nullness annotations (JSpecify), static analysis (Error Prone + NullAway), functional programming (VAVR), or architecture testing (ArchUnit) — and want a consultative, question-driven approach that adds only what you actually need. Part of the skills-for-java project
license: Apache-2.0
metadata:
author: Juan Antonio Breña Moral
version: 0.13.0
---
# Add Maven dependencies for improved code quality
Add essential Maven dependencies that enhance code quality and safety through a consultative, question-driven approach. **This is an interactive SKILL**.
**What is covered in this Skill?**
- JSpecify: (nullness annotations, `provided` scope)
- Error Prone + NullAway: (enhanced static analysis with compile-time null checking)
- VAVR: (functional programming with Try/Either and immutable collections)
- ArchUnit: (architecture rule enforcement, `test` scope)
## Constraints
Before adding Maven dependencies, ensure the project is in a valid state. Use a consultative, question-driven flow that adds only what the user selects.
- **MANDATORY**: Run `./mvnw validate` or `mvn validate` before any changes
- **SAFETY**: If validation fails, stop and ask the user to fix issues—do not proceed until resolved
- **BEFORE ASKING QUESTIONS**: Read the reference to use the exact wording and options from the template. Ask questions one-by-one in strict order (JSpecify → Enhanced Compiler Analysis (conditional) → VAVR → ArchUnit) and add only what the user selects. Use consultative language, present trade-offs, and wait for user responses before implementing
## When to use this skill
- Add Maven dependencies
- Add JSpecify nullness dependencies
- Add Error Prone NullAway dependencies
- Add VAVR functional dependencies
- Add ArchUnit architecture testing dependencies
## Reference
For detailed guidance, examples, and constraints, see [references/111-java-maven-dependencies.md](references/111-java-maven-dependencies.md).
Инициализация мануала...
//
$ ls -R related_skills/
package.json
$ install --global
skills.sh
npx skills add https://github.com/jabrena/cursor-rules-java/tree/main/skills/111-java-maven-dependencies
$ download --local
man
[HINT] Скачивает всю директорию скилла с GitHub: SKILL.md и все связанные файлы