Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/cosmix/loomnpx agentmods add skills/cosmix/loom/loom-javaWrote 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/cosmix/loom/loom-java)<a href="https://agentmods.dev/skills/cosmix/loom/loom-java"><img src="https://agentmods.dev/badge/skills/cosmix/loom/loom-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/cosmix/loom/loom-java"><img src="https://agentmods.dev/badge/skills/cosmix/loom/loom-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.00014 | $0.06998 |
| Opus 5.5 | $0.00006 | $0.02799 |
| Sonnet 5.5 | $0.00003 | $0.01400 |
| Haiku 4.5 | $0.00001 | $0.00700 |
Grade A, and why
loom-java scanned grade A with 1 finding 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 12d 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
.map(url -> executor.submit(() -> fetch(url))) // one virtual thread per blocking call How it starts
The opening of the file, as written. The whole thing — 396 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Java Language Expertise
Overview
Idiomatic, production-grade Java 21+ (25 is the current LTS): records, sealed hierarchies, pattern matching, streams, virtual threads, the Maven and Gradle builds, JUnit 5 and Spring Boot. Assumes the reader knows the language. The content is decision rules and the traps that survive review: == on boxed values, Collectors.toMap on a duplicate key, @Transactional on a self-call, a pinned virtual thread, a test task that runs zero JUnit 5 tests and reports success.
Tooling
Use the wrapper the repository ships (./gradlew, ./mvnw); it pins the build tool version. Keep the existing build tool: a Maven-to-Gradle migration is a separate, requested change.
| Task | Gradle | Maven |
|---|---|---|
| Full gate | ./gradlew check |
./mvnw -q verify |
| Compile main and tests | ./gradlew testClasses |
./mvnw -q test-compile |
| Unit tests, whole suite (the stage gate's) | ./gradlew test |
./mvnw -q test |
| One test | ./gradlew test --tests 'com.acme.FooTest.bar' |
./mvnw test -Dtest='FooTest#bar' |
| Dependency tree | ./gradlew dependencies --configuration runtimeClasspath |
./mvnw dependency:tree |
| Why is X on the classpath | ./gradlew dependencyInsight --dependency jackson-databind |
./mvnw dependency:tree -Dincludes=com.fasterxml.jackson.core |
| Format | ./gradlew spotlessApply |
./mvnw spotless:apply |
- Gradle:
checkrunstestplus every verification task a plugin attaches (Spotless'sspotlessCheck, Checkstyle, SpotBugs); Error Prone runs insidecompileJava.buildischeckplusassemble. Atesttask whose inputs have not changed is skipped asUP-TO-DATE;--rerun(Gradle 7.6+) forces it. - Maven: Surefire runs unit tests in the
testphase (default includes**/Test*.java,**/*Test.java,**/*Tests.java,**/*TestCase.java); Failsafe runs*IT.javainintegration-test/verify. Pinmaven-surefire-plugin3.x in<pluginManagement>: older Maven super-POMs bind Surefire 2.12.4, which runs no JUnit 5 tests and reports success. - Versions: Gradle keeps them in the version catalog (
gradle/libs.versions.toml) and imports BOMs withplatform(...); Maven imports BOMs in<dependencyManagement>with<scope>import</scope>. Conflict resolution differs: Gradle picks the highest requested version, Maven picks the nearest declaration in the tree, which can silently downgrade a transitive dependency.maven-enforcer-plugin'sdependencyConvergencerule turns that into a build error. - Static analysis:
javac -Xlint:all -Werror; Error Prone (javac plugin, compile-time bug patterns); NullAway (an Error Prone check) with JSpecify@NullMarked/@Nullable; SpotBugs on bytecode; Checkstyle or PMD for style rules. Format with Spotless running google-java-format or palantir-java-format.
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.
- 12d ago Changed d49082a58f90
- 2mo ago First seen · 396 lines · 14 tokens per session scan A aea400ccb080
loom-java is a skill published in the GitHub repository cosmix/loom (66 stars, last pushed yesterday), licensed MIT. It adds 14 tokens to every session and 6,998 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-26.
loom-java compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| loom-javacosmix/loom | Skill | 66 | yesterday | MIT | A | 14 | Claude Code, Codex |
| authoring-java-sdk-tasksastronomer/agents | Skill | 465 | today | Apache-2.0 | A | 152 | Claude Code |
| configuring-airflow-language-sdksastronomer/agents | Skill | 465 | today | Apache-2.0 | A | 155 | Claude Code |
| jakarta-data-persistenceAdamBien/airails | Skill | 76 | yesterday | MIT | A | 199 | Claude Code |
| jackson-3-migrationnavikt/copilot | Skill | 65 | yesterday | MIT | A | 53 | Claude Code, Codex |
| zcfgAdamBien/airails | Skill | 76 | yesterday | MIT | A | 75 | Claude Code |
| memory-persistenceAdamBien/airails | Skill | 76 | yesterday | MIT | A | 161 | Claude Code |