Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add ProjAnvil/MindForge --skill enterprise-javagit clone --depth 1 https://github.com/ProjAnvil/MindForgeWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/projanvil/mindforge/enterprise-java)<a href="https://agentmods.dev/skills/projanvil/mindforge/enterprise-java"><img src="https://agentmods.dev/badge/skills/projanvil/mindforge/enterprise-java/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/projanvil/mindforge/enterprise-java"><img src="https://agentmods.dev/badge/skills/projanvil/mindforge/enterprise-java.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00076 | $0.03538 |
| Opus 5.5 | $0.00030 | $0.01415 |
| Sonnet 5.5 | $0.00015 | $0.00708 |
| Haiku 4.5 | $0.00008 | $0.00354 |
Grade A, and why
enterprise-java scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 16d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
This is a copy
100% identical to enterprise-java — 327 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 233 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Enterprise Java — Language Skill
This skill is about the Java language and runtime itself: syntax, the type system, concurrency, virtual threads, the JVM memory model, and the idioms and gotchas that follow from them. It is deliberately framework-neutral. Framework and app-level recipes live in references/; see Framework Selection below. Grounded in the Oracle JDK 21 virtual threads guide, JEP 444 (virtual threads), JEP 480/505 (structured concurrency), the Java Memory Model (JSR-133), and the java.util.concurrent package docs.
Gotchas
Each trap is written as symptom -> why -> fix, because the why is the part worth remembering.
1. Virtual-thread pinning under synchronized
- Symptom: throughput collapses when a virtual thread blocks while holding a monitor; adding more virtual threads does not help.
- Why: on JDK 21 a virtual thread inside a
synchronizedblock/method that blocks is pinned to its carrier platform thread (JEP 444) — the scheduler cannot unmount it, so the carrier stays occupied for the whole block. - Fix: replace the monitor with
java.util.concurrent.locks.ReentrantLock, or move the blocking call out of the synchronized region; never pool virtual threads.
// ReentrantLock lets the virtual thread unmount while waiting.
private final ReentrantLock lock = new ReentrantLock();
lock.lock();
try {
doWork();
} finally {
lock.unlock();
}
2. Carrier-thread pool starvation
- Symptom: virtual threads stop making progress even though the code is "mostly idle"; the whole process feels frozen.
- Why: the default scheduler mounts virtual threads on a small, fixed ForkJoinPool of carrier platform threads (parallelism ~ CPU cores,
jdk.virtualThreadScheduler.parallelism). If every carrier is pinned or stuck in a long CPU loop, no virtual thread can be mounted. - Fix: remove pinning (gotcha 1), offload CPU-bound work to a bounded platform-thread pool, and cap concurrency with a
Semaphoreinstead of a thread pool.
// Bound concurrency without pooling virtual threads.
Semaphore permits = new Semaphore(64);
permits.acquire();
try {
handle(request);
} finally {
permits.release();
}
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 16d ago Changed · +25 lines · +23 tokens per session aa9b0f966e90
- 1mo ago Changed · +8 lines 49cfda9d40fe
- 3mo ago First seen · 200 lines · 53 tokens per session scan A 6f25ab8029a7
enterprise-java is a skill published in the GitHub repository ProjAnvil/MindForge (3 stars, last pushed 9d ago), licensed MIT. It adds 76 tokens to every session and 3,538 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to enterprise-java, differing in 327 lines, and is treated as a copy.
enterprise-java compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| enterprise-javaProjAnvil/MindForge | Skill | 3 | 9d ago | MIT | A | 76 | Claude Code |
| java-patternssoftspark/ai-toolkit | Skill | 180 | 13d ago | Apache-2.0 | A | 48 | Claude Code |
| spring-cloud-openfeignclaude-dev-suite/claude-dev-suite | Skill | 51 | today | MIT | A | 96 | Claude Code |
| spring-bootclaude-dev-suite/claude-dev-suite | Skill | 51 | today | MIT | A | 140 | Claude Code |
| spring-hateoasclaude-dev-suite/claude-dev-suite | Skill | 51 | today | MIT | A | 105 | Claude Code |
| java-spring-developmentMindrally/skills | Skill | 323 | 1mo ago | Apache-2.0 | A | 24 | Claude Code |
| java-quarkus-developmentMindrally/skills | Skill | 323 | 1mo ago | Apache-2.0 | A | 31 | Claude Code |