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 agentmods add skills/jetbrains/koog/add-java-code-snippets-in-docsnpx skills add JetBrains/koog --skill add-java-code-snippets-in-docsgit clone --depth 1 https://github.com/JetBrains/koogWhat 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 | $0.00070 | $0.01718 |
| Opus 5 | $0.00035 | $0.00859 |
| Sonnet 5 | $0.00014 | $0.00344 |
| Haiku 4.5 | $0.00007 | $0.00172 |
Grade A, and why
add-java-code-snippets-in-docs 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 2d 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.
How it starts
The opening of the file, as written. The whole thing — 144 lines — stays where its author put it; the contents beside it link to each section on GitHub.
When to use
Adding Java code blocks alongside existing Kotlin blocks in mkdocs documentation (docs/docs/**.md). Typical triggers: "add Java examples to ", "add Java tabs", "complete the Java side of ", "fix the Java block in ".
Do NOT use this skill for:
- Writing brand-new Kotlin docs (no precursor Kotlin block to mirror).
- Splitting source files between JVM and non-JVM source sets — use the
split-jvm-nonjvmskill instead. - Java examples outside the mkdocs/Knit pipeline.
Prerequisites
JDK 17. Gradle 8.x fails cryptically on newer JDKs. If the default JDK is newer, prefix every ./gradlew command in this workflow with JAVA_HOME=/path/to/jdk-17.
Before starting
Read one reference doc to anchor on the established pattern:
docs/docs/features/tracing.md— full Tracing feature (blocks 1–6).docs/docs/agent-events.md— customFeatureMessageProcessorsubclass (suspend bridge methodshandleMessage/handleClose).docs/docs/testing.md—MockPromptExecutorbuilder, tool mocking, comment-only blocks for Kotlin-only DSL.docs/docs/features/open-telemetry/index.md— OpenTelemetry examples.docs/docs/features/open-telemetry/opentelemetry-langfuse-exporter.md— Langfuse exporter.docs/docs/features/open-telemetry/opentelemetry-weave-exporter.md— Weave exporter.
Workflow
For each Kotlin code block in the target .md:
- Read the Kotlin block: INCLUDE, visible code, SUFFIX, KNIT directive.
- Check existing Java tab. If absent → add one. If it has empty
/** */placeholder content → replace entirely. If it has real content → update. - Consider Kotlin-side alignment. If the Kotlin block uses Kotlin-only APIs (
kotlinx.io,MutableStateFlow,KLogger, inlineDuration), consider whether the Kotlin example should switch to a JVMcreate()factory (e.g.,TraceFeatureMessageFileWriter.create(path)). This keeps the two examples structurally aligned. Seereference/factory-classes.md. - Add
@JavaAPIbridge methods if missing. If the Java code needs a bridge that doesn't exist yet (e.g., a builder method onMockExecutorBuilder), add it before writing the Java tab. This may pause the doc work for a source-code change — flag it to the user before proceeding. - Write the Java tab immediately after the Kotlin tab, using the template below.
- If renaming Knit files (e.g., hyphenated
example-feature-java-01.java→ camelCaseexampleFeatureJava01.java), delete the old generated files first. - Generate and compile (see Verification at the bottom).
- Read the generated
.javato confirm correctness. Fix and repeat 7–8 on failure.
What ships with it
3 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.
- 2d ago First seen · 144 lines · 70 tokens per session scan A 7252e23216f5
add-java-code-snippets-in-docs is a skill published in the GitHub repository JetBrains/koog (4,553 stars, last pushed today), licensed Apache-2.0. It adds 70 tokens to every session and 1,718 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
agent-device
Automates Apple-platform apps (iOS, tvOS, macOS), Android devices, and Amazon Vega OS TV apps in Vega Virtual Devices. Use when navigating apps, taking snapshots/screenshots where supported, driving TV remotes, tapping, typing, scrolling, extracting UI info, collecting evidence, or planning agent-device CLI commands.
android-emulator
Verify and debug native, React Native, Expo, or Flutter apps on an Android Emulator with agent-device. Use when an agent needs to launch an app, inspect its live UI, tap, type, scroll, validate a code change, collect failure evidence, or reproduce a workflow on an Android virtual device.
ios-simulator
Verify and debug native, React Native, Expo, or Flutter apps on an iOS Simulator with agent-device. Use when an agent needs to launch an app, inspect its live UI, tap, type, scroll, validate a code change, collect failure evidence, or reproduce a workflow on an iPhone or iPad Simulator.
dogfood
Systematically explore and test a mobile app on iOS/Android with agent-device to find bugs, UX issues, and other problems. Use when asked to dogfood, QA, exploratory test, find issues, bug hunt, or test this app on mobile.
rn-testing
This skill should be used when the user asks to "write a Maestro test", "create E2E flows", "add testIDs", "run UI tests", "run E2E tests", "verify a feature works", "test my screen", "set up maestro-runner", "mock network requests", "inspect store state", "write test assertions", or needs guidance on test timing…
using-rn-dev-agent
Entry point for the rn-dev-agent plugin. Maps user intent to the right command, agent, or skill. Use at the START of any React Native development conversation. Triggers on "I want to build", "build a feature", "add a feature to the app", "test this", "something is broken", "fix the crash", "help with my React Native…