Source profileQuality 93/100

equinor/neqsim/.github/skills/neqsim-java8-rules/SKILL.md

neqsim-java8-rules

Java 8 compatibility rules for NeqSim. USE WHEN: writing or reviewing any Java code for NeqSim, including tests. Covers forbidden Java 9+ features, replacement patterns, API verification, and JavaDoc requirements. All NeqSim Java code MUST compile with Java 8.

Source repository stars
147
Declared platforms
0
Static risk flags
0
Last source update
2026-08-28
Source checked
2026-08-28

Decision brief

What it does: where it fits

All NeqSim Java code — including test classes in src/test/java/ — MUST compile with Java 8. The CI build will FAIL if you use Java 9+ features.

Best for

  • USE WHEN: writing or reviewing any Java code for NeqSim, including tests.

Not for

  • Tasks that require unconfirmed production actions or broad system permissions.
  • Environments where the pinned source and install steps cannot be inspected.

Compatibility matrix

Platform support, with evidence labels

PlatformStatusEvidenceWhat to check
CodexNot declaredNo explicit evidencePortability before use
Claude CodeNot declaredNo explicit evidencePortability before use
CursorNot declaredNo explicit evidencePortability before use
Gemini CLINot declaredNo explicit evidencePortability before use
Open the compatibility checker

Installation

Inspect first. Install second.

The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.

Source-detected install commandSource
npx skills add https://github.com/equinor/neqsim --skill ".github/skills/neqsim-java8-rules"
Safe inspection promptEditorial

Inspect the Agent Skill "neqsim-java8-rules" from https://github.com/equinor/neqsim/blob/9e4e36d4b6a59404ac9aa629740fbc312610d3c8/.github/skills/neqsim-java8-rules/SKILL.md at commit 9e4e36d4b6a59404ac9aa629740fbc312610d3c8. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.

Workflow

What the source asks the agent to do

  1. 01

    API Verification (MANDATORY)

    Before using any NeqSim class in code or examples:

    Search for the class: filesearch("/ClassName.java")Read constructor and method signatures from the actual sourceUse only methods that actually exist with correct parameter types
  2. 02

    Forbidden Java 9+ Features

    Review the “Forbidden Java 9+ Features” section in the pinned source before continuing.

    Review and apply the “Forbidden Java 9+ Features” source section.
  3. 03

    Common var Replacements

    Review the “Common var Replacements” section in the pinned source before continuing.

    Review and apply the “Common var Replacements” source section.
  4. 04

    Required Import for String Repeat

    Review the “Required Import for String Repeat” section in the pinned source before continuing.

    Review and apply the “Required Import for String Repeat” source section.
  5. 05

    Code Formatting (Spotless) — MANDATORY

    AI-generated Java is NOT auto-formatted. After creating or editing ANY .java file, reformat it before committing — do not rely on local pre-commit hooks being installed:

    Formatter profile: .config/neqsimformatter.xml (configured in pom.xml),CI runs ./mvnw spotless:check and FAILS the build on any unformatted file.Run spotless:apply, then git add the reformatted files, then commit.

Permission review

Static risk signals and limitations

No configured static risk pattern was detected

This is not proof of safety. Runtime behavior, indirect dependencies, and hidden external systems are outside the static scan.

Evidence record

Why each signal appears

EvidenceSourceComputedTestedEditorial
SignalValueEvidence typeMeaning
Quality score93/100ComputedDocumentation, specificity, maintenance, and trust rules
Repository stars147SourceRepository attention, not individual Skill quality
Compatibility0 platformsSourceDeclared in the catalog source record
Usage guideautomated source guideEditorialGenerated or reviewed according to the visible evidence level

Pinned source

Provenance and original SKILL.md

Repository
equinor/neqsim
Skill path
.github/skills/neqsim-java8-rules/SKILL.md
Commit
9e4e36d4b6a59404ac9aa629740fbc312610d3c8
License
Apache-2.0
Collected
2026-08-28
Default branch
master
View the original SKILL.md

Java 8 Compatibility Rules for NeqSim

All NeqSim Java code — including test classes in src/test/java/MUST compile with Java 8. The CI build will FAIL if you use Java 9+ features.

Forbidden Java 9+ Features

ForbiddenJava 8 Alternative
var x = ...Explicit type: String x = ..., Map<String, Object> map = ...
List.of(a, b)Arrays.asList(a, b) or Collections.singletonList(a)
Set.of(a, b)new HashSet<>(Arrays.asList(a, b))
Map.of(k, v)Collections.singletonMap(k, v) or new HashMap<>()
"str".repeat(n)StringUtils.repeat("str", n) (Apache Commons)
str.isBlank()str.trim().isEmpty()
str.strip()str.trim()
str.lines()str.split("\\R") or BufferedReader
Optional.isEmpty()!optional.isPresent()
Text blocks """..."""Regular strings with \n
RecordsRegular class with fields, constructor, getters
Pattern matching instanceofTraditional instanceof + cast
Stream.toList().collect(Collectors.toList())

Common var Replacements

// WRONG (Java 10+):
var map = someMethod.toMap();
var list = getItems();
var result = calculate();

// CORRECT (Java 8):
Map<String, Object> map = someMethod.toMap();
List<String> list = getItems();
CalculationResult result = calculate();

Required Import for String Repeat

import org.apache.commons.lang3.StringUtils;
// Usage: StringUtils.repeat("=", 70)

Code Formatting (Spotless) — MANDATORY

AI-generated Java is NOT auto-formatted. After creating or editing ANY .java file, reformat it before committing — do not rely on local pre-commit hooks being installed:

./mvnw spotless:apply    # reformats Java to the project style (Eclipse profile)
./mvnw spotless:check    # verifies formatting — this is what CI runs
  • Formatter profile: .config/neqsim_formatter.xml (configured in pom.xml), applied to src/main/java and src/test/java.
  • CI runs ./mvnw spotless:check and FAILS the build on any unformatted file.
  • Run spotless:apply, then git add the reformatted files, then commit.
  • NEVER bypass the gate with git commit --no-verify.

API Verification (MANDATORY)

Before using any NeqSim class in code or examples:

  1. Search for the class: file_search("**/ClassName.java")
  2. Read constructor and method signatures from the actual source
  3. Use only methods that actually exist with correct parameter types
  4. Do NOT assume convenience overloads — check first

Common API mistakes:

  • Assuming getXxx95() when actual is getXxx(int percentile)
  • Assuming 1-arg constructors when 2+ args are required
  • Calling methods on wrong class
  • Assuming calculate() when actual is calculateRisk() or run()

JavaDoc Requirements

All classes and methods (public, protected, AND private) require complete JavaDoc:

  • Class-level: description, @author, @version
  • Method-level: description, @param for every parameter, @return for non-void, @throws for each exception
  • HTML5 compatible: use <caption> in tables (no summary attribute)
  • No @see with plain text — only valid Java references
  • No lambda arrows (->) in JavaDoc code examples

Build Commands

./mvnw install                            # full build
./mvnw test -Dtest=ClassName              # single test class
./mvnw test -Dtest=ClassName#methodName   # single method
./mvnw checkstyle:check spotbugs:check pmd:check  # static analysis
./mvnw javadoc:javadoc                    # verify JavaDoc

Serialization — SE_BAD_FIELD Rule (MANDATORY)

SpotBugs enforces that all instance fields in Serializable classes are either serializable themselves or marked transient. This applies to any class extending ProcessEquipmentBaseClass, MeasurementDeviceBaseClass, MechanicalDesign, thermo phase classes, or any other Serializable class.

When to use transient

Mark a field transient when its type does NOT implement Serializable:

  • Functional interfaces: Function, BiConsumer, Consumer, Supplier
  • JDBC: Connection, Statement, ResultSet
  • Threads: Thread, ExecutorService
  • Apache Commons Math: BicubicInterpolator, BicubicInterpolatingFunction, LinearInterpolator
  • Inner classes that don't implement Serializable (e.g., NetworkNode, GibbsComponent)
  • External library types not designed for serialization

Correct modifier order

// private fields
private transient MyType field;
private final transient List<NonSerializableInner> items = new ArrayList<>();

// package-private fields
transient SomeType field;

Verify with SpotBugs

./mvnw spotbugs:check 2>&1 | Select-String "SE_BAD_FIELD"  # should return empty

Frequently asked questions

What to verify before installation and use

What does the neqsim-java8-rules source document cover?

All NeqSim Java code — including test classes in src/test/java/ — MUST compile with Java 8. The CI build will FAIL if you use Java 9+ features.

How do I install neqsim-java8-rules?

The source record exposes this install command: npx skills add https://github.com/equinor/neqsim --skill ".github/skills/neqsim-java8-rules". Inspect the command and pinned source before running it.

Alternatives

Compare before choosing

Computed 10045,960

coreyhaines31/marketingskills

ab-testing

When the user wants to plan, design, or implement an A/B test or experiment, or build a growth experimentation program. Also use when the user mentions "A/B test," "split test," "experiment," "test this change," "variant copy," "multivariate test," "hypothesis," "should I test this," "which version is better," "test two versions," "statistical significance," "how long should I run this test," "growth experiments," "experiment velocity," "experiment backlog," "ICE score," "experimentation program

Computed 10029,236

garrytan/gbrain

bulk-ingestion

End-to-end discipline for turning any large data source (audio libraries, email takeouts, document corpora, chat exports, API dumps) into brain pages at scale. The lifecycle spine: SCHEMA → ACCESS → TRIAL → EVALUATE → IMPROVE → CODIFY → TEST → SKILLIFY → BULK → MONITOR. State is tracked in a durable JSON manifest (see MANIFEST-PATTERN.md) so any crash, session boundary, or subagent fan-out resumes from ground truth instead of memory.

Computed 10025,136

alirezarezvani/claude-skills

app-store-optimization

App Store Optimization (ASO) toolkit for researching keywords, analyzing competitor rankings, generating metadata suggestions, and improving app visibility on Apple App Store and Google Play Store. Use when the user asks about ASO, app store rankings, app metadata, app titles and descriptions, app store listings, app visibility, or mobile app marketing on iOS or Android. Supports keyword research and scoring, competitor keyword analysis, metadata optimization, A/B test planning, launch checklist

Computed 1005,277

dotnet/skills

migrate-vstest-to-mtp

Migrates .NET test projects from VSTest to Microsoft.Testing.Platform (MTP). Use when user asks to "migrate to MTP", "switch from VSTest", "enable Microsoft.Testing.Platform", "use MTP runner", set OutputType=Exe only for test projects in Directory.Build.props, or mentions EnableMSTestRunner, EnableNUnitRunner, or UseMicrosoftTestingPlatformRunner. USE FOR: MTP behavioral differences vs VSTest (exit code 8, zero tests discovered, --ignore-exit-code, TESTINGPLATFORM_EXITCODE_IGNORE); centralizing