mcp-steroid / installer-gen
CLAUDE.md82 starsChanged 3 months agoApache-2.0View on GitHub
Guidance for the :installer-gen module. Instructions here override the root guide for this folder. Read the root CLAUDE.md too (project-wide rules). :installer-gen is build-tooling (no IntelliJ deps). It is the lower of the two distribution generators: :website-gen depends on it. Two responsibilities: 1. JDK detection — resolveAllJdks(cache) (in JdkModel.kt) produces a JdkModel of the JDK 25 builds the installer ships, each field computed from the live vendor sources (nothing hand-pinned). The vendor logic is split per file: CorrettoJdk.kt (Amazon Corretto)…
- Pipes a download into a shell
1 other project uses a version of this.
Adopted by
Most recently taken up by
- jonnyzzz/mcp-steroidword for word, first seen Aug 5, 2026
Other versions1 project uses a version of this.
Word for word · 1
- jonnyzzz/mcp-steroid★ 78100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository10 other files it gives its agents.
- prompts/AGENTS.mdAGENTS.md
- test-integration/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- docs/CLAUDE.mdCLAUDE.md
- ij-plugin/CLAUDE.mdCLAUDE.md
- test-experiments/CLAUDE.mdCLAUDE.md
- test-integration-agent-launch/CLAUDE.mdCLAUDE.md
- website/CLAUDE.mdCLAUDE.md
- website-gen/CLAUDE.mdCLAUDE.md
- promptSkill
The file
We split this CLAUDE.md into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 4
Read the root CLAUDE.md too (project-wide rules).
- Very specific: line 60
NOT in ciBuildPluginTests.
- Very specific: line 62
Don't run it in the unit-test loop.
≈ “Common” is an estimate: at least 1 in 5 of the 26,980 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
installer-gen/CLAUDE.md
Guidance for the :installer-gen module. Instructions here override the root guide for this folder.
Read the root CLAUDE.md too (project-wide rules).
What this module is
:installer-gen is build-tooling (no IntelliJ deps). It is the lower of the two distribution
generators: :website-gen depends on it. Two responsibilities:
- JDK detection —
resolveAllJdks(cache)(inJdkModel.kt) produces aJdkModelof the JDK 25 builds the installer ships, each field computed from the live vendor sources (nothing hand-pinned). The vendor logic is split per file:CorrettoJdk.kt(Amazon Corretto) andAzulJdk.kt(Azul Zulu). - Installer-script generation —
InstallerGenerator+ theinstall.sh/install.ps1templates (consumes theJdkModel). (Ported from PR #113.) The scripts' scope is LOCKED by docs/install-scripts-contract.md: install devrig + register PATH (via thedevrig install devrighandoff), never auto-register agents or auto-install the IDE plugin — those commands are only promoted to the user.
The shared HTTP/cache infra (Cache.kt, HttpFetcher/KtorHttpFetcher) lives here too, so :website-gen
reuses it.
JDK data model — the rules
- Exactly 5 platforms the installer supports: Amazon Corretto 25 for
linux-x64,linux-arm64,macos-arm64,windows-x64; Azul Zulu 25 forwindows-arm64(via the Azul Metadata API). Latest 25 is resolved live — no version pin in source. - NO alpine / musl. The IntelliJ IDEs require glibc, so we do not ship musl builds —
install.shdetects musl and fails fast. There is noALPINE_LINUXJdkOs. (Also nomacos-x64— Apple-silicon only.) JdkArtifactis self-sufficient for the script generator:platform,vendor,version(vendor-native, NOT cross-comparable),featureVersion(Int, comparable),archive(+ArchiveType.extension),url(version-pinned),fileName,size,sha256(lowercase hex),javaHome.javaHomeis always archive-relative, forward-slash, no leading/trailing slash — computed by scanning entries for the shallowestbin/java[.exe](nestedjre/bin/java-proof).- Vendor-natural validation is mandatory and fail-fast (
PgpVerifier, BouncyCastle): both vendors publish detached OpenPGP signatures (Corretto<file>.sig, Azul Metadata-APIsignature-binary). The signing-key fingerprint is pinned in source (CORRETTO_KEY_FINGERPRINTinCorrettoJdk.kt,AZUL_KEY_FINGERPRINTinAzulJdk.kt) and asserted before trusting the signature — the key is fetched live over HTTPS, so the pin defeats a compromised key endpoint. PGP runs on every resolve, incl. cache hits. Fingerprints are injectable intoresolveAllJdksso tests can pin a generated test key. Vendor endpoints/keys are catalogued in thejdk-feed-vendor-endpointsmemory.
Caching (Cache.kt)
Cache.onDisk(root)(one file per key, atomic temp+move) /Cache.inMemory()(for tests) behind a static factory.getOrCompute<T>uses kotlinx.serialization forT.downloadWithEtag— HEADETagcache; fails fast if the host exposes no ETag (Corretto).downloadVerifyingSha256— content-addressed by a vendor-published sha256 (Azul, whose CDN exposes no HEAD ETag); re-hashes on every return incl. cache hits (the cache dir is shared).- The cache root must live OUTSIDE any
build/folder and its path is passed in from Gradle (--cache-dir), never guessed.generateJdkModelroots it atgradleUserHome/caches/mcp-steroid/….
Running / testing
- Unit tests are hermetic (synthetic tar.gz/zip via
TestArchives, real BouncyCastle signing viaTestPgp, in-memory cache + a fakeHttpFetcher) — no network. Run:./gradlew :installer-gen:test. Covered byciBuildPluginTests(auto-swept; guarded in rootbuild.gradle.kts). - The Docker installer integration tests live in a separate
installerIntegrationTestsource set — NOT inciBuildPluginTests. (Ported from #113.) generateJdkModelhits the network; the first resolve downloads ~1 GB (cached after; re-runs ~15 s). Don't run it in the unit-test loop.KtorHttpFetcherisAutoCloseable—use {}it.- Deps beyond the repo norm:
org.bouncycastle:bcpg-jdk18on(PGP),org.apache.commons:commons-compress(archive scanning).generateJdkModelsetsmaxHeapSize = "2g"(one ~230 MBByteArrayat a time).
Docker integration lane — NO package installs at test time (#443)
The installerIntegrationTest containers must never run apt-get/apk in their ENTRYPOINT: the
2026-08-04 Ubuntu-mirror stall turned silenced test-time installs into 11 consecutive CI failures —
healthy-looking containers whose tool polls burned 4-minute deadlines with zero diagnostics.
The standing shape (suite runtime dropped ~10 min → ~44 s):
- pwsh lane needs no curl at all:
verifyMockServesprobes with built-inpwsh Invoke-WebRequest(the same download pathinstall.ps1itself uses); containers boot with a baremkdir + sleepentrypoint. - ubuntu sh lane (curl+unzip ARE the
curl | shproduct contract) uses the pre-baked, digest-pinned image fromsrc/installerIntegrationTest/resources/ubuntu-installer/Dockerfile(bounded 3-attempt apt retry, VISIBLE output, hardcommand -vgate), built once per test JVM via test-helperbuildDockerImage()and BuildKit-layer-cached on the agent. A real mirror outage fails fast indocker buildwith full apt output. Update the digest withdocker buildx imagetools inspect ubuntu:24.04(pin the multi-arch index digest, not a per-arch one). - Readiness = exec transport only (
awaitContainerReady, 60 s, surfaces the actual docker error). The alpine musl test keeps its tinyapk add bash(harness exec shell only) — un-silenced so the streamed[prefix ERR]log documents any future incident. - The GH workflow step is bounded at
timeout-minutes: 20(worst pathological hang was 4 × 15 m serial JUnit timeouts under the 45 m job cap).
Gotchas
versionmeans different things per vendor (25.0.3.9.1vs25.0.3) — never compare across vendors; usefeatureVersion.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

