بنقرة واحدة
codestyle
Project coding standards and conventions for Java 17 with Lombok, spring-javaformat, checkstyle, and PMD
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Project coding standards and conventions for Java 17 with Lombok, spring-javaformat, checkstyle, and PMD
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Implement a GitHub issue with branch and pull request workflow
Create or update a GitHub issue for tracking work
Check JaCoCo code coverage
Save a learning to project memory. Invoke automatically (without user asking) whenever a task required more than one fix cycle to resolve — e.g. a test failed and needed a second attempt, a compile error required a correction, an API behaved unexpectedly, or an assumption proved wrong mid-task. Also invoke when the user explicitly asks to remember something. Do NOT invoke for routine single-pass work.
Build the project with Maven
Plan the implementation of a GitHub issue
| name | codestyle |
| description | Project coding standards and conventions for Java 17 with Lombok, spring-javaformat, checkstyle, and PMD |
| user-invocable | false |
io.spring.javaformat:spring-javaformat-maven-plugin — run spring-javaformat:apply before committingio.spring.javaformat.checkstyle.SpringChecks with custom suppressionspmd-ruleset.xmlif, else, for, while, do must use {} even for single-line bodies(x) -> not x ->(x) -> x.toString() not (x) -> { return x.toString(); }ex not single-letter e: catch (Exception ex)(a != null) ? a : b not a != null ? a : bimport java.util.*checkstyle-suppressions.xml)These checks are suppressed project-wide:
SpringHeaderCheck — no license header requirementJavadocPackage, JavadocType, JavadocMethod, JavadocVariable — Javadoc not enforcedMissingJavadocType, MissingJavadocMethod — Javadoc not enforcedSpringJavadoc — Javadoc description casing not enforcedRegexpSinglelineJava — no regex line restrictionsSpringImportOrder — import ordering not enforcedRequireThis — this. prefix not requiredSpringTestFileName — test file naming flexiblepmd-ruleset.xml)Key exclusions — these patterns are acceptable in this project:
Best Practices: GuardLogStatement, LiteralsFirstInComparisons, UnusedAssignment,
DoubleBraceInitialization, NonExhaustiveSwitch, RedundantFieldInitializer
Code Style: LocalVariableNamingConventions, PrematureDeclaration, ConfusingTernary,
UseLocaleWithCaseConversions, UseExplicitTypes, FieldNamingConventions
Design: CognitiveComplexity, NcssCount, SimplifyConditional, CollapsibleIfStatements,
GodClass, DataClass, TooManyFields
Error Prone: ReturnEmptyCollectionRatherThanNull, AvoidDuplicateLiterals, NullAssignment
PascalCasecamelCaseUPPER_SNAKE_CASE@Getter/@Setter for fields@Data for POJOs/DTOs@Builder with .toBuilder() for immutable construction@Slf4j for logging@NoArgsConstructor, @AllArgsConstructor as neededtools.jackson.* namespace (not com.fasterxml.jackson)com.fasterxml.jackson.annotation.* annotations still use old namespacereadValue() no longer throws checked IOExceptionpom.xml <properties>Assertions@ParameterizedTest to avoid code duplicationorg.alexmond.sample.test.config# Format all code
bash "/path/to/mvn" io.spring.javaformat:spring-javaformat-maven-plugin:apply -f pom.xml -Pdefault -q
# Validate (checkstyle + PMD)
bash "/path/to/mvn" validate -f pom.xml -pl spring-boot-config-json-schema-starter
# Full build with tests
bash "/path/to/mvn" clean install -f pom.xml -Pdefault