Best for
- USE WHEN: writing or reviewing any Java code for NeqSim, including tests.
equinor/neqsim/.github/skills/neqsim-java8-rules/SKILL.md
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.
Decision brief
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.
Compatibility matrix
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Not declared | No explicit evidence | Portability before use |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/equinor/neqsim --skill ".github/skills/neqsim-java8-rules"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
Before using any NeqSim class in code or examples:
Review the “Forbidden Java 9+ Features” section in the pinned source before continuing.
Review the “Common var Replacements” section in the pinned source before continuing.
Review the “Required Import for String Repeat” section in the pinned source before continuing.
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:
Permission review
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
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 93/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 147 | Source | Repository attention, not individual Skill quality |
| Compatibility | 0 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
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 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 |
| Records | Regular class with fields, constructor, getters |
Pattern matching instanceof | Traditional instanceof + cast |
Stream.toList() | .collect(Collectors.toList()) |
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();
import org.apache.commons.lang3.StringUtils;
// Usage: StringUtils.repeat("=", 70)
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
.config/neqsim_formatter.xml (configured in pom.xml),
applied to src/main/java and src/test/java../mvnw spotless:check and FAILS the build on any unformatted file.spotless:apply, then git add the reformatted files, then commit.git commit --no-verify.Before using any NeqSim class in code or examples:
file_search("**/ClassName.java")Common API mistakes:
getXxx95() when actual is getXxx(int percentile)calculate() when actual is calculateRisk() or run()All classes and methods (public, protected, AND private) require complete JavaDoc:
@author, @version@param for every parameter, @return for non-void, @throws for each exception<caption> in tables (no summary attribute)@see with plain text — only valid Java references->) in JavaDoc code examples./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
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.
transientMark a field transient when its type does NOT implement Serializable:
Function, BiConsumer, Consumer, SupplierConnection, Statement, ResultSetThread, ExecutorServiceBicubicInterpolator, BicubicInterpolatingFunction, LinearInterpolatorSerializable (e.g., NetworkNode, GibbsComponent)// private fields
private transient MyType field;
private final transient List<NonSerializableInner> items = new ArrayList<>();
// package-private fields
transient SomeType field;
./mvnw spotbugs:check 2>&1 | Select-String "SE_BAD_FIELD" # should return empty
Frequently asked questions
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.
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
coreyhaines31/marketingskills
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
garrytan/gbrain
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.
alirezarezvani/claude-skills
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
dotnet/skills
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